/* ==========================================================
   ニュース解説（/news/）。駅と路線のモチーフ（発車標・車内表示・路線図）で、
   politics の配色（--po・紙色・墨色）と manapick network の路線色だけを使う。
   本文16px・日本語12px以上・タップ44px以上。
   ========================================================== */

/* ---- 分野チップ（路線色） ---- */
.ncat { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--po); white-space: nowrap; }
.ncat[data-cat="pol"] { background: var(--po); }
.ncat[data-cat="law"] { background: var(--mp); }
.ncat[data-cat="ele"] { background: var(--li); }
.ncat[data-cat="tax"] { background: var(--co); }
.ncat[data-cat="case"] { background: var(--ink); }
.nkick { font-size: 13px; font-weight: 700; color: var(--ck); }

/* ---- 一覧の冒頭 ---- */
.nidx { padding-top: 8px; padding-bottom: 8px; }
.nidx__h { font-family: var(--mincho); font-weight: 700; font-size: clamp(30px, 8.4vw, 52px); line-height: 1.32; margin: 14px 0 12px; letter-spacing: .01em; }
.nidx__h .w { display: inline-block; }
.nidx__lead { font-size: 16px; line-height: 1.9; color: var(--ink-2); max-width: 760px; }
.nidx__lead strong { color: var(--ink); background: linear-gradient(transparent 62%, var(--tint) 62%); }
.nidx__how { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; max-width: 720px; }
.nidx__how::before { content: ""; position: absolute; left: 16%; right: 16%; top: 13px; height: 4px; border-radius: 2px; background: var(--po); }
.nidx__how li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 2px; padding: 0 4px; }
.nidx__how i { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 5px solid var(--po); box-sizing: border-box; margin-bottom: 6px; }
.nidx__how b { font-size: 15px; }
.nidx__how span { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* ---- 最新の1本 ---- */
.ntop { display: grid; grid-template-columns: minmax(0, 1fr); margin: 18px 0 8px; border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.ntop:hover, .ntop:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--po); }
.ntop__ph { position: relative; display: block; aspect-ratio: 1200 / 630; background: var(--paper-2); border-bottom: 1px solid var(--ink); }
.ntop__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ntop__badge { position: absolute; right: 12px; top: 12px; background: var(--ink); color: #fff; font-family: var(--num); font-weight: 700; font-size: 15px; letter-spacing: .12em; padding: 4px 10px; border-radius: 6px; }
.ntop__b { display: grid; gap: 10px; padding: 16px 18px 18px; }
.ncard__m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.ntop__h { font-size: clamp(20px, 5.4vw, 28px); line-height: 1.5; font-weight: 900; color: var(--ink); }
.ntop__x { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.ntop__go { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--po); color: #fff; font-weight: 700; font-size: 15px; }

/* ---- 節の見出し（一覧・記事で共通） ---- */
.nsec { margin: 34px 0 0; }
.nsec__h { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(20px, 5.2vw, 26px); line-height: 1.5; font-weight: 900; margin: 0 0 14px; }
.nsec__no { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 3px solid var(--po); color: var(--po); background: #fff; font-family: var(--num); font-weight: 700; font-size: 18px; display: grid; place-items: center; margin-top: -1px; }
.nsec__h--k { align-items: center; }
.nsec__tag { flex: none; font-family: var(--num); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: #fff; background: var(--ink); border-radius: 6px; padding: 4px 9px; }
.nsec > p { font-size: 16px; line-height: 2; margin: 0 0 14px; color: var(--ink); }

/* ---- 発車標 ---- */
.nboard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nboard__chips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nboard__chips button .num { font-family: var(--num); font-size: 15px; color: var(--ink-2); }
.nboard__chips button[data-cat]::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--po); }
.nboard__chips button[data-cat="law"]::before { background: var(--mp); }
.nboard__chips button[data-cat="ele"]::before { background: var(--li); }
.nboard__chips button[data-cat="tax"]::before { background: var(--co); }
.nboard__chips button[data-cat="case"]::before { background: var(--ink); }
.nboard__chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nboard__chips button[aria-pressed="true"] .num { color: var(--po-lt); }
.nboard__chips button[aria-pressed="true"][data-cat]::before { box-shadow: 0 0 0 2px #fff; }
.nboard__panel { background: var(--ink); color: #fff; border-radius: 16px; padding: 6px 14px 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nboard__head { display: none; }
.nboard__rows { list-style: none; margin: 0; padding: 0; }
.nboard__rows li + li { border-top: 1px dashed rgba(255,255,255,.22); }
/* 日付の列は 54px 固定だと、数字の書体（Barlow Condensed）の読み込み前・失敗時の代わりの書体で「11.17」が列からはみ出し、
   右の分野札（法律・政治）に重なっていた。最小 54px で、日付が広いときは列を広げる */
.nboard__rows a { display: grid; grid-template-columns: minmax(54px, auto) minmax(0, 1fr) 28px; grid-template-areas: "t c go" "t d go"; column-gap: 12px; row-gap: 6px; padding: 14px 0; color: #fff; text-decoration: none; min-height: 44px; }
.nboard__rows a:hover .nboard__d b, .nboard__rows a:focus-visible .nboard__d b { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--po-lt); }
.nboard__t { grid-area: t; display: grid; justify-items: start; align-content: start; }
.nboard__t time { font-family: var(--num); font-weight: 700; font-size: 26px; line-height: 1; color: var(--po-lt); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.nboard__t small { font-size: 12px; color: rgba(255,255,255,.72); margin-top: 4px; }
.nboard__c { grid-area: c; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nboard__c .ncat { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.nboard__c .ncat[data-cat="case"] { background: #fff; color: var(--ink); }
.nboard__new { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 6px; background: var(--po); color: #fff; font-family: var(--num); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.nboard__k { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.78); letter-spacing: .04em; }
.nboard__d { grid-area: d; display: grid; gap: 4px; min-width: 0; }
.nboard__d b { font-size: 16px; line-height: 1.6; font-weight: 700; }
.nboard__x { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.72); }
.nboard__go { grid-area: go; align-self: center; justify-self: end; font-family: var(--num); font-weight: 700; font-size: 18px; color: var(--po-lt); }
.nboard__go.new { font-size: 12px; letter-spacing: .1em; writing-mode: vertical-rl; background: var(--po); color: #fff; border-radius: 6px; padding: 8px 3px; }
.nboard[data-filter="pol"] .nboard__rows li:not([data-cat="pol"]),
.nboard[data-filter="law"] .nboard__rows li:not([data-cat="law"]),
.nboard[data-filter="ele"] .nboard__rows li:not([data-cat="ele"]),
.nboard[data-filter="tax"] .nboard__rows li:not([data-cat="tax"]),
.nboard[data-filter="case"] .nboard__rows li:not([data-cat="case"]) { display: none; }
.nboard:not([data-filter="all"]) .nboard__rows li { border-top: 0; }
.nboard:not([data-filter="all"]) .nboard__go.new { writing-mode: horizontal-tb; background: none; color: var(--po-lt); font-size: 0; padding: 0; }
.nboard:not([data-filter="all"]) .nboard__go.new::after { content: "→"; font-size: 18px; }

/* ---- カード ---- */
.nnext__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ncard { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: start; border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; padding: 10px; }
.ncard:hover, .ncard:focus-visible { border-color: var(--po); box-shadow: 0 0 0 2px var(--po); }
.ncard__ph { display: block; aspect-ratio: 1200 / 630; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.ncard__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ncard__b { display: grid; gap: 6px; min-width: 0; }
.ncard__b b { font-size: 15px; line-height: 1.6; font-weight: 700; }
.nsec .more, .nnext .more { margin-top: 14px; }

/* ---- 記事の冒頭 ---- */
.nhero { padding-top: 6px; }
.nhero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ndate { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.nhero__h { font-size: clamp(25px, 6.8vw, 40px); line-height: 1.48; font-weight: 900; margin: 14px 0 12px; letter-spacing: .01em; }
.nhero__lead { font-size: 17px; line-height: 1.95; color: var(--ink); max-width: 820px; margin: 0 0 16px; }
.nhero__ph { margin: 0 0 14px; border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--paper-2); max-width: 820px; }
.nhero__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- 3行でわかる（車内表示） ---- */
.nbody { padding-bottom: 8px; }
.n3 { margin: 22px 0 6px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px 16px; max-width: 820px; }
.n3__bar { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 10px; margin-bottom: 8px; }
.n3__led { width: 10px; height: 10px; border-radius: 50%; background: var(--po-lt); box-shadow: 0 0 10px var(--po-lt); }
.n3__bar h2 { font-size: 17px; font-weight: 900; margin: 0; }
.n3__en { margin-left: auto; font-family: var(--num); font-weight: 700; font-size: 13px; letter-spacing: .16em; color: rgba(255,255,255,.7); }
.n3 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.n3 li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 16px; line-height: 1.75; padding: 6px 0; }
.n3__no { font-family: var(--num); font-weight: 700; font-size: 20px; color: var(--po-lt); }

/* ---- 本文 ---- */
.nbody .nsec { max-width: 820px; }
.nbody .balloon { margin: 18px 0 6px; }
.nimp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.nimp li { border: 1px solid var(--ink); border-radius: 12px; background: #fff; padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.nimp b { justify-self: start; font-size: 13px; font-weight: 700; color: var(--po); background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.nimp li > span { font-size: 15px; line-height: 1.8; } /* 札（b）の中の文節分割の span には効かせない */
.nline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.nline li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 30px; }
.nline li::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: -8px; width: 4px; background: var(--po); border-radius: 2px; }
.nline li:last-child::before { display: none; }
.nline i { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--po); box-sizing: border-box; }
.nline li.now i { background: var(--po); box-shadow: 0 0 0 4px var(--tint); }
.nline time { font-family: var(--num); font-weight: 700; font-size: 15px; color: var(--ck); letter-spacing: .02em; }
.nline span { font-size: 15px; line-height: 1.8; }
.nterm { margin: 0; display: grid; gap: 8px; }
.nterm > div { border-left: 4px solid var(--po); background: #fff; border-radius: 0 10px 10px 0; padding: 10px 14px; }
/* 読みがなは途中で割らず、入らなければ読みがなごと次の行の左端へ（「…とくべつこう⏎じょ」を防ぐ） */
.nterm dt { font-weight: 900; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.nterm dt small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.nterm dd { margin: 4px 0 0; font-size: 15px; line-height: 1.8; }
.nsrc__list { margin: 0 0 10px; padding-left: 1.4em; display: grid; gap: 8px; }
.nsrc__list li { font-size: 15px; line-height: 1.7; }
.nsrc__list a { overflow-wrap: anywhere; }
.nsrc__list span { display: block; font-size: 13px; color: var(--ink-2); }
.nshare { margin: 34px 0 10px; padding: 16px; border: 1.5px dashed var(--po); border-radius: 16px; background: var(--tint); max-width: 820px; }
.nshare__k { font-weight: 900; font-size: 17px; margin: 0 0 6px; }
.nshare .share { margin: 0; }
.nfeed { margin: 10px 0 0; font-size: 14px; }
.nfeed a { display: inline-flex; align-items: center; min-height: 44px; }
.nempty { padding: 24px 0; color: var(--ink-2); }

/* ---- 目次（PC の右列。SP では出さない） ---- */
.nside { display: none; }
.nws [id] { scroll-margin-top: 96px; }

/* ---- PC ---- */
@media (min-width: 760px) {
  .nnext__g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ncard { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .ncard__ph { border-radius: 0; border-bottom: 1px solid var(--ink); }
  .ncard__b { padding: 4px 14px 16px; }
  .ntop { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .ntop__ph { border-bottom: 0; border-right: 1px solid var(--ink); aspect-ratio: auto; min-height: 100%; }
  .ntop__b { padding: 24px 26px; align-content: center; }
  /* あなたへの影響：自動の列数（幅 230px 以上で埋める）だと本文 720px の列で 3 列になり、4 件の記事で 3＋1 に割れ、
     カードの幅も狭く数字が折れていた → PC は 2 列にそろえ（4 件は 2×2）、件数が奇数のときは最後の 1 枚を横いっぱいにする */
  .nimp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nimp li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .nboard .nboard__panel { padding: 8px 22px 12px; }
  .nboard .nboard__head { display: grid; grid-template-columns: 84px 150px minmax(0, 1fr) 40px; column-gap: 18px; padding: 10px 0 8px; border-bottom: 1px solid rgba(255,255,255,.3); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.7); }
  .nboard .nboard__rows a { grid-template-columns: 84px 150px minmax(0, 1fr) 40px; grid-template-areas: "t c d go"; column-gap: 18px; align-items: start; padding: 16px 0; }
  .nboard .nboard__c { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nboard .nboard__d b { font-size: 18px; }
  .nboard .nboard__t time { font-size: 30px; }
  .ntop__ph { aspect-ratio: auto; display: flex; align-items: center; background: #f5f3ff; }
  .ntop__ph img { height: auto; }
}
@media (min-width: 1100px) {
  /* 本文の1行が 820px（全角51字）と長かった → 720px（45字）に。冒頭の要約・画像・リードも同じ幅にそろえる */
  .nbody { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 72px; align-items: start; justify-content: space-between; }
  /* 広い画面で記事が左に寄り、見出し・リードの右が空いていた → 冒頭は「見出し・リード｜画像」の2列にし、
     本文の目次は右端（画像の右端と同じ線）に置く。全体は main > .wrap3 の最大幅 1352px で中央寄せ */
  .nhero { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .nhero > * { grid-column: 1; }
  .nhero > .nhero__ph { grid-column: 2; grid-row: 1 / span 4; margin: 6px 0 0; max-width: 520px; justify-self: end; width: 100%; }
  .nbody .nsec, .n3, .nhero__lead, .nhero__ph { max-width: 720px; }
  /* ニュース一覧のカード：3列だと4件目が1つだけ次の段に落ちていた → 件数に合わせて最大4列（記事末の「次に読む」は3列のまま） */
  .nsec:not(.nnext) > .nnext__g { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .nside { display: block; position: sticky; top: 96px; }
  .nside__in { border: 1px solid var(--ink); border-radius: 14px; background: #fff; padding: 14px 16px 16px; }
  .nside__k { font-family: var(--num); font-weight: 700; font-size: 13px; letter-spacing: .16em; color: var(--ck); margin: 0 0 8px; }
  .nside__toc { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: ntoc; border-left: 3px solid var(--tint); }
  .nside__toc li { counter-increment: ntoc; }
  .nside__toc a { display: block; padding: 7px 10px 7px 12px; font-size: 14px; line-height: 1.6; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; margin-left: -3px; }
  .nside__toc a:hover, .nside__toc a:focus-visible { border-left-color: var(--po); color: var(--ck); background: var(--tint); }
  .nside .share { flex-wrap: wrap; }
}

/* トップページの最新ニュース（中央の列は幅が狭いので SP と同じ並び） */
.nhome .nboard__panel { margin-top: 4px; }
.nhome .more { margin-top: 12px; }
