/* UIコンポーネント — spec §2.4 */

/* カード */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--sp-5); margin-bottom: var(--sp-5);
}

/* KPIカード */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--sp-4);
  position: relative; overflow: hidden;
}
.kpi-accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber-300), var(--amber-500));
}
.kpi-label { font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-400);
  letter-spacing: .08em; }
.kpi-value { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.2; }
.kpi-sub { font-size: var(--fs-xs); color: var(--ink-600); }
.kpi-link { font-size: var(--fs-xs); color: var(--amber-700); font-weight: 700;
  text-decoration: none; }

/* タイルマップ */
.tile-map {
  display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px;
  max-width: 720px;
}
.tile {
  aspect-ratio: 1; border-radius: 6px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; line-height: 1.2; min-width: 0;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); z-index: 2; }
.tile-name { font-size: clamp(7px, 1vw, 11px); font-weight: 700; }
.tile-count { font-size: clamp(6px, .9vw, 10px); opacity: .85; }
.tile.d0 { background: var(--map-d0); color: #8a6d1f; }
.tile.d1 { background: var(--map-d1); color: var(--amber-700); }
.tile.d2 { background: var(--map-d2); color: #5f4700; }
.tile.d3 { background: var(--map-d3); color: var(--ink-900); }
.tile.d4 { background: var(--map-d4); color: var(--ink-900); font-weight: 700; }

/* ヒーロー(ホーム) */
.hero {
  background: linear-gradient(180deg, #f5f6f8, #eef0f3);
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--sp-6); margin-bottom: var(--sp-5);
}
.hero h1 { margin-bottom: var(--sp-1); }
.hero-meta { font-size: var(--fs-xs); color: var(--ink-600); margin-bottom: var(--sp-4); }
.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3); margin-top: var(--sp-4); }
.hero .kpi-card { background: rgba(255, 255, 255, .94); }

/* バーリスト(テーマ分布) */
.bar-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.bar-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px; gap: var(--sp-3);
  align-items: center; text-decoration: none; font-size: var(--fs-sm);
  color: var(--ink-600);
}
.bar-row:hover .bar-label { color: var(--ink-900); }
.bar-svg { width: 100%; height: 12px; display: block; overflow: hidden; }
.bar-label, .compare-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-pct { text-align: right; font-weight: 700; color: var(--ink-900); }

/* スタック棒(年代×テーマ) */
.stack-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 56px;
  gap: var(--sp-3); align-items: center; margin: var(--sp-2) 0; }
.stack-label { font-size: var(--fs-xs); color: var(--ink-600); text-align: right; }
.stack-bar { display: flex; height: 16px; border-radius: 5px; overflow: hidden;
  background: var(--paper); }
.stack-bar span { display: block; height: 100%; }
.stack-total { font-size: var(--fs-xs); text-align: right; color: var(--ink-600); }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-3); font-size: var(--fs-2xs); color: var(--ink-600); }
.legend-item i { display: inline-block; width: 9px; height: 9px;
  border-radius: 2px; margin-right: 4px; }

/* 折れ線 */
.trend-line { width: 100%; height: 80px; display: block; }
.trend-labels { display: flex; justify-content: space-between;
  font-size: var(--fs-2xs); color: var(--ink-400); }

/* 全国比較(議員支援) */
.compare-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px; gap: var(--sp-3);
  align-items: center; padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border); font-size: var(--fs-sm);
}
.compare-label { color: var(--ink-900); font-weight: 700; text-decoration: none; }
.compare-bars { display: flex; gap: var(--sp-3); color: var(--ink-600);
  font-size: var(--fs-xs); }
.compare-pref { font-weight: 700; color: var(--ink-900); }
.dev-badge {
  font-size: var(--fs-2xs); font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-pill); text-align: center;
}
.dev-up { background: rgba(22, 163, 74, .12); color: var(--up); }
.dev-down { background: rgba(220, 38, 38, .10); color: var(--down); }
.dev-flat { background: var(--paper); color: var(--ink-400); }

/* 急上昇(議員支援) */
.alert-list { margin: 0; padding-left: 1.4em; }
.alert-list li { display: flex; justify-content: space-between;
  align-items: center; padding: var(--sp-1) 0; }
.alert-list a { font-weight: 700; text-decoration: none; }

/* 引用ブロック(議員支援) */
.cite-block { display: flex; flex-wrap: wrap; gap: var(--sp-2);
  align-items: center; margin-top: var(--sp-3); padding-top: var(--sp-3);
  border-top: 1px solid var(--border); }
.btn-cite, .btn-export {
  font-size: var(--fs-xs); font-weight: 700; padding: 9px 14px;
  border-radius: var(--r-sm); cursor: pointer; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-900); font-family: inherit;
}
.btn-cite { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.btn-cite.copied { background: var(--up); border-color: var(--up); }
.cite-note { font-size: var(--fs-2xs); color: var(--ink-400); flex-basis: 100%; }

/* 論点カード */
.issue-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--sp-4);
  transition: box-shadow var(--dur) var(--ease);
}
.issue-card:hover { box-shadow: var(--shadow-hover); }
.issue-head { display: flex; align-items: baseline; gap: var(--sp-2);
  flex-wrap: wrap; }
.issue-head h3 { margin: 0; font-size: var(--fs-md); flex: 1; }
.issue-head h3 a { text-decoration: none; }
.issue-n { margin-left: auto; font-size: var(--fs-xs); font-weight: 700;
  color: var(--ink-600); }
