/* ─────────────────────────────────────────────────────────
   responsive.css ─ TOPページ レスポンシブ調整 + ハンバーガーメニュー
   既存の styles.css の後に読み込まれる(上書き専用)。
   既存の @media (max-width: 880px) などはそのまま活かしつつ、
   不足分・モバイル UX 改善・余白・タイポ・ハンバーガー UI を補う。
   ───────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   4 つのサービス ─ タブ右側のイラスト画像
   ═══════════════════════════════════════════════════════════ */
.tab-illust {
    display: flex;
    align-items: center;
    justify-content: center;
}
.module-illust-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 260px;
    max-height: 220px;
    object-fit: contain;
    margin: 0 auto;
}
@media (max-width: 880px) {
    .module-illust-img {
        max-width: 200px;
        max-height: 180px;
    }
}

/* ═══════════════════════════════════════════════════════════
   FV KPI 注釈番号(※1 / ※2)のスタイル ─ 小さく・薄く
   ═══════════════════════════════════════════════════════════ */
.fv-kpi-num .fv-kpi-note-ref {
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    color: var(--ink-3) !important;
    margin-left: 3px !important;
    vertical-align: super !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    opacity: 0.7 !important;
}
.fv-kpi-note .fv-kpi-note-mark {
    display: inline-block;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    color: var(--ink-3);
    margin-right: 2px;
    letter-spacing: 0.02em;
    font-size: inherit;
}

/* ═══════════════════════════════════════════════════════════
   導入事例のダミー表示 ─ 本番事例差し替え前の視覚識別
   ═══════════════════════════════════════════════════════════ */
.cases-item--dummy {
    position: relative;
    opacity: 0.78;
    background: repeating-linear-gradient(
        135deg,
        transparent 0 18px,
        rgba(126, 138, 153, 0.06) 18px 19px
    ) !important;
    border: 1px dashed var(--ink-3) !important;
}
.cases-item--dummy::before {
    content: "DUMMY";
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--ink-3);
    color: var(--paper);
    font-family: "Inter", sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   ハンバーガーメニュー(ボタン)
   ═══════════════════════════════════════════════════════════ */
.menu-toggle {
    display: none; /* デフォルトは非表示 */
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 200;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}
.menu-toggle__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        background 0.25s ease,
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
/* 開いた状態:×に変形 */
body.menu-open .menu-toggle__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    width: 24px;
}
body.menu-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}
body.menu-open .menu-toggle__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 24px;
}
/* 暗背景セクションでヘッダーが透過時のボタン色(scrolled でない時) */
.site-header:not(.scrolled) .menu-toggle__line {
    background: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   モバイル ドロワーメニュー
   ═══════════════════════════════════════════════════════════ */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 150;
    visibility: hidden;
    pointer-events: none;
}
body.menu-open .mobile-drawer {
    visibility: visible;
    pointer-events: auto;
}

/* ① 半透明オーバーレイ */
.mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body.menu-open .mobile-drawer__backdrop {
    opacity: 1;
}

/* ② パネル本体(右からスライドイン) */
.mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 88vw);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px -8px rgba(15, 20, 25, 0.18);
}
body.menu-open .mobile-drawer__panel {
    transform: translateX(0);
}

/* ③ ドロワーヘッダー */
.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--rule);
}
.mobile-drawer__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
}
.mobile-drawer__brand img {
    height: 20px;
    width: auto;
}
.mobile-drawer__close {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ④ ナビ項目 ─ 大きめタップ領域 + stagger fadein */
.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 18px 0 8px;
}
.mobile-drawer__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--rule-2);
    transition: background 0.2s ease, color 0.2s ease, padding 0.25s ease;
    /* 入場アニメ:閉じてる間は下から透明、開時に上がる */
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.25s ease;
}
.mobile-drawer__nav a::after {
    content: "";
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7h8M8 4l3 3-3 3' stroke='%237E8A99' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s ease;
}
.mobile-drawer__nav a:hover,
.mobile-drawer__nav a:active {
    background: var(--paper-2);
    color: var(--accent);
    padding-left: 36px;
}
.mobile-drawer__nav a:hover::after {
    transform: translateX(4px);
}
/* 順次フェードイン(stagger) */
body.menu-open .mobile-drawer__nav a {
    opacity: 1;
    transform: translateY(0);
}
body.menu-open .mobile-drawer__nav a:nth-child(1) { transition-delay: 0.10s, 0.10s, 0s, 0s, 0s; }
body.menu-open .mobile-drawer__nav a:nth-child(2) { transition-delay: 0.15s, 0.15s, 0s, 0s, 0s; }
body.menu-open .mobile-drawer__nav a:nth-child(3) { transition-delay: 0.20s, 0.20s, 0s, 0s, 0s; }
body.menu-open .mobile-drawer__nav a:nth-child(4) { transition-delay: 0.25s, 0.25s, 0s, 0s, 0s; }
body.menu-open .mobile-drawer__nav a:nth-child(5) { transition-delay: 0.30s, 0.30s, 0s, 0s, 0s; }
body.menu-open .mobile-drawer__nav a:nth-child(6) { transition-delay: 0.35s, 0.35s, 0s, 0s, 0s; }
body.menu-open .mobile-drawer__nav a:nth-child(7) { transition-delay: 0.40s, 0.40s, 0s, 0s, 0s; }

