/* manapick network 共通レイヤー（Claude デザインパッケージ 00_共通ルール準拠）
   トークン／ネットワークレール／駅バッジ／ワードマーク／乗り換えカード／
   フッター路線図（6駅版）／注記の帯・ヘッダーの土台。幅に依存しない部品を置く。
   幅依存の上書きは net-pc.css（PC）／net-sp.css（SP・タブレット）に分ける。 */

:root {
  --mp: #1f3a8a;
  --ai: #ff4438;
  --li: #15803d;
  --ca: #ffd700;
  --co: #be185d;
  --po: #6d28d9;
  --ai-ink: #b92118;
  --ca-ink: #665500;
  --paper: #f5f2ea;
  --paper-2: #ece7da;
  --ink: #16181d;
  --ink-2: #5b6270;
  --rule: #d8d2c2;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --num: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
  --it: "Cormorant Garamond", serif;
  --hand: "Klee One", "Zen Kaku Gothic New", cursive;
}

/* politics 固有トークン（po-tokens.css）。ダークモードは切替UIの指定がないため今回は取り込まない */
body.po {
  --c: #6d28d9;
  --ck: #6d28d9;
  --tint: #efeafb;
  --bg: #ffffff;
  --on: #ffffff;
  --po-link-on-tint: #5b21b6;
  --po-lt: #a78bfa;
  --po-vgray: #f6f5f9;
  --po-rule: #d9d6e2;
  --chip-bg: #e6e5ea;
  --chip-ink: #3a3a44;
  --bar: #8e8c99;
  font-family: var(--jp);
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
}

.c-mp { --c: var(--mp); }
.c-ai { --c: var(--ai); }
.c-li { --c: var(--li); }
.c-ca { --c: var(--ca); }
.c-co { --c: var(--co); }
.c-po { --c: var(--po); }

.w { display: inline-block; }
.num { font-family: var(--num); font-feature-settings: "tnum" 1; letter-spacing: 0.01em; }
.it { font-family: var(--it); font-style: italic; }

/* 政党チップ（無彩色のみ） */
.chip {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--chip-bg);
  color: var(--chip-ink);
  font-family: var(--jp);
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.chip.lg { width: 40px; height: 40px; font-size: 18px; border-radius: 6px; }

/* 駅バッジ */
.stn {
  --c: var(--mp);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid var(--c);
  border-radius: 8px;
  background: #fff;
  font-family: var(--num);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
  flex: none;
}
.stn small { display: block; font-size: 12px; font-weight: 600; margin-top: 1px; color: var(--ink-2); }
.stn.lg { width: 44px; height: 44px; border-width: 4px; border-radius: 11px; font-size: 15px; }
.stn.mp { --c: var(--mp); }
.stn.ai { --c: var(--ai); }
.stn.li { --c: var(--li); }
.stn.ca { --c: var(--ca); }
.stn.co { --c: var(--co); }
.stn.po { --c: var(--po); }

