/* ==========================================================================
   Levumo Official Design System - Politician Strategy Site
   さいたま市議会 攻略データベース (seijika-koryaku-site)
   levumo.com 公式スタイル準拠・2カラム対応最新スタイルシート
   ========================================================================== */

:root {
  /* levumo.com 純正パレット */
  --paper: #FCFAF5;
  --panel: #F4EFE3;
  --panel-2: #F0E8D8;
  --ink: #171310;
  --ink-soft: #5B5449;
  --ink-faint: #8C8474;
  --accent: #B0281C;
  --accent-tint: #F4D4CB;
  --accent-ink: #FCFAF5;
  --line: #171310;
  --border-soft: #E3DCC9;
  --shadow: 4px 4px 0 var(--line);
  --shadow-sm: 2px 2px 0 var(--line);

  /* 適性ランクカラー */
  --g-s: #B0281C;
  --g-a: #C25E00;
  --g-b: #1E4E79;
  --g-c: #2D6A4F;
  --g-d: #6C757D;
  --g-e: #8C8474;

  font-size: 15px;
}

/* ※ダークモードによる黒背景化は完全排除（常にlevumoの明るい生成り紙地を維持） */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono {
  font-family: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
  letter-spacing: 0.02em;
}

/* ---------- levumo グローバルヘッダー ---------- */
/* ---------- levumo グローバルヘッダー & Gナビ ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  z-index: 100;
}
.site-header .in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}
.site-header a.logo-levumo {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-politics {
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
}

/* Gナビゲーション */
.gnav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 0 20px;
  list-style: none;
  padding: 0;
}
.gnav-item {
  position: relative;
}
.gnav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: background .12s ease;
}
.gnav-link:hover {
  background: var(--panel);
  text-decoration: none;
}
.gnav-badge {
  font-size: 0.68rem;
  background: var(--accent);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 800;
  margin-left: 2px;
}
.gnav-arrow {
  font-size: 0.65rem;
  color: var(--ink-faint);
}

/* Gナビ ドロップダウンメニュー */
.gnav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  padding: 6px 0;
  display: none;
  z-index: 110;
  list-style: none;
  margin: 4px 0 0;
}
.gnav-item:hover .gnav-menu {
  display: block;
}
.gnav-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.84rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.gnav-menu li a:hover {
  background: var(--panel);
  color: var(--accent);
}
.gnav-menu li.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 0;
}

/* 議会セレクター（全国展開準備スロット） */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.gov-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}
.gov-switcher select {
  border: none;
  background: transparent;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* ---------- 階層パンくずバー ---------- */
.crumb-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--border-soft);
  padding: 7px 20px;
  font-size: 0.82rem;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--ink-faint);
}
.crumb-bar-in {
  max-width: 1240px;
  margin: 0 auto;
}
.crumb-bar a { color: var(--ink-soft); }
.crumb-bar a:hover { color: var(--ink); }

/* ---------- 2カラム レイアウト構造 ---------- */
.layout-2col {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* 1カラム互換用wrap */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* メインカラム */
.main-col {
  flex: 1;
  min-width: 0;
}

/* サイドバー（Sticky追従・幅280pxで省スペース化） */
.side-col {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding-bottom: 20px;
}

/* レスポンシブ（720px以下で縦並びに変更：幅800px等の分割画面でも確実に2カラム維持） */
@media (max-width: 720px) {
  .layout-2col {
    flex-direction: column;
    padding: 16px 14px 60px;
    gap: 20px;
  }
  .side-col {
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .gov-switcher {
    order: 3;
    width: 100%;
  }
}

/* ---------- サイドバー・コンポーネント ---------- */
.side-card {
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  padding: 18px 16px;
}
.side-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.side-card-badge {
  font-size: 0.72rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

/* 同区のライバル議員クイックスイッチ */
.rival-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rival-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  transition: all .12s ease;
}
.rival-item:hover {
  border-color: var(--line);
  box-shadow: 2px 2px 0 var(--line);
  text-decoration: none;
}
.rival-item.active {
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--line);
}
.rival-av {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.rival-info .name { font-weight: 800; font-size: 0.92rem; }
.rival-info .sub { font-size: 0.75rem; color: var(--ink-soft); }
.rival-tag {
  font-size: 0.72rem;
  padding: 2px 6px;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

/* スクロール追従目次 */
.side-toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
}
.side-toc li { margin-bottom: 6px; }
.side-toc a { color: var(--ink-soft); }
.side-toc a:hover { color: var(--ink); }

/* 選挙情報ウィジェット */
.election-box {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 12px;
  font-size: 0.85rem;
}
.election-box b { color: var(--accent); }

/* 自治体階層ツリー（サイドバー用） */
.gov-tree {
  font-size: 0.85rem;
  line-height: 1.6;
}
.gov-tree .tree-item {
  padding: 3px 0;
  color: var(--ink-soft);
}
.gov-tree .tree-active {
  font-weight: 800;
  color: var(--ink);
  background: var(--panel);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  margin: 4px 0;
}
.gov-tree .tree-sub {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* サイドバー・縦型フィルター */
.side-filter-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-item label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.filter-item input,
.filter-item select {
  font: inherit;
  font-size: 0.88rem;
  padding: 7px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  width: 100%;
}
.filter-item input:focus,
.filter-item select:focus {
  outline: none;
  border-color: var(--line);
  background: var(--paper);
}
.btn-reset {
  background: none;
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.btn-reset:hover {
  background: var(--panel-2);
  color: var(--ink);
}
.filter-cnt {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--panel);
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid var(--border-soft);
}

/* サイドバー・クイックリンク */
.side-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.side-links li {
  margin-bottom: 8px;
}
.side-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
}
.side-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* トップページ内セクション調整 */
.top-sec-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin: 32px 0 16px;
}
.top-sec-title h2 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* ---------- メインカード・記事本体 ---------- */
article, .card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
article {
  padding: 36px 30px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

h1 {
  font-size: 1.85rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  font-weight: 900;
}

.meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

.lead {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
  line-height: 1.85;
}

.notice {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.92rem;
  margin: 18px 0 24px;
  color: var(--ink);
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border: 2px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--paper);
  color: var(--ink);
  transition: all .15s ease;
}
.tabs a:hover {
  background: var(--panel);
  text-decoration: none;
}
.tabs a.on {
  background: var(--ink);
  color: var(--paper);
}

h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 1.5px solid var(--line);
  transform: rotate(45deg);
  flex-shrink: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 800;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 28px 0 12px;
  color: var(--ink);
}

h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 20px 0 8px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

/* 目次（インライン） */
.toc {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 20px 0 28px;
}
.toc b {
  font-size: 0.92rem;
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.toc li { margin-bottom: 4px; }

/* ユニットカード */
.unit-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  border: 2px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.avatar {
  width: 88px;
  height: 88px;
  border: 2px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  color: var(--accent-ink);
  background: var(--accent);
}
.avatar.sm {
  width: 44px;
  height: 44px;
  font-size: 18px;
  border-radius: 6px;
}
.unit-card .nm {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.3;
}
.unit-card .kn {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  font-size: 0.78rem;
  padding: 3px 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 600;
}
.chip.style {
  background: var(--accent-tint);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.quick {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 18px 14px 34px;
  margin: 0 0 20px;
}
.quick li { margin: 6px 0; font-size: 0.94rem; color: var(--ink-soft); }

.scores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 600px) {
  .scores { grid-template-columns: 1fr; }
}
.score {
  border: 1px solid var(--border-soft);
  background: var(--paper);
  border-radius: 6px;
  padding: 12px 14px;
}
.score .lb {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.score .val {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  line-height: 1.2;
  margin: 4px 0 2px;
}
.score .val small {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.score .why {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.grade {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.grade.S { background: var(--g-s); }
.grade.A { background: var(--g-a); }
.grade.B { background: var(--g-b); }
.grade.C { background: var(--g-c); }
.grade.D { background: var(--g-d); }
.grade.E, .grade.F, .grade.G { background: var(--g-e); }

.apt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--paper);
  margin: 10px 0;
  overflow: hidden;
}
@media (max-width: 640px) {
  .apt { grid-template-columns: repeat(2, 1fr); }
}
.apt div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  font-size: 0.88rem;
}

.skill {
  border: 1px solid var(--border-soft);
  background: var(--paper);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 8px 0;
}
.skill .t { font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.skill .d { font-size: 0.85rem; color: var(--ink-soft); margin-top: 3px; }
.skill.uniq {
  border: 1.5px solid var(--accent);
  background: var(--accent-tint);
}

.box-good {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-left: 4px solid #2D6A4F;
  border-radius: 6px;
  padding: 12px 16px 12px 32px;
  margin: 10px 0;
}
.box-bad {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px 12px 32px;
  margin: 10px 0;
}

.staff {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 14px;
  margin: 14px 0;
}
.staff .ic {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.staff b {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 2px;
}

details.gloss {
  border: 1px dashed var(--border-soft);
  background: var(--panel);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.88rem;
}
details.gloss summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.life {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.life .it {
  border: 1px solid var(--border-soft);
  background: var(--paper);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}
.life .ic { font-size: 22px; margin-bottom: 2px; }
.life .nm { font-size: 0.85rem; font-weight: 700; }
.bar {
  height: 6px;
  background: var(--panel-2);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.rivals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.rivals a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-soft);
  background: var(--paper);
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  text-align: center;
}
.rivals a:hover {
  border-color: var(--line);
  background: var(--panel);
}
.rivals a small { color: var(--ink-soft); font-size: 0.75rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 0.9rem;
}
th, td {
  border: 1px solid var(--border-soft);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
}
td {
  color: var(--ink-soft);
}
.tc { text-align: center; }

.tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.mcard {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
.mcard:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--line);
  text-decoration: none;
}
.mcard .n { font-weight: 900; font-size: 1.05rem; }
.mcard .s { font-size: 0.8rem; color: var(--ink-soft); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  background: var(--panel);
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}
.filters select, .filters input {
  font: inherit;
  font-size: 0.9rem;
  padding: 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
  flex: 1 1 140px;
}
.filters select:focus, .filters input:focus {
  outline: none;
  border-color: var(--line);
}

.log td:first-child { white-space: nowrap; }
.muted { color: var(--ink-faint); font-size: 0.8rem; }
.src { font-size: 0.8rem; color: var(--ink-faint); word-break: break-all; }
.x-embed { margin: 12px 0; }

footer {
  border-top: 2px solid var(--line);
  padding: 32px 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper);
  margin-top: 48px;
}
.footer-in {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- 全体ポータルTOP用スタイル ---------- */
.portal-hero {
  padding: 10px 0 24px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 28px;
}
.portal-tagline {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: ui-monospace, monospace;
}
.portal-hero h1 {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 12px;
}
.portal-hero p.lead {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* ポータル横断検索バー */
.portal-search {
  display: flex;
  gap: 10px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}
.portal-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}
.portal-search button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s ease;
}
.portal-search button:hover {
  background: var(--accent);
}

/* 先行公開フィーチャーボックス */
.portal-featured-box {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 28px 0;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-family: ui-monospace, monospace;
}
.portal-featured-box h2 {
  font-size: 1.45rem;
  margin: 0 0 10px;
  border-bottom: none;
  padding-bottom: 0;
}
.portal-featured-box p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.featured-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 20px;
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  margin-top: 16px;
  transition: all .12s ease;
}
.featured-action-btn:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--line);
}