.kind-badge { font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-pill); }
.kind-budget { background: rgba(245, 158, 11, .15); color: var(--amber-700); }
.kind-system { background: rgba(139, 92, 246, .14); color: #6d28d9; }
.kind-operation { background: rgba(59, 130, 246, .13); color: #1d4ed8; }
.kind-correction { background: rgba(220, 38, 38, .12); color: var(--down); }  /* 訂正版マーカー */
.issue-summary { font-size: var(--fs-sm); color: var(--ink-600); margin: var(--sp-2) 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.policy-tag { font-size: 10px; color: var(--ink-600); background: var(--paper);
  border: 1px solid var(--border); padding: 1px 8px;
  border-radius: var(--r-pill); }
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3); }

/* 空状態・注記 */
.empty-state { text-align: center; padding: var(--sp-10) var(--sp-5);
  color: var(--ink-600); }
.empty-sub, .empty-note { font-size: var(--fs-xs); color: var(--ink-400); }

/* キャラクター「ポコ」 */
.poco-mascot { display: block; width: 96px; height: 96px;
  margin: 0 auto var(--sp-3); user-select: none; }
.poco-mascot--sm { width: 64px; height: 64px; }
.suppressed { color: var(--ink-400); cursor: help;
  text-decoration: underline dotted; }
.source-note { font-size: var(--fs-2xs); color: var(--ink-400);
  border-top: 1px solid var(--border); padding-top: var(--sp-2);
  margin-top: var(--sp-3); }

/* テーブル・パンくず */
.rank-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.rank-table th { text-align: left; font-size: var(--fs-2xs); color: var(--ink-400);
  font-weight: 700; padding: var(--sp-2); border-bottom: 1px solid var(--border); }
.rank-table th.num, .rank-table td.num { text-align: right; }
.rank-table td { padding: var(--sp-2); border-bottom: 1px solid var(--border); }
.rank-table a { font-weight: 700; text-decoration: none; }
.breadcrumb { font-size: var(--fs-xs); color: var(--ink-400); margin-bottom: var(--sp-2); }
.breadcrumb a { color: var(--ink-600); }

/* テーマカード */
.theme-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--sp-4); text-decoration: none;
  transition: box-shadow var(--dur) var(--ease);
}
.theme-card:hover { box-shadow: var(--shadow-hover); }
.theme-card h3 { margin: var(--sp-2) 0 var(--sp-1); font-size: var(--fs-md); }
.theme-card p { margin: 0 0 var(--sp-2); font-weight: 700; }
.theme-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.theme-ratio { font-weight: 500; color: var(--ink-400); font-size: var(--fs-xs); }

/* 検索フォーム */
.filter-form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.filter-form input[type="search"] { flex: 1; min-width: 200px; }
.filter-form input, .filter-form select, #home-filter select {
  font: inherit; font-size: var(--fs-sm); padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-900);
}
#home-filter { display: flex; gap: var(--sp-4); align-items: center; }
#home-filter label { font-size: var(--fs-xs); color: var(--ink-600);
  display: flex; align-items: center; gap: var(--sp-2); }

/* 政策ブリーフ ヘッダー */
.issue-brief-head { margin-bottom: var(--sp-5); }
.issue-brief-head h1 { margin: var(--sp-2) 0 var(--sp-1); }

/* ops */
.ops-nav { display: flex; gap: var(--sp-1); margin: var(--sp-3) 0; flex-wrap: wrap; }
.ops-nav a { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-600);
  text-decoration: none; padding: 9px 14px; border-radius: var(--r-sm); }
.ops-nav a[aria-current="page"] { background: var(--ink-900); color: #fff; }
.ops-nav .ops-back { margin-left: auto; }
.ops-token-fallback { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-600); }
.ops-token-fallback input { font: inherit; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm); margin-right: var(--sp-2); }
.def-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  font-size: var(--fs-sm); margin: 0; }
.def-list dt { color: var(--ink-600); font-weight: 700; }
.def-list dd { margin: 0; }

/* ── ホームリデザイン: ダークヒーロー+番号付きセクション ───────────── */

/* フルブリードのライトヒーロー(黒背景は不使用) */
.hero-band {
  width: 100vw; margin-left: calc(50% - 50vw);
  margin-top: calc(-1 * var(--sp-6));  /* main.container の上余白を相殺 */
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: clamp(36px, 6vw, 64px) var(--sp-5) var(--sp-8);
  margin-bottom: var(--sp-10);
}
.hero-inner { max-width: 1190px; margin: 0 auto; text-align: center; }
.hero-band h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: var(--sp-3); }
.hero-num { color: var(--amber-700); }
.hero-lead { color: var(--ink-600); font-size: var(--fs-base);
  max-width: 620px; margin: 0 auto var(--sp-6); }

/* ヒーロー内のインライン統計 */
.hero-stats { display: flex; justify-content: center; align-items: stretch;
  gap: var(--sp-2) 0; margin-bottom: var(--sp-6); flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px;
  padding: 0 var(--sp-6); }
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hs-label { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .1em;
  color: var(--ink-400); }
.hs-value { font-size: var(--fs-xl); font-weight: 700; color: var(--ink-900);
  text-decoration: none; }
.hs-value small { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-400); }
a.hs-value:hover { color: var(--amber-700); }
.hs-rising { color: var(--amber-700); }
.hs-rising small { font-size: var(--fs-xs); font-weight: 700; margin-left: 4px;
  color: var(--up); }

/* ヒーロー内マップ: 枠なし・中央配置(視覚スタイルは下部で .hero-band に統合) */
.hero-map-panel { background: transparent; border: none; box-shadow: none;
  padding: 0; max-width: min(1040px, 84vw); margin: 0 auto; }