/* ネットワークレール（全ページ最上部） */
.rail {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: #111318;
  color: #fff;
  font-size: 12px;
  position: relative;
  z-index: 5;
}
.rail .lbl {
  font-family: var(--num);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
}
.rail .line { display: flex; align-items: center; gap: 0; position: relative; }
.rail .line::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.rail .s {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 0;
  margin-right: 18px;
  background: #111318;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.rail .s i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111318;
  border: 3px solid var(--c);
  position: relative;
  flex: none;
}
.rail .s.on { color: #fff; font-weight: 700; }
.rail .s.on i { background: var(--c); box-shadow: 0 0 0 3px #111318, 0 0 0 4px var(--c); }
.rail .s.on b {
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--c);
  color: #111318;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 2px;
}
.rail .s.mp.on b, .rail .s.li.on b, .rail .s.ai.on b, .rail .s.co.on b, .rail .s.po.on b { color: #fff; }
.rail .rt { margin-left: auto; display: flex; gap: 16px; opacity: 0.75; }
.rail .rt a { color: #fff; text-decoration: none; }

/* ワードマーク */
.wm {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--num);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.wm .m { font-family: var(--jp); font-weight: 900; letter-spacing: -0.04em; }
.wm .sub {
  font-family: var(--num);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 7px 2px;
  border-radius: 4px;
  color: #fff;
  background: var(--c);
}

/* ヘッダーのボタン・検索欄（寸法は po の .btn-c／.sbox） */
.btn-c {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--c);
  color: var(--on);
  font-weight: 700;
  font-size: 13px;
  border: 1.5px solid var(--c);
  text-decoration: none;
  white-space: nowrap;
}
.hd3-search { position: relative; }
.hd3-search .searchbox-field { position: relative; }
.hd3-search input {
  display: flex;
  align-items: center;
  width: 240px;
  height: 44px;
  padding: 0 14px 0 36px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  color: var(--ink);
  font-family: var(--jp);
}
.hd3-search input::placeholder { color: var(--ink-2); font-size: 12.5px; }
.hd3-search .searchbox-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 0;
  pointer-events: none;
}
.hd3-search .searchbox-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  max-width: 80vw;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 60;
  box-shadow: 0 12px 28px rgba(22, 24, 29, 0.16);
}
.hd3-search .searchbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  background: none;
  border: 0;
  border-radius: 8px;
  font-family: var(--jp);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.hd3-search .searchbox-kind {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ck);
  border: 1px solid var(--po-rule);
  border-radius: 4px;
  padding: 1px 6px;
}

/* 乗り換えカード */
.xfer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  position: relative;
  color: var(--ink);
  text-decoration: none;
}
.xfer .k { font-family: var(--num); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-2); }
.xfer .t { font-weight: 700; font-size: 14px; line-height: 1.5; }
.xfer .d { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.xfer .go { font-family: var(--num); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.xfer .go::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M8 6l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center/22px no-repeat;
}
.xfer.ca .go::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M8 6l5 5-5 5' fill='none' stroke='%23111' stroke-width='2.2'/%3E%3C/svg%3E");
}

/* フッター路線図（6駅版） */
.route { background: #111318; color: #fff; padding: 56px 48px 40px; }
.route h4 {
  font-family: var(--num);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 6px;
}
.route .lead {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.5;
  margin-bottom: 34px;
}
.route .map { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.route .map::before {
  content: "";
  position: absolute;
  left: 8.33%;
  right: 8.33%;
  top: 22px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--mp) 0 16.66%, var(--ai) 16.66% 33.33%, var(--li) 33.33% 50%, var(--ca) 50% 66.66%, var(--co) 66.66% 83.33%, var(--po) 83.33%);
}
.route .st { text-align: center; position: relative; color: #fff; text-decoration: none; }
.route .st i {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #111318;
  border: 6px solid var(--c);
  position: relative;
}
.route .st.on i { background: var(--c); }
.route .st b { display: block; font-size: 15px; }
.route .st span { display: block; font-size: 12px; opacity: 0.65; line-height: 1.6; }
.route .st em { font-style: normal; font-family: var(--num); font-size: 11px; letter-spacing: 0.14em; opacity: 0.55; }
.route .legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  opacity: 0.6;
}
.route .legal a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.route .legal .copy { display: inline-flex; align-items: center; min-height: 44px; }

/* フッターの注記（po-pc.css の .foot-note の土台） */
.foot-note { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }
.foot-note b { color: #fff; }
.foot-note a { color: #a78bfa; text-decoration: underline; }

/* フッター内のメルマガフォーム（現行 NewsletterForm の置き場。新フッターの色に合わせる） */
.route .newsletter { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); max-width: 640px; }
.route .newsletter-title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}
.route .newsletter-text { font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, 0.78); }
.route .newsletter-label { display: block; font-size: 12px; font-weight: 700; color: #fff; margin: 12px 0 6px; }
.route .newsletter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.route .newsletter-row input {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-family: var(--jp);
}
.route .newsletter-row button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1.5px solid var(--po);
  background: var(--po);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--jp);
  cursor: pointer;
}
.route .newsletter-note { font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); margin-top: 8px; }

