/* =========================================================
   羽田空港駐車場 満車予測 - 共通デザインシステム
   モックデザイン（docs/design）を共通化して再現するスタイル
   ========================================================= */

:root {
    /* ブランドカラー */
    --navy: #173a5e;
    --navy-dark: #102a44;
    --navy-light: #235a8c;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent-red: #dc2626;
    --accent-red-dark: #b91c1c;

    /* ステータス・混雑色 */
    --available: #16a34a;
    --available-bg: #dcfce7;
    --mild: #84cc16;
    --mild-bg: #ecfccb;
    --crowded: #f59e0b;
    --crowded-bg: #fef3c7;
    --full: #dc2626;
    --full-bg: #fee2e2;
    --none: #9ca3af;
    --none-bg: #f1f5f9;

    /* ベース */
    --bg: #eef2f7;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text: #1f2937;
    --text-muted: #64748b;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
    --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}

a { color: var(--primary); }

img { max-width: 100%; display: block; }

/* ---------- ヘッダー ---------- */
.site-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}
.site-header__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.brand__logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__title { font-weight: 800; font-size: 1.02rem; }
.brand__sub { font-size: 0.72rem; color: #b8d0ea; }

.global-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
}
.global-nav a {
    color: #e2eefb;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
}
.global-nav a:hover { background: rgba(255, 255, 255, 0.12); }
.global-nav a.is-active { background: rgba(255, 255, 255, 0.18); font-weight: 700; }

.header-official {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.header-official:hover { background: #eaf1f9; }

.nav-toggle { display: none; }

/* ---------- パンくず ---------- */
.breadcrumb {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10px 16px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ---------- メイン ---------- */
.site-main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px;
}
/* トップレベルのブロック（ヒーロー・セクション・グリッド・CTA等）に共通の縦余白を付与する。
   .stack を使わないページでもセクション間の余白が一定になるようにするための共通ルール。 */
.site-main > * + * { margin-top: 18px; }

/* ---------- ヒーロー ---------- */
.hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 18px;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    box-shadow: var(--shadow);
}
.hero__body { position: relative; z-index: 2; padding: 22px 24px; max-width: 70%; }
.hero h1 { font-size: 1.6rem; margin: 0 0 8px; font-weight: 800; }
.hero p { margin: 0; font-size: 0.92rem; color: #e6eef8; }
.hero__deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.18) 0 14px, transparent 15px),
        linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.06) 100%);
}
.hero__pin {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--primary);
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

/* ---------- レイアウトグリッド ---------- */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}
/* グリッド項目の既定 min-width:auto による横はみ出しを防ぐ（widerなテーブル等で右paddingが潰れる問題対策） */
.layout-grid > * { min-width: 0; }
.stack > * + * { margin-top: 18px; }

/* ---------- カード ---------- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.card--flush { padding: 0; overflow: hidden; }

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--navy);
}
.section-title .ico {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #e6effb;
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.section-title .ico .material-symbols-outlined { font-size: 18px; }
.section-sub { font-size: 0.82rem; color: var(--text-muted); margin: -6px 0 14px; }

/* ---------- アイコン（Material Symbols / Google Fonts Icons） ---------- */
/* 絵文字は使用せず、アイコンはすべてこのフォントで表示する */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 1.25em;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
    -webkit-user-select: none;
    user-select: none;
}
.prose h3 .material-symbols-outlined { color: var(--primary); margin-right: 6px; }
.prose .material-symbols-outlined { font-size: 1.1em; }
.breadcrumb .material-symbols-outlined { font-size: 1.1em; }
.nav-toggle .material-symbols-outlined { font-size: 24px; }

.subhead {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}

