/* ==========================================
   Growth Model V3 - 完全再設計版
   参考デザインに基づいた横フロー＋5ステップ
   ========================================== */

/* セクション全体 */
.growth-model-v3 {
    padding: 100px 0;
    background: linear-gradient(180deg, #E8F3FF 0%, #F5FAFF 100%);
    position: relative;
    overflow: hidden;
}

.growth-v3-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ヘッダー ========== */
.growth-v3-header {
    text-align: center;
    margin-bottom: 70px;
}

.growth-v3-title {
    font-size: 42px;
    font-weight: 700;
    color: #07193B;
    margin-bottom: 16px;
    line-height: 1.3;
}

.growth-v3-subtitle {
    font-size: 18px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* タイトル下の細い横線 */
.growth-v3-title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========== 5ステップフロー ========== */
.growth-v3-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 60px;
    position: relative;
}

/* 各ステップカード - 完全固定サイズ */
.growth-v3-step {
    /* 固定サイズ（STEP01を基準） */
    width: 220px;
    height: 520px;
    min-height: 520px;
    max-height: 520px;
    flex-shrink: 0;
    flex-grow: 0;
    
    background: linear-gradient(135deg, #FFFFFF 0%, #F5FAFF 100%);
    border: 1px solid #D7E6FF;
    border-radius: 20px;
    padding: 36px 24px;
    box-shadow: 0 12px 30px rgba(16, 56, 120, 0.12);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    
    /* 内容オーバーフロー制御 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.growth-v3-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(16, 56, 120, 0.18);
}

/* ステップ番号バッジ - 固定高さ */
.growth-v3-step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* ステップごとの色 */
.growth-v3-step[data-step="1"] .growth-v3-step-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.growth-v3-step[data-step="2"] .growth-v3-step-badge {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.growth-v3-step[data-step="3"] .growth-v3-step-badge {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.growth-v3-step[data-step="4"] .growth-v3-step-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.growth-v3-step[data-step="5"] .growth-v3-step-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* アイコン - 固定高さ */
.growth-v3-step-icon {
    font-size: 56px;
    margin-bottom: 20px;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.growth-v3-step[data-step="1"] .growth-v3-step-icon {
    color: #3b82f6;
}

.growth-v3-step[data-step="2"] .growth-v3-step-icon {
    color: #06b6d4;
}

.growth-v3-step[data-step="3"] .growth-v3-step-icon {
    color: #f59e0b;
}

.growth-v3-step[data-step="4"] .growth-v3-step-icon {
    color: #10b981;
}

.growth-v3-step[data-step="5"] .growth-v3-step-icon {
    color: #8b5cf6;
}

/* 英語ラベル - 固定高さ */
.growth-v3-step-title-en {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    height: 16px;
    min-height: 16px;
    max-height: 16px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 日本語タイトル - 最大2行固定 */
.growth-v3-step-title-ja {
    font-size: 20px;
    font-weight: 700;
    color: #07193B;
    margin-bottom: 16px;
    line-height: 1.3;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* 説明文 - 最大5行固定（残りスペースすべて使用） */
.growth-v3-step-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-height: 126px;
}

/* ========== 矢印 ========== */
.growth-v3-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    flex-shrink: 0;
    margin: 100px 0 0 0;
}

.growth-v3-arrow i {
    font-size: 28px;
    color: #60a5fa;
    opacity: 0.6;
    animation: arrow-pulse 2s infinite;
}

@keyframes arrow-pulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateX(0);
    }
    50% { 
        opacity: 0.8; 
        transform: translateX(4px);
    }
}

/* ループ矢印（5→1） */
.growth-v3-loop-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.growth-v3-loop-arrow i {
    font-size: 32px;
    color: #10b981;
    opacity: 0.7;
    animation: loop-rotate 3s infinite;
}

@keyframes loop-rotate {
    0%, 100% { 
        opacity: 0.5; 
        transform: rotate(0deg);
    }
    50% { 
        opacity: 0.9; 
        transform: rotate(180deg);
    }
}

.growth-v3-loop-arrow span {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}

/* ========== フッターメッセージ ========== */
.growth-v3-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 36px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5D9 100%);
    border: 2px solid #FFE3A0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.15);
}

.growth-v3-footer-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.growth-v3-footer-icon i {
    color: #f59e0b;
}

.growth-v3-footer-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

.growth-v3-footer-text strong {
    color: #07193B;
    font-weight: 700;
    font-size: 17px;
}

/* ========================================== 
   レスポンシブデザイン
   ========================================== */

/* タブレット（1024px以下） */
@media (max-width: 1024px) {
    .growth-v3-flow {
        flex-wrap: wrap;
        gap: 32px;
        justify-content: center;
    }

    .growth-v3-step {
        /* タブレットでも固定サイズを維持 */
        width: 220px;
        height: 520px;
        min-height: 520px;
        max-height: 520px;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .growth-v3-arrow {
        display: none;
    }

    .growth-v3-loop-arrow {
        position: static;
        transform: none;
        margin-top: 20px;
        order: 999;
        width: 100%;
    }

    .growth-v3-title {
        font-size: 36px;
    }

    .growth-v3-subtitle {
        font-size: 16px;
    }
}

/* モバイル（768px以下） */
@media (max-width: 768px) {
    .growth-model-v3 {
        padding: 60px 0;
    }

    .growth-v3-header {
        margin-bottom: 40px;
    }

    .growth-v3-title {
        font-size: 28px;
    }

    .growth-v3-subtitle {
        font-size: 15px;
    }

    .growth-v3-flow {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .growth-v3-step {
        /* モバイルでも固定サイズを維持（幅は画面に合わせて調整） */
        width: 100%;
        max-width: 400px;
        height: 520px;
        min-height: 520px;
        max-height: 520px;
        flex-shrink: 0;
        flex-grow: 0;
        padding: 32px 20px;
    }

    .growth-v3-step-icon {
        font-size: 48px;
        height: 60px;
        min-height: 60px;
        max-height: 60px;
    }

    .growth-v3-step-title-ja {
        font-size: 18px;
        height: 47px;
        min-height: 47px;
        max-height: 47px;
    }

    .growth-v3-step-description {
        font-size: 13px;
        line-height: 1.8;
        max-height: 117px;
    }

    .growth-v3-footer {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 16px;
    }

    .growth-v3-footer-text {
        font-size: 15px;
        text-align: center;
    }

    .growth-v3-loop-arrow {
        margin-top: 16px;
    }
}

/* 小型モバイル（480px以下） */
@media (max-width: 480px) {
    .growth-v3-title {
        font-size: 24px;
    }

    .growth-v3-step {
        /* 小型モバイルでも固定高さを維持 */
        height: 520px;
        min-height: 520px;
        max-height: 520px;
    }

    .growth-v3-step-badge {
        width: 40px;
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        font-size: 16px;
    }

    .growth-v3-step-icon {
        font-size: 40px;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }

    .growth-v3-step-title-ja {
        font-size: 17px;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
    }

    .growth-v3-step-description {
        font-size: 13px;
        line-height: 1.8;
        max-height: 117px;
    }

    .growth-v3-footer-icon {
        font-size: 36px;
    }

    .growth-v3-footer {
        padding: 24px 20px;
    }

    .growth-v3-footer-text {
        font-size: 14px;
    }

    .growth-v3-footer-text strong {
        font-size: 15px;
    }
}