/* 全国エリア別ステータステーブル */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 28px;
}
.region-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 2px 2px 0 var(--line);
}
.region-card-title {
  font-size: 1rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.gov-tag-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}
.gov-tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
}
.gov-tag-item.active {
  background: var(--panel);
  font-weight: 700;
}
.gov-tag-item a {
  color: var(--ink);
  font-weight: 800;
}
.status-pill {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}
.status-pill.open {
  background: var(--accent);
  color: #fff;
}
.status-pill.prep {
  background: var(--border-soft);
  color: var(--ink-faint);
}

/* テーマ別特集カード */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
}
.topic-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: all .12s ease;
}
.topic-card:hover {
  border-color: var(--line);
  box-shadow: 2px 2px 0 var(--line);
  text-decoration: none;
}
.topic-card-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.topic-card-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.topic-card-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
}


/* ==========================================================================
   v2 使い勝手の改善（2026-10-11 Claude Code）
   スマホのヘッダー・最初の画面にステータス・固定タブ・折りたたみ・比較
   ========================================================================== */
:root { --hdr-h: 58px; --art-pad: 30px; }
.site-header .in { min-height: var(--hdr-h); padding-top: 0; padding-bottom: 0; }
html { scroll-padding-top: calc(var(--hdr-h) + 64px); }

/* --- モバイル用メニュー（details） --- */
.mnav { display: none; margin-left: auto; position: relative; }
.mnav summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 7px 12px; border: 2px solid var(--line); border-radius: 6px;
  font-weight: 800; font-size: 0.85rem; background: var(--paper);
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--ink); color: var(--paper); }
.mnav-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(88vw, 320px);
  background: var(--paper); border: 2px solid var(--line); box-shadow: var(--shadow);
  border-radius: 8px; padding: 6px; display: flex; flex-direction: column; z-index: 200;
}
.mnav-panel a { padding: 11px 12px; color: var(--ink); font-weight: 700; font-size: 0.92rem; border-radius: 6px; text-decoration: none; }
.mnav-panel a:hover { background: var(--panel); }
@media (max-width: 1100px) {
  .site-header .gnav, .site-header .header-right { display: none; }
  .mnav { display: block; }
}

/* --- 最初の画面：ステータスカード --- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 6px; }
.stat { border: 2px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--paper); box-shadow: var(--shadow-sm); }
.stat .lb { font-size: 0.74rem; font-weight: 800; color: var(--ink-soft); line-height: 1.3; }
.stat .val { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 1.7rem; font-weight: 900; color: var(--accent); line-height: 1.2; }
.stat .val small { font-size: 0.72rem; color: var(--ink-faint); font-weight: 600; }
.stat .mini { font-size: 0.7rem; color: var(--ink-faint); }
.stat.na .val { color: var(--ink-faint); }
.sbar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.sbar i { display: block; height: 100%; background: var(--accent); }
.why-box { border: 1px dashed var(--border-soft); background: var(--panel); border-radius: 6px; padding: 6px 12px; margin: 8px 0; font-size: 0.84rem; }
.why-box summary { cursor: pointer; font-weight: 700; }
.why-box ul { margin: 6px 0; padding-left: 18px; }
.micro { font-size: 0.8rem; color: var(--ink-soft); margin: 8px 0; line-height: 1.7; }
.btn-sm { display: inline-block; padding: 3px 10px; border: 2px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 0.8rem; text-decoration: none; white-space: nowrap; }
.btn-sm:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* --- 固定セクションタブ --- */
.sec-tabs {
  position: sticky; top: var(--hdr-h); z-index: 60;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  background: var(--paper); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  margin: 14px calc(-1 * var(--art-pad)) 0; padding: 8px var(--art-pad);
}
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tabs a {
  flex: 0 0 auto; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px;
  font-weight: 800; font-size: 0.86rem; color: var(--ink); background: var(--paper); text-decoration: none; white-space: nowrap;
}
.sec-tabs a.on { background: var(--ink); color: var(--paper); }
h2 { scroll-margin-top: calc(var(--hdr-h) + 64px); }

/* --- 折りたたみ（質問ログ・議案） --- */
details.acc { border: 2px solid var(--line); border-radius: 8px; margin: 10px 0; background: var(--paper); }
details.acc > summary { cursor: pointer; padding: 10px 14px; font-size: 0.9rem; list-style: none; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::before { content: "▸ "; color: var(--accent); }
details.acc[open] > summary::before { content: "▾ "; }
details.acc[open] > summary { border-bottom: 1px solid var(--border-soft); background: var(--panel); }
details.acc > .tbl-scroll, details.acc > .qlist { margin: 0; padding: 4px 14px 10px; }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { padding: 8px 0; border-bottom: 1px dashed var(--border-soft); }
.qlist li:last-child { border-bottom: none; }
.qlist .qt { font-weight: 700; font-size: 0.92rem; }
.vsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.vsum > div { border: 1px solid var(--border-soft); border-radius: 6px; padding: 8px 10px; background: var(--panel); }
.vsum b { font-family: ui-monospace, monospace; font-size: 1.4rem; color: var(--accent); }
.vsum span { display: block; font-size: 0.74rem; color: var(--ink-soft); line-height: 1.4; }
.life a.it { display: block; text-decoration: none; color: inherit; }
.life a.it:hover { border-color: var(--line); box-shadow: 2px 2px 0 var(--line); }

/* --- 一覧：区ボタン・カードの数値・比較 --- */
.ward-pick { background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.ward-pick-t { font-weight: 800; font-size: 0.88rem; margin-bottom: 6px; }
.ward-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ward-btns button, .btn-ward {
  font: inherit; font-weight: 800; font-size: 0.86rem; padding: 6px 12px; min-height: 36px;
  border: 2px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.ward-btns button:hover, .btn-ward:hover { background: var(--panel-2); text-decoration: none; }
.ward-btns button.on { background: var(--ink); color: var(--paper); }
.mc { position: relative; }
.mc .mcard { height: 100%; }
.mstat { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.74rem; color: var(--ink-soft); margin-top: 3px; font-family: ui-monospace, monospace; }
.mstat b { color: var(--ink); margin: 0 1px; }
.mstat .hot { color: var(--accent); font-weight: 800; }
.mstat .hot b { color: var(--accent); }
.cmp-pick { position: absolute; top: 6px; right: 8px; font-size: 0.72rem; font-weight: 800; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; cursor: pointer; }
.cmp-pick input { margin-right: 3px; }
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--paper); border-top: 3px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: center; padding: 10px 14px; }
.cmp-bar[hidden] { display: none; }
.cmp-bar .featured-action-btn { margin-top: 0; padding: 7px 16px; }
.cmp-sels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 14px 0; }
.cmp-sels select { font: inherit; padding: 10px; border: 2px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); min-width: 0; }
.cmp-table th:first-child { white-space: nowrap; }
.cmp-table .sec th { background: var(--ink); color: var(--paper); font-size: 0.8rem; }
.cmp-table .big { font-size: 1.3rem; color: var(--accent); font-family: ui-monospace, monospace; }
.cmp-table small { color: var(--ink-faint); }