/* ⑤ ドロワー底部:CTA + 連絡先 */
.mobile-drawer__foot {
    margin-top: auto;
    padding: 22px 24px 28px;
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
}
.mobile-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 22px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.45s,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.45s,
        background 0.2s ease;
}
body.menu-open .mobile-drawer__cta {
    opacity: 1;
    transform: translateY(0);
}
.mobile-drawer__cta:hover {
    background: #1e40af;
}
.mobile-drawer__brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 10.5px;
    color: var(--ink-2);
    letter-spacing: 0.12em;
}
.mobile-drawer__brands img { height: 14px; width: auto; opacity: 1; }
.mobile-drawer__brands .x { font-size: 12px; color: var(--ink-2); opacity: 0.8; }

/* サブメニュー(お役立ち情報 / お知らせ) ───────── */
.mobile-drawer__group {
    border-bottom: 1px solid var(--rule-2);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.menu-open .mobile-drawer__group {
    opacity: 1;
    transform: translateY(0);
}
body.menu-open .mobile-drawer__nav > .mobile-drawer__group:nth-child(4) { transition-delay: 0.25s, 0.25s; }
body.menu-open .mobile-drawer__nav > .mobile-drawer__group:nth-child(5) { transition-delay: 0.30s, 0.30s; }
body.menu-open .mobile-drawer__nav > a:nth-child(6) { transition-delay: 0.35s, 0.35s, 0s, 0s, 0s; }
body.menu-open .mobile-drawer__nav > a:nth-child(7) { transition-delay: 0.40s, 0.40s, 0s, 0s, 0s; }
body.menu-open .mobile-drawer__nav > a:nth-child(8) { transition-delay: 0.45s, 0.45s, 0s, 0s, 0s; }

.mobile-drawer__group-toggle {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, padding 0.25s ease;
}
.mobile-drawer__group-toggle:hover,
.mobile-drawer__group-toggle[aria-expanded="true"] {
    background: var(--paper-2);
    color: var(--accent);
}
.mobile-drawer__group-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--ink-3);
}
.mobile-drawer__group-toggle[aria-expanded="true"] .mobile-drawer__group-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.mobile-drawer__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--paper-2);
}
.mobile-drawer__group[data-open="true"] .mobile-drawer__sub {
    max-height: 220px;
}
.mobile-drawer__sub a {
    display: block;
    padding: 14px 28px 14px 48px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--rule-2);
    transition: color 0.2s ease, padding-left 0.25s ease;
    /* サブメニュー内ではstaggerアニメ除外 */
    opacity: 1 !important;
    transform: none !important;
    position: relative;
}
.mobile-drawer__sub a::before {
    content: "—";
    position: absolute;
    left: 28px;
    color: var(--ink-3);
}
.mobile-drawer__sub a::after { display: none !important; }
.mobile-drawer__sub a:hover {
    color: var(--accent);
    padding-left: 54px;
}
.mobile-drawer__sub a:last-child {
    border-bottom: 0;
}

/* スクロールロック */
body.menu-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   ハンバーガー表示 / デスクトップナビ非表示の切り替え (≤ 980px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
    }
    /* デスクトップナビは scrolled でも非表示に */
    .site-header .nav-links,
    .site-header.scrolled .nav-links {
        display: none;
    }
    /* ① ヘッダーの無料相談 CTA はハンバーガー内に内包しているので非表示 */
    .site-header .hd-cta,
    .site-header.scrolled .hd-cta {
        display: none !important;
    }
    /* hd-inner の gap を縮める */
    .hd-inner {
        gap: 12px;
        padding: 14px var(--gutter);
    }
}