/* 乗り換えシート（SPタブバーの「乗り換え」から開く） */
.xfer-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 29, 0.5);
  z-index: 80;
}
.xfer-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 81;
  background: #111318;
  color: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
.xfer-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.xfer-sheet-title { font-family: var(--num); font-weight: 600; letter-spacing: 0.18em; font-size: 12px; opacity: 0.7; }
.xfer-sheet-close {
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-family: var(--jp);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.xfer-sheet a {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  column-gap: 6px;
  min-height: 44px;
  padding: 6px 0;
  color: #fff;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.xfer-sheet a i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111318;
  border: 5px solid var(--c);
  grid-row: span 2;
}
.xfer-sheet a.on i { background: var(--c); }
.xfer-sheet a b { font-size: 15px; }
.xfer-sheet a span { font-size: 12px; opacity: 0.65; }

/* SP 下部タブバーは net-sp.css で表示する */
.spbar { display: none; }

/* ============================================================
   段3：下層ページ共通（パンくず／eyeb／共有の様式／乗り換え節）
   ============================================================ */
.crumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); padding-top: 18px; }
.crumb a::after { content: "／"; margin-left: 8px; color: var(--rule); }
.crumb a { color: var(--ink-2); }
.crumb span { color: var(--ink); }

.eyeb { display: flex; align-items: center; gap: 10px; font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; color: var(--ck); }

/* 共有ボタン：機能は現行のまま、様式だけパッケージのトーンに合わせる（F2） */
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-2); }
.share-head { margin: 16px 0 4px; }
.share-tail { margin: 26px 0 6px; }
.share-label { font-family: var(--num); font-weight: 600; letter-spacing: 0.14em; font-size: 12px; color: var(--ink); }
/* 丸アイコン様式は共通テンプレート04 .share が根拠。寸法はタップ44pxの全社裁定を優先し 36px→44px */
.share-c {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center; background: #fff; color: var(--ink);
  font-family: var(--num); font-weight: 700; font-size: 12px; text-decoration: none; cursor: pointer; padding: 0;
}
.share-c svg { width: 18px; height: 18px; }
.share-copied { font-size: 12.5px; font-weight: 700; color: var(--ck); }
.share-tail-row { padding-bottom: 8px; }

/* 下層ページ末尾の乗り換え節（.sh + .g4.xg） */
.xfer-sec { padding-bottom: 60px; }
.xfer-sec .sh { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 18px; }
.xfer-sec .sh h2 { font-family: var(--mincho); font-weight: 700; font-size: 26px; letter-spacing: 0.05em; }
.xfer-sec .sh .k { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; color: var(--ck); }
.xfer-sec .g4 { display: grid; gap: 12px; }

/* ============================================================
   段3：政党ページ（様式 PO-P）
   ============================================================ */