/* ---------- ボタン ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--danger { background: var(--accent-red); color: #fff; }
.btn--danger:hover { background: var(--accent-red-dark); }
.btn--outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn--outline:hover { background: #eff5ff; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.text-right { text-align: right; }

/* ---------- 凡例 ---------- */
.legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    align-items: center;
}
.legend__item { display: inline-flex; align-items: center; gap: 5px; }
.legend__swatch { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.sw-available { background: var(--available); }
.sw-mild { background: var(--mild); }
.sw-crowded { background: var(--crowded); }
.sw-full { background: var(--full); }
.sw-none { background: var(--none); }

/* ---------- タイムライン（ヒートマップ） ---------- */
.timeline { margin-top: 6px; }
.timeline__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.timeline__title { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.timeline__grid { display: flex; flex-direction: column; gap: 6px; }
.timeline__row { display: flex; align-items: center; gap: 8px; }
.timeline__label {
    width: 118px;
    flex-shrink: 0;
    font-size: 0.78rem;
    line-height: 1.2;
}
.timeline__label .p { font-weight: 800; color: var(--navy); }
.timeline__label .terminal { display: block; font-size: 0.68rem; color: var(--text-muted); }
.timeline__bar {
    display: flex;
    flex: 1;
    height: 24px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border);
    /* 30分セルの間に1pxの区切り（余白）を入れる */
    gap: 1px;
    background: #ffffff;
}
.timeline__cell { flex: 1; min-width: 0; }
.timeline__axis {
    position: relative;
    height: 1em;
    margin: 8px 0 0 126px;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.timeline__axis-tick {
    position: absolute;
    top: 0;
    white-space: nowrap;
}

/* セル色 */
.fill-available { background: var(--available); }
.fill-mild { background: var(--mild); }
.fill-crowded { background: var(--crowded); }
.fill-full { background: var(--full); }
.fill-none { background: #e5e7eb; }

/* ---------- ステータスバッジ ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge--available { background: var(--available-bg); color: var(--available); }
.badge--mild { background: var(--mild-bg); color: #4d7c0f; }
.badge--crowded { background: var(--crowded-bg); color: #b45309; }
.badge--full { background: var(--full-bg); color: var(--full); }
.badge--none { background: var(--none-bg); color: var(--none); }
.badge--holiday { background: #fee2e2; color: #b91c1c; }
.badge--ref { background: #f1f5f9; color: var(--text-muted); font-weight: 600; }
.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

/* ---------- テーブル ---------- */
.table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.86rem;
    background: #fff;
}
.table th, .table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
}
.table thead th { background: #f1f5f9; color: var(--navy); font-weight: 700; text-align: center; }
.table td.center, .table th.center { text-align: center; }
.info-table th { background: #f8fafc; width: 38%; white-space: nowrap; }
.scroll-x { overflow-x: auto; }

/* ---------- 比較テーブル（広い幅は表／狭い幅はカード） ---------- */
/* 列数が多い比較表は、狭い幅だと各セルが1文字ずつ折り返されて読めなくなるため、
   モバイルでは行ごとのカードに組み替えて見切れを防ぐ。 */
.compare-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
    font-size: 0.9rem;
    line-height: 1.55;
    background: #fff;
}
.compare-table th, .compare-table td {
    border: 1px solid var(--border);
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
}
/* PC幅では列が窮屈に見えないよう、文字主体の左2列に十分な幅を割り当て、
   中央寄せの短い列（料金・所要時間・予約など）が広がり過ぎないようにする。 */
.compare-table thead th:nth-child(1) { width: 22%; }
.compare-table thead th:nth-child(2) { width: 24%; }
.compare-table thead th { background: #f1f5f9; color: var(--navy); font-weight: 700; text-align: center; white-space: nowrap; }
.compare-table tbody th { font-weight: 800; color: var(--navy); }
.compare-table td.center, .compare-table th.center { text-align: center; }
/* 料金・所要時間などの値が中途半端に折り返されないようにする */
.compare-table .nowrap { white-space: nowrap; }

@media (max-width: 680px) {
    /* スクロール用ラッパーの余計な横スクロールを止め、カード表示に切り替える */
    .scroll-x--compare { overflow-x: visible; }
    .compare-table { min-width: 0; display: block; }
    .compare-table thead { display: none; }
    .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
    .compare-table tr {
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
    }
    .compare-table tr:last-child { margin-bottom: 0; }
    .compare-table tbody th {
        background: #f1f5f9;
        border: 0;
        border-bottom: 1px solid var(--border);
        text-align: left;
        font-size: 0.95rem;
    }
    .compare-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        border: 0;
        border-bottom: 1px solid var(--border);
        text-align: right;
    }
    .compare-table tr td:last-child { border-bottom: 0; }
    /* data-label属性を項目名ラベルとして左側に表示する */
    .compare-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
    }
}

/* ---------- 到着時刻別チェッカー ---------- */
.checker__select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    background: #fff;
}
.prob-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.prob-row__p { width: 30px; font-weight: 800; color: var(--navy); flex-shrink: 0; }
.prob-row__track {
    flex: 1;
    height: 20px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.prob-row__fill { display: block; height: 100%; border-radius: 5px; }
.prob-row__label {
    width: 76px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- CTA（赤帯） ---------- */
/* 横並びを基本としつつ、サイドバー等の狭い幅では本文がつぶれて
   タイトルが1文字ずつ折り返される問題を防ぐため、flex-wrapで
   ボタン群を下段へ回り込ませる。 */
.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: linear-gradient(100deg, #fff5f5 0%, #ffe9e9 100%);
    border: 1px solid #f6c6c6;
    border-radius: var(--radius);
    padding: 16px 18px;
}
.cta__icon { font-size: 1.8rem; flex-shrink: 0; }
/* flex-basis 220pxを下限の目安にして本文が極端に縮まないようにする */
.cta__body { flex: 1 1 220px; min-width: 0; }
.cta__title { font-weight: 800; color: var(--accent-red-dark); margin: 0 0 2px; font-size: 1rem; }
.cta__text { margin: 0; font-size: 0.84rem; color: #7f1d1d; }
/* 広い幅では内容幅のまま右側に配置し、狭い幅では本文の下段へ回り込む（grow=0で本文を優先） */
.cta__actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: 0 0 auto; }
/* CTAの副リンクは、ボタンの主リンクと並んでも一目でタップ可能なリンクと分かるよう、
   十分なタップ領域を確保する。下線はラベル文字だけに引き、矢印アイコンには
   かからないようにして下線位置のズレを防ぐ。 */
.cta__actions .link-arrow {
    color: var(--accent-red-dark);
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
}
.cta__actions .link-arrow .link-arrow__label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* サイドバー内のCTAは横幅が狭く、アイコン＋本文＋アクションを横並びさせると
   タイトルが左右にガタつきバランスが崩れる。縦積み・中央寄せに切り替えて整える。 */
aside .cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}
/* 縦積み時はflex-basis(220px)がmain軸=高さとして効き、本文の下に
   無駄な余白が生まれるため、内容の高さに合わせる。 */
aside .cta__body { flex: 0 0 auto; }
.cta--soft {
    background: #f8fafc;
    border-color: var(--border);
}
.cta--soft .cta__title { color: var(--navy); }
.cta--soft .cta__text { color: var(--text-muted); }

/* ---------- ミニカレンダー（7日 / 駐車場別） ---------- */
.mini-cal { overflow-x: auto; }
.mini-cal table { border-collapse: collapse; width: 100%; font-size: 0.78rem; }
.mini-cal th, .mini-cal td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--border); }
.mini-cal thead th { color: var(--navy); font-weight: 700; }
.mini-cal tbody th { text-align: left; font-weight: 800; color: var(--navy); }