.hero-band .tile-map-scroll { display: flex; justify-content: center; }
.hero-note { font-size: var(--fs-2xs); color: var(--ink-400); margin: var(--sp-4) 0 0; }

/* 番号付きセクション(カード外見出し) */
.section { margin: 0 auto var(--sp-10); max-width: 1190px;
  scroll-margin-top: 76px; }
.section-head { display: flex; align-items: baseline; gap: var(--sp-3);
  flex-wrap: wrap; margin-bottom: var(--sp-4); }
.section-no { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .14em;
  color: var(--amber-700); }  /* 小サイズのため白地でAAを満たす濃色 */
.section-head h2 { margin: 0; }
.section-sub { margin: 0; font-size: var(--fs-sm); color: var(--ink-400);
  flex-basis: 100%; }
.section .card { margin-bottom: 0; padding: var(--sp-6); }

/* セクション内フィルター(ホーム) */
.inline-filter { display: flex; gap: var(--sp-4); align-items: center;
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border); }
.inline-filter label { font-size: var(--fs-xs); color: var(--ink-600);
  display: flex; align-items: center; gap: var(--sp-2); }
.inline-filter select { font: inherit; font-size: var(--fs-sm); padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-900); }

/* グラフの存在感を強化 */
.bar-row { grid-template-columns: 170px minmax(0, 1fr) 56px; font-size: 13.5px; }
.bar-svg { height: 18px; }
.stack-bar { height: 20px; border-radius: 6px; }
.stack-row { grid-template-columns: 72px minmax(0, 1fr) 60px; }
.trend-line { height: 110px; }

/* 情報密度強化(ホーム) */
.bar-val { text-align: right; line-height: 1.3; }
.bar-val b { display: block; font-size: 13.5px; color: var(--ink-900); }
.bar-val small { font-size: 10.5px; color: var(--ink-400); }
.rank-bar-col { width: 28%; }
.rank-top-theme { font-size: var(--fs-xs); color: var(--ink-600); }
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4); margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--border); }
.series-cell { text-decoration: none; }
.series-label { display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink-900);
  margin-bottom: var(--sp-1); }
.series-label i { width: 9px; height: 9px; border-radius: 3px; }
.series-cell .trend-line { height: 64px; }
.series-cell .trend-labels { display: none; }
.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.movers-title { font-size: var(--fs-sm); color: var(--ink-600); margin-bottom: var(--sp-2); }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2);
  align-items: center; }
.keyword-chip { background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 4px 12px; color: var(--ink-600); }
.keyword-chip .num { color: var(--ink-400); font-size: .85em; }
.keyword-chip.kw-1 { font-size: var(--fs-xs); }
.keyword-chip.kw-2 { font-size: 13.5px; color: var(--ink-900); }
.keyword-chip.kw-3 { font-size: var(--fs-md); color: var(--ink-900); font-weight: 700;
  border-color: var(--amber-300); background: var(--amber-050); }

/* 都道府県ポップアップ */
.pref-dialog {
  border: none; border-radius: 16px; padding: var(--sp-6);
  width: min(420px, calc(100vw - 32px));
  box-shadow: var(--shadow-pop);
}
.pref-dialog::backdrop { background: rgba(20, 21, 23, .45); }
.pd-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-2); }
.pd-head h2 { margin: 0; font-size: var(--fs-xl); }
.pd-close { border: none; background: var(--paper); border-radius: var(--r-full);
  width: 44px; height: 44px; cursor: pointer; font-size: var(--fs-base);
  color: var(--ink-600); }
.pd-close:hover { background: var(--border); }
.pd-total { font-size: var(--fs-sm); color: var(--ink-600); margin-bottom: var(--sp-3); }
.pd-total b { font-size: 18px; color: var(--ink-900); }
.pd-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px;
  gap: var(--sp-2); align-items: center; font-size: var(--fs-xs);
  color: var(--ink-600); margin: var(--sp-1) 0; }
.pd-bar svg { width: 100%; height: 12px; display: block; }
.pd-pct { text-align: right; font-weight: 700; color: var(--ink-900); }
.pd-sub { font-size: var(--fs-sm); margin: var(--sp-4) 0 var(--sp-2); }
.pd-roster { list-style: none; margin: 0 0 var(--sp-2); padding: 0;
  max-height: 180px; overflow-y: auto; }
.pd-roster li { display: flex; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm); }
.pd-name { font-weight: 700; }
.pd-meta { color: var(--ink-400); font-size: var(--fs-xs); }
.pd-note { font-size: 10.5px; color: var(--ink-400); margin: var(--sp-2) 0 var(--sp-4); }
.pd-cta { display: block; text-align: center; text-decoration: none; }

/* ops 名簿エディタ */
.roster-pref h3 { margin: var(--sp-3) 0 var(--sp-1); font-size: var(--fs-base); }
.roster-row { display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-1) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.roster-row .name { font-weight: 700; }
.roster-row .roster-del { margin-left: auto; font-size: var(--fs-2xs); padding: 3px 10px; }
.roster-add { margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--border); }
.roster-add h3 { font-size: var(--fs-sm); }
.roster-add input { font: inherit; font-size: var(--fs-sm); padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm); }
.roster-save { margin-top: var(--sp-4); display: flex; align-items: center;
  gap: var(--sp-3); }
#sync-section textarea { width: 100%; font: 12px/1.6 monospace;
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: var(--sp-2); }

