/* ============================================================
   manapick politics 追加デザイン（Mac 側 Claude 作成・2026-11-16 納品）
   pe-extra.css の本番取り込み版。
   - デモ専用の包み（.xa／.pe-wrap／見出し類）は取り込まない
   - ドロワーは本番用に position:fixed で実装（モックは埋め込み表示のため absolute）
   - サジェストは設置場所ごとに独立した枠として出す（モックは欄と一体の表示）
   トークンはサイト側の変数をそのまま使う（--c #6D28D9 等）。
   ============================================================ */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
/* 枠で囲む折りたたみ（.fold。罫だけの .plain 以外）は、枠と文字の間に左右16pxの余白をとる */
.fold:not(.plain) summary, .fold:not(.plain) .fold-body { padding-left: 16px; padding-right: 16px; }
/* 開いたときにフォーカスを受けるのはメニューの枠そのもの（中のボタンに輪を出さない） */
#drawer-menu:focus { outline: none; }
/* トップ章06の「このサイトについて」見出し（#about の着地点）。章見出しより一段小さい明朝＋英字ラベル */
.about-h { display: flex; align-items: baseline; gap: 10px; margin-top: 28px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); font-family: var(--mincho); font-weight: 700; font-size: 20px; line-height: 1.5; }
.about-h .en { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--ck); }
/* 短いリンク（「原文を見る」「法テラス」など）を語の途中で折り返さない */
.nw { white-space: nowrap; }
.go { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; flex: none; }
.go::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); margin-left: -3px; }
kbd { font-family: var(--num); font-size: 11px; border: 1px solid var(--ink-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: #fff; color: var(--ink); }

/* 検索欄の共通型（ドロワー・トップで使う） */
.pe-sfield { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; }
.pe-sfield:focus-within { outline: 2px solid var(--ck); outline-offset: 2px; }
.pe-sfield input { flex: 1; min-width: 0; border: 0; background: none; font-family: var(--jp); font-size: 16px; color: var(--ink); outline: none; }
.pe-sfield input::placeholder { color: var(--ink-2); font-size: 14px; }
/* 独自の「入力を消す」ボタンがある欄では、ブラウザ標準の消去ボタンを重ねて出さない */
.pe-sfield input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.pe-sfield .clr { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; cursor: pointer; color: var(--ink); border-radius: 50%; }
.pe-sfield.big { height: 56px; padding-left: 20px; }

/* 章見出し（柱の中の節。検索セクションで使う） */
.sh2 .en { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--ck); }
.sh2 h2, .sh2 .h2 { font-family: var(--mincho); font-weight: 700; font-size: 23px; letter-spacing: .04em; line-height: 1.5; margin-top: 3px; }
.sh2 .d { font-size: 14px; line-height: 1.85; color: var(--ink-2); margin-top: 6px; }

/* ---------- PE-01 メルマガフォーム ---------- */
.pe-nl .hd { display: flex; align-items: center; gap: 12px; }
.pe-nl .hd .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.pe-nl .en { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .2em; }
.pe-nl h3 { font-family: var(--mincho); font-weight: 700; font-size: 21px; letter-spacing: .04em; line-height: 1.5; }
.pe-nl .d { font-size: 14.5px; line-height: 1.9; margin-top: 10px; }
.pe-nl .lb2 { display: block; font-size: 12.5px; font-weight: 700; margin: 16px 0 8px; }
.pe-nl .row { display: flex; gap: 10px; }
.pe-nl input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 10px; font-family: var(--jp); font-size: 16px; }
.pe-nl button { height: 52px; padding: 0 26px; border-radius: 10px; font-family: var(--jp); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.pe-nl .fine { font-size: 12px; line-height: 1.8; margin-top: 12px; }
.pe-nl .err { display: none; font-size: 13px; font-weight: 700; margin-top: 10px; }
.pe-nl.is-err .err { display: block; }
.pe-nl .done { display: none; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-top: 16px; }
.pe-nl.is-done form { display: none; }
.pe-nl.is-done .done { display: flex; }
.pe-nl.art { background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 0 0 1px #fff, 0 0 0 2.5px var(--ink); border-radius: 4px; padding: 26px 28px; margin: 28px 0 8px; }
.pe-nl.art .hd .ic { border: 1.5px solid var(--ink); color: var(--ck); }
.pe-nl.art .en { color: var(--ck); }
.pe-nl.art input { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.pe-nl.art button { background: var(--c); border: 1.5px solid var(--c); color: #fff; }
.pe-nl.art .fine { color: var(--ink-2); }
.pe-nl.art .err { color: #B42318; }
.pe-nl.art.is-err input { border-color: #B42318; }
.pe-nl.foot .hd .ic { border: 1.5px solid #fff; color: #fff; }
.pe-nl.foot .en { color: var(--po-lt); }
.pe-nl.foot h3 { color: #fff; }
.pe-nl.foot .d { color: #CFC9DE; }
.pe-nl.foot .lb2 { color: #fff; }
.pe-nl.foot input { background: #1D2026; border: 1.5px solid #6E6A7E; color: #fff; }
.pe-nl.foot input::placeholder { color: #9A94AC; }
.pe-nl.foot button { background: var(--po-lt); border: 1.5px solid var(--po-lt); color: #16141F; }
.pe-nl.foot .fine { color: #9A94AC; }
.pe-nl.foot .err { color: #F2A49E; }
.pe-nl.foot.is-err input { border-color: #F2A49E; }
.pe-footnl { background: #111318; padding: 48px 56px 8px; }
.pe-footnl .in { max-width: 1240px; margin: 0 auto; }
.pe-nl.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 56px; }
.pe-nl.foot .col2 { min-width: 0; }

/* ---------- PE-02 政党ページの要約（リード文） ---------- */
.pe-sum { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 22px; padding: 18px 0 4px; }
.pe-sum .k { border-top: 3px solid var(--ink); padding-top: 8px; }
.pe-sum .k b { display: block; font-family: var(--mincho); font-weight: 700; font-size: 16px; }
.pe-sum .k span { font-family: var(--num); font-weight: 600; font-size: 11px; letter-spacing: .18em; color: var(--ck); }
.pe-sum p { font-size: 16px; line-height: 1.95; max-width: 46em; }
.pe-sum .m { grid-column: 2; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--ink-2); margin-top: 10px; }

/* ---------- PE-03 メニューボタンとドロワー ---------- */
.pe-menu { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--jp); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.pe-menu.on { background: var(--ink); color: #fff; }
.pe-scrim { position: fixed; inset: 0; background: rgba(17, 19, 24, .5); z-index: 80; opacity: 0; transition: opacity .24s ease; }
.pe-scrim.is-open { opacity: 1; }
.pe-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100vw; background: #fff; z-index: 90; overflow-y: auto; overscroll-behavior: contain; box-shadow: -16px 0 40px rgba(22, 24, 29, .18); transform: translateX(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.pe-drawer.is-open { transform: none; }
.pe-drawer:not(.is-open) { pointer-events: none; }
.pe-drawer:focus { outline: none; }
.pe-drawer .top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1.5px solid var(--ink); padding: 12px 16px 12px 20px; }
.pe-drawer .top .stn { width: 30px; height: 30px; border-width: 3px; font-size: 12px; }
.pe-drawer .top b { font-family: var(--num); font-weight: 600; font-size: 13px; letter-spacing: .2em; }
.pe-drawer .top span:not(.stn) { font-size: 12.5px; color: var(--ink-2); }
.pe-drawer .top .x { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; color: var(--ink); }
.pe-drawer .top .x:hover { background: var(--ink); color: #fff; }
.pe-drawer .bd { padding: 18px 20px calc(28px + env(safe-area-inset-bottom)); }
.pe-drawer ul { list-style: none; margin: 0; padding: 0; }
.pe-drawer .netl { margin-top: 30px; background: #111318; border-radius: 12px; padding: 18px 18px 10px; }
.pe-drawer .netl h4 { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: #9A94AC; margin-bottom: 6px; }
.pe-drawer .netl a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; color: #fff; text-decoration: none; border-bottom: 1px solid #2A2D34; font-size: 14px; }
.pe-drawer .netl a:last-child { border-bottom: 0; }
.pe-drawer .netl i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.pe-drawer .netl span { color: #9A94AC; font-size: 12px; margin-left: auto; }
.pe-drawer .netl em { font-style: normal; font-size: 12px; font-weight: 700; border: 1px solid #fff; border-radius: 999px; padding: 1px 8px; margin-left: 8px; }
.pe-drawer .disc { margin-top: 18px; font-size: 12px; line-height: 1.8; color: var(--ink-2); }

/* 現在地の札（いま読んでいるページ） */
.pm-here { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 16px 12px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: radial-gradient(circle, #cfc8b6 1.1px, transparent 1.4px) 0 0/20px 20px, var(--paper); }
.pm-pin { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 2px solid var(--po); border-radius: 50%; background: #fff; color: var(--po); font-size: 12px; font-weight: 900; letter-spacing: .04em; transform: rotate(-10deg); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--po); }
.pm-here > div { min-width: 0; }
.pm-here small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pm-here b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; line-height: 1.5; margin-top: 2px; }

/* 区分（おもりの番号・名前・手書きの一言） */
.pm-grp { display: block; }
.pm-sec { margin-top: 28px; }
.pm-sh { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.pm-wt { flex: none; margin-top: 2px; }
.pm-shx { min-width: 0; }
.pm-en { display: block; font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--ck); line-height: 1.2; }
.pm-sh h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-family: var(--mincho); font-weight: 700; font-size: 19px; letter-spacing: .04em; line-height: 1.45; margin: 1px 0 0; }
.pm-note { font-family: var(--hand); font-weight: 600; font-size: 13px; color: var(--ck); line-height: 1.5; margin: 2px 0 0; }
.pm-here-tag { display: inline-block; font-family: var(--jp); font-style: normal; font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: 0; color: #fff; background: var(--po); border-radius: 999px; padding: 0 9px; white-space: nowrap; flex: none; }

/* 区分の中の行（名前＋1行の説明＋件数） */
.pm-list a { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 2px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--po-rule); }
.pm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pm-tl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.pm-t b { font-size: 15px; font-weight: 700; line-height: 1.5; }
.pm-t small { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.pm-n { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.pm-n .num { font-family: var(--num); font-weight: 700; font-size: 18px; line-height: 1; color: var(--ck); margin-right: 1px; }
.pm-tl .pm-here-tag { align-self: center; }
.pm-list a .go { width: 26px; height: 26px; border-width: 1.5px; }
.pm-list a .go::after { width: 7px; height: 7px; border-top-width: 1.8px; border-right-width: 1.8px; }
@media (hover: hover) {
  .pm-list a:hover .pm-t b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
  .pm-list a:hover .go { background: var(--ink); }
  .pm-list a:hover .go::after { border-color: #fff; }
  .pm-cg a:hover { background: var(--tint); }
}
.pm-list a:active { background: var(--po-vgray); }
.pm-cg a:active { background: var(--tint); }
.pm-list a[aria-current="page"] { background: var(--tint); box-shadow: inset 4px 0 0 var(--po); padding-left: 14px; padding-right: 10px; }

/* 区分の中のチップ（政党・六法ずかんの分野） */
.pm-chips { margin-top: 14px; }
.pm-chl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 0 0 8px; }
.pm-chl::before { content: ""; width: 14px; height: 1.5px; background: var(--ck); flex: none; }
.pm-cg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pm-cg.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-cg a { display: flex; align-items: center; gap: 8px; min-height: 44px; height: 100%; padding: 6px 14px 6px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.pm-cg .pm-cl { flex: 1; min-width: 0; }
.pm-cg .pm-cn { flex: none; font-family: var(--num); font-weight: 700; font-size: 17px; color: var(--ck); }
.pm-cg a.more { border-style: dashed; color: var(--po-link-on-tint); background: var(--po-vgray); }
.pm-cg .pm-arw { flex: none; font-family: var(--num); font-size: 17px; }
.pm-cg a[aria-current="page"] { background: var(--ink); color: #fff; }
.pm-cg a[aria-current="page"] .chip { background: #fff; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pe-scrim, .pe-drawer { transition: none; }
}

/* ---------- PE-04 検索サジェスト ---------- */
.pe-sug { background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 36px rgba(22, 24, 29, .16); text-align: left; }
.pe-sug .g + .g { border-top: 1px solid var(--po-rule); }
/* 0件の案内（トップ・ヘッダー・メニュー内の検索） */
.pe-sug--none { padding: 14px 16px 16px; }
.pe-sug--none .none { margin: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.pe-sug--none .none-d { margin: 6px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.pe-sug--none a { color: var(--ink); padding: 12px 0; } /* 文中のリンク：行の高さは変えずに押せる範囲だけ上下に広げる */
.pe-sug h5 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-family: var(--jp); font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 12px 16px 4px; color: var(--ink); }
.pe-sug h5 small { font-weight: 400; font-size: 12px; color: var(--ink-2); letter-spacing: 0; }
.pe-sug ul { list-style: none; margin: 0; padding: 4px 8px 10px; }
.pe-sug li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 1.5px solid transparent; border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.pe-sug li .chip { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; flex: none; }
.pe-sug li .tk { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--tint); font-family: var(--mincho); font-weight: 700; font-size: 14px; flex: none; }
.pe-sug li .tt { flex: 1; min-width: 0; line-height: 1.45; }
.pe-sug li .ty { font-size: 12px; color: var(--ink-2); flex: none; }
.pe-sug li mark { background: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pe-sug li.on { background: var(--po-vgray); border-color: var(--ink); }
.pe-sug .all { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 16px; background: #fff; border: 0; border-top: 1.5px solid var(--ink); font-family: var(--jp); font-size: 14.5px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.pe-sug .all .go { margin-left: auto; }
.pe-sug .keys { display: flex; gap: 18px; padding: 10px 16px 12px; border-top: 1px solid var(--po-rule); font-size: 12px; color: var(--ink-2); }
.pe-sug .keys span { display: inline-flex; align-items: center; gap: 5px; }
/* 設置場所ごとの出し方（ヘッダーは欄の右端に合わせた浮き出し、ほかは欄の直下） */
.hd3-search .pe-sug { position: absolute; top: calc(100% + 8px); right: 0; width: 480px; max-width: 92vw; z-index: 70; }
.pe-tsearch .pe-sug, .pe-drawer .pe-sug { margin-top: 10px; box-shadow: none; }

/* ---------- PE-05 トップの検索セクション ---------- */
.pe-tsearch { background: #fff; border-top: 1px solid var(--po-rule); padding: 30px 40px 28px; position: relative; }
.pe-sform { display: flex; gap: 10px; margin-top: 16px; }
.pe-sform .pe-sfield { flex: 1; }
.pe-sform .go2 { height: 56px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--c); background: var(--c); color: #fff; font-family: var(--jp); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
/* 探す対象の5ボタンは等幅の1段に揃える（iPhone で「記事」だけ2段目に落ちていた） */
.pe-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 520px; margin-top: 14px; }
.pe-types button { min-width: 0; min-height: 44px; padding: 6px 4px; white-space: nowrap; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; font-family: var(--jp); font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.pe-types button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 340px) {
  .pe-types { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pe-types button { grid-column: span 2; }
  .pe-types button:nth-child(n + 4) { grid-column: span 3; }
}
.pe-pop { margin-top: 18px; }
.pe-pop .k { font-size: 12.5px; font-weight: 700; }
.pe-pop .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pe-pop .tags button { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--po-rule); border-radius: 999px; background: #fff; font-family: var(--jp); font-size: 13.5px; color: var(--ink); cursor: pointer; }
.fine { font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.inl { color: var(--ck); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- PE-06 選挙ページの図 ---------- */
.pe-tree { margin: 30px 0 0; padding: 26px 0 30px; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); position: relative; }
.pe-tree figcaption, .pe-two figcaption { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pe-tree figcaption .tag, .pe-two figcaption .tag { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--ck); }
.pe-tree figcaption b, .pe-two figcaption b { font-family: var(--mincho); font-weight: 700; font-size: 18px; }
.pe-tree figcaption span, .pe-two figcaption span { font-size: 12.5px; color: var(--ink-2); }
.pe-tree .root { text-align: center; }
.pe-tree .root .rb { display: inline-block; border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: 12px 30px 10px; }
.pe-tree .root b { display: block; font-family: var(--mincho); font-weight: 700; font-size: 20px; }
.pe-tree .root span { font-size: 12px; color: var(--ink-2); }
.pe-tree .stem { width: 2px; height: 22px; background: var(--ink); margin: 0 auto; }
.pe-tree .bar { height: 2px; background: var(--ink); margin: 0 25%; position: relative; }
.pe-tree .bar::before, .pe-tree .bar::after { content: ""; position: absolute; top: 0; width: 2px; height: 22px; background: var(--ink); }
.pe-tree .bar::before { left: 0; } .pe-tree .bar::after { right: 0; }
.pe-tree .boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.pe-tree .bx { border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; padding: 18px 20px 8px; }
.pe-tree .bx .hd2 { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--po-rule); }
.pe-tree .bx .lv { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .12em; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 9px; }
.pe-tree .bx .hd2 b { font-family: var(--mincho); font-weight: 700; font-size: 18px; }
.pe-tree .bx ul { list-style: none; margin: 0; padding: 0; }
.pe-tree .bx li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--po-rule); font-size: 14.5px; }
.pe-tree .bx li:last-child { border-bottom: 0; }
.pe-tree .bx li b { font-weight: 700; }
.pe-tree .bx li span { font-size: 12.5px; color: var(--ink-2); text-align: right; }
.pe-tree .fine { margin-top: 14px; }
.pe-two { margin: 30px 0 0; padding: 26px 0 30px; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); position: relative; }
.pe-two .hd3r { display: grid; grid-template-columns: 1fr 200px 1fr; border-bottom: 2px solid var(--ink); }
.pe-two .hd3r > div { padding: 4px 16px 12px; }
.pe-two .hd3r .c { text-align: center; font-size: 12px; color: var(--ink-2); align-self: end; }
.pe-two .hd3r .r { text-align: right; }
.pe-two .hd3r b { font-family: var(--mincho); font-weight: 700; font-size: 21px; display: block; }
.pe-two .hd3r span { font-size: 12px; color: var(--ink-2); }
.pe-two .row { display: grid; grid-template-columns: 1fr 200px 1fr; border-bottom: 1px solid var(--po-rule); }
.pe-two .row:last-child { border-bottom: 0; }
.pe-two .row > div { padding: 13px 16px; font-size: 15px; line-height: 1.7; }
.pe-two .row .rl { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); border-left: 1px dashed var(--po-rule); border-right: 1px dashed var(--po-rule); display: flex; align-items: center; justify-content: center; }
.pe-two .row .r { text-align: right; }
.pe-two .num { font-family: var(--num); font-weight: 600; font-size: 24px; }
.pe-two small { font-size: 12.5px; color: var(--ink-2); margin-left: 4px; }
.pe-two .fine { margin-top: 14px; }

/* ---------- PE-07 用語集 ---------- */
.pe-dict .dh .en { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--ck); }
.pe-dict .dh h1 { font-family: var(--mincho); font-weight: 700; font-size: 32px; letter-spacing: .05em; margin-top: 4px; }
.pe-dict .dh p { font-size: 14.5px; line-height: 1.9; color: var(--ink-2); margin-top: 8px; max-width: 720px; }
.pe-dict .tools { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.pe-dict .tools .pe-sfield { flex: 1; min-width: 240px; }
/* 用語の候補（サイト内検索の .pe-sug と同じ様式。欄の直下に差し込む） */
.tools-wrap { scroll-margin-top: 12px; }
.dict-sug { margin-top: 10px; box-shadow: none; }
.dict-sug li .tt small { display: block; font-size: 12px; color: var(--ink-2); }
.dict-sug-none { padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.dict-anchor { scroll-margin-top: 12px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { min-height: 48px; padding: 6px 20px; border: 0; background: #fff; font-family: var(--jp); font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.kana { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; background: var(--paper); padding: 10px 0; margin-top: 14px; border-bottom: 1px solid var(--po-rule); overflow-x: auto; }
.kana a { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 6px; border-radius: 10px; font-family: var(--mincho); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; flex: none; }
.kana a small { font-family: var(--num); font-weight: 600; font-size: 10px; color: var(--ink-2); }
.kana a.on { background: var(--ink); color: #fff; }
.kana a.on small { color: #fff; }
.pe-dict .kh { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 4px; scroll-margin-top: 84px; }
.pe-dict .kh b { font-family: var(--mincho); font-weight: 700; font-size: 24px; }
.pe-dict .kh span { font-size: 12px; color: var(--ink-2); }
.pe-dict .cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.ent { padding: 18px 0 20px; border-bottom: 1px solid var(--po-rule); scroll-margin-top: 84px; border-radius: 4px; }
.ent.on { background: var(--po-vgray); box-shadow: 0 0 0 10px var(--po-vgray); }
.ent .eh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ent h3 { font-family: var(--mincho); font-weight: 700; font-size: 22px; }
.ent .yomi { font-size: 12.5px; color: var(--ink-2); }
.ent .cat { font-size: 12px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 9px; }
.ent p { font-size: 16px; line-height: 1.95; margin-top: 8px; }
.ent .rel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.ent .rel a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border: 1px solid var(--po-rule); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; text-decoration: none; }
.ent .esrc { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.ent .esrc a { color: var(--ck); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- PE-08 編集方針の全文（章06） ---------- */
.pe-j6 { margin-top: 6px; }
.pe-j6 .ctl { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.pe-j6 .ctl span { font-size: 12.5px; color: var(--ink-2); }
.pe-j6 .ctl button { margin-left: auto; min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; font-family: var(--jp); font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.pe-j6 details { border-top: 1px solid var(--po-rule); }
.pe-j6 details:last-of-type { border-bottom: 1px solid var(--po-rule); }
.pe-j6 summary { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 4px; cursor: pointer; list-style: none; }
.pe-j6 summary::-webkit-details-marker { display: none; }
.pe-j6 summary b { font-family: var(--mincho); font-weight: 700; font-size: 15px; color: var(--ck); white-space: nowrap; }
.pe-j6 summary span { font-weight: 700; font-size: 15.5px; }
.pe-j6 summary i { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; flex: none; }
.pe-j6 summary i::before, .pe-j6 summary i::after { content: ""; position: absolute; background: var(--ink); left: 50%; top: 50%; }
.pe-j6 summary i::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.pe-j6 summary i::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.pe-j6 details[open ] summary i::after { display: none; }
.pe-j6 .body { padding: 2px 4px 18px 76px; font-size: 14.5px; line-height: 1.9; color: var(--ink); max-width: 760px; }
.pe-j6 .full { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 14px; padding: 6px 4px; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.pe-j6 .full .go { margin-left: auto; }

/* ---------- PE-09 広告枠 ---------- */
.pe-ad .lb { display: block; font-size: 12px; color: var(--ink-2); letter-spacing: .08em; margin-bottom: 6px; }
.pe-ad .box { border: 1px solid var(--po-rule); background: #fff; display: grid; place-items: center; color: var(--ink-2); font-family: var(--num); font-size: 12px; margin: 0 auto; }
.pe-ad.s300x250 .box { width: 300px; height: 250px; max-width: 100%; }
.pe-ad.s728x90 .box { width: 728px; height: 90px; max-width: 100%; }
.pe-ad .box .sp { display: none; }
[data-ad="off"] .pe-ad, .pe-ad[data-ad="off"] { display: none; }

/* ---------- PE-10 クイズ結果画面 ---------- */
.res.pr10 { grid-template-columns: 300px minmax(0, 1fr); }
.res.pr10 .sc { border-right: 0; justify-content: flex-start; padding: 24px 22px; }
.res.pr10 .cm { border-top: 1px solid var(--po-rule); margin-top: 16px; padding-top: 14px; }
.res.pr10 .cm .lb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ck); }
.res.pr10 .cm p { font-family: var(--mincho); font-size: 16px; line-height: 1.9; color: var(--ink); margin-top: 8px; }
.res.pr10 ol { grid-column: 2; grid-row: 1; border-left: 3px double var(--ink); padding: 14px 22px; align-self: stretch; }
.res.pr10 ol li { border-bottom: 1px dashed var(--po-rule); }
.res.pr10 ol li:last-child { border-bottom: 0; }
.res.pr10 ol li a { min-height: 44px; }
.res.pr10 .acts { grid-column: 1 / 3; grid-row: 2; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: #F4F1FA; border-top: 3px double var(--ink); padding: 16px 22px; }
.res.pr10 .b2 { display: flex; gap: 10px; flex-wrap: wrap; }
.res.pr10 .b2 button { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-family: var(--jp); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.res.pr10 .b2 .pri { background: var(--c); border: 1.5px solid var(--c); color: #fff; }
.res.pr10 .b2 .sec { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.res.pr10 .shr { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.res.pr10 .shr .sl { font-size: 12.5px; font-weight: 700; }
.res.pr10 .shr .bs { display: flex; gap: 8px; }
.res.pr10 .sb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--jp); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.res.pr10 .shr .nt { font-size: 12px; color: var(--ink-2); flex-basis: 100%; }

/* ============================================================
   サイト統合の調整（SP はサイト側の境界＝1024px 以下）
   ============================================================ */
@media (max-width: 1024px) {
  .pe-tsearch { order: 2; grid-column: 1 / 3; padding: 26px 18px 22px; box-shadow: 0 0 0 1.5px var(--ink); }
  .pe-sug .keys { display: none; }
  /* 表の列見出しは文節（Seg）の切れ目だけで折る。.ph の anywhere を効かせると列の最小幅が1文字になり、
     自動の列幅計算で見出しの列が細く潰れて本文（「第9条」など）まで1〜2文字で折れるため */
  .tb thead th .ph { overflow-wrap: normal; }
  /* 404：SP の上下余白指定（padding: 40px 0 60px）で左右の余白が消え、文字と検索欄が画面の端に付くのを防ぐ */
  .e404 { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 640px) {
  /* 3列までの表の行見出しは5〜6文字（「重複立候補」「ぶつかったら」など）が1行に入る幅にする
     （六法ずかんの比較表 .lb-cmp と同じ 7.4em）。4列の表は本文の列幅を優先して従来の幅のまま */
  .tb:not(:has(tr > :nth-child(4))) th[scope="row"] { width: 7.4em; }
  /* 4列の表の行見出しは5文字の語（「参議院議員」など）が語の途中で折れない最小の幅 */
  .tb:has(tr > :nth-child(4)) th[scope="row"] { width: 6.4em; }
  /* 党名の行見出し（2列だけの表）は党名を1行で見せる */
  .tb-names th[scope="row"] { width: auto; white-space: nowrap; }
}

/* ============================================================
   SP（640px 以下）：納品 pe-extra.css の指定どおり
   ============================================================ */
@media (max-width: 640px) {
  .pe-footnl { padding: 36px 16px 4px; }
  .pe-nl.foot { grid-template-columns: 1fr; }
  .pe-nl .row { flex-direction: column; }
  /* 縦積みでは flex: 1（基準 0）が高さに効いて入力欄が潰れるため、指定の高さ（52px）を保つ */
  .pe-nl input { flex: none; width: 100%; }
  .pe-nl button { width: 100%; }
  .pe-nl.art { padding: 22px 18px; }
  .pe-nl h3 { font-size: 19px; }
  .pe-sum { grid-template-columns: 1fr; row-gap: 8px; }
  .pe-sum .k { display: flex; align-items: baseline; gap: 10px; }
  .pe-sum .m { grid-column: 1; flex-direction: column; gap: 2px; }
  .pe-menu { padding: 0 14px; font-size: 12.5px; }
  .pe-drawer { position: fixed; left: 0; right: 0; width: auto; box-shadow: none; }
  .pe-scrim { display: none; }
  .pe-drawer .bd { padding-left: 16px; padding-right: 16px; }
  .pe-tsearch { padding: 24px 16px 20px; }
  .pe-sform { flex-direction: column; scroll-margin-top: 12px; }
  .pe-sform .pe-sfield { flex: none; }
  .pe-sform .go2 { width: 100%; }
  .pe-tree .boxes { grid-template-columns: 1fr; }
  .pe-tree .bar { margin: 0 50% 0 0; }
  .pe-tree .bar::after { display: none; }
  .pe-two .hd3r, .pe-two .row { grid-template-columns: 1fr 64px 1fr; }
  .pe-two .hd3r > div, .pe-two .row > div { padding-left: 8px; padding-right: 8px; }
  .pe-two .num { font-size: 19px; }
  .pe-dict .dh h1 { font-size: 26px; }
  .pe-dict .tools { flex-direction: column; align-items: stretch; }
  .pe-dict .tools .pe-sfield { flex: none; min-width: 0; }
  /* 五十音の索引は SP で横スクロールに隠さず、あ〜な／は〜わ の2段で全行を見せる */
  .kana { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .kana a { min-width: 0; height: 46px; }
  .pe-dict .kh, .ent { scroll-margin-top: 136px; }
  .seg { display: flex; } .seg button { flex: 1; }
  .pe-dict .cols { grid-template-columns: 1fr; }
  .pe-j6 .body { padding-left: 4px; }
  .pe-ad.s728x90 .box { width: 320px; height: 100px; }
  .pe-ad.s728x90 .box .pc { display: none; }
  .pe-ad.s728x90 .box .sp { display: block; }
  .res.pr10 { display: flex; flex-direction: column; }
  .res.pr10 .sc { order: 1; padding: 20px 18px; }
  .res.pr10 .acts { order: 2; padding: 16px 18px; }
  .res.pr10 ol { order: 3; border-left: 0; border-top: 1px solid var(--po-rule); padding: 10px 18px; }
  .res.pr10 .b2 { width: 100%; } .res.pr10 .b2 button { flex: 1; justify-content: center; }
  .res.pr10 .shr { margin-left: 0; }
}

/* ============================================================
   タブレット帯（641〜1024px）のヘッダー：ナビ7項目（ニュースを追加）とメニューボタンを1行に収める。
   メニューはこの帯でも開けるよう、丸いボタン（アイコンのみ・名前は読み上げ用に残す）で出す
   ============================================================ */
@media (min-width: 641px) and (max-width: 1024px) {
  .hd3 .pe-menu { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; gap: 0; }
  .hd3 .pe-menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 641px) and (max-width: 899px) {
  .hd3 { gap: 18px; }
  /* 「3分クイズ」はナビの「クイズ」と同じ行き先なので、狭い帯ではナビに任せる */
  .hd3 .btn-c { display: none; }
}
@media (min-width: 641px) and (max-width: 799px) {
  .hd3 nav { gap: 14px; font-size: 13px; }
  .wm { font-size: 22px; }
  .wm .sub { font-size: 13px; }
}

/* 表の見出しセル（全幅）：語の途中（「国会への言⏎及」「都道府県議会議員選⏎挙」「任⏎期」）や
   閉じ括弧の前（「（憲法第69条⏎）」）で折らない。文節の切れ目（<wbr>）と空白・括弧の前だけで折り、
   入らない語は列の幅を広げて収める（break-word は最小幅の計算に効かないので、列が1文字幅に潰れない） */
.tb th[scope="row"], .tb thead th { word-break: keep-all; overflow-wrap: break-word; }
.tb th[scope="row"] .ph, .tb thead th .ph { overflow-wrap: break-word; }
/* 見出しセルの長い括弧書き（Seg が .ph-n を付ける。「（2020年3月まで）」「（運行供用者責任）」など）は、
   注記の中だけ普通の改行（禁則は line-break: strict のまま）を許す。注記が折れずに列の最小幅になり、
   比較表が画面幅より広くなって横にはみ出していたため */
@media (max-width: 1024px) { .tb th .ph-n { word-break: normal; } }


/* ============================================================
   独立監査（11-18 SP・PC）への対応：共通
   ============================================================ */
/* 段落の最終行が1〜2字だけになるのを減らす（対応ブラウザのみ）／短い見出し・カード題は行の長さをそろえる */
p, li, dd, td { text-wrap: pretty; }
.acard h3, .xfer .t, .lbf-name, .lb-map__row li b, .lb-bars__l, .lh-door__name, .fl5 li, .tb th, .nside__toc a {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}
/* メニューの「いま読んでいるページ」の題は文節の区切りを持たない（ページの題をそのまま出す）ので、通常の折り返しで行の長さだけそろえる */
.pm-here b { text-wrap: balance; }
/* 数字入りの棒グラフのラベル（ニュース）は文節の区切りを持たないので通常の折り返し（数字と単位は .nw で守る） */
.lb-bars__l--n { word-break: normal; }
/* 文中の短いリンク（パンくず・出典・用語の出典記事・注記の窓口）：行の高さは変えずに押せる範囲を上下に広げる */
.crumb a { padding: 12px 0; margin: -12px 0; }
.srcl li a, .esrc a, .legal-note a, .foot-note a, .law-aside .mini p a, .law-aside .mini li a, .section-lead a.w, .lb-src a, .kv td a { padding: 13px 0; }
/* 出典リストの名前（リンクなし） */
.srcl-n { font-weight: 400; }

/* クイズ：出典の小見出しをサイトの様式（紫の字間の広い英字＋明朝の見出し）に。解答欄は罫線の上に白地を敷く */
.qwrap .sh { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; }
.qwrap .sh .k { font-family: var(--num); font-weight: 600; font-size: 12px; letter-spacing: .16em; color: var(--ck); }
.qwrap .sh h2 { font-family: var(--mincho); font-weight: 700; font-size: 24px; letter-spacing: .05em; line-height: 1.5; }
.paper .ans, .paper .exp { position: relative; background: #fff; }

/* 用語集：行ごとに最初の数語だけ見せる／六法ずかん・判例：最初の24件だけ見せる（残りは HTML に出したまま隠す） */
.pe-dict section.folded .ent.is-more, .lbf-grid.folded > li.is-more { display: none; }
.pe-dict .row-more, .lbf-more {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 14px 0 10px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font-family: var(--jp); font-weight: 700; font-size: 15px; cursor: pointer;
}
.pe-dict .row-more:hover, .lbf-more:hover { background: var(--tint); }

/* 一覧の点線：右に札がない行では点線を出さない */
.idx-list .entry-head:not(:has(.entry-tag)) .entry-leader { visibility: hidden; }
/* 上部のネットワーク帯：最後の駅の後ろに線の切れ端が残らないように */
.rail .line > .s:last-child { margin-right: 0; }
/* 判例・法令カードの上の帯：文字と帯の端の間をあける */
.lbf-band { padding: 4px 14px; }
/* 用語集の五十音の件数 */
.kana a small { font-size: 12px; }
/* 選挙一覧の章見出し：英字ラベルが見出しの長さで次の行に落ちる章と落ちない章が混ざっていた → 常に見出しの上に置く */
.cathead .cen { order: -1; flex-basis: 100%; }
/* 判例の基本情報：下の原文リンクを箱から離す */
.fig .lb-case + .lb-src { margin-top: 12px; }
/* 判例の基本情報：事件名・裁判所・判決日の3つの下に「結論」だけが1枠ぶんで落ち、右が空いていた → 結論は全幅 */
.lb-case > div:last-child { grid-column: 1 / -1; }

/* フッター：サイトの案内（FOOTER_SPEC の2） */
.ft-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ft-brand { grid-column: 1 / -1; display: grid; gap: 2px; }
.ft-brand b { font-family: var(--num); font-weight: 700; font-size: 18px; letter-spacing: .02em; color: #fff; }
.ft-brand span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.ft-col h5 { margin: 0 0 2px; font-family: var(--jp); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--po-lt); }
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col a { display: flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-size: 14px; }
.ft-col a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 0件案内の段落リンク色はサイト既定のまま */
@media (max-width: 1024px) {
  /* フッターのメルマガ帯：左右の余白を路線図の帯（20px）にそろえ、上の余白を 44px に */
  .pe-footnl { padding: 44px 20px 4px; }
}
@media (max-width: 640px) {
  /* SP の多列の表（比較表・4列の表）：行ごとに「見出し＋項目名：値」のカードに組み替える（.tb-stack） */
  .tb-stack thead { display: none; }
  .tb-stack, .tb-stack tbody, .tb-stack tr { display: block; width: 100%; }
  .tb-stack tr { border-bottom: 1px solid var(--po-rule); padding: 12px 2px; }
  .tb-stack th[scope="row"] { display: block; width: auto !important; padding: 0 0 6px; border: 0; color: var(--ink); font-weight: 700; font-size: 15px; }
  .tb-stack td { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; }
  .tb-stack td::before { content: attr(data-label); font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.8; }
  .tb-stack td.nw { white-space: normal; }
  /* 次に読むカード：OG 画像（見出しの文字入り）を小さな見本にして、題名・説明と重ならせない */
  .next-g3 .acard { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
  .next-g3 .acard > .ph { margin: 12px 0 12px 12px; border: 1px solid var(--po-rule); border-radius: 8px; aspect-ratio: 1200 / 630; }
  .next-g3 .acard .b { padding: 10px 14px 12px; }
  .next-g3 .acard h3 { margin-top: 2px; }
}

/* ============================================================
   プライバシーポリシー・広告・PR表記・お問い合わせ（PolicyPage）
   ============================================================ */
.pol .lead { max-width: 45em; }
.pol-sec { max-width: 45em; margin-top: 32px; }
.pol-sec p { font-size: 16px; line-height: 1.9; margin: 0 0 10px; }
.pol-sec a { color: var(--ck); text-decoration: underline; text-underline-offset: 3px; padding: 13px 0; }
.pol-addr { font-family: var(--num); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.pol-act { margin-top: 14px; }
.pol-mail { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--po); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.pol-mail:hover, .pol-mail:focus-visible { background: var(--ck); }
.pol-upd { margin-top: 36px; font-size: 13px; color: var(--ink-2); }
/* フッター最下段：リンクが6つになり SP で3段に折れるため、段と段の間をあけない（各リンクは高さ 44px のまま） */
@media (max-width: 1024px) {
  .route .legal { row-gap: 0; column-gap: 18px; }
}

/* ============================================================
   AdSense（2026-11-18）
   手動の広告枠（components/AdSlot.tsx）：広告が入るまではラベルも余白も出さない（空の枠・高さだけの枠を作らない）。
   入らなかった枠は AdSlot が畳む。自動広告（ins.adsbygoogle）は隠さない。
   ============================================================ */
.pe-ad-live.is-pending .lb { display: none; }
.pe-ad-live.is-filled { margin: 24px 0; }
.pe-ad-live.s300x250.is-filled { margin: 0; max-width: 300px; }
.pe-ad-live ins.adsbygoogle { width: 100%; }

/* アンカー広告（画面の上端・下端に固定）とサイトの固定部品が重ならないようにする。
   --ad-anchor-top / --ad-anchor-bottom は components/AnchorAdOffset.tsx が表示中のアンカー広告の高さを入れる（無ければ 0px）。
   広告の位置・大きさは変えず、サイト側の部品を広告の内側に収める（本家 PR #30 と同じやり方）。 */
.pe-scrim,
.pe-drawer,
.xfer-sheet-overlay {
  top: var(--ad-anchor-top, 0px);
  bottom: var(--ad-anchor-bottom, 0px);
}
/* 乗り換えシート：高さ 456px で下端に固定していたため、画面の低い iPhone（表示領域 664px）で上端のアンカー広告（258px）が
   シートの上の「閉じる」に重なっていた。シートの高さを「画面の高さ − 上下の広告 − 上の余白」以内に収め、中身はシートの中で
   スクロールする。見出しと「閉じる」はシートの上端に留める。上の余白は 16px と、上端の広告の「たたむ」つまみ（約28px）の分 */
.xfer-sheet {
  bottom: var(--ad-anchor-bottom, 0px);
  max-height: calc(100vh - var(--ad-anchor-top, 0px) - var(--ad-anchor-bottom, 0px) - 16px - min(var(--ad-anchor-top, 0px), 28px));
  max-height: calc(100dvh - var(--ad-anchor-top, 0px) - var(--ad-anchor-bottom, 0px) - 16px - min(var(--ad-anchor-top, 0px), 28px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* 見出しはシートの上の余白（18px）ごとシートの上端に留める（sticky はシートの内側の余白の分だけ下で止まるため top を負にする） */
.xfer-sheet-head { position: sticky; top: -18px; z-index: 1; background: #111318; margin-top: -18px; padding-top: 18px; }
/* メニュー：上端の広告の「たたむ」つまみ（広告の枠の下に約28px 出る）がメニュー上端の見出しに重なっていた → 広告があるときだけ上を空ける */
.pe-drawer .top { border-top: min(var(--ad-anchor-top, 0px), 28px) solid #fff; }
/* ページの先頭：上端のアンカー広告のうち、AdSense が body に付ける上の余白で足りない分だけヘッダーを下げる
   （SP のトップ・/election/ で広告 258px に対し余白 149px のため、ロゴ・3分クイズが広告の下にあった。広告が無ければ 0） */
.rail { margin-top: var(--ad-anchor-top-cover, 0px); }
/* ページの末尾：下端のアンカー広告の分、フッターの最下段を広告の上に出す。ページが伸びるのは AdSense の body の下余白で
   足りない分（--ad-anchor-bottom-cover）だけにする。以前は広告の高さをそのまま .route に足していたため、AdSense の余白（154px）と
   二重になり、PC で暗いフッターの下に body の地の色（ベージュ）の帯が出ていた。
   フッターの暗い地は AdSense の余白の上まで伸ばす（下余白＝広告の高さ、margin-bottom＝−AdSense の余白）ので、帯は出ない。広告が無ければどちらも 0 */
.route {
  padding-bottom: calc(40px + var(--ad-anchor-bottom, 0px));
  margin-bottom: calc(var(--ad-anchor-bottom-cover, 0px) - var(--ad-anchor-bottom, 0px));
}
@media (max-width: 640px) {
  /* SP の下部タブバーは下端のアンカー広告の上に置く。フッターの下余白（タブバーの逃げ 96px）にも同じ考え方で足す */
  .spbar { bottom: calc(10px + var(--ad-anchor-bottom, 0px)); }
  .route { padding-bottom: calc(96px + var(--ad-anchor-bottom, 0px)); }
}
/* 追従する列は、上端のアンカー広告の下で止める */
.side3 { top: calc(20px + var(--ad-anchor-top, 0px)); }
.kana { top: var(--ad-anchor-top, 0px); }
@media (min-width: 1025px) {
  .side { top: var(--ad-anchor-top, 0px); height: calc(100vh - var(--ad-anchor-top, 0px) - var(--ad-anchor-bottom, 0px)); }
}
@media (min-width: 1100px) {
  /* news.css（この後に読み込む）の .nside より優先させるため body を付ける。
     目次（約630px）が「画面 − 上端 96px − 下端の広告」より高く、下の共有ボタン5つが下端のアンカー広告（PC 275px）の下に入っていた
     → 目次の箱の高さを画面の内側（下端の広告の上 16px まで）に収め、項目の一覧だけを箱の中でスクロールさせる（共有は常に箱の下に見える） */
  body .nside { top: calc(96px + var(--ad-anchor-top, 0px)); }
  body .nside__in {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 96px - var(--ad-anchor-top, 0px) - var(--ad-anchor-bottom, 0px) - 16px);
  }
  body .nside__toc { flex: 0 1 auto; min-height: 88px; overflow-y: auto; overscroll-behavior: contain; border-left: 0; box-shadow: inset 3px 0 0 var(--tint); }
  /* スクロールする一覧では左にはみ出した部分が切れるので、選択中の線は一覧の内側に描く */
  body .nside__toc a { margin-left: 0; }
  body .nside .share { flex: none; }
}

/* ============================================================
   独立監査2（11-19）への対応
   ============================================================ */
/* 本文の文字（M6）：トップの編集方針の条文・このサイトについて、/law/ の各章の説明が 14.5px だった → 本文の 16px に
   （文字を太くはしない。行の高さは本文と同じ 1.85〜1.9） */
.pe-j6 .body,
.j6 .body,
.about2 p,
.about-text,
.hub-cat .section-lead,
.lh-part > .section-lead { font-size: 16px; }
/* L7（PC）/news/ の「ニュース解説を、誰かに。」の箱：820×185px の箱に見出し・共有・RSS が縦に積まれ、中身の面積が 6% だった
   → PC では見出し｜共有ボタン｜RSS を1行に並べ、箱の高さを中身に合わせる */
@media (min-width: 1025px) {
  .nshare--idx { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 28px; padding: 14px 22px; }
  .nshare--idx .nshare__k { margin: 0; }
  .nshare--idx .nfeed { margin: 0; }
  .nshare--idx .share { margin: 0; padding-top: 0; border-top: 0; }
}
/* L5（SP・タブレット）/law/ の分類チップ：「すべて」＋12分類が3列（4列）の格子で、最後の「判例」だけが1つ次の段に落ちていた
   → 残りが列の数で割り切れるとき（全体が 3n+1・4n+1 個）は「すべて」を横いっぱいの1段目にする（分類の数が変わっても崩れない） */
@media (max-width: 640px) {
  .lbf .lbf-chips--cat > button:first-child:nth-last-child(3n+1) { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .lbf .lbf-chips--cat > button:first-child:nth-last-child(4n+1) { grid-column: 1 / -1; }
}
/* L4（PC）フッターの「サイトの案内」：net-pc.css の3列（ロゴ｜政治｜法律・学ぶ）が、後から読む上の SP 用の2列の指定で
   打ち消され、ロゴの段＋リンクの段の2段になっていた → PC ではロゴと2つのまとまりを横に並べる（FOOTER_SPEC の2） */
@media (min-width: 1025px) {
  .ft-guide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 28px; }
  .ft-brand { grid-column: auto; align-content: start; }
}
/* L8 メニューの「いま読んでいるページ」の題：見出しの文節の切れ目（SiteMenu.tsx が U+200B で残す）でだけ折る */
.pm-here b { word-break: keep-all; overflow-wrap: anywhere; }
/* 文節で折る本文（.bx）は、行の長さをそろえる text-wrap: pretty を外す。WebKit では pretty が段落の各行を短めに組み、
   文節単位の改行と重なって右端が大きく空く行が続いていた（/contact/・ニュース本文）。最終行の1〜2字は文節単位で折るので起きにくい */
p:has(> .bx), li:has(> .bx), dd:has(> .bx), td:has(> .bx), span:has(> .bx), div:has(> .bx), a:has(> .bx) { text-wrap: wrap; }
/* 政党ページの読み物の節（結党の経緯・目的・政策目標・信条・トリビア。components/PartyStorySections.tsx、11-19）。
   年表・要点・へぇ・チップは既存の部品（.nline・.lb-keys・.lb-trivia・.ncat）をそのまま使い、ここでは
   小見出しの一言（節の見出しと同じ明朝）・本文の段落（.blk p と同じ 16px／1.95）・チップの並び・トリビアの題の改行だけを足す */
.gz .pst-catch { font-family: var(--mincho); font-weight: 700; font-size: 17px; line-height: 1.6; margin: 2px 0 10px; }
.gz .pst-p { font-size: 16px; line-height: 1.95; margin: 0 0 12px; }
.gz .pst-p:last-child { margin-bottom: 0; }
.gz .pst-kw { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gz .lb-trivia .pst-tt { display: block; }
.gz > section[data-pst] > div > .fig:last-child { margin-bottom: 4px; }