.form-top b { font-family: var(--num); font-weight: 600; letter-spacing: 0.16em; color: var(--ink); }
.namerow .sub2 { color: var(--ink-2); }
.namerow .note { color: var(--ink-2); line-height: 1.6; }
.gz { border-top: 2px solid var(--ink); }
.gz > section > h2 { font-family: var(--mincho); font-weight: 700; line-height: 1.5; }
.gz > section > h2 small { font-family: var(--num); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; color: var(--ink-2); }
.gz-summary { margin: 18px 0 4px; }
.gz-note { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.gz-linkline { font-size: 14.5px; margin-top: 10px; line-height: 1.8; }
.gz-linkline a { color: var(--po-link-on-tint); text-decoration: underline; text-underline-offset: 3px; }
.gz-about { font-size: 14.5px; line-height: 1.85; margin-bottom: 10px; }
.seat .h { font-size: 14px; font-weight: 700; }
.seat .h small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.seat .v { font-family: var(--num); font-weight: 600; white-space: nowrap; }
.seat .v small { font-family: var(--jp); color: var(--ink-2); margin-left: 4px; }
.seat .bar { height: 10px; background: #f0eff3; border: 1px solid var(--po-rule); position: relative; }
.seat .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar); }
.seat .m { font-size: 12px; color: var(--ink-2); }
.kv { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kv th { text-align: left; font-weight: 500; color: var(--ink-2); vertical-align: top; }
.kv td { border-bottom: 1px solid var(--po-rule); }
.kv td.n { font-family: var(--num); font-weight: 600; font-size: 18px; }
.kv td a { color: var(--po-link-on-tint); text-decoration: underline; text-underline-offset: 3px; }
/* 出典リストは左の字下げ（ブラウザ既定・本文の .blk ul の 1.4em）を消し、見出し・「確認日」と左端をそろえる
   （行頭の記号がないのに区切り線ごと右にずれていた） */
.srcl { list-style: none; font-size: 13.5px; padding-left: 0; }
.blk .srcl { padding-left: 0; }
.srcl li { padding: 8px 0; border-bottom: 1px solid var(--po-rule); }
/* 確認方法の注記（li 直下の span）だけ。リンク内の文節分割の span（.ph など）には効かせない */
.srcl li > .srcl-m { font-size: 12px; color: var(--ink-2); }
.srcl li > .srcl-n { font-weight: 400; }
.srcl li a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.srcl-checked { font-size: 13px; margin-top: 8px; }
.rost2 { list-style: none; border-top: 1px solid var(--ink); margin-top: 6px; }
.rost2 li { border-bottom: 1px solid var(--po-rule); font-size: 14px; }
.rost2 li a { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; color: var(--ink); }
.rost2 li.cur { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.rost2 li.cur::after { content: "このページ"; margin-left: auto; font-size: 12px; font-weight: 500; border: 1px solid var(--ink); padding: 1px 6px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pn a { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; }

/* ============================================================
   段3：ハブ（一覧）ページ
   ============================================================ */
.hubmeta { display: grid; gap: 0; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 10px 0; margin-top: 22px; }
.hubmeta > div { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 5px 0; font-size: 14px; }
.hubmeta dt { color: var(--ink-2); font-size: 13px; }
.hubmeta dd { line-height: 1.7; }
.prow { list-style: none; border-top: 1px solid var(--ink); margin-top: 18px; }
.prow li { border-bottom: 1px solid var(--po-rule); }
.prow a { display: grid; grid-template-columns: 34px auto 1fr auto; gap: 12px; align-items: center; min-height: 56px; padding: 8px 0; color: var(--ink); }
.prow .no { font-family: var(--num); font-weight: 600; font-size: 14px; color: var(--ink-2); text-align: right; }
.prow .nm { font-family: var(--mincho); font-weight: 700; font-size: 18px; }
.prow .sts { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.prow .sts b { font-family: var(--num); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0 2px; }
.prow .go2 { font-family: var(--num); color: var(--ink-2); }
.prow .sts { justify-self: end; }
.hub-cat { margin-top: 40px; }
.hub-cat .section-lead { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; margin-top: 6px; max-width: 760px; }
.idx-list { list-style: none; margin-top: 12px; border-top: 1px solid var(--ink); }
.idx-list li { border-bottom: 1px solid var(--po-rule); }
.idx-list a { display: block; padding: 13px 0 12px; color: var(--ink); }
.idx-list .entry-head { display: flex; align-items: baseline; gap: 12px; }
.idx-list .entry-title { font-family: var(--mincho); font-weight: 700; font-size: 17px; line-height: 1.5; }
.idx-list .entry-leader { flex: 1; border-bottom: 1px dotted var(--po-rule); transform: translateY(-4px); }
.idx-list .entry-tag { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.idx-list .entry-desc { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-top: 3px; }
.idx-list .entry-soon { display: flex; align-items: center; gap: 10px; padding: 13px 0 12px; font-size: 15px; color: var(--ink-2); }
.soon-tag { font-size: 12px; border: 1px solid var(--ink-2); color: var(--ink-2); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.hub-note { font-size: 13px; color: var(--ink-2); line-height: 1.8; border-top: 1px solid var(--ink); padding-top: 10px; margin-top: 26px; }

/* ===== 段3: P-法律／P-選挙／T1・T2・T5 共通部品（パッケージ04＋各モックが正） ===== */
.fig { margin: 22px 0 28px; }
.fig .cap { display: flex; gap: 12px; align-items: baseline; font-size: 14px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.fig .cap b { font-family: var(--num); font-weight: 600; font-size: 14px; letter-spacing: .08em; color: var(--ck); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0 24px; background: #fff; }
table.t th, table.t td { padding: 11px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.t thead th { border-bottom: 1.5px solid var(--ink); font-family: var(--mincho); font-size: 15px; }
table.t th[scope="row"] { color: var(--ink-2); font-weight: 500; width: 130px; font-size: 13px; }
table.t td.n { font-family: var(--num); font-weight: 600; font-size: 17px; }
.tb { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.tb th, .tb td { padding: 11px 12px; border-bottom: 1px solid var(--po-rule); text-align: left; vertical-align: top; }
.tb thead th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--mincho); font-size: 15px; }
.tb th[scope="row"] { color: var(--ink-2); font-weight: 500; font-size: 13.5px; width: 150px; }
.tb td.n { font-family: var(--num); font-weight: 600; font-size: 18px; white-space: nowrap; }
.steps { list-style: none; counter-reset: s; margin: 20px 0 26px; display: grid; gap: 12px; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 16px 18px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--num); font-weight: 600; font-size: 34px; line-height: 1; color: var(--ck); }
.steps b { display: block; font-size: 16px; }
.steps span { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); margin: 22px 0; font-size: 14.5px; line-height: 1.85; }
.callout b { font-family: var(--mincho); font-size: 15px; writing-mode: vertical-rl; letter-spacing: .3em; border-right: 1.5px solid var(--ink); padding-right: 10px; }
.cathead { display: flex; align-items: baseline; gap: 12px; margin: 0 0 4px; flex-wrap: wrap; }
.cathead .cno { font-family: var(--num); font-weight: 600; font-size: 15px; color: var(--ck); }
.cathead h2 { font-family: var(--mincho); font-weight: 700; font-size: 21px; line-height: 1.5; }
.cathead .cen { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--ink-2); }
.acard { background: #fff; border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; display: block; }
/* 画像域 .ph（16/9）。リンク先ページの OG 画像を表示する。
   画像のないカード（外部サイトへのリンク）だけ、従来のプレースホルダ様式（ベージュ地＋グレイン）で出す。
   サイト側の Seg 用クラス .ph（文節分割 span）と名前が衝突するため、直下の子だけに限定する */
.acard > .ph { position: relative; overflow: hidden; background: #cfc8b8; isolation: isolate; aspect-ratio: 16/9; }
.acard > .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acard > .ph:not(:has(> img))::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); mix-blend-mode: multiply; opacity: .5; z-index: 1; }
.acard .b { padding: 14px 16px 16px; }
.acard .k { font-size: 12px; font-weight: 700; color: var(--ck); letter-spacing: .06em; }
.acard h3 { font-size: 15px; line-height: 1.6; font-weight: 700; margin-top: 4px; }
.acard .tx { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-top: 6px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ladder { border: 1.5px solid var(--ink); background: #fff; padding: 16px 18px 14px; }
.ladder .cap { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-bottom: 10px; }
.ladder .cap b { font-family: var(--num); font-weight: 600; color: var(--ck); letter-spacing: .08em; }
.rung { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 40px; font-size: 14px; position: relative; }
.rung i { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; justify-self: center; position: relative; z-index: 1; }
.rung::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.rung:first-of-type::before { top: 50%; }
.rung:last-of-type::before { bottom: 50%; }
.rung em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.rung.here { font-weight: 700; }
.rung.here i { background: var(--c); border-color: var(--c); width: 18px; height: 18px; }
.rung.here span { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ladder .k2 { font-size: 12px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.ladder .k2 a { display: inline-flex; align-items: center; min-height: 44px; }
.ly b { font-family: var(--mincho); font-size: 19px; }
.ly > span { font-size: 13.5px; color: var(--ink-2); } /* 見出し（b）の中の文節分割の span には効かせない */
.ly .tg { position: absolute; right: 12px; top: 10px; font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .16em; }
.scn { counter-reset: s; list-style: none; padding: 0; }
.scn li { counter-increment: s; font-size: 14.5px; line-height: 1.8; position: relative; }
.scn li::before { content: "場面 " counter(s); display: block; font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--ck); margin-bottom: 4px; }
.scn li b { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; margin-top: 6px; }
.stat3 { list-style: none; border-top: 1px solid var(--ink); padding: 0; }
.stat3 li { border-bottom: 1px solid var(--po-rule); font-size: 14.5px; }
.stat3 li b { font-family: var(--mincho); }
.stat3 li span { font-size: 13px; color: var(--ink-2); }
.stat3 a { font-size: 13px; text-decoration: underline; }
.ballot { border: 1.5px solid var(--ink); background: #fff; position: relative; }
.ballot .bh { display: flex; justify-content: space-between; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.ballot .bh b { font-family: var(--mincho); color: var(--ink); font-size: 15px; }
.ballot .box { border: 1px dashed var(--ink-2); display: grid; place-items: center; font-family: var(--hand); color: var(--ink-2); }
.ballot .no2 { position: absolute; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--num); font-weight: 700; }
.flow .tag, .ebranch .tag, .elines .tag { position: absolute; left: 0; background: #fff; font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--ck); }
.e404 .big { font-family: var(--num); font-weight: 600; line-height: .9; letter-spacing: -.02em; }
.e404 .big span { color: var(--c); }
.e404 h1 { font-family: var(--mincho); font-weight: 700; font-size: 34px; margin-bottom: 10px; line-height: 1.5; }
.e404 p { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.blk p { font-size: 16px; line-height: 1.95; margin: 0 0 14px; }
.blk ul, .blk ol { margin: 0 0 16px; padding-left: 1.4em; font-size: 16px; line-height: 1.9; }
.blk li { margin-bottom: 6px; }
.blk h3 { font-size: 18px; font-weight: 900; margin: 26px 0 8px; line-height: 1.6; }
.blk .fig:first-child { margin-top: 4px; }
.fold { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--po-rule); margin: 18px 0; }
.fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px 4px; cursor: pointer; font-weight: 700; font-size: 15px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "＋"; font-family: var(--num); font-weight: 600; color: var(--ck); flex: none; }
.fold[open ] summary::after { content: "−"; }
.fold .fold-body { padding: 2px 4px 16px; font-size: 15px; line-height: 1.9; }
.fold .fold-body p { font-size: 15px; }
.law-aside .mini ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13px; line-height: 1.7; }
.law-aside .mini ul.aside-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.next-g3 { margin-top: 6px; }
a.acard { color: inherit; text-decoration: none; }
/* #about はトップ章06の「このサイトについて」見出し（.about-h）に置く。「全文を読む」「このサイトについて」の
   着地はその見出しが画面上部に来る位置。ヘッダーは固定式ではないため、
   scroll-margin は見出しが画面端に張り付かないための余白分のみ */
#about { scroll-margin-top: 24px; }
.fig-ladder .rung { min-height: 52px; }
.rung-ex { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 400; line-height: 1.6; }
/* 条例などの「ぶら下がり」段も、ノードは本線（縦線）の上に置く。
   段の区切りは破線だけが担い、縦線は .rung::before の既定どおりノードまで通す */
.fig-ladder .rung.branch { border-top: 1px dashed var(--po-rule); }
.flow-link { display: block; color: inherit; text-decoration: none; }
.flow-link .flow-line-more { display: block; text-align: right; font-size: 13px; font-weight: 700; color: var(--ck); margin-top: 8px; }
.ebranch { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 30px 0 0; padding: 26px 0 30px; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); position: relative; }
.ebranch .br { text-align: center; padding: 0 12px; position: relative; }
.ebranch .br i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #fff; border: 4px solid var(--c); font-style: normal; font-family: var(--num); font-weight: 700; font-size: 15px; position: relative; }
.ebranch .br b { display: block; font-size: 16px; }
.ebranch .br span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.7; }
.elines { display: grid; gap: 14px; margin: 30px 0 0; padding: 26px 0 30px; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); position: relative; }
.eline { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.eline i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 4px solid var(--c); font-style: normal; font-family: var(--num); font-weight: 700; font-size: 15px; }
.eline b { display: block; font-size: 16px; }
.eline span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.phead { padding: 26px 0 30px; border-bottom: 1px solid var(--ink); }
.phead h1 { font-family: var(--mincho); font-weight: 700; font-size: 42px; line-height: 1.42; letter-spacing: .05em; margin: 14px 0 12px; max-width: 900px; }
.phead .lead { font-size: 16px; color: var(--ink); max-width: 760px; line-height: 1.9; } /* 法令ページのリードと同じ黒に */
.phead .flow, .phead .ebranch, .phead .elines { margin-bottom: 4px; }
.tag2.single { max-width: 560px; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.split2 .sb { border: 1.5px solid var(--ink); background: #fff; padding: 16px 18px; }
.split2 .sb b { display: block; font-family: var(--mincho); font-size: 16px; margin-bottom: 6px; }
.split2 .sb p { font-size: 14px; color: var(--ink-2); line-height: 1.85; margin: 0; }
.flow-fork { text-align: center; font-weight: 700; margin: 12px 0; font-size: 15px; }
.gapbars { display: grid; gap: 10px; margin: 6px 0 4px; }
.gapbar { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: center; font-size: 14px; }
.gapbar-track { height: 10px; background: #f0eff3; border: 1px solid var(--po-rule); position: relative; display: block; }
.gapbar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar, #3f4652); display: block; }
.gapbar-value { font-family: var(--num); font-weight: 600; white-space: nowrap; }

/* ===== 段3: P-クイズ（モック po クイズ様式） ===== */
.qwrap { max-width: 972px; margin: 0 auto; }
.qhead { margin: 0 auto 8px; max-width: 860px; }
.qhead h1 { font-family: var(--mincho); font-weight: 700; font-size: 30px; letter-spacing: .05em; line-height: 1.5; }
.qhead-p { max-width: 860px; margin: 0 auto 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.paper { max-width: 860px; margin: 0 auto; background: #fff; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--po-vgray); }
.ph1 { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 3px double var(--ink); font-size: 13px; }
.ph1 b { font-family: var(--mincho); font-size: 15px; }
.ph1 .dev { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.dots { display: flex; align-items: center; gap: 0; padding: 14px 22px 0; }
.dots i { flex: 1; height: 2px; background: var(--po-rule); position: relative; }
.dots i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--po-rule); }
.dots i.d { background: var(--c); }
.dots i.d::after { background: var(--c); border-color: var(--c); }
.dots i.n::after { border-color: var(--c); width: 14px; height: 14px; top: -6px; right: -7px; }
.qbody { padding: 22px 34px 28px; }
.qno { font-family: var(--mincho); font-weight: 700; font-size: 18px; }
.qno small { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .16em; color: var(--ck); margin-left: 10px; }
.qq { font-family: var(--mincho); font-weight: 700; font-size: 24px; line-height: 1.6; margin: 10px 0 18px; }
.ans { list-style: none; border-top: 1px solid var(--ink); padding: 0; margin: 0; }
.ans-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 56px; padding: 6px; border: 0; border-bottom: 1px solid var(--po-rule); background: none; font: inherit; font-size: 16px; text-align: left; cursor: pointer; color: inherit; }
.ans-row:disabled { cursor: default; }
.ans .mk { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--mincho); font-weight: 700; font-size: 14px; }
.ans-row.ok .mk { background: var(--ink); color: #fff; }
.ans-row.ok { font-weight: 700; }
.ans-row .st { font-size: 12.5px; font-weight: 700; }
.ans-row.ng .mk { border-style: dashed; }
.exp { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 14px 16px; background: var(--po-vgray); border-left: 4px solid var(--c); font-size: 14.5px; line-height: 1.85; }
.exp b { font-family: var(--mincho); }
.exp a { text-decoration: underline; }
.exp .exp-title { font-weight: 700; margin-bottom: 4px; }
.qnav2 { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-top: 1px solid var(--ink); }
.qnav2.only-next { justify-content: flex-end; }
.qnav2 .btn-c, .qnav2 .btn-o2 { min-height: 44px; display: inline-flex; align-items: center; }
.res { max-width: 860px; margin: 40px auto 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); border: 1.5px solid var(--ink); background: #fff; }
.res .sc { border-right: 3px double var(--ink); padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.res .sc .k { font-size: 13px; color: var(--ink-2); }
.res .sc .v { font-family: var(--num); font-weight: 600; font-size: 40px; line-height: 1.1; }
.res .sc .v small { font-family: var(--jp); font-size: 14px; margin-left: 4px; }
.res .sc p { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.res .res-main { padding: 22px; display: grid; gap: 14px; align-content: center; }
.res .res-main .comment { font-size: 15px; line-height: 1.9; }
.res .res-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.res ol { list-style: none; padding: 8px 0; margin: 0; }
.res li { display: grid; grid-template-columns: 54px 30px 1fr auto; gap: 10px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--po-rule); font-size: 14px; }
.res li .q { font-family: var(--mincho); font-weight: 700; }
.res li .r { font-family: var(--mincho); font-weight: 700; text-align: center; }
.res li a { font-size: 12.5px; text-decoration: underline; }
.sets { max-width: 860px; margin: 0 auto 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sets button { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 18px; border: 1.5px solid var(--ink); background: #fff; font-weight: 700; font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; text-align: left; }
.sets button.on { border-width: 3px; }
.sets button small { font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.btn-o2 { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; font-family: inherit; }
.tcell .tw { font-family: var(--mincho); font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.tcell p { font-size: 14.5px; line-height: 1.85; }
.tcell .tsrc { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.tcell .tsrc a { text-decoration: underline; }
.e404 { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.e404-search { margin-bottom: 12px; }
.e404-search .hd3-search input { width: 100%; height: 48px; }

/* 本番監査（2026-11-16）：和文 12px 未満をなくす（レールの「現在地」） */
.rail .s.on b { font-size: 12px; }
/* 本番監査（2026-11-16）：法律・分野の索引リストが ul の既定の字下げ＋全文下線で読みにくい → 字下げなし・下線なし（タイトルだけ hover で下線） */
.idx-list { padding-left: 0; }
.idx-list a { text-decoration: none; }
.idx-list a:hover .entry-title, .idx-list a:focus-visible .entry-title { text-decoration: underline; text-underline-offset: 4px; color: var(--po); }
/* iPhone の Safari（WebKit）で入力欄・選択欄が既定の幅より縮まず、用語検索の行が画面から少しはみ出していた → 縮められるように */
input, select, textarea { min-width: 0; max-width: 100%; }
.pe-sfield, .seg { min-width: 0; max-width: 100%; }
.seg button { min-width: 0; }