/* 論点カード全体をクリック可能に(stretched link) */
.issue-card { position: relative; }
.issue-head h3 a::after { content: ''; position: absolute; inset: 0; }
.issue-head h3 a:hover { color: var(--amber-700); }

/* コンパクトなページヒーロー(一覧ページ) */
.hero-compact { padding-top: clamp(28px, 4vw, 44px); padding-bottom: var(--sp-6); }
.dot-sm { width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* 導入地域チップ */
.adopter-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.adopter-chip { display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 9px 14px; font-size: var(--fs-sm);
  font-weight: 700; text-decoration: none; }
.adopter-chip:hover { border-color: var(--amber-500); }
.adopter-chip .num { font-size: var(--fs-2xs); color: var(--ink-400); font-weight: 700; }

/* 論点カードの具体性強化 */
.kw-tag { background: var(--amber-050); border-color: var(--amber-300); color: var(--amber-700); }
.issue-facts { display: flex; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-2xs); color: var(--ink-400); margin: var(--sp-2) 0; }

/* 詳細ページの余白調整 */
main.container > h1 { margin-bottom: var(--sp-5); }
.kpi-grid { margin-bottom: var(--sp-8); }
.breadcrumb { margin: var(--sp-1) 0 var(--sp-3); }
.page-tags { margin-bottom: var(--sp-10); }

/* テーマ別にみる地域差 */
.leader-list { display: flex; flex-direction: column; }
.leader-row { display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; }
.leader-row:last-child { border-bottom: none; }
.leader-theme { font-weight: 700; text-decoration: none; min-width: 180px; }
.leader-arrow { color: var(--ink-400); }
.leader-pref { font-weight: 700; text-decoration: none; color: var(--amber-700); }
.leader-count { margin-left: auto; color: var(--ink-600); font-size: var(--fs-xs); }



/* ブランドカラーのファーストビュー(ホーム)— マップが主役・文字は白 */
.hero-brand {
  background: var(--surface);
  border-bottom: none;
  margin-top: calc(-1 * var(--sp-6));
  padding-top: clamp(12px, 1.6vw, 20px);
  padding-bottom: clamp(12px, 1.6vw, 18px);
}
.hero-brand h1 { color: var(--ink-900); font-size: clamp(26px, 3.8vw, 46px);
  margin-bottom: clamp(6px, 1vw, 12px); }
.hero-brand .hero-num { color: var(--amber-700); }
.hero-brand .hero-lead { display: none; }  /* 高さ節約: リード文はヒーロー外で説明済み */
/* 見出し横のマスコット「ポコ」（電波＝声が届くテーマ） */
.hero-poco { display: inline-block; vertical-align: middle;
  width: clamp(44px, 5vw, 60px); height: auto; margin-right: 10px; }

/* マップ: 白背景に映えるアンバー濃淡タイル。ファーストビューに収まる高さに圧縮 */
/* 横長マップ: Body幅いっぱい・高さはビューポートに追従(注記が最下部に来る) */
.hero-band .hero-map-panel { background: transparent; border: none;
  box-shadow: none; padding: 0; margin: 0 auto; max-width: 100%; }
.hero-band .tile-map { max-width: none; width: 100%; gap: 4px; position: relative;
  grid-template-rows: repeat(13, 1fr); }
.hero-brand .tile-map { height: clamp(300px, calc(100svh - 304px), 720px); }
.hero-compact .tile-map { height: clamp(280px, calc(100svh - 360px), 560px); }
.hero-band .tile { width: 100%; height: 100%; min-height: 0;
  border: 1px solid var(--border); border-radius: 6px;
  position: relative; will-change: transform; }
