/* ========================================
   4ステップ運用（実写画像カード版）
   ======================================== */

.section-four-steps-cards {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    overflow: hidden;
}

/* セクションタイトル */
.section-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 60px;
    letter-spacing: 0.02em;
}

/* 4ステップグリッド */
.four-steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* ステップカード */
.step-card {
    flex: 1;
    max-width: 280px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(31, 79, 216, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(31, 79, 216, 0.15);
    border-color: rgba(31, 79, 216, 0.3);
}

/* Step 2（Light）の強調 */
.step-card-highlight {
    border: 3px solid #1F4FD8;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
    box-shadow: 0 8px 30px rgba(31, 79, 216, 0.2);
}

.step-card-highlight:hover {
    box-shadow: 0 16px 50px rgba(31, 79, 216, 0.25);
}

/* ステップヘッダー */
.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* ステップ番号 */
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1F4FD8 0%, #4B7BFF 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ステップ名 */
.step-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B2430;
    margin: 0;
    letter-spacing: 0.02em;
}

/* 画像コンテナ */
.step-image-container {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f5f5f5;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.step-card:hover .step-image {
    transform: scale(1.05);
}

/* ステップ説明 */
.step-description {
    font-size: 1rem;
    font-weight: 500;
    color: #5B6B82;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* 矢印 */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E0;
    font-size: 2rem;
    flex-shrink: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.step-arrow.visible {
    opacity: 1;
}

.step-arrow i {
    transition: transform 0.3s ease;
}

.step-arrow:hover i {
    transform: translateX(8px);
}

/* Training Time バッジ */
.training-time-badge {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #EAF0FF 0%, #D8E5FF 100%);
    border-radius: 24px;
    border: 2px solid #1F4FD8;
    color: #1F4FD8;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

/* アニメーション遅延 */
.step-card:nth-child(1) { transition-delay: 0.1s; }
.step-card:nth-child(3) { transition-delay: 0.2s; } /* Step 2 */
.step-card:nth-child(5) { transition-delay: 0.3s; } /* Step 3 */
.step-card:nth-child(7) { transition-delay: 0.4s; } /* Step 4 */

.step-arrow:nth-child(2) { transition-delay: 0.15s; }
.step-arrow:nth-child(4) { transition-delay: 0.25s; }
.step-arrow:nth-child(6) { transition-delay: 0.35s; }

/* ========================================
   レスポンシブ対応
   ======================================== */

/* タブレット: 1024px以下 */
@media (max-width: 1024px) {
    .section-four-steps-cards {
        padding: 80px 0;
    }

    .section-title-main {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    .four-steps-grid {
        gap: 16px;
    }

    .step-card {
        max-width: 240px;
        padding: 20px 16px;
    }

    .step-image-container {
        height: 160px;
    }

    .step-name {
        font-size: 1.25rem;
    }

    .step-arrow {
        font-size: 1.5rem;
    }
}

/* スマホ（横並び維持）: 768px以下 */
@media (max-width: 768px) {
    .section-four-steps-cards {
        padding: 60px 0;
    }

    .section-title-main {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .four-steps-grid {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }

    .step-card {
        flex: 1 1 calc(50% - 24px);
        max-width: none;
        min-width: 200px;
    }

    .step-arrow {
        display: none;
    }

    .step-image-container {
        height: 140px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .step-name {
        font-size: 1.125rem;
    }

    .step-description {
        font-size: 0.9375rem;
    }

    .training-time-badge {
        font-size: 0.875rem;
        padding: 10px 20px;
    }
}

/* 小型スマホ（1カラム）: 480px以下 */
@media (max-width: 480px) {
    .section-title-main {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .four-steps-grid {
        flex-direction: column;
        gap: 20px;
    }

    .step-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: unset;
    }

    .step-image-container {
        height: 180px;
    }

    .step-header {
        gap: 10px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .step-name {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.875rem;
    }
}
