/* manapick politics common.css
   色変数・フォント・共通部品のみ。ブレークポイント依存の指定は pc.css / sp.css に置く。
   色の HEX はこのファイルでだけ定義する（許可リスト）。 */

:root {
  --brand: #6d28d9; /* 基調：すみれバイオレット */
  --brand-dark: #5b21b6; /* 濃：リンク・強調 */
  --brand-pale: #f5f3ff; /* 淡：背景専用 */
  --brand-dm: #a78bfa; /* ダークモード用アクセント（登録のみ） */
  --ink: #262032; /* 本文（紫の色相を含むバイオレットグレー） */
  --ink-sub: #554e68;
  --line: #ddd6fe;
  --line-plain: #e6e3ef;
  --paper: #ffffff;
  --paper-tint: #faf9fc; /* 紫寄りのオフホワイト（背景専用） */
  --ink-on-dark: #d9d4e6; /* 濃色面の上の補助文字 */
  --chip-neutral: #3c364c;
  --seat-fill: #3c364c; /* 政党の図解・グラフには紫を使わない */
  --seat-rest: #e6e3ef;
  --diagram-a: #38334e;
  --diagram-b: #0f766e;
  --diagram-c: #b45309;
  --diagram-d: #716b84; /* 階層図の最下段（告示）用グレー */
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  line-break: strict;
  word-break: auto-phrase; /* 文節単位で改行する（未対応ブラウザでは通常の改行にフォールバック） */
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.mark {
  display: block;
}

.meta {
  font-size: 0.72rem;
}
.label {
  font-size: 0.78rem;
}
.small {
  font-size: 0.85rem;
}

/* ヘッダー */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--brand);
  position: relative;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark {
  color: var(--brand);
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.brand-name {
  font-weight: 900;
  font-size: 1.12rem;
  white-space: nowrap;
}
.brand-tagline {
  font-size: 0.72rem;
  color: var(--ink-sub);
  white-space: nowrap;
}
.global-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 2px;
  white-space: nowrap;
}
.global-nav a.is-current {
  color: var(--brand-dark);
  border-bottom: 3px solid var(--brand);
}
.menu-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line-plain);
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.menu-button-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-button-lines span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* ドロワーメニュー */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38, 32, 50, 0.45);
  z-index: 60;
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 84vw;
  height: 100%;
  overflow-y: auto;
  background: var(--paper);
  padding: 16px 20px 32px;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.drawer-title {
  font-weight: 900;
}
.drawer-close {
  background: var(--brand-pale);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--brand-dark);
}
.drawer-section {
  border-top: 1px solid var(--line-plain);
  padding: 12px 0 4px;
}
.drawer-heading {
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 6px;
}
.drawer-section a,
.drawer-network-current {
  display: block;
  padding: 8px 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.drawer-section a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: var(--brand-dark);
}

/* ボトムナビ（SPのみ表示。表示制御は sp.css / pc.css） */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 2px solid var(--brand);
}
.bottom-nav a,
.bottom-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* パンくず */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--ink-sub);
}

/* 結論カード（記事冒頭のリードブロック。大きな第一文で結論を先に渡す） */
.conclusion {
  background: var(--brand-pale);
  border-left: 6px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 22px 24px;
  margin: 28px 0 34px;
}
.conclusion-label {
  font-weight: 900;
  color: var(--brand-dark);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.conclusion-body {
  font-weight: 700;
  font-size: 1.13rem;
  line-height: 1.85;
}

/* 折りたたみ */
.fold {
  border: 1px solid var(--line-plain);
  border-radius: 10px;
  margin: 12px 0;
  background: var(--paper);
}
.fold summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 16px;
  min-height: 44px;
}
.fold-body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line-plain);
}
/* 折りたたみの第2の型：枠と角丸を外し、上下の罫だけで区切る（法律・事典向け） */
.fold.plain {
  border: none;
  border-top: 1px solid var(--line-plain);
  border-bottom: 1px solid var(--line-plain);
  border-radius: 0;
}
.fold.plain summary {
  padding-left: 4px;
  padding-right: 4px;
}
.fold.plain .fold-body {
  padding-left: 4px;
  padding-right: 4px;
}