.hero-band .tile.d0 { background: var(--hero-d0); color: #856517; border-color: #eccb66; }
.hero-band .tile.d1 { background: var(--hero-d1); color: #6b5210; border-color: transparent; }
.hero-band .tile.d2 { background: var(--hero-d2); color: #5a3f00; border-color: transparent; }
.hero-band .tile.d3 { background: var(--hero-d3); color: #3f2a00; border-color: transparent; }
.hero-band .tile.d4 { background: var(--hero-d4); color: #fff; font-weight: 700; border-color: transparent; }
.hero-band .tile-name { font-size: clamp(9px, 1vw, 13px); font-weight: 700; position: relative; z-index: 1; white-space: nowrap; }
@media (max-width: 760px) {
  .hero-brand .tile-map, .hero-compact .tile-map { height: auto; grid-template-rows: none; }
  .hero-band .tile { height: auto; aspect-ratio: 1.15; }
}
.hero-band .tile-count { font-size: clamp(10px, 1vw, 13px); font-weight: 700; position: relative; z-index: 1; }
.hero-band .tile:hover { transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 24px rgba(120, 80, 0, .32); z-index: 5; }
/* 声のある県はホバーでアンバーの縁取りが灯る */
.hero-band .tile:not(.d0):hover { box-shadow: 0 10px 24px rgba(239, 157, 0, .45),
  0 0 0 2px rgba(255, 255, 255, .9) inset; }

/* ── 登場: 南→北にスプリングで“着地”する(map-intro.js が tile-in を付与) ── */
@keyframes tileDrop {
  0%   { opacity: 0; transform: translateY(20px) scale(.62); }
  55%  { opacity: 1; transform: translateY(-4px) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.js .hero-band .tile:not(.tile-in) { opacity: 0; }
.js .hero-band .tile.tile-in {
  animation: tileDrop .58s cubic-bezier(.34, 1.56, .64, 1) backwards; }
/* 着地した瞬間、声のある県だけ“パッ”と発光(声が灯る) */
@keyframes tileLand {
  0%, 55% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
  70%     { box-shadow: 0 0 18px 5px rgba(255, 209, 102, .85); }
  100%    { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}
.js .hero-band .tile:not(.d0).tile-in {
  animation: tileDrop .58s cubic-bezier(.34, 1.56, .64, 1) backwards,
             tileLand .58s ease-out backwards; }

/* ── アンビエント: 声が届くピング(リング波 + 立ち上る吹き出し) ── */
@keyframes voicePing {
  0%   { box-shadow: 0 0 0 0 rgba(239, 157, 0, .55); }
  100% { box-shadow: 0 0 0 16px rgba(239, 157, 0, 0); }
}
.hero-band .tile.is-ping { animation: voicePing .95s ease-out; z-index: 4; }
/* 声の吹き出し(JSが populated タイル上に生成して上へ飛ばす) */
.hero-band .voice-pop {
  position: absolute; width: 11px; height: 11px; border-radius: 50% 50% 50% 2px;
  background: var(--amber-500); box-shadow: 0 2px 6px rgba(239, 157, 0, .4);
  pointer-events: none; z-index: 6; transform: translate(-50%, -50%);
  animation: voiceRise 1.5s cubic-bezier(.22, .7, .3, 1) forwards; }
@keyframes voiceRise {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  18%  { opacity: 1; transform: translate(-50%, -120%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -560%) scale(.65); }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-band .tile:not(.tile-in), .js .hero-band .tile { opacity: 1 !important; }
  .js .hero-band .tile.tile-in { animation: none !important; }
  .hero-band .tile.is-ping, .hero-band .voice-pop { animation: none !important; }
  .hero-band .voice-pop { display: none; } }

/* 統計・注記も白 */
.hero-brand .hero-stats { margin: clamp(10px,1.6vw,18px) 0 0; }
.hero-brand .hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-brand .hs-label { color: var(--ink-400); }
.hero-brand .hs-value, .hero-brand a.hs-value { color: var(--ink-900); }
.hero-brand .hs-value small { color: var(--ink-400); }
.hero-brand a.hs-value:hover { color: var(--amber-700); }
.hero-brand .hs-rising { color: var(--amber-700); }
.hero-brand .hs-rising small { color: #fff; font-weight: 700; }
.hero-brand .hero-note { color: var(--ink-400); margin-top: clamp(8px,1.2vw,14px); }

/* セクションアンカー(ヒーロー外・中央) */
.section-anchors { display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--sp-2); max-width: 1190px;
  margin: calc(-1 * var(--sp-6)) auto var(--sp-8); }
.section-anchors a { color: var(--ink-600); font-size: var(--fs-xs); font-weight: 700;
  text-decoration: none; padding: 9px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.section-anchors a:hover { border-color: var(--amber-500); color: var(--ink-900); }

/* ヒーロー下部の白パネル(のっぺり防止)と、その中の文字色を墨に戻す */
.hero-info-panel {
  background: transparent; max-width: 1180px;
  margin: clamp(10px, 1.6vw, 18px) auto 0; padding: 0;
}
.hero-info-panel .hero-lead { color: var(--ink-600); text-shadow: none;
  margin: 0 auto var(--sp-4); }
.hero-info-panel .hero-stats { margin: 0; }
.hero-info-panel .hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-info-panel .hs-label { color: var(--ink-400); }
.hero-info-panel .hs-value, .hero-info-panel a.hs-value { color: var(--ink-900); }
.hero-info-panel .hs-value small { color: var(--ink-400); }
.hero-info-panel a.hs-value:hover { color: var(--amber-700); }
.hero-info-panel .hs-rising { color: var(--amber-700); }
.hero-info-panel .hs-rising small { color: #15803d; }
.hero-info-panel .hero-note { color: var(--ink-400); margin-top: var(--sp-3); }


/* ポップアップ大型化+議員カード(写真・プロフィール・LINEボタン) */
.pref-dialog { width: min(600px, calc(100vw - 32px));
  max-height: min(82vh, 720px); overflow-y: auto; }
.pd-roster { max-height: none; overflow: visible; }
.pd-legis { display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
.pd-photo { width: 48px; height: 48px; border-radius: var(--r-full);
  object-fit: cover; flex: none; background: var(--paper); }
.pd-photo-fallback { display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: var(--amber-700);
  background: #fff6d9; }
.pd-legis-body { flex: 1; min-width: 0; }
.pd-legis-body .pd-name { display: block; font-size: var(--fs-base); }
.pd-profile { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--ink-600);
  line-height: 1.6; }
.pd-line-btn { flex: none; align-self: center; font-size: var(--fs-xs);
  font-weight: 700; color: #fff; background: var(--line-700);
  padding: 7px 14px; border-radius: var(--r-pill); text-decoration: none;
  white-space: nowrap; }
.pd-line-btn:hover { background: var(--line-900); }

/* 届いている声(AI合成例) */
.voice-examples { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--sp-2); }
.voice-examples li { background: var(--amber-050); border-left: 3px solid var(--amber-500);
  border-radius: 0 10px 10px 0; padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base); color: var(--ink-900); }

/* 公式LINE登録CTA */
.line-cta { display: inline-flex; align-items: center; gap: 7px;
  background: var(--line-700); color: #fff; font-weight: 700; font-size: var(--fs-sm);
  text-decoration: none; padding: 11px 18px; border-radius: var(--r-pill);
  white-space: nowrap; transition: background var(--dur) var(--ease); }
.line-cta:hover { background: var(--line-900); }
.line-cta-icon { font-size: 10px; font-weight: 700; letter-spacing: .04em;
  background: rgba(255, 255, 255, .25); padding: 2px 6px; border-radius: 5px; }
/* ヘッダーCTAは横にゆとりを持たせて存在感を少し強める(モバイルは pages.css で省スペース) */
.site-header .line-cta { margin-left: var(--sp-2); padding-left: 28px; padding-right: 28px; }
.line-cta-lg { font-size: var(--fs-md); padding: 13px 28px; margin: var(--sp-2) auto var(--sp-4);
  box-shadow: 0 8px 20px rgba(6, 199, 85, .35); }

/* ヒーロー直下CTA・合成例直後CTA・安心マイクロコピー */
.hero-cta-wrap { margin: 0 0 var(--sp-4); }
.hero-cta-wrap .hero-cta { margin: 0 auto var(--sp-2); }
.cta-note { font-size: var(--fs-2xs); color: var(--ink-400); line-height: 1.6; margin: 0; }
.voice-cta { margin-top: var(--sp-4); text-align: center; }
.voice-cta-lead { font-size: var(--fs-base); font-weight: 700; color: var(--ink-900);
  margin: 0 0 var(--sp-2); }
.voice-cta .cta-note { margin-top: calc(-1 * var(--sp-2)); }

/* モバイル下部の固定LINE CTA（ボトムナビの上に重ねる）。既定は非表示・モバイルで表示 */
.mobile-cta { display: none; }

/* ページ文脈CTA（テーマ/地域などの詳細ページ本文末） */
.context-cta { margin: var(--sp-8) 0 var(--sp-4); padding-top: var(--sp-6);
  border-top: 1px solid var(--border); text-align: center; }
.context-cta-lead { font-size: var(--fs-md); font-weight: 700; color: var(--ink-900);
  margin: 0 0 var(--sp-3); }
.context-cta .cta-note { margin-top: calc(-1 * var(--sp-2)); }

/* サービス紹介: 中間CTA・FAQ */
.as-mid-cta { text-align: center; margin: var(--sp-2) 0 var(--sp-6); }
.as-faq { display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) clamp(24px, 4vw, 56px); margin: 0; }
.as-faq-item { border-bottom: 1px solid var(--border); padding-bottom: var(--sp-3); }
.as-faq-item dt { font-weight: 700; color: var(--ink-900); margin-bottom: var(--sp-1); }
.as-faq-item dt::before { content: "Q. "; color: var(--amber-700); font-weight: 800; }
.as-faq-item dd { margin: 0; color: var(--ink-600); line-height: 1.8; }
@media (max-width: 760px) { .as-faq { grid-template-columns: 1fr; } }

/* ===== サービス紹介ページ(HELLO CYCLING風エディトリアル) ===== */
/* KV: 左にコピー、右で日本地図が組み上がる */
.as-kv { position: relative; overflow: hidden; background: var(--amber-500);
  color: #fff; margin-top: calc(-1 * var(--sp-6));
  /* オレンジ背景を横全面(フルブリード)に */
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: clamp(40px, 6vw, 72px) var(--sp-5) clamp(48px, 8vw, 88px); }
.as-kv-inner { max-width: 1190px; margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px);
  align-items: center; }
.as-kv-text { text-align: left; }
.as-kv-title .en { display: block; font-size: var(--fs-base); letter-spacing: .2em; white-space: nowrap;
  font-weight: 700; letter-spacing: .04em; line-height: .95;
  text-shadow: 0 2px 6px rgba(120, 80, 0, .28); }
.as-kv-title .en .ch { display: inline-block;
  animation: chDrop .6s var(--ease) backwards; }
@keyframes chDrop { from { opacity: 0; transform: translateY(-.4em) rotate(-8deg); }
  to { opacity: 1; transform: none; } }
.as-kv-title .jp { display: block; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.12;
  white-space: nowrap; letter-spacing: -.01em;
  font-weight: 700; margin-top: var(--sp-3); }
.as-kv-lead { margin: var(--sp-5) 0 var(--sp-6); }
.as-kv-lead .jp { display: block; font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 700; line-height: 1.6; }
.as-kv-lead .en { display: block; font-size: var(--fs-xs); letter-spacing: .12em;
  color: rgba(255,255,255,.72); margin-top: 8px; }

/* 組み上がる地図 */
.as-kv-map { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px;
  width: 100%; max-width: 460px; margin-left: auto; }
.as-tile { aspect-ratio: 1.25; border-radius: 5px;
  background: rgba(255,255,255,.92); display: flex; align-items: center;
  justify-content: center; box-shadow: 0 2px 6px rgba(120,80,0,.18);
  opacity: 0; transform: translateY(14px) scale(.6);
  transition: opacity .5s var(--ease), transform .5s var(--ease); }
.as-tile.in { opacity: 1; transform: none; }
.as-tile-name { font-size: clamp(5px, .85vw, 8px); font-weight: 700;
  color: var(--amber-700); line-height: 1; }

/* 浮かぶ声の吹き出し(装飾) */
.as-kv-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.as-bubble { position: absolute; border-radius: 50% 50% 50% 4px;
  background: rgba(255,255,255,.22); animation: floatY 6s ease-in-out infinite; }
.as-bubble.b1 { width: 54px; height: 54px; top: 18%; left: 8%; animation-delay: 0s; }
.as-bubble.b2 { width: 30px; height: 30px; top: 62%; left: 14%; animation-delay: 1.2s; }
.as-bubble.b3 { width: 40px; height: 40px; top: 30%; left: 46%; animation-delay: .6s; }
.as-bubble.b4 { width: 22px; height: 22px; top: 74%; left: 40%; animation-delay: 2s; }
.as-bubble.b5 { width: 64px; height: 64px; top: 12%; right: 6%; animation-delay: .3s; }
.as-bubble.b6 { width: 28px; height: 28px; bottom: 12%; right: 18%; animation-delay: 1.6s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* スクロール誘導 */
.as-kv-scroll { position: absolute; bottom: 14px; left: 50%; z-index: 2;
  transform: translateX(-50%); }
.as-kv-scroll span { display: block; width: 2px; height: 34px; border-radius: 2px;
  background: rgba(255,255,255,.6); position: relative; overflow: hidden; }
.as-kv-scroll span::after { content: ''; position: absolute; left: 0; top: -34px;
  width: 100%; height: 34px; background: #fff; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { top: -34px; } 60%,100% { top: 34px; } }

/* スクロールイン(図版は左右から) */
.as-anim { opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.as-anim.in { opacity: 1; transform: none; }
.as-column.as-anim .as-column-visual { transition: transform .8s var(--ease); }
.as-column.as-anim:not(.in) .as-column-visual { transform: translateX(-30px); }
.as-column.type-reverse.as-anim:not(.in) .as-column-visual { transform: translateX(30px); }

@media (prefers-reduced-motion: reduce) {
  .as-tile, .as-anim, .as-bubble, .as-kv-title .en .ch, .as-kv-scroll span::after {
    opacity: 1 !important; transform: none !important; animation: none !important;
    transition: none !important; }
}

.as-body { max-width: 1190px; margin: 0 auto; padding: var(--sp-10) var(--sp-5) 0; }
.as-section { margin-bottom: clamp(56px, 9vw, 96px); }

/* EN大見出し+JP小見出し */
.as-sectitle { text-align: center; margin-bottom: var(--sp-8); }
.as-sectitle .en { display: block; font-size: var(--fs-xs); letter-spacing: .16em;
  font-weight: 700; letter-spacing: .06em; color: var(--ink-900); line-height: 1.1; }
.as-sectitle .jp { display: block; font-size: clamp(20px, 3vw, 30px); font-weight: 700;
  color: var(--amber-700); margin-top: 6px; letter-spacing: .04em; }

/* ジグザグ2カラム */
.as-column { display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px); align-items: center;
  margin-bottom: clamp(32px, 6vw, 64px); }
.as-column.type-reverse .as-column-visual { order: 2; }
.as-column-text .title { font-size: clamp(18px, 2.6vw, 24px); font-weight: 700;
  margin-bottom: var(--sp-3); }
.as-column-text .text { font-size: var(--fs-base); color: var(--ink-600); line-height: 1.9; }
.as-column-visual { display: flex; justify-content: center; }
/* FEATUREカード */
.as-features { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.as-feature { background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: var(--sp-6); position: relative; }
.as-feature-no { font-size: var(--fs-xs); font-weight: 700; color: var(--amber-700);
  letter-spacing: .1em; }
.as-feature .title .en { display: block; font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .06em; color: var(--ink-400); margin-top: 6px; }
.as-feature .title .jp { display: block; font-size: 17px; font-weight: 700;
  margin: 2px 0 var(--sp-2); }
.as-feature .text { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.85; }

/* 3ステップ */
.as-steps { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
  counter-reset: step; }
.as-step { text-align: center; padding: var(--sp-4); }
.as-step-no { display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-full); background: var(--amber-500);
  color: #fff; font-weight: 700; font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.as-step h4 { font-size: var(--fs-md); margin-bottom: 4px; }
.as-step p { font-size: var(--fs-sm); color: var(--ink-600); }

/* 対象者 */
.as-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.as-aud { background: var(--paper); border: 1px solid var(--border);
  border-radius: 14px; padding: var(--sp-5); }
.as-aud h4 { font-size: var(--fs-md); color: var(--amber-700); margin-bottom: var(--sp-1); }
.as-aud p { font-size: var(--fs-sm); color: var(--ink-600); }
.as-more { text-align: center; margin-top: var(--sp-5); font-weight: 700; }
.as-more a { color: var(--amber-700); text-decoration: none; }

/* DOWNLOAD相当のCTAバンド */
.as-download { background: var(--amber-500); margin-top: clamp(56px, 9vw, 96px);
  padding: clamp(56px, 9vw, 96px) var(--sp-5); text-align: center; }
.as-download-title .en { display: block; font-size: var(--fs-sm); letter-spacing: .18em;
  font-weight: 700; color: #fff; letter-spacing: .06em;
  text-shadow: 0 2px 4px rgba(120, 80, 0, .3); }
.as-download-title .jp { display: block; font-size: clamp(24px, 4.5vw, 40px); font-weight: 700;
  color: #fff; margin: var(--sp-2) 0 var(--sp-5); }
.as-download .line-cta-lg { background: #fff; color: var(--line-700); }
.as-download .line-cta-lg:hover { background: var(--paper-hover); }
.as-download .line-cta-icon { background: rgba(6,199,85,.15); color: var(--line-700); }

/* アニメーションSVG図版 */
.as-illust-img { width: 100%; max-width: 340px; height: auto;
  border-radius: 20px; display: block; }

/* ===== HELLO CYCLING参考: 動くボタン+EN見出し+追従CTA ===== */
/* セクション見出しにEN大文字 */
.section-headings { display: flex; flex-direction: column; }
.section-en { font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .16em; color: var(--ink-400); line-height: 1; }
.section-en .ch { display: inline-block; animation: chDrop .5s var(--ease) backwards; }
.section-head h2 { font-size: clamp(20px, 2.6vw, 28px); color: var(--ink-900); margin: 4px 0 0;
  letter-spacing: -.01em; }
.section-sub { margin-top: 4px; }

/* READ MORE ボタン(矢印+下線スイープ) */
.c-btn { display: inline-flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--ink-900); width: fit-content; }
.c-btn-content { display: inline-flex; align-items: center; gap: 10px; }
.c-btn-text { font-size: var(--fs-base); font-weight: 700; }
.c-btn-en { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .14em;
  color: var(--ink-400); }
.c-btn-arrow svg { width: 24px; height: 7px; overflow: visible; }
.c-btn-arrow svg path { fill: none; stroke: var(--amber-500); stroke-width: 1.4;
  transition: transform .3s var(--ease); transform: translateX(0); }
.c-btn:hover .c-btn-arrow svg path { transform: translateX(6px); }
.c-btn-line { display: block; height: 2px; background: var(--border);
  border-radius: 2px; overflow: hidden; max-width: 220px; }
.c-btn-line-color { display: block; height: 100%; width: 100%;
  background: var(--amber-500); transform: translateX(-101%);
  transition: transform .4s var(--ease); }
.c-btn:hover .c-btn-line-color { transform: translateX(0); }

/* 追従 PAGE TOP ボタン */
.c-pagetop { position: fixed; right: 18px; bottom: 22px; z-index: 55;
  width: 46px; height: 46px; border-radius: var(--r-full); background: var(--ink-900);
  color: #fff; border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; }
.c-pagetop.show { opacity: 1; transform: none; }
.c-pagetop:hover { background: var(--amber-500); }
.c-pagetop svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .section-en .ch, .c-btn-arrow svg path, .c-btn-line-color, .c-pagetop {
    animation: none !important; transition: none !important; }
}

/* 都道府県詳細ページの導入議員リスト(ポップアップのカードを流用) */
.legis-list { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-3); }
.legis-list .pd-legis { margin: 0; padding: var(--sp-3);
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }

/* デモ表示バナー: 最上部に全幅で固定。ヘッダーはこの下に積む(JSで高さ同期) */
.demo-banner { background: var(--ink-900); color: #fff; text-align: center;
  font-size: var(--fs-sm); padding: 9px var(--sp-5);
  position: sticky; top: 0; z-index: 61;
  display: flex; gap: var(--sp-1) var(--sp-2); align-items: center;
  justify-content: center; flex-wrap: wrap; }
.demo-banner strong { color: var(--amber-300); }
.demo-banner a { color: #fff; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; }

/* 都道府県詳細ヒーロー: 左に見出し+KPI、右に日本シルエット(対象県を強調) */
.pref-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; max-width: 1190px;
  gap: clamp(20px, 4vw, 56px); align-items: center; text-align: left;
  max-width: 1180px; }
.pref-hero-text { min-width: 0; }
.pref-hero .breadcrumb { margin: 0 0 var(--sp-2); }
.pref-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: var(--sp-4); }
.pref-hero-kpis { max-width: 560px; }
/* 日本シルエット(geolonia, MIT)。対象県以外は淡色、対象県はアンバー */
.pref-silhouette { display: flex; justify-content: center; }
.pref-silhouette svg { width: 100%; height: auto; max-height: 64vh; display: block;
  filter: drop-shadow(0 8px 22px rgba(120, 80, 0, .12)); }
.pref-silhouette svg [data-code] { fill: #e7e7e4; stroke: #fff; stroke-width: .8;
  transition: fill .4s var(--ease); }
.pref-silhouette svg title { display: none; }
.pref-silhouette svg line, .pref-silhouette svg polyline { display: none; }
@media (max-width: 760px) {
  .pref-hero-inner { grid-template-columns: 1fr; }
  .pref-silhouette { order: -1; }
  .pref-silhouette svg { max-height: 38vh; }
}

/* ヒーロー統計を少し大きく */
.hero-band .hs-value { font-size: clamp(20px, 2.2vw, 26px); }
.hero-band .hs-label { font-size: var(--fs-xs); }


/* ホーム ヒーロー(縦積み): マップは正方形・中央寄せ(.hero-band 側で定義) */
/* 法務ページ(プライバシーポリシー等) */
.legal { max-width: 820px; margin: 0 auto; }
.legal > h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: var(--sp-1); }
.legal-updated { font-size: var(--fs-xs); color: var(--ink-400); margin-bottom: var(--sp-6); }
.legal-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-4); }
.legal-card h2 { font-size: 17px; margin: 0 0 var(--sp-3); }
.legal-card p, .legal-card li { font-size: var(--fs-base); color: var(--ink-700); line-height: 1.9; }
.legal-card ul { padding-left: 1.4em; margin: var(--sp-2) 0; }
.legal-card dl { margin: var(--sp-2) 0; }
.legal-card dt { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-900); }
.legal-card dd { margin: 0 0 var(--sp-2); font-size: var(--fs-base); }
.legal-card a { color: var(--amber-700); }
.legal-card .legal-note { font-size: 12.5px; color: var(--ink-400); }

/* 平リンクのホバー補完: カード/チップ群とポインタ時のアフォーダンスを統一(B22) */
.kpi-link:hover, .breadcrumb a:hover, .ops-nav a:hover,
.leader-theme:hover, .rank-table a:hover { color: var(--amber-700); }