/* ═══════════════════════════════════════════════════════════
   FV(ファーストビュー) ─ モバイル最適化
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
    .fv {
        padding-top: 88px !important;
        padding-bottom: 64px !important;
        min-height: auto;
    }
    /* ② カード(FVヒーロー本体)の上部パディングを拡大 */
    .fv-hero {
        padding-top: clamp(28px, 8vw, 56px) !important;
    }
    .fv-hero-main {
        display: block !important;
    }
    .fv-hero-left,
    .fv-hero-right {
        width: 100%;
    }
    .fv-hero-left {
        padding-top: clamp(12px, 4vw, 24px) !important;
    }
    .fv-hero-right {
        margin-top: 40px;
    }
    /* ③ KPI:縦並び/チップ上 ▼ 数値下 の吹き出し型カード(中央寄せ) */
    .fv-kpi-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .fv-kpi-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 22px 16px 20px !important;
        border: 1px solid var(--rule) !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.7) !important;
        width: 100% !important;
        box-shadow: 0 2px 6px -2px rgba(15, 30, 70, 0.06);
    }
    /* チップ:青背景白文字の pill */
    .fv-kpi-label {
        flex: 0 0 auto;
        display: inline-block;
        background: var(--accent) !important;
        color: #fff !important;
        padding: 7px 16px !important;
        border-radius: 999px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        line-height: 1.2 !important;
        white-space: nowrap;
        margin: 0 !important;
        border: 0 !important;
        position: relative !important;
        box-shadow: 0 4px 10px -6px rgba(37, 99, 235, 0.5);
    }
    /* 吹き出しの ▼ をチップ下部に(数値を指す) ─ 内側白▲は無効化 */
    .fv-kpi-label::before {
        top: 100% !important;
        left: 50% !important;
        transform: translate(-50%, -1px) !important;
        border-top: 7px solid var(--accent) !important;
        border-bottom: 0 !important;
        border-left: 7px solid transparent !important;
        border-right: 7px solid transparent !important;
        border-top-color: var(--accent) !important;
    }
    .fv-kpi-label::after {
        display: none !important;
    }
    /* 数値は中央に大きく */
    .fv-kpi-num {
        display: inline-flex !important;
        align-items: baseline !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        text-align: center !important;
        font-size: clamp(28px, 9vw, 40px) !important;
        margin: 0 !important;
        color: var(--ink) !important;
        line-height: 1.1 !important;
    }
    .fv-kpi-num .fv-kpi-prefix,
    .fv-kpi-num .fv-kpi-suffix,
    .fv-kpi-num .fv-kpi-unit {
        font-size: 0.4em !important;
        margin: 0 3px !important;
        color: var(--ink-2) !important;
        font-weight: 500 !important;
    }
    .fv-kpi-num .fv-kpi-sign,
    .fv-kpi-num .fv-kpi-val {
        font-weight: 700 !important;
    }
    .fv-kpi-note {
        text-align: center !important;
    }
    .fv-headline {
        font-size: clamp(28px, 7vw, 40px) !important;
    }
    .fv-lede {
        font-size: 13.5px;
        line-height: 2;
    }
    .fv-eyebrow--footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }
    .fv-eyebrow-cred-x {
        display: none;
    }
    .fv-corner,
    .fv-scroll {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   セクション全般 ─ 余白・タイポを引き締める
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
    :root {
        --gutter: clamp(18px, 5vw, 28px);
    }
    .sec-pad {
        padding: clamp(56px, 12vw, 96px) 0;
    }
    .sec-pad-sm {
        padding: clamp(48px, 9vw, 72px) 0;
    }
    .sec-title {
        font-size: clamp(22px, 5.6vw, 30px) !important;
        line-height: 1.5;
    }
    .sec-sub {
        font-size: 13.5px !important;
        line-height: 1.95;
    }
    .container {
        padding: 0 var(--gutter);
    }
    .container-narrow {
        padding: 0 var(--gutter);
    }

    /* Pains:カードのはみ出しを防ぎ、余白を確保 */
    .pain-section .pain-track,
    .pain-section .pain-stage {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .pain-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 0 !important;
        /* ④ お悩み(4枚カード)→「全て解決します」の間に余白を取る */
        margin-bottom: clamp(64px, 14vw, 120px) !important;
    }
    .pain-cell {
        margin: 0 !important;
        transform: none !important;
        position: static !important;
    }
    /* ④ 「全て解決します」演出ブロックの上下に余白 */
    .pain-resolve-core {
        margin: clamp(48px, 10vw, 96px) 0 !important;
        padding: clamp(40px, 8vw, 80px) 0 !important;
    }
    /* ⑤ 「解決」→「サービス領域(What EVOLVE Does)」の間隔 */
    .pain-stage-promise {
        margin-top: clamp(56px, 12vw, 112px) !important;
        padding-top: clamp(32px, 6vw, 56px) !important;
    }
    .pain-section {
        padding-bottom: clamp(64px, 12vw, 112px) !important;
    }
    /* ⑥ お悩み:SP ではイラストを背景化し、テキストを上に重ねて 1 行表示 */
    .pain-cell {
        overflow: hidden !important;
    }
    .pain-cell--01::before,
    .pain-cell--02::before,
    .pain-cell--03::before,
    .pain-cell--04::before {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 55% !important;
        height: 100% !important;
        background-size: auto 80% !important;
        background-position: center right !important;
        opacity: 0.22 !important;
        z-index: 0 !important;
    }
    .pain-body {
        position: relative !important;
        z-index: 1 !important;
    }
    .pain-cell h3 {
        padding-right: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* ⑦ フッター直前/フッター内の過剰な余白を SP で詰める */
    .site-footer {
        padding: 48px 0 24px !important;
    }
    .footer-bottom {
        margin-top: 40px !important;
        padding-top: 24px !important;
    }

    /* ⑧ プラポリ:長い URL 等のはみ出しを防ぐ(grid 子要素の min-width: 0) */
    .legal-grid > * {
        min-width: 0 !important;
    }
    .legal-content,
    .legal-content p,
    .legal-content li,
    .legal-content dd,
    .legal-content a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .legal-contact-box,
    .legal-contact-box dl,
    .legal-contact-box dd {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Cases: 縦並びに */
    .cases-grid,
    .case-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Service overview / before-after: 縦並び */
    .evo-ba-compare,
    .ba-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .evo-ba-pivot {
        margin: 8px auto !important;
    }

    /* Why us */
    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .why-row {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 24px 0 !important;
    }

    /* ⑦ Modules tabs ─ 2×2 グリッド(横スクロールしない、全カード同寸) */
    #modulesTabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-auto-rows: 1fr !important;
        gap: 10px !important;
        overflow: visible !important;
        padding: 0 0 28px !important;   /* タブ ↔ 下の罫線 の余白 */
        margin-bottom: 32px !important; /* 罫線 ↔ タブコンテンツ の余白 */
        border-bottom: 1px solid var(--rule) !important;
    }
    #modulesTabs::-webkit-scrollbar { display: none; }
    #modulesTabs .tab {
        flex: 1 1 auto !important;
        width: 100% !important;
        white-space: normal !important;
        padding: 16px 10px !important;
        font-size: 12px !important;
        text-align: center !important;
        line-height: 1.5 !important;
        border-radius: 8px !important;
        border: 1px solid var(--rule) !important;
        background: var(--paper) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        height: 88px !important; /* 全カードの高さを統一 */
        justify-content: center !important;
        box-sizing: border-box;
    }
    /* active を「薄い青」背景 + 青文字に */
    #modulesTabs .tab.active {
        background: #E8F0FE !important; /* 薄い青(blue-50相当) */
        color: var(--accent) !important;
        border-color: rgba(37, 99, 235, 0.35) !important;
    }
    #modulesTabs .tab.active .tab-num {
        color: var(--accent) !important;
        opacity: 0.85;
    }
    /* 既存の active 時のアンダーライン(::after の 1px 黒線) を非表示に */
    #modulesTabs .tab.active::after,
    #modulesTabs .tab::after {
        display: none !important;
    }
    /* タブ進行プログレスバーもモバイルでは不要 */
    #modulesTabs .tab-progress {
        display: none !important;
    }
    #modulesTabs .tab .tab-num {
        font-size: 10px !important;
        opacity: 0.7;
    }
    .tab-content {
        padding: 24px 0 !important;
    }
    .tab-head h3 {
        font-size: 18px !important;
    }

    /* Process */
    .steps {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Partners */
    .partner-band-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .partner-band-logos {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .partner-x {
        text-align: center;
        padding: 4px 0;
    }

    /* FPT */
    .fpt-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Stats */
    .stats {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* Final CTA */
    .final h2 {
        font-size: clamp(26px, 7vw, 38px) !important;
    }
    .btn-final-cta {
        padding: 18px 32px !important;
        font-size: 14px !important;
    }

    /* News */
    .news-row {
        grid-template-columns: auto auto 1fr !important;
        gap: 10px 14px !important;
        padding: 18px 0 !important;
    }
    .news-row .news-arrow {
        display: none;
    }
    .news-row .news-title {
        grid-column: 1 / -1;
        font-size: 13.5px;
    }

    /* Blog featured(上の大きな記事) ─ 縦並びにしてサムネ上 */
    .blog-section .blog-feature {
        grid-template-columns: 1fr !important;
    }
    .blog-feature-title {
        font-size: 18px !important;
    }
    .blog-section .blog-feature-body {
        padding: 24px !important;
    }
    /* ⑥ Blog 関連カルーセル ─ 横スクロールを止めて 2 枚カードグリッドに */
    .blog-carousel-nav,
    .blog-carousel-btn {
        display: none !important;
    }
    .blog-carousel-viewport {
        overflow: visible !important;
    }
    .blog-carousel-track {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        transform: none !important;
    }
    .blog-carousel-track > .blog-carousel-item {
        width: auto !important;
        flex: 0 0 auto;
    }
    /* 2枚以降は非表示 */
    .blog-carousel-track > .blog-carousel-item:nth-child(n+3),
    .blog-carousel-track > .blog-carousel-item[data-clone] {
        display: none !important;
    }
    /* featured とサイズ差別化:サブカードは小さく、コンパクトに */
    .blog-carousel-item .blog-carousel-thumb {
        aspect-ratio: 16 / 11 !important;
    }
    .blog-carousel-item .blog-side-title {
        font-size: 13px !important;
        padding: 0 14px !important;
        line-height: 1.55 !important;
        margin-bottom: 10px !important;
    }
    .blog-carousel-item .blog-meta {
        padding: 12px 14px 0 !important;
        margin-bottom: 8px !important;
        /* ⑥ カテゴリと日付を改行表示 */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .blog-carousel-item .blog-cat {
        font-size: 8.5px !important;
        padding: 3px 7px !important;
    }
    .blog-carousel-item .blog-meta .en {
        font-size: 9.5px !important;
    }
    .blog-carousel-item .blog-author {
        padding: 10px 14px 12px !important;
        font-size: 10px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center;
    }

    /* ⑧ FAB:モバイルでは画面下端に固定の細長バナーに変更 + sp_banner 画像 */
    .fab {
        position: fixed !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        z-index: 100;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: 0 -8px 20px -8px rgba(15, 20, 25, 0.18) !important;
        display: block !important;
    }
    .fab img,
    .fab picture,
    .fab picture img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        max-width: 100% !important;
    }
    /* フローティングバナーは position:fixed のため main の下余白は不要
       （以前の 12px はフッターとの間に隙間を生んでいたため 0 に） */
    main {
        padding-bottom: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   スマホ小 (~480px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    :root {
        --gutter: 18px;
    }
    .hd-cta,
    .site-header.scrolled .hd-cta {
        padding: 9px 12px !important;
        font-size: 11px !important;
    }
    .hd-cta svg {
        display: none;
    }
    .fv-headline {
        font-size: clamp(24px, 7.5vw, 32px) !important;
    }
    .fv-kpi-list {
        grid-template-columns: 1fr !important;
    }
    .fv-kpi-list .fv-kpi-item:last-child {
        grid-column: auto;
    }
    .blog-archive-card-meta,
    .related-card-meta {
        gap: 8px;
    }
    /* 数値統計が大きすぎる場合の調整 */
    .stat-num {
        font-size: clamp(48px, 18vw, 80px) !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   prefers-reduced-motion 対応
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .mobile-drawer__panel,
    .mobile-drawer__backdrop,
    .mobile-drawer__nav a,
    .mobile-drawer__cta,
    .menu-toggle__line {
        transition: none !important;
    }
}