/* 出典 */
.sources {
  margin-top: 32px;
  border-top: 1px solid var(--line-plain);
  padding-top: 14px;
  font-size: 0.85rem;
}
.sources-title {
  font-size: 1rem;
  margin-bottom: 6px;
}
.sources ul {
  margin: 0;
  padding-left: 1.2em;
}
.sources-checked {
  color: var(--ink-sub);
  margin-top: 6px;
}
.source-method {
  color: var(--ink-sub);
}

/* 法律記事の定型表記 */
.legal-notice {
  margin-top: 28px;
  background: var(--paper-tint);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
}
.legal-notice ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

/* 共有ボタン */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.share-head {
  margin: 14px 0 4px;
}
.share-tail {
  margin: 26px 0 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line-plain);
}
.share-label {
  font-weight: 800;
  font-size: 0.85rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--brand);
  white-space: nowrap;
}
.btn-solid {
  background: var(--brand);
  color: #fff;
}
.btn-outline {
  background: var(--paper);
  color: var(--brand-dark);
}
/* ヒーローの副リンク：塗りボタンと並ぶ定型ペアにせず、テキストリンクで添える */
.hero-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 4px;
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  white-space: nowrap;
}

/* 検索 */
.searchbox-label {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.searchbox-field {
  position: relative;
}
.searchbox input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.searchbox-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line-plain);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(38, 32, 50, 0.18);
}
.searchbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.searchbox-kind {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: var(--brand-pale);
  border-radius: 6px;
  padding: 3px 8px;
}
.searchbox-title {
  font-weight: 700;
}

/* network 帯（全ページの締め。濃色の全面帯） */
.network-band {
  background: var(--brand-dark);
  border-top: 2px solid var(--brand);
  margin-top: 0;
}
.band-title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
}
.band-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: #fff;
  min-height: 64px;
  justify-content: center;
}
.band-item-name {
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.4;
}
.band-item-role {
  font-size: 0.72rem;
  line-height: 1.4;
}
.band-item.is-current {
  outline: 3px solid var(--paper);
  outline-offset: -3px;
}

/* フッター */
.site-footer {
  background: var(--ink);
  color: var(--paper-tint);
}
.site-footer a {
  color: #e9d5ff;
}
.footer-name {
  font-weight: 900;
  font-size: 1.05rem;
}
.footer-tagline {
  font-size: 0.72rem;
  color: var(--ink-on-dark);
}
.footer-mark {
  color: var(--brand-dm);
  flex: none;
}
.footer-notice {
  font-size: 0.85rem;
  margin: 14px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.85rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--ink-on-dark);
  margin-top: 14px;
}

/* メルマガ登録フォーム（Kit） */
.newsletter-title {
  font-weight: 900;
  font-size: 1rem;
  margin: 0 0 6px;
}
.newsletter-text {
  font-size: 0.85rem;
  margin: 0 0 10px;
}
.newsletter-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.newsletter-row {
  display: flex;
  gap: 8px;
}
.newsletter-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.newsletter-row button {
  font: inherit;
  font-weight: 800;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: var(--paper);
  cursor: pointer;
}
.newsletter-note {
  font-size: 0.72rem;
  margin: 8px 0 0;
}
.newsletter-footer {
  max-width: 560px;
  margin: 20px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.newsletter-footer .newsletter-text {
  color: var(--ink-on-dark);
}
.newsletter-footer .newsletter-note {
  color: var(--ink-on-dark);
}
.newsletter-article {
  margin-top: 26px;
  padding: 16px;
  background: var(--brand-pale);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.newsletter-article .newsletter-text {
  color: var(--ink-sub);
}
.newsletter-article .newsletter-note {
  color: var(--ink-sub);
}

/* 広告スロット（adsEnabled が false の間は描画されない） */
.ad-slot {
  margin: 26px 0;
}

/* 記事の基本 */
.article h1 {
  font-size: 1.9rem;
  font-weight: 900;
  margin: 10px 0 6px;
  text-wrap: balance;
}
.article h2:not(.sources-title) {
  font-size: 1.32rem;
  margin: 46px 0 14px;
  padding: 10px 14px;
  background: var(--brand-pale);
  border-left: 6px solid var(--brand);
  border-radius: 0 8px 8px 0;
}
.article p + p {
  margin-top: 12px;
}
.lead {
  font-size: 1.02rem;
}
.article .lead {
  font-size: 1.07rem;
  line-height: 1.9;
}
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.spec th,
table.spec td {
  border: 1px solid var(--line-plain);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.spec th {
  background: var(--brand-pale);
  font-weight: 800;
  white-space: nowrap;
}
/* 政党比較の表では、基調色の面を表の背景に使わない（中立性の運用条件）。見出しセルは無彩色にそろえる */
/* 表の第2の型（plain）も同じ無彩色見出しを使う（法律・事典向け） */
table.spec.compare th,
table.spec.plain th {
  background: var(--seat-rest);
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 政党ページ */
.party-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--chip-neutral);
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  flex: none;
}
.seat-bar {
  display: flex;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--seat-rest);
  margin-top: 6px;
}
.seat-bar-fill {
  background: var(--seat-fill);
}
.stat-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.stat-box {
  border: 1px solid var(--line-plain);
  border-radius: 10px;
  padding: 14px 16px;
}
.stat-box .stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-sub);
}
.stat-box .stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.4;
}
.stat-box .stat-note {
  font-size: 0.72rem;
  color: var(--ink-sub);
}

