/* 配色・フォント変数は koyaku-redesign.css が供給。
   既存セレクタ（特に renderDetail() の出力）の互換を保つため、未定義になる
   旧変数（--accent/--line/--muted 等）を新変数へエイリアスする。
   詳細ページHTMLが新クラスへ移行し終えたら、これらは段階的に削除する。 */
:root {
  --paper-strong: var(--paper);
  --accent: var(--akane);
  --accent-dark: #00582c;              /* 常磐の濃。指示書の hover/濃 と整合 */
  --accent-soft: #e7f1ea;              /* 常磐の極淡（旧 --c3-akane-soft の役割） */
  --line: var(--border);
  --line-strong: #c9c2b0;              /* 罫線の締めた濃淡（koyaku-redesign では未定義） */
  --muted: var(--ink-3);
  --gold: #a77828;
  --blue: #2d6a8e;
  --red: var(--neg);
  /* 旧 c3-* も後方互換のため通す（残存箇所がある場合の保険） */
  --c3-paper: var(--paper);
  --c3-bg: var(--bg);
  --c3-bg-soft: var(--bg-soft);
  --c3-ink: var(--ink);
  --c3-ink-2: var(--ink-2);
  --c3-ink-3: var(--ink-3);
  --c3-border: var(--border);
  --c3-border-soft: var(--border-soft);
  --c3-akane: var(--akane);
  --c3-accent: var(--akane);
  --c3-serif: var(--serif);
  --c3-sans: var(--sans);
  --c3-mono: var(--mono);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* body の color/background/font-family/line-height は koyaku-redesign.css に委譲。
   ここでは詳細ページ用の上書きのみ。 */
a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

/* UIクローム（フォーム・ボタン・ナビ・絞り込みラベル）はゴシック。
   見出し・本文・数値は body 継承の明朝(--c3-serif)のまま。 */
input,
select,
label,
.read-link,
.page-links a,
.primary-action,
.secondary-action {
  font-family: var(--c3-sans);
}

.page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 18px 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.brand span:last-child {
  max-width: 22em;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--accent-dark);
  font-size: 14px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.top-nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 12px;
  padding: 62px 0 34px;
  border-bottom: 1px solid var(--line);
}

/* 旧「EN / 日本語」連結は廃止。静的セクションは c3-kicker-row へ移行済み。
   ここは JS 生成（詳細ページ）に残る .section-kicker 用の互換スタイル:
   英字=Mono常磐(.18em UPPER)、日本語=Sans ink-3、区切りは中黒。 */
.eyebrow,
.section-kicker {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-family: var(--c3-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c3-accent);
}

.eyebrow span:first-child,
.section-kicker span:first-child {
  color: var(--c3-ink-3);
  opacity: 0.7;
}

