/* =========================================================
   bydjapan.jp — BYD車 非公式情報サイト
   独自デザインシステム（BYD公式のデザイン・素材は不使用）
   ========================================================= */

:root {
  --ink: #0e1116;
  --ink-2: #1a1f28;
  --ink-3: #2b323d;
  --muted: #6b7482;
  --line: #e3e6ea;
  --paper: #fbfbf9;
  --paper-2: #f2f3f0;
  --white: #ffffff;

  --accent: #00b87c;        /* EVグリーン */
  --accent-dark: #059669;
  --accent-soft: #e6f7f0;
  --warm: #ff6b4a;          /* 注意・ハンデ表現 */
  --warm-soft: #ffeee9;
  --gold: #f2b705;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(14,17,22,.05), 0 8px 28px rgba(14,17,22,.07);
  --shadow-lg: 0 2px 6px rgba(14,17,22,.06), 0 24px 60px rgba(14,17,22,.12);

  --font: "Outfit", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  --font-num: "Outfit", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 800px; }

/* ---------- 非公式バナー（最上部・常時表示） ---------- */
.notice-bar {
  background: #0a0d12;
  color: rgba(255,255,255,.82);
  font-size: 11.5px;
  line-height: 1.6;
  padding: 8px 20px;
  text-align: center;
  letter-spacing: .01em;
}
.notice-bar strong { color: var(--gold); font-weight: 700; }
.notice-bar a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,15,20,.9);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,184,124,.16);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-num); font-weight: 700; font-size: 17.5px; letter-spacing: -.01em; color: #fff; }
.brand-sub { font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: .05em; }

.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 9px 11px 7px; border-bottom: 2px solid transparent;
  color: rgba(255,255,255,.68);
  transition: color .16s, border-color .16s;
  white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px; width: 42px; height: 38px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display:block; width:18px; height:2px; background: #fff; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content:""; position:absolute; left:0; width:18px; height:2px; background: #fff;
}
.nav-toggle span::before { top:-6px; } .nav-toggle span::after { top:6px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid rgba(255,255,255,.1);
    flex-direction: column; align-items: stretch; padding: 10px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; border-bottom: 0; font-size: 15px; }
  .nav a.is-active { border-left: 2px solid var(--accent); background: rgba(255,255,255,.05); }
}

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 84px 0 0;
  position: relative;
  /* overflow: hidden は禁止。
     .hero-stats が負マージンで次セクションへはみ出す設計のため、
     hidden にするとカードの下半分が切り落とされる（実際に起きた） */
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; /* はみ出した統計カードを次セクションの上に描く */ }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warm); box-shadow: 0 0 0 4px rgba(255,107,74,.22);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,107,74,.22); }
  50% { box-shadow: 0 0 0 8px rgba(255,107,74,.05); }
}

.hero h1 {
  font-size: clamp(34px, 5.8vw, 64px);
  line-height: 1.14; margin: 0 0 24px;
  font-weight: 900; letter-spacing: .01em;
  font-feature-settings: "palt";
}
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  font-size: clamp(15px, 1.9vw, 18.5px);
  color: rgba(255,255,255,.72);
  max-width: 640px; margin: 0 0 34px; line-height: 1.9;
}