/* --- スマホ（720px以下） --- */
@media (max-width: 720px) {
  :root { --hdr-h: 54px; --art-pad: 14px; }
  .site-header .in { padding: 0 14px; }
  .crumb-bar { padding: 6px 14px; font-size: 0.74rem; }
  .crumb-bar-in { white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  article { padding: 16px var(--art-pad) 24px; }
  h1 { font-size: 1.3rem; margin-bottom: 6px; }
  h2 { font-size: 1.1rem; margin-top: 30px; }
  .meta { gap: 4px 10px; font-size: 0.72rem; margin-bottom: 10px; }
  .unit-card { grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; margin: 10px 0; }
  .avatar { width: 64px; height: 64px; font-size: 26px; }
  .unit-card .nm { font-size: 1.2rem; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat { padding: 6px 8px; }
  .stat .val { font-size: 1.4rem; }
  .side-col .side-toc, .side-col .side-rivals, .side-col .side-aux { display: none; }
  .layout-2col { padding: 12px 12px 80px; gap: 12px; align-items: stretch; }
  .main-col { width: 100%; max-width: 100%; }
  .side-filter .side-filter-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .side-filter .filter-cnt { grid-column: 1 / -1; }
  .portal-hero h1 { font-size: 1.5rem; }
  .portal-search { flex-wrap: wrap; }
  .portal-search button { width: 100%; }
}

td.nw, th.nw { white-space: nowrap; }

.ward-card { padding: 12px 14px; }
.side-filter details > summary { cursor: pointer; font-weight: 700; font-size: 0.86rem; padding: 4px 0 8px; }
.side-filter .filter-cnt { margin-top: 8px; }

@media (max-width: 720px) { .side-portal { order: 2; } }

.chip.kind-up { background: #EAE6DF; color: #2D2721; border-color: #7D7465; font-weight: 700; }
.chip.kind-down, .chip.kind-relief { background: #E4E8E5; color: #1E3328; border-color: #566E60; font-weight: 700; }
.chip.kind-flat { background: var(--panel); color: var(--ink-soft); }

/* ---- 比較表（compare.html）：列幅を揃え、ラベルが途中で割れないようにする ---- */
.cmp-table { table-layout: fixed; width: 100%; border-collapse: collapse; }
.cmp-table col.c0 { width: 118px; }
.cmp-table th, .cmp-table td { padding: 8px 6px; vertical-align: middle; text-align: center; overflow-wrap: break-word; }
.cmp-table th[scope="row"] { text-align: left; font-size: 0.82rem; line-height: 1.35; white-space: nowrap; }
.cmp-table .cmp-head { vertical-align: top; }
.cmp-table .cmp-name { display: block; font-weight: 800; font-size: 0.95rem; line-height: 1.35; word-break: keep-all; }
.cmp-table .cmp-sub { display: block; margin-top: 2px; font-size: 0.7rem; font-weight: 500; color: var(--ink-faint); line-height: 1.35; }
.cmp-table .cmp-chip { display: block; margin: 0 auto 4px; width: fit-content; max-width: 100%; white-space: nowrap; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; }
.cmp-table .cmp-note { display: block; font-size: 0.7rem; color: var(--ink-faint); line-height: 1.3; }
.cmp-table .sec th { text-align: left; }
.cmp-table .sbar { margin: 4px auto 0; max-width: 72px; }
@media (max-width: 720px) {
  .cmp-wrap { padding: 12px 8px 60px; }
  .cmp-wrap article { padding: 12px 8px 18px; }
  .cmp-table col.c0 { width: 76px; }
  .cmp-table th, .cmp-table td { padding: 6px 2px; }
  .cmp-table th[scope="row"] { font-size: 0.72rem; padding-left: 4px; }
  .cmp-table .cmp-name { font-size: 0.82rem; }
  .cmp-table .cmp-sub { font-size: 0.64rem; }
  .cmp-table .cmp-chip { font-size: 0.66rem; padding: 1px 4px; }
  .cmp-table .big { font-size: 1.1rem; }
  .cmp-table .sec th { font-size: 0.72rem; }
}


/* ---- タップ領域の最小高さ確保（スマホ375px幅：WCAG・高さ36px以上保証） ---- */
@media (max-width: 720px) {
  /* パンくずリスト・ヘッダー・目次 */
  .crumb-bar a, .crumb a,
  .site-header a,
  .toc a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 4px;
  }

  /* アコーディオン */
  summary {
    min-height: 38px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  details.acc > summary,
  details.gloss > summary {
    min-height: 40px;
    padding: 8px 12px;
  }

  /* テーブル内の各種リンク（動画、Xリンク、議案リンク） */
  table td a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 2px 6px;
  }

  /* 記事内のインラインリンク・誘導リンク・出典リンク・ことば帳リンク・ツイートリンク */
  article p a,
  article .notice a,
  article .staff a,
  article ul a,
  article ol a,
  .src li a,
  a.gl,
  blockquote a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 2px 4px;
  }

  /* フッターリンク */
  footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 2px 8px;
  }

  /* サイドバー内リンク */
  .side-card a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  /* ボタン・入力要素 */
  button, select, input {
    min-height: 36px;
  }
}

/* ==========================================================================
   T2.6 攻略サイト補助要素（用語解説、おすすめボックス、関連ページカード）
   ========================================================================== */

/* 1. 用語解説：インラインツールチップ (.term-tip) */
.term-tip {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  border-bottom: 1.5px dashed var(--accent);
  cursor: help;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 1px;
}
.term-tip::after {
  content: "？";
  font-size: 0.72em;
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  font-weight: 800;
  vertical-align: super;
}
.term-tip .term-tip-bubble {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 260px;
  max-width: 80vw;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-solid-sm, 3px 3px 0 var(--line));
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
  border-radius: 4px;
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.term-tip .term-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--line) transparent transparent transparent;
}
.term-tip:hover .term-tip-bubble,
.term-tip:focus .term-tip-bubble,
.term-tip:focus-within .term-tip-bubble {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.term-tip-title {
  display: block;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 3px;
}

/* 1-b. 用語解説：アコーディオン型ボックス (.gloss-box) */
details.gloss-box {
  background: var(--panel);
  border: 1.5px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  margin: 14px 0;
  padding: 0;
  font-size: 0.88rem;
}
details.gloss-box summary {
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  user-select: none;
}
details.gloss-box summary::-webkit-details-marker {
  display: none;
}
details.gloss-box summary::before {
  content: "▶";
  font-size: 0.75rem;
  color: var(--accent);
  transition: transform 0.15s ease;
  display: inline-block;
}
details.gloss-box[open] summary::before {
  transform: rotate(90deg);
}
.gloss-badge {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: ui-monospace, monospace;
}
.gloss-content {
  padding: 0 14px 12px 32px;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.85rem;
}
.gloss-content p {
  margin: 0;
}

/* 2. こんな人におすすめボックス (.recom-box) */
.recom-box {
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-solid, 4px 4px 0 var(--line));
  border-radius: 6px;
  margin: 28px 0;
  padding: 20px 22px;
}
.recom-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.recom-tag {
  background: var(--accent);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  font-family: ui-monospace, monospace;
}
.recom-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  border: none;
  padding: 0;
}
.recom-title::before {
  display: none !important;
}
.recom-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recom-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}
.recom-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}
.recom-list strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.recom-list p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.recom-footer {
  font-size: 0.74rem;
  color: var(--ink-faint);
  line-height: 1.45;
  border-top: 1px dashed var(--border-soft);
  padding-top: 10px;
  margin-top: 8px;
}

/* 3. 関連ページカード (.rel-section, .rel-grid, .rel-card) */
.rel-section {
  margin: 36px 0 24px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}
.rel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.rel-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rel-heading h3 {
  margin: 0;
  font-size: 1.15rem;
  border: none;
  padding: 0;
}
.rel-badge {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
}
.rel-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-solid-sm, 2px 2px 0 var(--line));
  transition: all 0.15s ease;
  min-height: 36px;
}
.rel-compare-btn:hover {
  background: var(--paper);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line);
  text-decoration: none;
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.rel-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-solid-sm, 3px 3px 0 var(--line));
  border-radius: 6px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rel-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line);
  text-decoration: none;
}
.rel-badge-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  display: inline-block;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.rel-main {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}
.rel-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
  flex-shrink: 0;
}
.rel-info {
  flex: 1;
  min-width: 0;
}
.rel-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.rel-ward {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-left: 4px;
}
.rel-party {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 2px 0 6px;
}
.rel-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.rel-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  color: var(--ink-soft);
}
.rel-chip.style {
  background: #EAE3D2;
  border-color: #D4C9B4;
  color: var(--ink);
}
.rel-action {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-soft);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-height: 28px;
}

/* ==========================================================================
   T2.7 一覧ページの軽量化（段階表示「もっと見る」・スケルトン表示）
   ========================================================================== */

/* 1. 段階表示・もっと見る展開 (.load-more-section) */
.load-more-section {
  margin: 24px 0 32px;
  text-align: center;
}
.load-more-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: ui-monospace, monospace;
}
.load-more-bar {
  width: 140px;
  height: 6px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}
.load-more-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-solid, 4px 4px 0 var(--line));
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 44px;
}
.btn-more:hover {
  background: var(--panel);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--line);
}
.btn-more:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}
.btn-more.is-completed {
  background: var(--panel);
  border-color: var(--border-soft);
  color: var(--ink-faint);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* 一覧カードの隠蔽・表示アニメーション */
.card-item.is-hidden {
  display: none !important;
}
.card-item.is-revealed {
  animation: cardFadeIn 0.35s ease forwards;
}
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. スケルトンローディング表示 (.skeleton-card, .skeleton-shimmer) */
.skeleton-card {
  background: var(--paper);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel);
  flex-shrink: 0;
}
.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-line {
  height: 12px;
  background: var(--panel);
  border-radius: 3px;
}
.skeleton-line.title {
  width: 60%;
  height: 16px;
}
.skeleton-line.sub {
  width: 40%;
  height: 11px;
}
.skeleton-chips {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.skeleton-chip {
  width: 50px;
  height: 16px;
  border-radius: 3px;
  background: var(--panel);
}

/* スケルトン共通のシマー波アニメーション */
.skeleton-avatar,
.skeleton-line,
.skeleton-chip {
  position: relative;
  overflow: hidden;
  background-color: #EFE9DB;
}
.skeleton-avatar::after,
.skeleton-line::after,
.skeleton-chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeletonShimmer 1.8s infinite ease-in-out;
}
@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---- 議員ずかん（2026-10-12）：見た目の調整・最適化 ---- */

/* 1. ★の表示（.stars, .stars-b） */
.stars {
  letter-spacing: 3px;
  font-size: 1.2rem;
  color: #C8C3B5;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.2;
}
.stars b {
  color: var(--accent);
  font-weight: 800;
}
.stars-b {
  color: var(--accent);
  letter-spacing: 1.5px;
  white-space: nowrap;
  display: inline-block;
  font-size: 0.95rem;
}
.stars-b .st-off {
  color: #C8C3B5;
}

/* 2. 3つの数字（.stats, .stat）：PCで3列、スマホで1列・3段整列 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 16px;
}
.stat {
  background: var(--panel);
  border: 1.5px solid var(--border-soft);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease;
}
.stat .lb {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}
.stat .val {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 4px 0 8px;
}
.stat .mini {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.4;
  border-top: 1px dashed var(--border-soft);
  padding-top: 6px;
  margin-top: auto;
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 12px;
    padding: 12px 14px;
  }
  .stat .lb {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  .stat .val {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.25rem;
    margin: 0;
    text-align: right;
  }
  .stat .mini {
    grid-column: 1;
    grid-row: 2;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    font-size: 0.78rem;
  }
}

/* 3. どんなテーマ？（.life .it, .lv-hi/.lv-mid/.lv-lo, .lvl）：優劣に見せない中立トーン */
.life .it {
  background: var(--paper);
  border: 1.5px solid var(--border-soft);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.life .it:hover {
  background: var(--panel);
  border-color: var(--ink);
  text-decoration: none;
}
.life .it .lvl {
  font-size: 0.78rem;
  font-weight: 700;
  margin: 3px 0 1px;
}
.life .it.lv-hi .lvl {
  color: var(--ink);
  font-weight: 800;
}
.life .it.lv-mid .lvl {
  color: var(--ink-soft);
}
.life .it.lv-lo .lvl {
  color: var(--ink-faint);
  font-weight: 500;
}
.life .it.lv-lo {
  opacity: 0.85;
}
.life .it.lv-hi {
  border-color: var(--line);
}
.life .bar {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.life .bar i {
  display: block;
  height: 100%;
  background: var(--ink-soft);
  border-radius: 2px;
}
.life .it.lv-hi .bar i {
  background: var(--ink);
}

/* 4. 事実の2列（.fact2, .box-good, .box-bad）：緑＝善・赤＝悪を排除し同等の中立色で統一 */
.fact2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0 20px;
}
@media (max-width: 720px) {
  .fact2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.fact2 .box-good,
.fact2 .box-bad,
.box-good,
.box-bad {
  background: var(--panel) !important;
  border: 1.5px solid var(--border-soft) !important;
  border-left: 4px solid var(--ink-soft) !important;
  border-radius: 6px;
  padding: 14px 16px 14px 30px;
  margin: 6px 0;
  color: var(--ink);
}
.box-good li::marker,
.box-bad li::marker {
  color: var(--ink-soft);
}
.box-good li,
.box-bad li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* 5. ページ切替（.subpages）：タブ型、現在地明示、WCAGタップターゲット対応 */
.subpages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}
.subpages a {
  padding: 8px 18px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}
.subpages a:hover {
  background: var(--panel);
  text-decoration: none;
}
.subpages a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--accent);
}

/* 6. 用語の説明（a.gl, .gl-p, ruby/rt）：ふりがなの行間つぶれ防止・説明の視覚階層 */
ruby {
  line-height: 1.85;
  display: inline-block;
  vertical-align: baseline;
}
rt {
  font-size: 0.65em;
  color: var(--ink-soft);
  font-weight: 400;
  user-select: none;
}
a.gl {
  text-decoration: underline dotted 1.5px var(--ink-soft);
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}
a.gl:hover {
  text-decoration: underline solid 1.5px var(--accent);
  color: var(--accent);
}
.gl-p {
  font-size: 0.84em;
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: 2px;
}