/* 大きな数字＋小さな出典・時点のペア様式（数字単独では置かず、出典を同じブロックに必ず併記する） */
.bignum {
  margin: 26px 0;
}
.bignum-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-sub);
}
.bignum-value {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.35;
}
.bignum-source {
  font-size: 0.72rem;
  color: var(--ink-sub);
  margin-top: 2px;
}

/* 図解（HTML積み重ね型） */
.layer-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 26px 0;
}
.layer-box {
  border-radius: 10px;
  padding: 18px 20px;
  color: #fff;
}
.layer-box h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}
.layer-box p {
  font-size: 0.85rem;
  line-height: 1.7;
}
.layer-arrow {
  text-align: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--brand-dark);
  line-height: 1.2;
  padding: 5px 0;
}
.layer-1 {
  background: var(--diagram-c);
}
.layer-2 {
  background: var(--diagram-b);
}
.layer-3 {
  background: var(--diagram-a);
}

/* 図解（フロー型）：全周の枠で囲うカード格子ではなく、上端の帯と矢印で「つながった流れ」に見せる */
.flow-diagram {
  margin: 26px 0;
}
.flow-box {
  border: 1px solid var(--line-plain);
  border-top: 4px solid var(--diagram-a);
  border-radius: 4px;
  padding: 16px 18px;
  background: var(--paper);
}
.flow-box .flow-title {
  font-weight: 900;
  font-size: 1.06rem;
}
.flow-box .flow-note {
  font-size: 0.85rem;
  color: var(--ink-sub);
}
.flow-box.is-result {
  border-top-color: var(--brand);
  background: var(--brand-pale);
}
.flow-arrow {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--brand-dark);
  text-align: center;
  line-height: 1.3;
}
figure.diagram {
  margin: 26px 0;
  border: 1px solid var(--line-plain);
  border-radius: 12px;
  background: var(--paper-tint);
  padding: 18px;
}
figure.diagram figcaption {
  font-size: 0.78rem;
  color: var(--ink-sub);
  margin-top: 10px;
}
figure.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

/* トップページ */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-title {
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero-tagline {
  font-weight: 800;
  color: var(--brand-dark);
  font-size: 1.15rem;
  margin-top: 8px;
}
.hero-lead {
  margin-top: 12px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.fact-strip strong {
  font-size: 1.2rem;
  font-weight: 900;
}
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry-list li {
  border-top: 1px solid var(--line-plain);
}
.entry-list a {
  display: block;
  padding: 14px 4px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.entry-list .entry-title {
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.entry-list .entry-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-sub);
  margin-top: 2px;
}
.entry-soon {
  display: block;
  padding: 14px 4px;
  color: var(--ink-sub);
}
.soon-tag {
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid var(--line-plain);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 8px;
  white-space: nowrap;
}
/* 二層見出しの英語ラベル（素テキストのみ。枠・背景・角丸は付けない） */
.h-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brand-dark);
  margin-bottom: 3px;
}