.eyebrow span + span,
.section-kicker span + span {
  font-family: var(--c3-sans);
  color: var(--c3-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.eyebrow span + span::before,
.section-kicker span + span::before {
  content: "·";
  margin: 0 7px;
  color: var(--line-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.summary div {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}

.summary div:last-child {
  border-right: 0;
}

.summary span,
.spotlight-panel span,
.card-side span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.summary span b,
.spotlight-panel span b,
.card-side span b {
  display: block;
  font-family: var(--c3-mono);
  color: var(--c3-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary span small,
.spotlight-panel span small,
.card-side span small {
  display: block;
  margin-top: 2px;
  font-family: var(--c3-sans);
  color: var(--c3-ink-3);
  font-size: 11px;
  font-weight: 600;
}

.summary strong {
  display: block;
  margin-top: 6px;
  font-family: var(--c3-serif);
  color: var(--c3-ink);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

/* .spotlight のカード見た目は koyaku-redesign.css に委譲（旧 grid/padding 定義は撤去）。
   ここで再定義すると横パディングが 0 になり中身が左端に張り付くため置かない。 */

.spotlight h2,
.section-heading h2,
.list-header h2,
.about h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
}

.spotlight p:not(.section-kicker),
.about p:not(.section-kicker) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.spotlight-panel {
  /* 枠線・地色・角丸は .c3-card-flagged（border-top 3px 常磐）に委譲 */
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
}

.spotlight-panel strong {
  font-family: var(--c3-serif);
  color: var(--c3-ink);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.spotlight-panel small {
  color: var(--muted);
  line-height: 1.5;
}

.read-as {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 10px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.profile-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.profile-signals span {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.prefecture-section,
.about {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
  max-width: 920px;
  font-size: clamp(34px, 7vw, 68px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.about-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.about-card h3 {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.about-card h3 span {
  font-family: var(--c3-mono);
  color: var(--c3-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 記号グリフ（▦ ⇄ ✦ ◇）= 明朝・常磐・26px */
.about-card h3 .glyph {
  font-family: var(--c3-serif);
  color: var(--c3-accent);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--accent-dark);
}

.text-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.text-section h2 {
  margin: 6px 0 12px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
}

.lead-copy,
.text-section > p:not(.section-kicker) {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.85;
}

.note-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  color: var(--muted);
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.prefecture-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 7px;
}

.prefecture-tile {
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.prefecture-tile:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.prefecture-tile span {
  font-size: 12px;
  font-weight: 900;
}

.prefecture-tile strong {
  align-self: end;
  color: var(--accent);
  font-size: 15px;
}

.controls {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
  gap: 10px;
  padding: 22px 0 16px;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

/* 旧 .controls 配下の素 input/select 用ベーススタイルは削除。
   新デザインの .searchbox input / .sel は koyaku-redesign.css 側で完結している。 */
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 念のため：.filters 内の select/input が外部スタイルで膨らまないよう保険 */
.filters .sel {
  width: auto;
}
.filters .searchbox input {
  min-height: 36px;
}

.list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line);
}

.list-header h2 {
  margin-top: 4px;
}

.list-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.municipality-list {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.municipality-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.card-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.card-title-line p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.card-title-line span,
.pledge-card-head span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.municipality-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.mayor-line {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 5px;
}

.card-side strong {
  font-family: var(--c3-serif);
  color: var(--accent);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.read-link {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 34px;
  margin-top: 6px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.limit-note,
.empty {
  padding: 18px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.detail-shell {
  padding: 30px 0;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.detail-hero {
  margin-top: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1;
}

.detail-hero p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.policy-profile {
  display: grid;
  gap: 18px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.profile-lead {
  display: grid;
  max-width: 880px;
  gap: 10px;
}

.profile-lead h3,
.risk-brief h3,
.pledge-section-head h3 {
  margin: 0;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.14;
}

.profile-lead p:last-child,
.pledge-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.profile-card {
  min-height: 210px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.72);
}

.profile-card span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card strong {
  display: block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 44px;
  line-height: 1;
}

.profile-card h4 {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.profile-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-card.earn strong {
  color: var(--gold);
}

.profile-card.risk {
  background: #fff8f4;
}

.profile-card.risk strong {
  color: var(--red);
}

.issue-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0 0;
}

.issue-board ul,
.risk-brief ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.issue-board li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.8;
}

.city-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.city-guide h3 {
  margin: 8px 0 0;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.2;
}

.city-guide p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.city-guide dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.city-guide dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.city-guide dt {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.city-guide dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.comparison-panel,
.similar-section {
  display: grid;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.comparison-head,
.similar-head {
  display: grid;
  max-width: 840px;
  gap: 8px;
}

.comparison-head h3,
.similar-head h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.18;
}

.comparison-head p:not(.section-kicker),
.similar-head p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.comparison-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1fr) 76px;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.comparison-row.is-strong {
  background: var(--accent-soft);
  border-radius: 10px;
  border-bottom-color: transparent;
  padding-left: 14px;
  padding-right: 14px;
  margin: 0 -14px;
}

.comparison-row.is-strong .diff {
  font-size: 20px;
}

.comparison-label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.comparison-label strong {
  font-size: 15px;
}

.comparison-label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.comparison-bars {
  display: grid;
  gap: 7px;
}

.bar-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: center;
}

.bar-line span {
  display: block;
  height: 9px;
  border-radius: 999px;
}

.bar-line.city span {
  background: var(--accent);
}

.bar-line.national span {
  background: var(--line-strong);
}

.bar-line b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.bar-line.city b {
  color: var(--ink);
}

.comparison-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: -2px;
}

.comparison-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.comparison-legend .lg i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.comparison-legend .city i {
  background: var(--accent);
}

.comparison-legend .national i {
  background: var(--line-strong);
}

.diff {
  justify-self: end;
  font-size: 17px;
  font-weight: 900;
}

.diff.positive {
  color: var(--accent-dark);
}

.diff.negative {
  color: var(--red);
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.similar-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 142px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.similar-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.similar-card span,
.similar-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.similar-card strong {
  font-size: 22px;
  line-height: 1.25;
}

.similar-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 0;
}

.similar-card em {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(26, 114, 68, 0.1);
  color: var(--accent-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

/* `.tag` ベース形状は詳細ページの `.tag.metric` だけに絞る。
   素の `.tag` を残すと、フッター `.brandfoot .tag`（テキスト行）にもピルが適用されて見た目が崩れる。 */
.detail-stats span,
.tag.metric,
.pledge-meta span,
.risk-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.depth-pill.deep,
.data-depth-note.deep h3 {
  color: #174c7a;
}

.depth-pill.standard,
.data-depth-note.standard h3 {
  color: var(--accent-dark);
}

.depth-pill.basic,
.data-depth-note.basic h3 {
  color: var(--gold);
}

.data-depth-note {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr) minmax(250px, 0.55fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.data-depth-note h3 {
  margin: 6px 0 0;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.12;
}

.data-depth-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.data-depth-note dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.data-depth-note dl div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.data-depth-note dl div:last-child {
  border-right: 0;
}

.data-depth-note dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.data-depth-note dd {
  margin: 4px 0 0;
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.risk-brief {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.risk-brief ul {
  border-color: #e5cfc8;
}

.risk-brief li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ead8d3;
}

.risk-brief a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.risk-brief span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.pledge-section {
  padding: 26px 0 8px;
  border-bottom: 1px solid var(--line);
}

.pledge-section-head {
  display: grid;
  max-width: 780px;
  gap: 8px;
  margin-bottom: 8px;
}

.pledge-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.pledge-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  scroll-margin-top: 18px;
}

.pledge-card.is-risk {
  background: linear-gradient(90deg, rgba(163, 74, 60, 0.06), transparent 42%);
}

.pledge-card-head,
.pledge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.confidence {
  color: var(--blue);
  background: #e8eef6;
}

.confidence.low {
  color: var(--gold);
  background: #f5ecdd;
}

.risk-badge {
  color: var(--red);
  background: #f7e6e1;
}

.pledge-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.pledge-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.pledge-subcategory,
.impact-label {
  font-size: 12px;
  font-weight: 900;
}

.pledge-subcategory {
  color: var(--accent-dark) !important;
}

.impact-label {
  margin-top: 12px !important;
  color: var(--ink) !important;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag.metric {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.tag.metric.negative {
  color: var(--red);
  background: #f7e6e1;
}

.tag.metric.positive {
  color: #247047;
  background: #e4f1e8;
}

.pledge-meta {
  margin-top: 12px;
}

.pledge-meta a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.loading {
  color: var(--muted);
}

@media (max-width: 900px) {
  .summary,
  .spotlight,
  .controls,
  .about-grid,
  .data-depth-note,
  .city-guide,
  .risk-brief,
  .issue-board,
  .comparison-row {
    grid-template-columns: 1fr 1fr;
  }

  .profile-grid,
  .similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prefecture-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 14px 14px 40px;
  }

  .site-header,
  .list-header,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .top-nav {
    gap: 12px;
  }

  .hero {
    padding-top: 40px;
  }

  .summary,
  .spotlight,
  .controls,
  .about-grid,
  .municipality-card,
  .data-depth-note,
  .data-depth-note dl,
  .city-guide,
  .city-guide dl div,
  .risk-brief,
  .risk-brief li,
  .issue-board,
  .profile-grid,
  .comparison-row,
  .similar-grid {
    grid-template-columns: 1fr;
  }

  .diff {
    justify-self: start;
  }

  .summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary div:last-child {
    border-bottom: 0;
  }

  .prefecture-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .card-side {
    justify-items: start;
  }

  .detail-shell {
    padding: 24px 0;
  }
}

/* ============================================================
   詳細ページ 可読性リフォーム（2026-06-04）
   市民向け：誰が・何を公約したかを最優先。内部用語は出さない。
   ============================================================ */

/* 市長名を読ませる（誰の公約かを明確化） */
.detail-hero p.who {
  color: var(--ink);
  font-size: 16px;
  letter-spacing: .02em;
}
.detail-hero p.who strong {
  font-weight: 700;
  font-size: 19px;
}

/* 公約セクションの見出しを本文と明確に差別化 */
.pledge-section-head h3 {
  font-family: var(--serif, "Noto Serif JP", serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0 0;
}
.pledge-section-head p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* 分野の小見出し */
.pledge-cat {
  font-family: var(--serif, "Noto Serif JP", serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark, #00582c);
  margin: 22px 0 2px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent, #1a7244);
  display: inline-block;
}

/* 公約カード：タイトルを主役に、本文をはっきり従に */
.pledge-card h3 {
  font-family: var(--serif, "Noto Serif JP", serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.pledge-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 7px 0 0;
}
.pledge-meta {
  margin-top: 12px;
  font-size: 12.5px;
}
.pledge-meta .prog {
  color: var(--accent-dark, #00582c);
  font-weight: 700;
}
.pledge-meta a {
  color: var(--accent, #1a7244);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── 詳細：一次情報で検証済みバッジ／出典 ── */
.verified-badge{
  display:inline-flex;align-items:baseline;gap:8px;margin:12px 0 0;
  font-family:"Noto Sans JP",sans-serif;font-size:13px;font-weight:700;
  color:#00582c;background:#e3f0e8;border:1px solid #1a7244;
  border-radius:999px;padding:5px 14px;
}
.verified-badge span{font-family:"JetBrains Mono",monospace;font-size:10px;font-weight:500;color:#3a342a;}
.verified-badge.lv-todo-badge{color:#8a5a00;background:#fbf3e2;border-color:#e3c98a;}
.verified-sources{margin-top:12px;font-size:12.5px;}
.verified-sources span{display:block;color:var(--muted);font-weight:700;margin-bottom:7px;}
.verified-sources a{display:inline-flex;align-items:center;gap:4px;margin:0 8px 8px 0;padding:6px 11px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--accent-dark);text-decoration:none;line-height:1.4;}
.verified-sources a:hover{border-color:var(--accent);background:var(--accent-soft);}

/* ── 市長の横顔（プロフィール） ── */
.mayor-profile{padding:18px 0 22px;border-bottom:1px solid var(--line);}
.mayor-profile dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 28px;margin:10px 0 0;}
@media(min-width:680px){.mayor-profile dl{grid-template-columns:repeat(3,minmax(0,1fr));}}
.mayor-profile dl div{display:flex;flex-direction:column;gap:2px;}
.mayor-profile dt{font-family:"Noto Sans JP",sans-serif;font-size:11px;color:var(--muted);}
.mayor-profile dd{margin:0;font-family:"Noto Serif JP",serif;font-size:16px;font-weight:600;color:var(--ink);}
.career-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;}
.career-tags span{font-family:"Noto Sans JP",sans-serif;font-size:11.5px;color:#00582c;background:#e3f0e8;border:1px solid #cfe3d7;border-radius:999px;padding:3px 11px;}

/* ── 公約の特徴文（リード）＋出典注記 ── */
.pledge-lead{font-family:"Noto Serif JP",serif;font-size:16px;font-weight:600;color:var(--ink);line-height:1.85;margin:6px 0 0;}
.src-note{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0 0;}

/* ── 「この街と市長」物語リード ── */
/* 結論バンド（メリハリの主役）— 白カード×特大数字×アクセント縦帯 */
.key-insight{display:flex;align-items:center;gap:22px;margin:22px 0 6px;padding:22px 26px;background:var(--paper);border:1px solid var(--line);border-left:6px solid var(--accent);border-radius:14px;}
.key-insight.less{border-left-color:var(--red);}
.key-insight .ki-num b{font-family:"Noto Serif JP",serif;font-size:56px;font-weight:700;line-height:.92;letter-spacing:-.01em;color:var(--accent-dark);white-space:nowrap;}
.key-insight.less .ki-num b{color:var(--red);}
.key-insight .ki-body{display:grid;gap:5px;min-width:0;}
.key-insight .ki-eyebrow{margin:0;font-family:var(--c3-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);}
.key-insight h3{margin:0;font-size:clamp(20px,2.6vw,26px);line-height:1.32;}
.key-insight .ki-sub{margin:0;color:var(--muted);font-size:13.5px;}
@media(max-width:640px){.key-insight{flex-direction:column;align-items:flex-start;gap:12px;padding:20px;}.key-insight .ki-num b{font-size:48px;}}

.story-lead{margin:20px 0 4px;padding:18px 0 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.story-lead p{margin:0;max-width:760px;font-family:"Noto Serif JP",serif;font-size:17px;line-height:2.0;color:var(--ink);letter-spacing:.01em;text-wrap:pretty;}
@media(min-width:680px){.story-lead p{font-size:18px;}}