/* 7. 編集部の見方（.staff, .notice）：事実との明確な視覚分離 */
article .notice {
  background: #FFFDF5;
  border: 1.5px dashed var(--ink-soft);
  border-left: 5px solid #C25E00;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 0.9rem;
  margin: 18px 0 24px;
  color: var(--ink);
  line-height: 1.65;
}
.staff {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  background: #FAF6ED;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--border-soft);
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
  align-items: start;
}
.staff .ic {
  width: 50px;
  height: 50px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.staff b {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 800;
}

/* 8. 3ステップ（.steps3）：ポータル用導線 */
.steps3 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.steps3 li {
  background: var(--panel);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

/* 9. 比較表の折り返し防止（.cmp-table, .lvdots, .stars-b） */
.lvdots {
  letter-spacing: 2px;
  color: var(--ink);
  white-space: nowrap;
  display: inline-block;
  min-width: 48px;
  font-weight: 800;
}
.cmp-table .stars-b,
.cmp-table .lvdots {
  white-space: nowrap;
  word-break: keep-all;
  display: inline-block;
}
.cmp-table td {
  word-break: keep-all;
}

/* その他共通 */
.chip.kind-flat {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border-soft);
}
.sec-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== 議員ページ：「何をやりたい人？」の図解（.ag-*）／顔写真 ===== */
.avatar.photo { width: 96px; height: auto; aspect-ratio: 211 / 252; object-fit: cover; background: var(--panel-2); display: block; }
.unit-card:has(.avatar.photo) { grid-template-columns: 96px 1fr; align-items: start; }
.photo-credit { font-size: 0.7rem; color: var(--ink-faint); margin-top: 6px; line-height: 1.4; }
@media (max-width: 720px) {
  .avatar.photo { width: 72px; }
  .unit-card:has(.avatar.photo) { grid-template-columns: 72px 1fr; }
}

.ag-lead { font-size: 1.12rem; font-weight: 800; line-height: 1.65; margin: 10px 0 12px; }
.ag-legend { font-size: 0.78rem; color: var(--ink-soft); line-height: 2; margin: 0 0 14px; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 1px 8px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--paper); margin-right: 2px; white-space: nowrap; }
.tag.opinion { background: #FFF3D6; border-color: #C25E00; color: #6B3600; }
.tag.check { background: #E8EFF6; border-color: #1E4E79; color: #14375A; }

.ag-card, .ag-map, .ag-tl { --tc: var(--g-e); }
.t-transport { --tc: #1E4E79; }
.t-money { --tc: #B07B2A; }
.t-culture { --tc: #6B5B95; }
.t-x { --tc: #3E7C7B; }
.t-vote { --tc: #4F5D6B; }
.t-other { --tc: #A9A293; }

.ag-map { display: flex; gap: 4px; margin: 8px 0 6px; }
.ag-seg { flex-basis: 0; min-width: 0; background: var(--tc); color: #fff; border: 2px solid var(--line); border-radius: 6px; padding: 10px 6px; text-align: center; text-decoration: none; line-height: 1.3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
a.ag-seg:hover { text-decoration: none; filter: brightness(1.1); }
.ag-seg .ic { font-size: 1.5rem; }
.ag-seg .nm { font-size: 0.78rem; font-weight: 800; }

.ag-tl { display: flex; gap: 2px; align-items: flex-end; margin: 8px 0 6px; padding: 10px 6px 6px; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); overflow-x: auto; }
.ag-col { flex: 1 0 26px; text-align: center; }
.ag-dots { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; min-height: 50px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tc); border: 1.5px solid var(--line); display: block; }
.ag-lb { font-size: 0.72rem; line-height: 1.2; margin-top: 6px; color: var(--ink-soft); font-weight: 700; }
.ag-lb small { display: block; font-size: 0.62rem; font-weight: 400; }

.ag-card { border: 2px solid var(--line); border-top: 8px solid var(--tc); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow-sm); padding: 14px 16px; margin: 18px 0; }
.ag-head { display: flex; gap: 12px; align-items: flex-start; }
.ag-ic { font-size: 2.1rem; line-height: 1.1; }
.ag-head h3 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.4; }
.ag-meter { height: 12px; border: 2px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; max-width: 360px; }
.ag-meter span { display: block; height: 100%; background: var(--tc); }
.ag-fact { font-size: 0.82rem; color: var(--ink-soft); margin-top: 5px; line-height: 1.6; }
.ag-block { margin-top: 12px; }
.ag-block h4 { margin: 0 0 6px; font-size: 0.9rem; }
.ag-block p { margin: 0; font-size: 0.92rem; }
.ag-block.view { background: #FAF6ED; border: 1.5px dashed var(--ink-soft); border-left: 5px solid #C25E00; border-radius: 6px; padding: 8px 12px; }
.ag-block.chk { background: #F1F5F9; border: 1.5px dashed #6C8296; border-left: 5px solid #1E4E79; border-radius: 6px; padding: 8px 12px; }
.ag-asks { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.ag-asks li { margin: 4px 0; }
.ag-asks .when { font-size: 0.72rem; color: var(--ink-soft); border: 1px solid var(--border-soft); border-radius: 10px; padding: 0 7px; white-space: nowrap; background: var(--panel); }

.x0 { --xc: #4F6D8F; } .x1 { --xc: #B07B2A; } .x2 { --xc: #6B5B95; } .x3 { --xc: #3E7C7B; } .x4 { --xc: #8C8474; }
.ag-tally { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chipx { font-size: 0.78rem; font-weight: 800; border: 1.5px solid var(--line); border-radius: 12px; padding: 1px 10px 1px 6px; background: var(--paper); white-space: nowrap; }
.chipx i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--xc); margin-right: 5px; border: 1px solid var(--line); }
.ag-xrow { display: flex; gap: 8px; margin: 9px 0; align-items: flex-start; }
.ag-xrow .rk { flex: 0 0 22px; font-weight: 900; font-size: 0.85rem; color: var(--ink-soft); text-align: right; line-height: 24px; }
.ag-xrow .bd { flex: 1; min-width: 0; }
.ag-xrow .bar { position: relative; height: 22px; border: 2px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.ag-xrow .bar span { display: block; height: 100%; background: var(--xc); opacity: 0.8; }
.ag-xrow .bar b { position: absolute; left: 8px; top: 0; line-height: 18px; font-size: 0.75rem; color: var(--ink); text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper); }
.ag-xrow .tx { font-size: 0.8rem; line-height: 1.5; margin-top: 3px; }
.ag-xrow .tx span { color: var(--ink-soft); font-size: 0.72rem; white-space: nowrap; }

.ag-vbar { display: flex; height: 34px; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 0.8rem; font-weight: 800; color: #fff; }
.ag-vbar span { flex-basis: 0; min-width: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.ag-vbar .no { background: #8C5A2B; }
.ag-vbar .yes { background: #1E4E79; }
@media (max-width: 720px) {
  .ag-card { padding: 12px; }
  .ag-ic { font-size: 1.7rem; }
  .ag-seg .ic { font-size: 1.2rem; }
}
.ag-more { margin-top: 4px; }
.ag-more summary { cursor: pointer; font-size: 0.85rem; font-weight: 800; color: var(--accent); }
/* 賛否のバッジ：優劣・善悪に見えない中立な2色（濃紺／琥珀ブラウン）。◯×の記号は使わない */
.vbadge { display: inline-block; padding: 1px 10px; border-radius: 10px; font-size: 0.8rem; font-weight: 800; color: #fff; white-space: nowrap; }
.vbadge.yes { background: #1E4E79; }
.vbadge.no { background: #8C5A2B; }

/* ===== 議員ページ（新構成）：テーマの指標・議会とXの対比・公約の確認・暮らしのカード ===== */
.ag-card h3 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.45; }
.ag-card h3 .ag-ic { font-size: 1.3rem; }
.ag-strip { display: flex; gap: 8px; margin: 8px 0 4px; }
.ag-strip .cell { flex: 1; min-width: 0; border: 1.5px solid var(--border-soft); border-radius: 6px; padding: 6px 8px; background: var(--panel); }
.ag-strip .k { font-size: 0.7rem; color: var(--ink-soft); }
.ag-strip .v { font-weight: 900; font-size: 1.02rem; line-height: 1.35; }
.ag-strip .sub { font-size: 0.72rem; color: var(--ink-soft); }
.ag-strip .ag-meter { margin-top: 4px; height: 8px; border-width: 1.5px; }
.ag-map.slim .ag-seg { padding: 6px 4px; border-width: 1.5px; }
.ag-map .ag-seg .nm { font-size: 0.72rem; line-height: 1.3; }
.ag-seg.xseg { background: var(--xc); }
.ag-cmp .lb { font-size: 0.8rem; font-weight: 800; margin: 8px 0 3px; }

.plb { display: inline-block; padding: 1px 10px; border-radius: 10px; font-size: 0.78rem; font-weight: 800; color: #fff; white-space: nowrap; margin-left: 6px; }
.pl-count .plb { margin: 0; }
.plb.実現 { background: #1E4E79; }
.plb.進行中 { background: #3E7C7B; }
.plb.実現していない { background: #8C5A2B; }
.plb.未確認 { background: #6C757D; }
.pl-count { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.pl-card { border: 2px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); padding: 12px 14px; margin: 16px 0; background: var(--paper); }
.pl-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.pl-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--border-soft); }
.pl-row .k { font-weight: 800; font-size: 0.82rem; }
.pl-row .v { font-size: 0.9rem; min-width: 0; }
.pl-row .v ul { margin: 0; padding-left: 1.1em; }
.pl-row .v p { margin: 4px 0 0; }
.pl-row .when { font-size: 0.72rem; color: var(--ink-soft); border: 1px solid var(--border-soft); border-radius: 10px; padding: 0 7px; white-space: nowrap; background: var(--panel); }
.life-card { border: 2px solid var(--line); border-left: 8px solid #1E4E79; border-radius: 8px; padding: 10px 14px; margin: 12px 0; background: var(--paper); }
.life-card.none { opacity: 0.7; }
.life-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.life-card p { margin: 4px 0; font-size: 0.9rem; }
@media (max-width: 720px) {
  .pl-row { grid-template-columns: 1fr; gap: 2px; }
  .ag-strip { gap: 5px; }
  .ag-strip .cell { padding: 5px 6px; }
}

/* ===== 議員ページ：論点カード（.ic-*）設計書21・見本 samples/furusato-ehon.html と同じ見た目 ===== */
.ic-card { margin: 8px 0 44px; }
.ic-h3 { font-size: 1.3rem; line-height: 1.45; margin: 26px 0 10px; }
.ic-draft { display: inline-block; font-size: .7rem; font-weight: 800; color: #6B4A12; background: #FBF1DE; border: 1.5px solid #B07B2A; border-radius: 4px; padding: 0 6px; vertical-align: 3px; }
.ic-tag { display: inline-block; font-size: .66rem; font-weight: 800; padding: 0 6px; border-radius: 4px; border: 1.5px solid; white-space: nowrap; vertical-align: 1px; line-height: 1.6; }
.ic-k-rec { border-color: #1E4E79; color: #1E4E79; background: #EAF0F6; }
.ic-k-self { border-color: #6B5B95; color: #4A3F6B; background: #EFECF5; }
.ic-k-gov { border-color: #3E7C7B; color: #21504F; background: #E6F1F0; }
.ic-k-inf { border-color: #B07B2A; color: #6B4A12; background: #FBF1DE; }
.ic-k-news { border-color: #6C757D; color: #454B50; background: #EEF0F1; }
.ic-three { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 6px 0 10px; }
.ic-p { position: relative; border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 0 0 12px; display: flex; flex-direction: column; }
.ic-p:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -23px; border: 9px solid transparent; border-top: 13px solid var(--line); transform: translateX(-50%); }
.ic-hd { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 2px solid var(--line); border-radius: 10px 10px 0 0; background: var(--ic); color: #fff; }
.ic-hd b { font-size: 1.4rem; line-height: 1; } .ic-hd span { font-weight: 900; }
.ic-p1 { --ic: #1E4E79; } .ic-p2 { --ic: #3E7C7B; } .ic-p3 { --ic: #B07B2A; }
.ic-bd { padding: 10px 12px 0; font-size: .88rem; line-height: 1.65; flex: 1; }
.ic-when { display: inline-block; font-size: .72rem; font-weight: 800; background: var(--panel); border-radius: 10px; padding: 0 8px; margin-bottom: 6px; }
.ic-bub { position: relative; background: #EAF0F6; border-radius: 12px; padding: 10px 12px; font-weight: 800; line-height: 1.55; margin: 2px 0 12px; }
.ic-bub::after { content: ""; position: absolute; left: 18px; bottom: -10px; border: 6px solid transparent; border-top: 8px solid #EAF0F6; }
.ic-small { font-size: .8rem; color: var(--ink-soft); line-height: 1.6; margin-top: 4px; }
.ic-gap { display: grid; gap: 4px; margin: 0 0 8px; }
.ic-gap > div { border-radius: 8px; padding: 6px 10px; font-size: .84rem; line-height: 1.5; }
.ic-now { background: #F1F2F3; border: 1.5px dashed #6C757D; }
.ic-want { background: #E6F1F0; border: 1.5px solid #3E7C7B; font-weight: 800; }
.ic-ar { text-align: center; color: #3E7C7B; font-weight: 900; padding: 0 !important; line-height: 1; }
.ic-who { margin: 8px 0 0; } .ic-t { font-size: .75rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 3px; }
.ic-who ul { list-style: none; margin: 0; padding: 0; }
.ic-who li { display: grid; grid-template-columns: 22px 1fr; gap: 4px; font-size: .82rem; line-height: 1.5; margin: 3px 0; }
.ic-who li i { font-style: normal; }
.ic-minimap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 6px 0 2px; }
.ic-minimap span { font-size: .66rem; text-align: center; border-radius: 4px; padding: 2px 0; border: 1px solid var(--border-soft); background: var(--paper); color: var(--ink-faint); }
.ic-minimap span.on { background: #3E7C7B; border-color: #3E7C7B; color: #fff; font-weight: 800; }
.ic-steps { list-style: none; margin: 0; padding: 0; }
.ic-steps li { position: relative; padding: 0 0 10px 18px; font-size: .84rem; line-height: 1.5; }
.ic-steps li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #B07B2A; }
.ic-steps li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1.5px; background: var(--border-soft); }
.ic-big { font-size: 1.5rem; font-weight: 900; line-height: 1.1; } .ic-big small { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.ic-meter { height: 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #EEF0F1; overflow: hidden; display: flex; margin: 3px 0; max-width: 220px; }
.ic-meter span { display: block; height: 100%; background: #B07B2A; } .ic-meter span.sub { background: #E3C78F; }
.ic-lead { font-size: .98rem; margin: 0 0 6px; }
.ic-h4 { font-size: 1.05rem; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.ic-view { margin: 0 0 16px; }
.ic-view h5 { margin: 0 0 6px; font-size: 1rem; line-height: 1.45; padding: 3px 0 3px 10px; border-left: 5px solid #B07B2A; }
.ic-view p { margin: 0; font-size: .93rem; }
.ic-scale { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; margin: 6px 0; font-size: .76rem; }
.ic-scale > div { border: 1.5px solid var(--line); border-radius: 8px; padding: 4px 6px; background: #fff; text-align: center; line-height: 1.35; }
.ic-scale > div.on { border-color: #1E4E79; box-shadow: 2px 2px 0 #1E4E79; }
.ic-scale > div.m { border: none; background: none; font-weight: 900; color: var(--ink-faint); }
.ic-more { border: 1.5px solid var(--border-soft); border-radius: 8px; background: #fff; margin: 10px 0; padding: 0 12px; }
.ic-more summary { cursor: pointer; font-weight: 800; padding: 9px 0; font-size: .9rem; }
.ic-more[open] summary { border-bottom: 1px solid var(--border-soft); margin-bottom: 8px; }
.ic-tlv { position: relative; margin: 6px 0 8px; padding-left: 20px; }
.ic-tlv::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-soft); }
.ic-ev { position: relative; margin: 0 0 8px; font-size: .86rem; line-height: 1.55; }
.ic-ev::before { content: ""; position: absolute; left: -18px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--evc, #1E4E79); border: 2px solid var(--line); }
.ic-ev b { font-size: .78rem; color: var(--ink-soft); }
.ic-ev-city { --evc: #3E7C7B; } .ic-ev-res { --evc: #B07B2A; }
.ic-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.ic-chips span { font-size: .78rem; border: 1px solid var(--border-soft); border-radius: 6px; padding: 1px 7px; background: var(--paper); }
.ic-src { font-size: .78rem; color: var(--ink-soft); padding-left: 1.4em; margin: 4px 0 10px; }
.ic-sup { font-size: .68rem; margin-left: 1px; } .ic-sup a { text-decoration: none; }
.ic-hd { position: relative; }

/* ===== 論点カード スキーマ2（.ic2-*）：スマホ・結論ファースト。Antigravity のモック samples/subway-mobile.html を取り込み ===== */
/* ===== 論点カード本体（1カラム縦積み・図表＆テーブル中心） ===== */
.ic2-card {
  --navy:#1E4E79; --teal:#3E7C7B; --amber:#B07B2A; --brown:#8C5A2B; --purple:#6B5B95; --gray:#6C757D; --bs:#DED6C4; --soft:var(--ink-soft); --faint:var(--ink-faint);
  margin: 4px 0 36px;
}

/* 1. 見出し（h3）＋最上部ステータスバッジ */
.ic2-head {
  margin: 0 0 16px;
}
.ic2-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ic2-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  background: var(--brown);
  padding: 3px 12px;
  border-radius: 99px;
}
.ic2-checked {
  font-size: 0.78rem;
  color: var(--soft);
}
.ic2-h3 {
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  font-weight: 800;
}

/* 共通：マーカー・出典ピル */
.hl {
  background: linear-gradient(transparent 60%, #F9E3A0 60%);
  font-weight: 800;
}
.ic2-cite {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
  vertical-align: 1px;
  text-decoration: none;
  line-height: 1.4;
  margin-left: 3px;
  cursor: pointer;
}
.ic2-k-rec { border-color: var(--navy); color: var(--navy); background: #EAF0F6; }
.ic2-k-self { border-color: var(--purple); color: #4A3F6B; background: #EFECF5; }
.ic2-k-gov { border-color: var(--teal); color: #21504F; background: #E6F1F0; }
.ic2-k-inf { border-color: var(--amber); color: #6B4A12; background: #FBF1DE; }
.ic2-k-news { border-color: var(--gray); color: #454B50; background: #EEF0F1; }

/* ===== 2. 1カラム縦並びの3ステップ（①何を言った？ → ②なぜ？ → ③どうなった？） ===== */
.ic2-three {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 28px;
}
.ic2-p {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.ic2-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 2px solid var(--line);
  background: var(--ic);
  color: #fff;
}
.ic2-hd-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ic2-hd b { font-size: 1.25rem; line-height: 1; }
.ic2-hd span { font-weight: 900; font-size: 1rem; }
.ic2-hd-meta {
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255,255,255,0.22);
  padding: 2px 10px;
  border-radius: 99px;
}
.ic2-p1 { --ic: var(--navy); }
.ic2-p2 { --ic: var(--teal); }
.ic2-p3 { --ic: var(--amber); }

.ic2-bd {
  padding: 14px 16px;
  font-size: 0.94rem;
}

/* ① 何を言った？：吹き出し＋テーブル＋路線図バー */
.ic2-bub {
  background: #EAF0F6;
  border-left: 5px solid var(--navy);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

/* 路線イメージ図（浦和美園 ── 約7.2km ── 岩槻） */
.ic2-route-fig {
  background: var(--paper);
  border: 1px solid var(--bs);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 12px;
}
.ic2-route-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--soft);
  margin-bottom: 6px;
}
.ic2-route-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.ic2-st {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 3px 10px;
  font-weight: 900;
}
.ic2-st.target {
  border-color: var(--brown);
  background: #FDF8EE;
}
.ic2-line-existing {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
}
.ic2-line-ext {
  flex: 1;
  min-width: 140px;
  border-top: 3px dashed var(--brown);
  text-align: center;
  padding-top: 2px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brown);
}

/* 共通データテーブル（無理な2カラム箱をやめ、視線移動が自然な表に整理） */
.ic2-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 6px 0;
  background: #fff;
  border: 1px solid var(--bs);
  border-radius: 8px;
  overflow: hidden;
}
.ic2-tbl th,
.ic2-tbl td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--bs);
  text-align: left;
  vertical-align: top;
}
.ic2-tbl tr:last-child th,
.ic2-tbl tr:last-child td {
  border-bottom: none;
}
.ic2-tbl thead th {
  background: var(--panel);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--soft);
}
.ic2-tbl tbody th {
  width: 22%;
  background: var(--paper);
  font-weight: 800;
  color: var(--ink);
}
.ic2-tbl.tbl-3col tbody th {
  width: 22%;
}
.ic2-tbl.tbl-3col thead th:nth-child(2),
.ic2-tbl.tbl-3col thead th:nth-child(3),
.ic2-tbl.tbl-3col tbody td {
  width: 39%;
}
.ic2-num-strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
}

/* ② なぜ？：結論1行＋影響と代案の整理テーブル */
.ic2-ans-line {
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #EBF4F3;
  border-left: 5px solid var(--teal);
  border-radius: 6px;
}
.ic2-ans-line .ans-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 900;
  color: #fff;
  background: var(--teal);
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 1px;
}
.ic2-badge-plus {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  color: #1E5251;
  background: #E6F1F0;
  border: 1px solid #9EC8C7;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
.ic2-badge-minus {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  color: #784B12;
  background: #FBF1DE;
  border: 1px solid #E2BE87;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
.ic2-badge-alt {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--navy);
  background: #EAF0F6;
  border: 1px solid #B6CCE2;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

/* ③ どうなった？：最上段に結果サマリ＋主要3ステップのフロー図 */
.ic2-result-hero {
  background: #FDF8EE;
  border: 2px solid var(--amber);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.ic2-res-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.ic2-res-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  background: var(--brown);
  padding: 2px 10px;
  border-radius: 5px;
}
.ic2-res-date {
  font-size: 0.76rem;
  color: var(--soft);
  font-weight: 700;
}
.ic2-res-headline {
  font-weight: 900;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

/* パネル内のコンパクト折りたたみ（補足・原文） */
details.ic2-submore {
  margin-top: 10px;
  border-top: 1px dashed var(--bs);
  padding-top: 8px;
}
details.ic2-submore summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--navy);
  padding: 2px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.ic2-submore summary::-webkit-details-marker { display: none; }
details.ic2-submore summary::after {
  content: "＋ 補足を開く";
  font-size: 0.74rem;
  background: var(--panel);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--soft);
}
details.ic2-submore[open] summary::after {
  content: "－ 閉じる";
}
.ic2-submore-body {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink);
}
.ic2-submore-body p { margin: 0 0 8px; }
.ic2-submore-body p:last-child { margin-bottom: 0; }

/* ===== 3. 編集部による評価（1カラム・テーブル＆ビジュアル中心） ===== */
.ic2-h4 {
  font-size: 1.12rem;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.ic2-h4 small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soft);
}
.ic2-views {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.ic2-view {
  padding: 0;
}
/* h4（評価の見出し・補足の見出し）：h3の「左の太い線」と区別する。線はなく、◆と下の点線（社長FB 2026-10-24） */
.ic2-view-h, .pf-sub h4 {
  margin: 0 0 6px;
  padding: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 800;
  color: var(--ink);
  border: 0;
  border-bottom: 2px dotted var(--border-soft, #c9bfae);
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
}
.ic2-view-h::before, .pf-sub h4::before { content: "◆"; font-size: 0.7em; margin-right: 6px; color: var(--ink-soft); vertical-align: 0.12em; }
.ic2-view-more { margin: 8px 0 0; font-size: 0.86rem; line-height: 1.65; color: var(--ink-soft); }
.ic2-cellmeta { display: inline-block; font-size: 0.72rem; line-height: 1.5; color: var(--ink-soft); background: var(--panel); border-radius: 4px; padding: 0 6px; margin-right: 4px; vertical-align: 0.05em; }
.ic2-view-sum {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
}

/* 評価1：発信時期の年表リスト（横分割せず1行ずつ自然に表示） */
.ic2-era-track {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0;
}
.ic2-era-node {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--bs);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.ic2-era-node b {
  min-width: 118px;
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--navy);
}

/* 評価4：価値観の対比（不自然な改行を防ぐため横幅いっぱいの2行対比カード） */
.ic2-axis-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}
.ic2-axis-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--bs);
  background: var(--paper);
  font-size: 0.88rem;
}
.ic2-axis-row.active {
  border-color: var(--navy);
  background: #EAF0F6;
  font-weight: 800;
}
.ic2-axis-tag {
  font-size: 0.74rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--bs);
  white-space: nowrap;
}
.ic2-axis-row.active .ic2-axis-tag {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ===== 4. カード末尾の折りたたみ（これまでの経緯・数字一覧・出典） ===== */
details.ic2-more {
  border: 1.5px solid var(--bs);
  border-radius: 8px;
  background: #fff;
  margin: 8px 0;
  padding: 0 14px;
}
details.ic2-more summary {
  cursor: pointer;
  font-weight: 800;
  padding: 10px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
details.ic2-more summary::-webkit-details-marker { display: none; }
details.ic2-more summary::after {
  content: "▾ 開く";
  font-size: 0.78rem;
  color: var(--soft);
}
details.ic2-more[open] summary {
  border-bottom: 1px solid var(--bs);
  margin-bottom: 10px;
}
details.ic2-more[open] summary::after {
  content: "▴ 閉じる";
}

.ic2-tlv {
  position: relative;
  margin: 8px 0 12px;
  padding-left: 20px;
}
.ic2-tlv::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--bs);
}
.ic2-ev {
  position: relative;
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.6;
}
.ic2-ev::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--evc, var(--navy));
  border: 2px solid var(--line);
}
.ic2-ev b { font-size: 0.82rem; color: var(--soft); }
.ic2-ev-city { --evc: var(--teal); }
.ic2-ev-res { --evc: var(--amber); }

.ic2-small {
  font-size: 0.82rem;
  color: var(--soft);
  line-height: 1.6;
  margin: 6px 0 10px;
}
.ic2-src {
  font-size: 0.82rem;
  color: var(--soft);
  padding-left: 1.5em;
  margin: 6px 0 12px;
}
.ic2-src li {
  margin-bottom: 5px;
  line-height: 1.5;
}
.ic2-src li:target {
  background: #FFF3CD;
  padding: 2px 6px;
  border-radius: 4px;
}

/* スマホ等の狭い画面ではテーブルの見出しセルを上段バーにし、本文セルを横幅100%にして不自然な改行を完全に防ぐ */
@media (max-width: 560px) {
  .wrap { padding: 14px 12px 48px; }
  .ic2-h3 { font-size: 1.18rem; }
  .ic2-bd { padding: 12px; }
  .ic2-tbl, .ic2-tbl tbody, .ic2-tbl tr, .ic2-tbl th, .ic2-tbl td {
    display: block;
    width: 100% !important;
  }
  .ic2-tbl thead { display: none; }
  .ic2-tbl tbody tr {
    border-bottom: 1.5px solid var(--bs);
  }
  .ic2-tbl tbody tr:last-child { border-bottom: none; }
  .ic2-tbl tbody th {
    background: var(--panel);
    padding: 6px 10px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--bs);
  }
  .ic2-tbl tbody td {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
  .ic2-tbl.tbl-3col tbody td::before {
    content: attr(data-label);
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 900;
    color: var(--soft);
    background: var(--paper);
    border: 1px solid var(--bs);
    border-radius: 4px;
    padding: 1px 6px;
    margin-right: 6px;
    margin-bottom: 3px;
  }
  .ic2-era-node, .ic2-axis-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* 部品（engine/issue_card.py）で足した分 */
.ic2-pill-realized { background: var(--navy); }
.ic2-pill-ongoing { background: var(--teal); }
.ic2-pill-unrealized { background: var(--brown); }
.ic2-pill-unverified { background: var(--gray); }
.ic2-draft { display: inline-block; font-size: .72rem; font-weight: 800; color: #6B4A12; background: #FBF1DE; border: 1px solid var(--amber); border-radius: 4px; padding: 1px 8px; }
.ic2-meter-fig { margin: 8px 0 2px; }
.ic2-meter-label { font-size: .78rem; font-weight: 800; color: var(--soft); }
.ic2-big { font-size: 1.5rem; font-weight: 900; line-height: 1.15; }
.ic2-big small { font-size: .82rem; font-weight: 700; color: var(--soft); }
.ic2-meter { height: 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #EEF0F1; overflow: hidden; display: flex; margin: 4px 0; max-width: 240px; }
.ic2-meter span { display: block; height: 100%; background: var(--amber); }
.ic2-meter span.sub { background: #E3C78F; }
.ic2-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.ic2-chips span { font-size: .8rem; border: 1px solid var(--bs); border-radius: 6px; padding: 1px 8px; background: var(--paper); }
.ic2-fig { margin: 8px 0; }
.ic2-fig img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.ic2-fig figcaption, .ic2-credit { font-size: .76rem; color: var(--soft); }
.ic2-video { display: inline-block; padding: 6px 12px; border: 2px solid var(--line); border-radius: 8px; font-weight: 800; background: #fff; text-decoration: none; }
.ic2-gaps { margin: 0; padding-left: 1.3em; font-size: .86rem; line-height: 1.6; }
.ic2-bd .ic2-submore-body { background: var(--paper); }

/* --- 暮らしの場面別（engine/life.py。設計書29 §2） --- */
.lf-scene { --navy:#1E4E79; --teal:#3E7C7B; --amber:#B07B2A; --brown:#8C5A2B; --purple:#6B5B95; --gray:#6C757D; --bs:#DED6C4; --soft:var(--ink-soft); --faint:var(--ink-faint); border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 14px 0; background: var(--paper); }
.lf-h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.5; }
.lf-point { border-top: 1px solid var(--border-soft); padding: 8px 0; }
.lf-point:first-of-type { border-top: 0; }
.lf-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.lf-topic { font-size: 0.98rem; }
.lf-asof { font-size: 0.78rem; color: var(--ink-soft); }
.lf-rows { margin: 0; }
.lf-r { display: grid; grid-template-columns: 5.6em 1fr; gap: 2px 8px; padding: 4px 0; font-size: 0.9rem; line-height: 1.6; }
.lf-r dt { font-weight: 800; color: var(--ink-soft); }
.lf-r dd { margin: 0; }
.lf-unk { background: var(--panel); border-radius: 6px; padding: 6px 10px; font-size: 0.85rem; margin: 6px 0; }
.lf-unk ul { margin: 4px 0 0; padding-left: 1.2em; }
.lf-more { margin: 6px 0 0; font-size: 0.88rem; }

/* --- 議員ページ（新構成 .mp2）：h2をブロックにして、h3と区別する（社長FB 2026-10-22） --- */
.mp2 h2 {
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm);
  padding: 11px 14px; margin: 46px 0 16px; font-size: 1.18rem; line-height: 1.4;
}
.mp2 h2::before { background: var(--accent); border-color: var(--paper); width: 10px; height: 10px; }
.mp2 h2 a { color: var(--paper); }
.mp2 h3 { margin-top: 24px; }
.pf-blk { border: 2px solid var(--line); border-radius: 8px; background: var(--paper); padding: 10px 12px; margin: 0 0 12px; }
.pf-blk .unit-card { border: 0; box-shadow: none; padding: 4px 0; margin: 0 0 8px; }
.pf-blk table { margin-top: 4px; }
.toc-blk { border: 2px solid var(--line); border-radius: 8px; background: var(--panel); padding: 10px 14px; margin: 18px 0 4px; }
.toc-title { font-weight: 800; font-size: 0.92rem; margin-bottom: 4px; }
.toc-blk ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 24px; font-size: 0.92rem; line-height: 1.9; }
.toc-blk a { color: var(--ink); }
@media (max-width: 720px) { .toc-blk ol { columns: 1; } .mp2 h2 { font-size: 1.06rem; margin-top: 34px; } }

/* --- 暮らしの場面別：トピックのタブと、インフォグラフィック（engine/life.py） --- */
.lf-tabs { --navy:#1E4E79; --teal:#3E7C7B; --amber:#B07B2A; --brown:#8C5A2B; --purple:#6B5B95; --gray:#6C757D; --bs:#DED6C4; --soft:var(--ink-soft); --faint:var(--ink-faint); }
.lf-tablist { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin-bottom: 8px; scrollbar-width: thin; }
.lf-tab { flex: 0 0 auto; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; font-size: 0.84rem; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.lf-tab.on { background: var(--ink); color: var(--paper); }
.lf-panel { border: 2px solid var(--line); border-radius: 8px; padding: 12px; background: var(--paper); }
.lf-panel[hidden] { display: none; }
.lf-h3 { margin: 0 0 10px; font-size: 1.04rem; line-height: 1.55; border-left: 4px solid var(--accent); padding-left: 10px; }
.lf-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
.lf-cell { border: 1.5px solid var(--bs); border-top: 5px solid var(--navy); border-radius: 6px; padding: 7px 9px 8px; background: var(--panel); min-width: 0; }
.lf-c-view { border-top-color: var(--purple); }
.lf-c-goal { border-top-color: var(--teal); }
.lf-c-now { border-top-color: var(--amber); }
.lf-cell b { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 3px; }
.lf-cell p { margin: 0; font-size: 0.88rem; line-height: 1.55; overflow-wrap: anywhere; }
.lf-cell .ic2-status-pill { margin-top: 6px; }
.lf-sum { margin: 6px 0 8px; font-size: 0.95rem; line-height: 1.75; }
.lf-asof { margin-left: 6px; font-size: 0.74rem; color: var(--ink-soft); font-weight: 400; }
@media (max-width: 380px) { .lf-info { grid-template-columns: 1fr; } }
/* スマホ：インフォグラフィックを、左にラベル・右に短文の4行にして、縦の長さを抑える */
@media (max-width: 480px) {
  .lf-info { grid-template-columns: 1fr; gap: 6px; }
  .lf-cell { display: grid; grid-template-columns: 4.6em 1fr; gap: 0 8px; border-top-width: 1.5px; border-left: 5px solid var(--navy); padding: 6px 8px; align-items: start; }
  .lf-c-view { border-left-color: var(--purple); }
  .lf-c-goal { border-left-color: var(--teal); }
  .lf-c-now { border-left-color: var(--amber); }
  .lf-c-concern { border-top-color: var(--bs); }
  .lf-c-view, .lf-c-goal, .lf-c-now { border-top-color: var(--bs); }
  .lf-cell b { margin: 0; font-size: 0.78rem; }
  .lf-cell .ic2-status-pill, .lf-cell .lf-asof { grid-column: 2; justify-self: start; }
}
.lf-tabs .ic2-cite { font-size: 0.7rem; padding: 0 5px; margin-left: 2px; }
.lf-tabs .ic2-cite { display: inline-block; line-height: 1.35; padding: 0 4px; vertical-align: baseline; }
.lf-sum { line-height: 1.8; }
.lf-tabs .ic2-cite { min-height: 0 !important; }
.lf-cell .ic2-status-pill { max-width: 100%; white-space: normal; line-height: 1.4; }

/* ===== 社長FB（2026-10-22 その2） ===== */
/* h2：黒をやめて、サイトのクリーム色の帯＋赤の見出しブロック */
.mp2 h2 {
  background: var(--panel-2); color: var(--ink);
  border: 2px solid var(--line); border-left-width: 12px; border-left-color: var(--accent);
  border-radius: 8px; box-shadow: var(--shadow-sm);
  padding: 12px 14px; margin: 44px 0 16px; font-size: 1.2rem; line-height: 1.4;
}
.mp2 h2::before { display: none; }
.mp2 h2 a { color: var(--ink); }
/* タブ：折り返して、横スクロールをなくす */
.lf-tablist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; padding: 0; margin-bottom: 10px; }
.lf-tab { border-radius: 8px; padding: 8px 10px; text-align: left; white-space: normal; line-height: 1.35; font-size: 0.82rem; border-width: 2px; background: var(--paper); box-shadow: 2px 2px 0 var(--line); }
.lf-tab.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; transform: translate(2px, 2px); }
@media (min-width: 721px) { .lf-tablist { grid-template-columns: repeat(5, 1fr); } }
/* 1枚絵のフローチャート */
.lf-flow { margin: 8px 0 12px; padding: 12px 12px 10px; border: 2px dashed var(--bs); border-radius: 10px; background: var(--panel); }
.lf-flow figcaption { font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 8px; }
.lf-node { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 2px solid var(--line); border-left-width: 8px; border-radius: 8px; padding: 8px 10px; box-shadow: var(--shadow-sm); }
.lf-c-concern { border-left-color: var(--navy); }
.lf-c-view { border-left-color: var(--purple); }
.lf-c-goal { border-left-color: var(--teal); }
.lf-c-now { border-left-color: var(--amber); }
.lf-ic { font-size: 1.3rem; line-height: 1.2; }
.lf-nb { min-width: 0; flex: 1; }
.lf-nb b { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 2px; }
.lf-nb p { margin: 0; font-size: 0.92rem; line-height: 1.55; overflow-wrap: anywhere; }
.lf-nb .ic2-status-pill { margin-top: 6px; max-width: 100%; white-space: normal; line-height: 1.4; }
.lf-link { position: relative; height: 30px; margin-left: 24px; }
.lf-link::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 8px; border-left: 3px solid var(--line); }
.lf-link::after { content: ""; position: absolute; left: 0; bottom: 0; border: 8px solid transparent; border-top: 10px solid var(--line); border-bottom: 0; }
.lf-link span { position: absolute; left: 22px; top: 4px; font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); }
.lf-info, .lf-cell { display: none; }
/* 同じ区の議員の比較表 */
.rv-tbl tr.me { background: var(--accent-tint); }
.rv-tbl td, .rv-tbl th { font-size: 0.86rem; }

/* ===== 社長FB（2026-10-22 その3） ===== */
/* メインを1枚のカードにしない：枠・影・背景をなくして、見出しで区切る */
article.mp2 { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 8px 2px 40px; }
@media (max-width: 720px) { article.mp2 { padding: 4px 0 24px; } }
/* 目次：他のブロック（黒い枠）と区別して、薄い地色に左の線だけ */
.toc-blk { border: 0; border-left: 4px solid var(--accent); background: var(--panel); border-radius: 2px 8px 8px 2px; box-shadow: none; padding: 12px 16px; }
.toc-title { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-soft); }
/* 関連（同じ区の議員）は、スマホでも本文の下に出す */
@media (max-width: 720px) { .side-related .side-rivals { display: block !important; } }

/* プロフィール：枠をなくし、表の下に編集部のまとめ（社長FB 2026-10-22 その4） */
.pf-blk { border: 0; background: transparent; padding: 0; margin: 0 0 8px; }
.pf-blk .unit-card { border: 0; box-shadow: none; }
.pf-edit { margin-top: 18px; }
.pf-edit h3 { margin-top: 0; }
.pf-edit p { line-height: 1.85; }

/* ===== 公約の節：注力度の表（社長FB 2026-10-22 その5・目を引く版） ===== */
.pl-tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 10px; font-size: 0.92rem; border: 2px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; background: var(--paper); }
.pl-tbl caption { caption-side: top; text-align: left; font-size: 0.8rem; color: var(--ink-soft); padding: 0 0 10px; line-height: 1.5; }
.pl-tbl thead th { background: var(--accent); color: var(--accent-ink); padding: 11px 12px; text-align: left; font-size: 0.84rem; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; border: 0; }
.pl-tbl thead th small { display: block; font-weight: 400; opacity: 0.85; white-space: normal; font-size: 0.7rem; letter-spacing: 0; }
.pl-tbl tbody tr:nth-child(even) td { background: #FAF6EC; }
.pl-tbl td { border: 0; border-top: 1px solid var(--border-soft); padding: 12px; vertical-align: middle; line-height: 1.55; }
.pl-tbl td.pl-t { font-weight: 800; min-width: 11em; font-size: 0.95rem; }
.pl-tbl td.pl-t a { color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent-tint); }
.pl-tbl td.pl-g { min-width: 11em; }
.pl-tbl td.pl-s { white-space: nowrap; }
.pl-tbl td.pl-l { font-size: 0.88rem; }
.pl-gw { min-width: 0; }
.pl-bar { display: block; height: 14px; background: #ECE4D2; border-radius: 7px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1E4E79, #3E7C7B); border-radius: 7px; }
.pl-num { display: block; margin-top: 5px; font-size: 0.84rem; font-weight: 800; white-space: nowrap; }
.pl-st-hi td.pl-t { box-shadow: inset 7px 0 0 var(--accent); }
.pl-st-lo td.pl-t { box-shadow: inset 7px 0 0 #D9D1BD; }
.pl-st-lo td { color: var(--ink-soft); }
.pl-tbl .plb { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; }
.pl-tbl .plb::before, .pl-key .plb::before { margin-right: 4px; font-weight: 900; }
.plb.実現::before { content: "✓"; }
.plb.進行中::before { content: "▶"; }
.plb.実現していない::before { content: "×"; }
.plb.未確認::before { content: "？"; }
.pl-key { list-style: none; margin: 0 0 16px; padding: 10px 12px; background: var(--panel); border-radius: 8px; font-size: 0.8rem; line-height: 1.9; display: grid; gap: 2px 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pl-key li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ic2-pledge { margin-left: auto; font-size: 0.74rem; font-weight: 800; padding: 2px 8px; border-radius: 4px; border: 1.5px solid var(--accent); color: var(--accent); background: var(--accent-tint); text-decoration: none; white-space: nowrap; }
/* スマホ：1行を1枚のカードにして、各項目の名前を左に付ける */
@media (max-width: 720px) {
  .pl-tbl { border: 0; box-shadow: none; background: transparent; overflow: visible; }
  .pl-tbl, .pl-tbl tbody, .pl-tbl tr, .pl-tbl td { display: block; width: 100%; }
  .pl-tbl caption { display: block; width: 100%; }
  .pl-tbl thead { position: absolute; left: -9999px; }
  .pl-tbl tr { border: 2px solid var(--line); border-radius: 10px; margin: 0 0 12px; background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; }
  .pl-tbl tbody tr:nth-child(even) td { background: transparent; }
  .pl-tbl td { border: 0; border-bottom: 1px solid var(--border-soft); display: grid; grid-template-columns: 6.4em 1fr; gap: 8px; align-items: center; padding: 9px 12px; }
  .pl-tbl td:last-child { border-bottom: 0; }
  .pl-tbl td::before { content: attr(data-label); font-size: 0.74rem; font-weight: 800; color: #fff; background: var(--ink-soft); border-radius: 4px; padding: 2px 6px; text-align: center; line-height: 1.3; }
  .pl-tbl td.pl-t { background: var(--panel-2) !important; font-size: 0.95rem; min-width: 0; }
  .pl-st-hi td.pl-t { box-shadow: inset 7px 0 0 var(--accent); }
  .pl-st-lo td.pl-t { box-shadow: inset 7px 0 0 #D9D1BD; }
  .pl-tbl td.pl-g { min-width: 0; }
  .pl-tbl td.pl-s .plb { justify-self: start; width: fit-content; }
}

/* 表の見出し行：色を抑える（左の線の赤と重ねない） */
.pl-tbl thead th { background: var(--panel-2); color: var(--ink); border-bottom: 2px solid var(--line); }
.pl-tbl thead th small { opacity: 0.7; }

/* 表の見出し行：文字を大きく、中央揃え（社長FB 2026-10-23） */
.pl-tbl thead th { font-size: 1rem; text-align: center; padding: 13px 10px; }
.pl-tbl thead th small { font-size: 0.76rem; }
.pl-tbl td.pl-g, .pl-tbl td.pl-s { text-align: center; }
.pl-tbl td.pl-num, .pl-tbl .pl-num { text-align: center; }
@media (max-width: 720px) {
  .pl-tbl td::before { font-size: 0.84rem; padding: 3px 6px; }
  .pl-tbl td.pl-s, .pl-tbl td.pl-g { text-align: left; }
}

/* ラベルと公約名の色を抑える（社長FB 2026-10-23） */
.pl-tbl td.pl-t a { color: var(--ink); border-bottom: 2px solid var(--accent-tint); }
@media (max-width: 720px) {
  .pl-tbl td::before { background: var(--panel-2); color: var(--ink-soft); border: 1px solid var(--border-soft); }
  .pl-tbl td.pl-t { color: var(--ink); }
}

/* ===== レスポンシブな表（rs-tbl）：PCは表、スマホ（720px以下）は1行1カード（仕様書30 §4-2） ===== */
.rs-tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 14px; font-size: 0.92rem; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.rs-tbl thead th { background: var(--panel-2); color: var(--ink); border-bottom: 2px solid var(--line); padding: 11px 12px; text-align: center; font-size: 1rem; font-weight: 800; }
.rs-tbl tbody tr:nth-child(even) td { background: #FAF6EC; }
.rs-tbl td { border-top: 1px solid var(--border-soft); padding: 10px 12px; vertical-align: top; line-height: 1.6; }
@media (max-width: 720px) {
  .rs-tbl { border: 0; background: transparent; overflow: visible; }
  .rs-tbl, .rs-tbl tbody, .rs-tbl tr, .rs-tbl td { display: block; width: 100%; }
  .rs-tbl thead { position: absolute; left: -9999px; }
  .rs-tbl tr { border: 2px solid var(--line); border-radius: 10px; margin: 0 0 12px; background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; }
  .rs-tbl tbody tr:nth-child(even) td { background: transparent; }
  .rs-tbl td { border: 0; border-bottom: 1px solid var(--border-soft); display: grid; grid-template-columns: 6.2em 1fr; gap: 8px; align-items: start; padding: 9px 12px; }
  .rs-tbl td:last-child { border-bottom: 0; }
  .rs-tbl td::before { content: attr(data-label); font-size: 0.84rem; font-weight: 800; color: var(--ink-soft); background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 4px; padding: 3px 6px; text-align: center; line-height: 1.3; }
  .rs-tbl td:first-child { background: var(--panel-2) !important; font-weight: 800; }
}

/* ===== 出典は、本文では注釈番号だけ。押すとポップアップ（社長FB 2026-10-24） ===== */
.ic2-fn { font-size: 0.7em; line-height: 0; margin-left: 1px; white-space: nowrap; }
.ic2-fn a { display: inline-block; min-width: 1.3em; padding: 0 3px; text-align: center; color: var(--accent); font-weight: 800; text-decoration: none; border-radius: 4px; background: var(--accent-tint); margin: 0 1px; }
.ic2-fn a:hover, .ic2-fn a:focus { background: var(--accent); color: var(--accent-ink); }
#fn-pop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
#fn-pop[hidden] { display: none; }
#fn-pop .fn-in { pointer-events: auto; position: relative; width: min(600px, 100%); max-height: 62vh; overflow: auto; background: var(--paper); border: 2px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 0 rgba(23,19,16,0.12); padding: 14px 16px 20px; }
#fn-pop .fn-x { position: absolute; right: 8px; top: 6px; width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
#fn-pop .fn-n { font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 6px; }
#fn-pop ul.fn-li { list-style: none; margin: 0; padding: 0; }
#fn-pop li { line-height: 1.7; font-size: 0.92rem; }
#fn-pop a { color: var(--accent); font-weight: 700; }
.ic2-q { margin: 8px 0 0; padding: 6px 10px; border-left: 4px solid var(--accent); background: var(--panel); font-size: 0.86rem; line-height: 1.6; }
.ic2-st-t { font-weight: 800; }
.ic2-fn a { min-height: 0 !important; line-height: 1.5; }

/* 公約の表の「議員の活動」：狙い・行動・成果（社長FB 2026-10-24） */
.pl-a { margin: 0; display: grid; gap: 5px; }
.pl-a > div { display: grid; grid-template-columns: 3em 1fr; gap: 6px; align-items: baseline; }
.pl-a dt { font-size: 0.72rem; font-weight: 800; color: var(--ink-soft); background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 4px; text-align: center; padding: 1px 0; }
.pl-a dd { margin: 0; font-size: 0.88rem; line-height: 1.55; }
.pl-a > div:last-child dd { font-weight: 800; }

/* 出典ポップアップ：押した番号のそばに出す（画面下固定をやめる） */
#fn-pop { position: absolute; left: 0; right: auto; bottom: auto; top: 0; display: block; pointer-events: auto; z-index: 60; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; box-shadow: 0 4px 0 rgba(23,19,16,0.15); max-width: calc(100vw - 24px); }
#fn-pop[hidden] { display: none; }
#fn-pop .fn-in { position: static; width: auto; max-height: 50vh; overflow: auto; border: 0; border-radius: 10px; box-shadow: none; padding: 12px 14px 14px; }

/* 評価の補足ブロック：見出し（h4／h6）＋本文（社長FB 2026-10-24） */
.pf-sub { margin-top: 12px; }
.pf-sub p { margin: 0; font-size: 0.88rem; line-height: 1.7; }

/* ---- 公約の表：「活動」の列を広げ、1行に収める。ほかの列は必要な幅だけ（社長FB 2026-10-24） ---- */
@media (min-width: 721px) {
  .pl-tbl { table-layout: fixed; }
  .pl-tbl thead th:nth-child(1) { width: 39%; }
  .pl-tbl thead th:nth-child(2) { width: 11%; }
  .pl-tbl thead th:nth-child(3) { width: 10%; }
  .pl-tbl thead th:nth-child(4) { width: 40%; }
  .pl-bar { height: 9px; border-radius: 5px; }
  .pl-bar i { border-radius: 5px; }
  .pl-num { margin-top: 4px; font-size: 0.72rem; }
  .pl-tbl .plb { font-size: 0.7rem; padding: 3px 8px; }
  .pl-tbl .plb::before { margin-right: 3px; }
  .pl-tbl thead th { white-space: normal; padding: 10px 6px; font-size: 0.92rem; }
  .pl-tbl td { padding: 10px 8px; }
  .pl-tbl td.pl-t { min-width: 0; font-size: 0.88rem; line-height: 1.5; }
  .pl-tbl td.pl-g { min-width: 0; }
  .pl-tbl td.pl-num, .pl-tbl .pl-num { white-space: normal; font-size: 0.8rem; }
  .pl-tbl td.pl-l { font-size: 0.84rem; }
  .pl-a > div { grid-template-columns: 2.6em 1fr; gap: 5px; }
  .pl-a dd { font-size: 0.84rem; line-height: 1.5; }
}
/* 画面が狭い（721〜1000px。サイドバーがあり表が472〜600px）ときは、進捗のバッジを小さくして列に収める */
@media (min-width: 721px) and (max-width: 1000px) {
  .pl-tbl thead th:nth-child(1) { width: 36%; }
  .pl-tbl thead th:nth-child(2) { width: 13%; }
  .pl-tbl thead th:nth-child(3) { width: 12%; }
  .pl-tbl thead th:nth-child(4) { width: 39%; }
  .pl-tbl td.pl-s { padding-left: 4px; padding-right: 4px; text-align: center; }
  .pl-tbl td.pl-s .plb { font-size: 0.68rem; padding: 3px 5px; white-space: nowrap; }
  .pl-tbl td.pl-s .plb::before { display: none; }
}
/* スマホ：質問・投票が0件の公約は、注力度の行（空の棒と「取り上げなし」）を出さない。進捗「未確認」と同じ情報で、カードの高さが増えるため（ページの長さの予算） */
@media (max-width: 720px) { .pl-tbl td.pl-g-none { display: none; } .pl-st-lo td { padding-top: 6px; padding-bottom: 6px; } }
/* 進捗の見方：折りたたみ。閉じているときは1行、開くと2列 */
.pl-key-d { margin: 0 0 16px; background: var(--panel); border-radius: 8px; font-size: 0.78rem; }
.pl-key-d > summary { cursor: pointer; padding: 8px 12px; font-weight: 800; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; list-style: none; }
.pl-key-d > summary::-webkit-details-marker { display: none; }
.pl-key-d > summary::after { content: "▾ 見方"; margin-left: auto; font-weight: 600; color: var(--ink-soft); }
.pl-key-d[open] > summary::after { content: "▴ 閉じる"; }
.pl-key-d .plb { font-size: 0.7rem; padding: 2px 8px; margin: 0; }
.pl-key-d .pl-key { margin: 0; padding: 4px 12px 10px; background: transparent; font-size: 0.76rem; line-height: 1.5; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.pl-key-d .pl-key li { display: block; }
.pl-key-d .pl-key .plb { display: inline-block; margin-bottom: 2px; }

/* ①の見出しの右端：関連公約ボタンと、そのポップアップ（社長 2026-10-24） */
.ic2-plbtn { margin-left: auto; font: inherit; font-size: 0.78rem; font-weight: 800; line-height: 1.2; padding: 6px 12px; min-height: 32px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,0.85); background: rgba(255,255,255,0.18); color: #fff; cursor: pointer; white-space: nowrap; }
.ic2-plbtn::after { content: " ▾"; font-size: 0.8em; }
.ic2-plbtn:hover, .ic2-plbtn:focus-visible { background: rgba(255,255,255,0.34); }
.fn-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fn-pl li { line-height: 1.6; font-size: 0.88rem; }
.fn-pl li b { display: block; margin-bottom: 2px; }
.fn-pl a { font-size: 0.8rem; white-space: nowrap; }

/* ---- 追加する議会の一覧（選挙が近い順） ---- */
.gnav-next { display: block; padding: 8px 14px; font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.gnav-next small { display: block; font-size: 0.74rem; color: var(--ink-faint); }
.mnav-next-t { margin-top: 8px; padding: 8px 12px 2px; font-size: 0.78rem; font-weight: 800; color: var(--ink-faint); border-top: 1px solid var(--border-soft); }
.mnav-next { padding: 5px 12px; font-size: 0.86rem; color: var(--ink-soft); }
.mnav-next small { margin-left: 8px; color: var(--ink-faint); font-size: 0.76rem; }
.next-councils { border: 1px solid var(--border-soft); border-radius: 10px; padding: 14px 16px; background: var(--panel); }
.next-now { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 1rem; }
.next-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.next-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-top: 1px dashed var(--border-soft); font-size: 0.92rem; }
.next-name { font-weight: 700; }
.next-when, .next-seats { color: var(--ink-soft); font-size: 0.85rem; }
