/* =============================================
   5-STEP PROCESS - VERTICAL CARD DESIGN
   添付3枚目の構造準拠：上部タイトル帯＋縦長ステップカード
   配色は添付1枚目のトーンを維持（淡い色・B2B向け）
   ============================================= */

/* =============================================
   セクション全体
   ============================================= */

.steps.steps--5 {
    background: var(--bg-light, #F6FAFF);
    padding: 80px 0;
    position: relative;
}

/* =============================================
   上部タイトル帯（3枚目準拠）
   ============================================= */

.steps__header-banner {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F5FF 100%);
    border-radius: 16px;
    padding: 32px 48px;
    margin: 0 auto 48px;
    max-width: 1200px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.steps__header-banner h2 {
    font-size: 32px;
    font-weight: 700;
    color: #07193B;
    margin-bottom: 12px;
    line-height: 1.4;
}

.steps__header-banner p {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

/* =============================================
   ステップカードグリッド（5枚横並び）
   ============================================= */

.steps__grid.steps__grid--5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   縦長カード全体（3枚目準拠）
   ============================================= */

.step-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 420px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 旧デザイン要素を完全非表示 */
.card__step-marker,
.loop-marker,
.loop-badge {
    display: none !important;
}

/* =============================================
   STEP番号ラベル帯（各カード上部）
   ============================================= */

.step-card__label {
    padding: 12px 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
    border-radius: 12px 12px 0 0;
}

/* Step別の色（添付1枚目のトーンを維持） */
.step-card[data-step="1"] .step-card__label {
    background: linear-gradient(135deg, #7BB8E7, #5AA3D9); /* 淡い青 */
}

.step-card[data-step="2"] .step-card__label {
    background: linear-gradient(135deg, #8FC9B8, #71B89F); /* 淡いグリーン */
}

.step-card[data-step="3"] .step-card__label {
    background: linear-gradient(135deg, #F5D98B, #ECC963); /* 淡い黄色 */
}

.step-card[data-step="4"] .step-card__label {
    background: linear-gradient(135deg, #F5B77D, #EDA05D); /* 淡いオレンジ */
}

.step-card[data-step="5"] .step-card__label {
    background: linear-gradient(135deg, #B8A3D9, #9F89C7); /* 淡いパープル */
}

/* =============================================
   カード中央部（イラスト＋タイトル）
   ============================================= */

.step-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 24px;
    text-align: center;
}

/* アイコン/イラスト */
.step-card__icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* タイトル */
.step-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #07193B;
    line-height: 1.4;
    margin-bottom: 16px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* =============================================
   カード下部（説明文）
   ============================================= */

.step-card__description {
    padding: 0 24px 28px;
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* =============================================
   フッター注釈
   ============================================= */

.steps__note {
    text-align: center;
    margin-top: 48px;
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
}

/* =============================================
   レスポンシブ：タブレット
   ============================================= */

@media (max-width: 1024px) {
    .steps__header-banner {
        padding: 28px 32px;
        margin-bottom: 40px;
    }

    .steps__header-banner h2 {
        font-size: 28px;
    }

    .steps__grid.steps__grid--5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .step-card {
        min-height: 400px;
    }

    .step-card__icon {
        font-size: 48px;
    }

    .step-card__title {
        font-size: 17px;
    }
}

/* =============================================
   レスポンシブ：モバイル（横スクロール対応）
   ============================================= */

@media (max-width: 768px) {
    .steps.steps--5 {
        padding: 60px 0;
    }

    .steps__header-banner {
        padding: 24px 20px;
        margin-bottom: 32px;
        border-radius: 12px;
    }

    .steps__header-banner h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .steps__header-banner p {
        font-size: 14px;
    }

    /* 横スクロールグリッド */
    .steps__grid.steps__grid--5 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .steps__grid.steps__grid--5::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .step-card {
        flex: 0 0 280px; /* 固定幅 */
        min-height: 380px;
        scroll-snap-align: start;
    }

    .step-card__icon {
        font-size: 44px;
        margin-bottom: 16px;
    }

    .step-card__title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .step-card__description {
        font-size: 12px;
        padding: 0 20px 24px;
    }

    .step-card__content {
        padding: 24px 20px 20px;
    }

    .steps__note {
        margin-top: 32px;
        font-size: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .steps__header-banner h2 {
        font-size: 20px;
    }

    .step-card {
        flex: 0 0 260px;
        min-height: 360px;
    }

    .step-card__icon {
        font-size: 40px;
    }

    .step-card__title {
        font-size: 15px;
    }
}