/* ============================================================
   構成レベルのデザイン再設計（2026-11-15）
   規則の正本は docs/build-notes.md「構成レベルのデザイン再設計」。
   色は単色の紫のみ。グラデーション・発光・ピル・ホバー浮きは使わない。
   ============================================================ */

/* ヒーローの図版ブロック（単色の面＋線画の天秤。寸法は pc/sp の aspect-ratio で固定） */
.hero-plate {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  border-radius: 18px;
  color: var(--line);
}
.hero-plate-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.45;
}
.hero-plate-art {
  position: absolute;
  left: 9%;
  top: 7%;
  width: 82%;
  height: 74%;
}
.hero-plate-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  background: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--line);
}

/* 根拠の数字の帯（トップ専用。数字はサイト全体の実数だけ・出典と数え方を併記） */
.evidence-band {
  background: var(--brand-pale);
  border-bottom: 1px solid var(--line);
}
.evidence-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.evidence-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  margin-bottom: 18px;
}
.evidence-grid {
  display: grid;
  gap: 22px 28px;
}
.ev-item {
  border-top: 3px solid var(--brand);
  padding-top: 12px;
}
.ev-value {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
}
.ev-value-long {
  font-size: 1.45rem;
  line-height: 1.45;
  padding-top: 0.5rem;
}
.ev-unit {
  font-size: 1rem;
  font-weight: 800;
  margin-left: 5px;
}
.ev-name {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 6px;
}
.ev-source {
  font-size: 0.72rem;
  color: var(--ink-sub);
  line-height: 1.6;
  margin-top: 4px;
}

/* 全面帯（トップのセクション交互配置。間隔は帯のパディングが担う） */
.band-tint {
  background: var(--brand-pale);
}
.band .container {
  padding-top: 0;
  padding-bottom: 0;
}
.band .section-block {
  margin-top: 0;
}

/* 編集型リスト（先頭の入口だけ大きなパネルにし、残りは罫線の行のまま） */
.editorial .entry-list li:first-child {
  border-top: none;
}
.editorial .entry-list li:first-child > a {
  background: var(--paper-tint);
  border: 1px solid var(--line-plain);
  border-radius: 12px;
  padding: 18px 18px 16px;
  margin: 12px 0 8px;
}
.editorial .entry-list li:first-child .entry-title {
  font-size: 1.22rem;
}
.editorial .entry-list li:first-child .entry-desc {
  font-size: 0.92rem;
  margin-top: 4px;
}

/* 強調エントリ（位置はそのまま、面で格上げする入口） */
.entry-list li.entry-feature {
  border-top: none;
}
.entry-list li.entry-feature > a {
  background: var(--brand-pale);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-top: 8px;
}
.entry-list li.entry-feature .entry-title {
  font-size: 1.15rem;
}

/* 政党名簿の連番（全党に同じ様式・同じ大きさで付ける。順序は公式の名簿の記載順） */
.roster-list {
  counter-reset: roster;
}
.roster-list li {
  counter-increment: roster;
}
.roster-list a {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}
.roster-list a::before {
  content: counter(roster, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--line);
}
.roster-list .entry-desc {
  grid-column: 2;
}

/* ハブのカテゴリ（大きな連番ゴースト数字＋二層見出し） */
.hub {
  counter-reset: hubcat;
}
.hub-cat {
  counter-increment: hubcat;
  margin-top: 44px;
}
.hub-cat > h2::before {
  content: counter(hubcat, decimal-leading-zero);
  display: block;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--line);
  margin-bottom: 2px;
}

/* 用語集の先頭項目（パネル様式） */
.term-list .term-entry:first-child {
  background: var(--brand-pale);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 10px;
}
.term-list .term-entry:first-child .term-name {
  font-size: 1.45rem;
}