/* ヒーロー：左テキスト＋右に写真を全面レイヤ（シネマ構成） */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 620px);
  margin-bottom: 54px; position: relative; z-index: 2;
}
.hero-visual {
  margin: 0; position: absolute; z-index: 1;
  top: 0; right: 0; bottom: 0;
  width: min(60vw, 980px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
.hero-visual img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 68% center;
}
@media (max-width: 1150px) {
  .hero-visual { width: 52vw; opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%);
            mask-image: linear-gradient(90deg, transparent 0, #000 55%); }
}
@media (max-width: 900px) {
  .hero-visual { position: static; width: 100%; height: 250px; opacity: 1;
    margin: 0 0 28px;
    -webkit-mask-image: none; mask-image: none; }
  .hero-visual img { height: 250px; }
}

/* 写真フィギュア（明背景セクション用） */
figure.photo {
  margin: 0; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
figure.photo img { display: block; width: 100%; height: auto; }

/* 写真クレジット（画像右下のオーバーレイ） */
.hero-visual figcaption, figure.photo figcaption {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 10.5px; line-height: 1.5; color: rgba(255,255,255,.9);
  background: rgba(14,17,22,.58); padding: 3px 10px; border-radius: 6px;
}
/* ヒーローは統計カードと重なるため右上に退避 */
.hero-visual figcaption { bottom: auto; top: 12px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: -46px; box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.hero-stat { background: #12161d; padding: 24px 22px; }
.hero-stat dt {
  font-size: 11.5px; letter-spacing: .09em; color: rgba(255,255,255,.5);
  margin-bottom: 8px; font-weight: 600;
}
.hero-stat dd {
  margin: 0; font-family: var(--font-num);
  font-size: clamp(21px, 3vw, 30px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15;
}
.hero-stat dd .u { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.55); margin-left: 3px; }
.hero-stat dd .hl { color: var(--accent); }
@media (max-width: 780px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 44px; }
}

/* ---------- セクション ---------- */
section { padding: clamp(74px, 9vw, 110px) 0; }
section.tight { padding: clamp(52px, 6.5vw, 70px) 0; }
section.pad-top-xl { padding-top: clamp(96px, 11vw, 130px); }
.sec-alt { background: var(--white); }
.sec-ink { background: var(--ink); color: #fff; }
.sec-ink .sec-title { color: #fff; }
.sec-ink .sec-desc { color: rgba(255,255,255,.66); }

.sec-label {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; color: var(--accent-dark);
  margin-bottom: 14px; text-transform: uppercase;
}
.sec-ink .sec-label { color: var(--accent); }
.sec-title {
  font-size: clamp(25px, 3.8vw, 40px); font-weight: 800;
  letter-spacing: .005em; line-height: 1.3; margin: 0 0 18px;
  font-feature-settings: "palt";
}
.sec-title::before {
  content: ""; display: block; width: 34px; height: 4px;
  background: var(--accent); border-radius: 2px; margin-bottom: 18px;
}
[style*="text-align:center"] .sec-title::before { margin-inline: auto; }
.sec-desc { color: var(--muted); max-width: 680px; margin: 0 0 44px; font-size: 15.5px; }

/* ---------- グレードカード ---------- */
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grades { grid-template-columns: 1fr; } }

.grade {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 26px;
  position: relative; transition: transform .2s, box-shadow .2s, border-color .2s;
  color: var(--ink); /* 暗いセクション内に置かれても文字が消えないよう固定 */
}
.grade:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.grade.is-featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grade-tag {
  position: absolute; top: -12px; left: 26px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .05em;
}
.grade-name { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.grade-title { font-size: 25px; font-weight: 800; margin: 3px 0 16px; letter-spacing: -.02em; }
.grade-price {
  font-family: var(--font-num); font-size: 34px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1;
}
.grade-price .yen { font-size: 17px; font-weight: 700; margin-right: 2px; }
.grade-price .tax { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-top: 5px; letter-spacing: 0; }
.grade-net {
  margin: 14px 0 20px; padding: 11px 14px; border-radius: 10px;
  background: var(--accent-soft); font-size: 13px; font-weight: 600; color: var(--accent-dark);
}
.grade-net b { font-family: var(--font-num); font-size: 16px; }
.grade-spec { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.grade-spec li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.grade-spec li span:first-child { color: var(--muted); }
.grade-spec li span:last-child { font-weight: 700; font-family: var(--font-num); }

/* ---------- 比較バー ---------- */
.bars { display: grid; gap: 20px; margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; }
@media (max-width: 700px) { .bar-row { grid-template-columns: 1fr; gap: 8px; } }
.bar-label { font-size: 14px; font-weight: 700; }
.bar-label small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sec-ink .bar-label small { color: rgba(255,255,255,.5); }
.bar-track {
  background: rgba(0,0,0,.06); border-radius: 999px; height: 40px;
  position: relative; overflow: hidden;
}
.sec-ink .bar-track { background: rgba(255,255,255,.09); }
.bar-fill {
  height: 100%; border-radius: 999px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 15px; color: #fff; font-weight: 800;
  font-family: var(--font-num); font-size: 15px;
  transition: width 1.1s cubic-bezier(.22,.9,.3,1);
}
.bar-fill.is-hero { background: linear-gradient(90deg, var(--accent), #34d399); }
.bar-fill.is-mid  { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.bar-fill.is-rival{ background: rgba(120,130,145,.55); }
.sec-ink .bar-fill.is-rival { background: rgba(255,255,255,.24); }

/* ---------- テーブル ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.spec {
  width: 100%; border-collapse: collapse; background: var(--white);
  font-size: 14.5px; min-width: 640px;
  /* テーブルの地色は常に白。暗いセクション(.sec-ink)の中に置いても
     文字色を継承して白×白で消えないよう、ここで明示的に固定する */
  color: var(--ink);
}
table.spec caption {
  text-align: left; font-weight: 800; font-size: 17px;
  padding: 0 0 12px; color: var(--ink);
}
/* caption と注記はテーブルの外＝セクション地色の上に乗るので、暗い背景では明色にする */
.sec-ink table.spec caption { color: #fff; }
.sec-ink .note { color: rgba(255,255,255,.6); }
.sec-ink .notes-block { background: rgba(255,255,255,.05); border-left-color: rgba(255,255,255,.2); }
table.spec th, table.spec td {
  padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: top;
}
table.spec thead th {
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .02em; position: sticky; top: 0; white-space: nowrap;
}
table.spec tbody th {
  font-weight: 600; color: var(--ink-3); background: var(--paper-2);
  width: 34%; font-size: 14px;
}
table.spec td { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
table.spec td.txt { font-family: var(--font); font-weight: 500; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: none; }
table.spec .grp th {
  background: var(--ink-3); color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: .06em;
}
table.spec .hl { color: var(--accent-dark); font-weight: 800; }
table.spec .warn { color: var(--warm); font-weight: 800; }

/* ---------- カラー ---------- */
.colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 860px) { .colors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .colors { grid-template-columns: repeat(2, 1fr); } }
.color-chip { text-align: center; }
.color-swatch {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12); box-shadow: var(--shadow);
  margin-bottom: 12px; position: relative;
}
.color-swatch::after {
  content: ""; position: absolute; inset: 12% 14% 55% 14%;
  border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent);
}
.color-jp { font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.color-en { font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.color-note { font-size: 11px; color: var(--accent-dark); font-weight: 700; margin-top: 4px; }

/* ---------- 寸法図 ---------- */
.dims { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; color: var(--ink); }
.dims svg { width: 100%; height: auto; }
.dim-line { stroke: var(--muted); stroke-width: 1; }
.dim-body { fill: var(--accent-soft); stroke: var(--accent-dark); stroke-width: 2; }
.dim-glass { fill: #cfe9f7; stroke: var(--accent-dark); stroke-width: 1.4; }
.dim-wheel { fill: var(--ink-2); }
.dim-hub { fill: var(--paper-2); }
.dim-text { fill: var(--ink-3); font-size: 13px; font-weight: 700; font-family: var(--font-num); }
.dim-cap { fill: var(--muted); font-size: 11px; font-family: var(--font); }

/* ---------- 特徴カード ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 32px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: none; border: 0; border-top: 2px solid var(--ink);
  border-radius: 0; padding: 22px 4px 0;
}
.sec-ink .feature { background: none; border-top-color: rgba(255,255,255,.45); }
.feature-ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.sec-ink .feature-ico { background: rgba(0,184,124,.16); }
.feature-ico svg { width: 22px; height: 22px; stroke: var(--accent-dark); fill: none; stroke-width: 1.9; }
.sec-ink .feature-ico svg { stroke: var(--accent); }
.feature h3 { font-size: 17px; margin: 0 0 10px; font-weight: 800; letter-spacing: .005em; font-feature-settings: "palt"; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; }
.sec-ink .feature p { color: rgba(255,255,255,.6); }
.feature .tag {
  display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 6px;
}
.sec-ink .feature .tag { background: rgba(0,184,124,.16); color: var(--accent); }

/* ---------- 補助金ハイライト ---------- */
.subsidy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .subsidy-grid { grid-template-columns: 1fr; } }
.subsidy-card {
  border-radius: var(--radius-lg); padding: 30px 28px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink);
}
.subsidy-card.is-warn { background: var(--warm-soft); border-color: rgba(255,107,74,.3); }
.subsidy-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.subsidy-big {
  font-family: var(--font-num); font-size: 46px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 6px;
}
.subsidy-card.is-warn .subsidy-big { color: var(--warm); }
.subsidy-card:not(.is-warn) .subsidy-big { color: var(--accent-dark); }
.subsidy-card p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.85; }

/* ---------- モデル一覧 ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .models { grid-template-columns: 1fr; } }
.model {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-decoration: none;
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s;
  color: var(--ink);
}
.model:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.model-type {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  padding: 3px 9px; border-radius: 5px; align-self: flex-start; margin-bottom: 12px;
}
.model-type.bev, .model-type.phev, .model-type.kei {
  background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--line);
}
.model h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.model .cat { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.model-nums { display: flex; gap: 20px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.model-num dt { font-size: 10.5px; color: var(--muted); letter-spacing: .05em; margin-bottom: 2px; }
.model-num dd { margin: 0; font-family: var(--font-num); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.model-num dd .u { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 1px; }

/* ---------- CTA / リンク ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .01em; padding: 13px 26px;
  border-radius: 999px; transition: background .18s, transform .18s;
  border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.ghost:hover { background: var(--white); border-color: var(--ink); }
.sec-ink .btn.ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.sec-ink .btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- 注記 ---------- */
.note {
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
  margin-top: 18px; padding-left: 1.1em; text-indent: -1.1em;
}
.notes-block {
  margin-top: 26px; padding: 20px 22px; background: var(--paper-2);
  border-radius: var(--radius); border-left: 3px solid var(--line);
  color: var(--muted);
}
.notes-block .note { margin-top: 6px; }
.notes-block .note:first-child { margin-top: 0; }

.callout {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 22px 26px; margin: 30px 0; color: var(--ink);
}
.callout.is-warn { border-left-color: var(--warm); background: var(--warm-soft); border-color: rgba(255,107,74,.25); }
.callout h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 800; }
.callout p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.85; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 62px 0 32px; font-size: 13.5px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } }
.footer-about p { margin: 14px 0 0; line-height: 1.9; max-width: 380px; font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 13px; margin: 0 0 14px; letter-spacing: .05em; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { text-decoration: none; transition: color .16s; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.11); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.footer-disclaimer {
  font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.48);
  padding-bottom: 26px; margin-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-disclaimer a { color: rgba(255,255,255,.66); text-underline-offset: 2px; }

/* ---------- 記事本文（about など） ---------- */
.prose h2 { font-size: 23px; font-weight: 800; margin: 46px 0 14px; letter-spacing: -.02em; }
.prose h3 { font-size: 17px; font-weight: 800; margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; line-height: 1.95; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose li { margin-bottom: 9px; line-height: 1.9; }
.prose a { color: var(--accent-dark); text-underline-offset: 3px; }

/* ---------- ページヘッダー ---------- */
.page-head { background: var(--ink); color: #fff; padding: 66px 0 60px; }
.page-head h1 {
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; margin: 0 0 14px;
  letter-spacing: .01em; font-feature-settings: "palt";
}
.page-head h1::before {
  content: ""; display: block; width: 34px; height: 4px;
  background: var(--accent); border-radius: 2px; margin-bottom: 20px;
}
.page-head p { margin: 0; color: rgba(255,255,255,.66); max-width: 640px; font-size: 15.5px; }
.crumbs { font-size: 12.5px; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.62); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- ディーラーマップ ---------- */
.map-shell {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
#dealer-map { height: 540px; width: 100%; background: #e8edf0; }
@media (max-width: 640px) { #dealer-map { height: 420px; } }
.map-legend { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 14px; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.dealer-filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 30px 0 6px; }
.dealer-filter select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14px; background: #fff; min-width: 180px;
}
.pref-block h3 {
  font-size: 18px; font-weight: 800; margin: 36px 0 14px;
  padding-left: 12px; border-left: 4px solid var(--accent);
}
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .store-grid { grid-template-columns: 1fr; } }
.store-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 16px; color: var(--ink);
}
.store-card.is-preparing { background: var(--paper-2); }
.store-name { font-weight: 800; font-size: 15.5px; }
.store-badge { font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 2px 8px; margin-left: 8px; white-space: nowrap; }
.store-badge.open { background: var(--accent-soft); color: var(--accent-dark); }
.store-badge.prep { background: #fff4d6; color: #a16207; }
.store-meta { font-size: 12.5px; color: var(--muted); line-height: 1.85; margin: 7px 0 11px; }
.store-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.store-actions a {
  font-size: 12px; font-weight: 700; text-decoration: none;
  padding: 7px 13px; border-radius: 999px; transition: transform .15s, background .15s;
}
.store-actions a:hover { transform: translateY(-1px); }
.store-actions .a-test { background: var(--accent); color: #fff; }
.store-actions .a-test:hover { background: var(--accent-dark); }
.store-actions .a-map, .store-actions .a-site { border: 1px solid var(--line); color: var(--ink-3); background: var(--white); }
.leaflet-popup-content { font-family: var(--font); font-size: 13px; line-height: 1.7; margin: 14px 16px; }
.leaflet-popup-content .p-name { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.leaflet-popup-content a { color: var(--accent-dark); font-weight: 700; }

/* ---------- アニメーション ----------
   情報サイトなので「本文が読めない状態」を絶対に作らない。
   要素は常に表示し、演出は transform のみに限定する。
   JS・IntersectionObserver・タイマーのいずれが動かなくても内容は読める。 */
.js .reveal { transform: translateY(14px); transition: transform .6s cubic-bezier(.22,.9,.3,1); }
.js .reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: none; }
  .bar-fill { transition: none; }
  html { scroll-behavior: auto; }
}