/* ---------- 月別カレンダー ---------- */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-grid__dow {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 0;
}
.cal-cell {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 6px;
    min-height: 74px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: box-shadow 0.15s, transform 0.1s;
}
.cal-cell:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cal-cell.is-today { border: 2px solid var(--primary); }
.cal-cell.is-empty { background: transparent; border: none; pointer-events: none; }
.cal-cell--disabled { background: var(--bg, #f5f5f5); color: var(--muted, #999); cursor: default; opacity: 0.55; pointer-events: none; }
.cal-cell__day { font-size: 0.82rem; font-weight: 700; }
.cal-cell__level { font-size: 0.72rem; font-weight: 700; }
.dow-sun, .cal-cell__day.sun { color: var(--accent-red); }
.dow-sat, .cal-cell__day.sat { color: var(--primary); }

/* ---------- 駐車場カードグリッド ---------- */
.parking-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.parking-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.15s, transform 0.1s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.parking-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.parking-card__head { display: flex; align-items: center; gap: 8px; }
.parking-card__badge {
    width: 34px; height: 34px;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.parking-card__terminal { font-size: 0.78rem; color: var(--text-muted); }
.parking-card__foot { margin-top: auto; }

/* ---------- 情報カード（3枚組） ---------- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.info-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-card__title { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.info-card__text { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq details {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
}
.faq summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--primary); font-weight: 800; }
.faq__answer { padding: 0 14px 14px 34px; font-size: 0.85rem; color: #374151; }

/* ---------- 満車確率テーブル（曜日×30分） ---------- */
.prob-table-wrap {
    max-height: 540px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.prob-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.8rem;
    background: #fff;
}
.prob-table th,
.prob-table td {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5px 6px;
    text-align: center;
    white-space: nowrap;
}
.prob-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
    color: var(--navy);
    font-weight: 700;
}
.prob-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #f8fafc;
    color: var(--navy);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.prob-table thead th:first-child {
    left: 0;
    z-index: 3;
}
.prob-table td {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.prob-table td.is-ref { opacity: 0.55; }
.prob-table .dow-sun { color: var(--accent-red); }
.prob-table .dow-sat { color: var(--primary); }

.prob-scale {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.prob-scale__bar {
    flex: 1;
    min-width: 140px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(220, 38, 38, 0.25) 35%, rgba(220, 38, 38, 0.6) 70%, rgba(220, 38, 38, 1) 100%);
    border: 1px solid var(--border);
}

/* ---------- 注記 ---------- */
.note { font-size: 0.78rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* ---------- ページネーション（前後日） ---------- */
.day-pager { display: flex; gap: 8px; align-items: stretch; overflow-x: auto; }
.day-pager__item {
    flex: 1;
    min-width: 96px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.day-pager__item.is-current { border: 2px solid var(--primary); background: #eff5ff; }
.day-pager__item.nav { display: flex; align-items: center; justify-content: center; gap: 2px; font-weight: 700; color: var(--primary); min-width: 64px; }
.day-pager__date { font-weight: 700; font-size: 0.82rem; }

/* ---------- メトリクス（根拠） ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { text-align: center; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.metric__label { font-size: 0.76rem; color: var(--text-muted); }
.metric__value { font-size: 1.4rem; font-weight: 800; color: var(--navy); }

/* ---------- フッター ---------- */
.site-footer {
    background: var(--navy);
    color: #cdddf0;
    margin-top: 32px;
}
.site-footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 16px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
}
.site-footer .brand__title { color: #fff; }
.site-footer__about { font-size: 0.8rem; color: #9fb6cf; margin-top: 10px; max-width: 280px; }
.footer-col h3 { font-size: 0.85rem; color: #fff; margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #cdddf0; text-decoration: none; font-size: 0.82rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.site-footer__copy {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.76rem;
    color: #8fa8c4;
    padding: 14px;
}
.site-footer__copy .disclaimer { display: block; margin-bottom: 6px; }

/* ---------- 汎用テキストページ ---------- */
.prose h2 { font-size: 1.05rem; color: var(--navy); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.prose h3 { font-size: 0.95rem; color: var(--navy); margin: 18px 0 8px; }
.prose p { margin: 0 0 12px; font-size: 0.9rem; }
.prose ul { margin: 0 0 12px; padding-left: 20px; font-size: 0.9rem; }
.prose li { margin-bottom: 4px; }
.page-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 6px 0 16px; }

/* ---------- エラーページ ---------- */
.error-state {
    text-align: center;
    padding: 26px 16px 18px;
}
.error-state__badge {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #e6effb;
    font-size: 2rem;
    margin-bottom: 14px;
}
.error-state__code {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--navy);
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.error-state__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 14px 0 8px;
}
.error-state__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 540px;
}
.error-state__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 920px) {
    .layout-grid { grid-template-columns: 1fr; }
    .hero__body { max-width: 100%; }
    .hero__pin { display: none; }
    .parking-cards { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .global-nav { display: none; flex-direction: column; width: 100%; }
    .global-nav.is-open { display: flex; }
    .nav-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
        width: 40px; height: 36px;
        background: rgba(255, 255, 255, 0.12);
        border: none;
        border-radius: 6px;
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
    }
    .site-header__inner { flex-wrap: wrap; }
    .header-official { display: none; }
    .parking-cards, .info-cards, .metrics { grid-template-columns: 1fr; }
    .timeline__label { width: 86px; }
    .timeline__axis { margin-left: 94px; }
    .cta { flex-direction: column; align-items: stretch; text-align: center; }
    /* 縦積み時にflex-basis 220pxが高さとして効いて生まれる謎の余白を防ぐ */
    .cta__body { flex: 0 0 auto; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.3rem; }
    .error-state__code { font-size: 3.4rem; }
    .error-state__actions .btn { width: 100%; }
}