/* 政党比較：合計の数字を濃色の帯パネルに、表は横罫のみの様式を強める */
.bignum-band {
  background: var(--ink);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 30px 0 26px;
}
.bignum-band .bignum-label {
  color: var(--ink-on-dark);
}
.bignum-band .bignum-value {
  color: #fff;
  font-size: 2.6rem;
}
.bignum-band .bignum-source {
  color: var(--ink-on-dark);
}
table.spec.compare th,
table.spec.compare td {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--line-plain);
  padding: 14px 12px;
}
table.spec.compare thead th {
  background: var(--paper-tint);
  border-bottom: 2px solid var(--ink);
}
table.spec.compare tbody th {
  background: var(--paper);
}
table.spec.compare tbody tr:last-child th,
table.spec.compare tbody tr:last-child td {
  border-top: 2px solid var(--ink);
  border-bottom: none;
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.section-lead {
  color: var(--ink-sub);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ハブページ（一覧・用語集）の見出し */
.page-title {
  font-size: 1.9rem;
  font-weight: 900;
  margin: 10px 0 6px;
  text-wrap: balance;
}

/* たとえ話ボックス（全ページ型で体裁を統一する。ラベルで「たとえ話」と分かるようにする） */
.analogy {
  border: 1px dashed var(--brand);
  border-radius: 10px;
  background: var(--paper);
  padding: 14px 16px;
  margin: 22px 0;
}
/* たとえ話の第2の型：枠と角丸を外し、上下の罫だけで区切る（法律・事典向け） */
.analogy.flat {
  border: none;
  border-top: 2px solid var(--line);
  border-bottom: 1px solid var(--line-plain);
  border-radius: 0;
  padding-left: 4px;
  padding-right: 4px;
}
.analogy-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: var(--brand-pale);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

/* 政党の対象名簿の注記 */
.roster-note {
  font-size: 0.85rem;
  color: var(--ink-sub);
  margin-top: 10px;
}

/* 3分クイズ */
.quiz-note {
  font-size: 0.85rem;
  color: var(--ink-sub);
  margin-top: 10px;
}
.quiz-set-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.quiz-set-card {
  border: 1px solid var(--line-plain);
  border-top: 4px solid var(--brand);
  border-radius: 4px;
  padding: 18px;
  background: var(--paper);
}
.quiz-set-title {
  font-size: 1.25rem;
}
.quiz-set-meta {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-top: 4px;
}
.quiz-set-desc {
  font-size: 0.85rem;
  color: var(--ink-sub);
  margin: 8px 0 14px;
}
.quiz-play {
  margin-top: 22px;
  max-width: 720px;
}
.quiz-progress-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-sub);
}
.quiz-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--seat-rest);
  margin-top: 6px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--brand);
}
.quiz-question {
  font-size: 1.3rem;
  margin: 20px 0 16px;
  text-wrap: balance;
}
.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  border: 2px solid var(--line-plain);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.quiz-choice:disabled {
  cursor: default;
}
.quiz-choice-text {
  flex: 1;
  min-width: 0;
}
.quiz-choice-tag {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.quiz-choice.is-correct {
  border-color: var(--diagram-b);
}
.quiz-choice.is-correct .quiz-choice-tag {
  background: var(--diagram-b);
  color: #fff;
}
.quiz-choice.is-wrong {
  border-color: var(--diagram-c);
}
.quiz-choice.is-wrong .quiz-choice-tag {
  background: var(--diagram-c);
  color: #fff;
}
.quiz-feedback {
  margin-top: 18px;
  background: var(--paper-tint);
  border-radius: 10px;
  padding: 16px 18px;
}
.quiz-feedback-title {
  font-weight: 900;
  margin-bottom: 6px;
}
.quiz-feedback-link {
  margin-top: 10px;
  font-size: 0.85rem;
}
.quiz-next-row {
  margin-top: 14px;
}
.quiz-result {
  margin-top: 22px;
  max-width: 720px;
  background: var(--brand-pale);
  border-left: 5px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 20px;
}
.quiz-result-set {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
}
.quiz-score {
  font-size: 1.3rem;
  margin-top: 8px;
}
.quiz-score strong {
  font-size: 1.9rem;
  font-weight: 900;
}
.quiz-result-comment {
  margin-top: 8px;
}
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.quiz-sources-title {
  margin-top: 44px;
}

/* 用語集 */
.term-entry {
  border-top: 1px solid var(--line-plain);
  padding: 14px 4px;
}
.term-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.term-src {
  font-size: 0.85rem;
  color: var(--ink-sub);
  margin-top: 4px;
}
