:root { --blue: #2563eb; --blue-d: #1d4ed8; --ink: #0f172a; --text: #1e293b; --sub: #475569; --mute: #64748b; --line: #e2e8f0; --soft: #f8fafc; --s1: #2563eb; --s2: #e0a100; --s3: #cbd5e1; }
* { box-sizing: border-box; }
html { scroll-padding-top: 120px; }
body { margin: 0; background: #ffffff; color: var(--text); font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Meiryo UI", Meiryo, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.9; font-feature-settings: "palt" 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
.sample { display: none; }

/* ヒーロー: 地図の上に要約カード */
.hero { position: relative; min-height: 470px; border-bottom: 1px solid var(--line); background: #eef2f7; }
#hmap { position: absolute; inset: 0; z-index: 0; }
#hmap .leaflet-tile-pane { filter: grayscale(1) contrast(0.9) brightness(1.06); opacity: 0.55; }
.hcap { position: absolute; right: 12px; bottom: 28px; z-index: 3; font-size: 11.5px; color: var(--sub); background: rgba(255,255,255,0.9); padding: 4px 9px; border-radius: 6px; }
.hero .leaflet-container { background: #eef2f7; }
.hcard { position: relative; z-index: 2; width: min(560px, calc(100% - 40px)); margin: 0 0 0 max(20px, calc((100% - 1120px) / 2)); top: 34px; background: rgba(255,255,255,0.97); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px 20px; box-shadow: 0 12px 34px rgba(15,23,42,0.12); }
.crumb { font-size: 12px; color: var(--mute); margin-bottom: 6px; }
.crumb a { color: var(--mute); }
h1 { margin: 0; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.25; color: var(--ink); font-weight: 700; letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.yomi { font-size: 14px; font-weight: 500; color: var(--mute); letter-spacing: 0.08em; }
.hsub { margin: 6px 0 16px; font-size: 13.5px; color: var(--sub); }
.hstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.hstats > div { padding: 12px 4px 12px 0; border-bottom: 1px solid var(--line); }
.hstats > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.hstats > div:nth-child(even) { padding-left: 16px; }
.hk { font-size: 12px; color: var(--sub); font-weight: 700; }
.hv { font-size: clamp(26px, 3vw, 32px); font-weight: 700; color: var(--ink); line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.hv small { font-size: 14px; margin-left: 2px; color: var(--sub); font-weight: 700; }
.hc { font-size: 12px; color: var(--mute); }
.htype { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-size: 14px; }
.tlabel { font-size: 12px; color: var(--sub); font-weight: 700; }
.htype b { color: var(--blue-d); font-size: 16px; }
.htype a { font-size: 12.5px; margin-left: auto; }

/* 目次 */
.toc { position: sticky; top: 69px; z-index: 40; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.tocin { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.tocin::-webkit-scrollbar { display: none; }
.toc a { flex: 0 0 auto; font-size: 13.5px; font-weight: 700; color: var(--sub); padding: 12px 0 10px; border-bottom: 2px solid transparent; }
.toc a.on, .toc a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* 章: 左に見出しの列、右に本文（Census Reporter の型） */
main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px; }
.sec > * { min-width: 0; }
.sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.rail h2 { margin: 0; font-size: 19px; color: var(--ink); line-height: 1.5; position: sticky; top: 130px; }
.railnote { margin: 4px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.7; position: sticky; top: 162px; }
.body > p { margin: 0 0 14px; }
.lead p { font-size: 16.5px; line-height: 2.05; margin: 0 0 16px; }
.fig-t { margin: 0 0 2px; font-size: clamp(18px, 2.4vw, 22px); color: var(--ink); line-height: 1.5; font-weight: 700; }
.fig-s { margin: 0 0 12px; font-size: 13px; color: var(--mute); }
.sub-h { margin: 30px 0 10px; font-size: 15px; color: var(--ink); }
.src { font-size: 12px; color: var(--mute); line-height: 1.8; margin: 8px 0 0; }

/* グラフ */
.chart { width: 100%; height: auto; display: block; font-family: inherit; }
.c-sp { display: none; }
.chart .gl { stroke: #edf1f6; }
.chart .ax, .scale .ax, .scale .ax2 { font-size: 12px; fill: var(--mute); }
.chart .band { fill: #f1f5f9; }
.chart .bandt { font-size: 11.5px; fill: var(--mute); }
.chart .ar { fill: rgba(37,99,235,0.07); }
.chart .ln { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linejoin: round; }
.chart .d { fill: #ffffff; stroke: var(--blue); stroke-width: 2; }
.chart .dl { fill: var(--blue-d); stroke: #ffffff; stroke-width: 2; }
.chart .pre { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.5; }
.chart .pret { font-size: 11.5px; fill: var(--sub); }
.chart .annt { font-size: 12px; fill: var(--sub); }
.chart .annb { font-size: 13px; font-weight: 700; fill: var(--ink); }
details.tbl { margin: 10px 0 0; }
details.tbl summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--blue); padding: 4px 0; }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { font-size: 12px; color: var(--sub); font-weight: 700; background: var(--soft); }
td small { display: block; font-size: 11.5px; color: var(--mute); line-height: 1.4; }
.r { text-align: right; font-variant-numeric: tabular-nums; }

/* 数字の並び */
.kpis { display: grid; grid-template-columns: 1fr 2fr; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--ink); }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 30px; }
.kpis > div { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); }
.kpis > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.kk { font-size: 12.5px; color: var(--sub); font-weight: 700; }
.kv { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.35; font-variant-numeric: tabular-nums; }
.kv small { font-size: 14px; color: var(--sub); margin-left: 2px; }
.kc { font-size: 12px; color: var(--mute); }
.cmp { margin-top: 8px; display: grid; gap: 6px; }
.cmp > div { display: grid; grid-template-columns: 180px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12.5px; }
.cmp span { color: var(--sub); }
.cmp i { display: block; height: 8px; border-radius: 4px; background: #cbd5e1; }
.cmp i.me { background: var(--blue); }
.cmp b { font-variant-numeric: tabular-nums; text-align: right; }
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ranks li { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.ranks li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.ranks span { font-size: 12px; color: var(--sub); line-height: 1.5; min-height: 36px; }
.ranks b { font-size: 26px; color: var(--ink); line-height: 1.3; font-variant-numeric: tabular-nums; }
.ranks b small { font-size: 13px; margin-left: 2px; }
.ranks em { font-style: normal; font-size: 11.5px; color: var(--mute); }

/* 駅のタイプ */
.scale { width: 100%; height: auto; display: block; margin: 6px 0 14px; font-family: inherit; }
.scale .mk { stroke: var(--ink); stroke-width: 2.5; }
.scale .mkt { font-size: 13px; font-weight: 700; fill: var(--ink); }

/* 世帯の構成の比較 */
.legend, .mlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--sub); margin: 0 0 10px; }
.legend i, .mlegend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.legend .s1, .skb .s1 { background: var(--s1); }
.legend .s2, .skb .s2 { background: var(--s2); }
.legend .s3, .skb .s3 { background: var(--s3); }
.stacks { display: grid; gap: 10px; }
.sk { display: grid; grid-template-columns: 150px minmax(0, 1fr) 118px; gap: 14px; align-items: center; }
.skl { font-size: 13.5px; color: var(--text); line-height: 1.3; }
.skl small { display: block; font-size: 11.5px; color: var(--mute); }
.sk.strong .skl { font-weight: 700; color: var(--ink); }
.skb { display: flex; height: 20px; border-radius: 4px; overflow: hidden; }
.sk:not(.strong) .skb { height: 14px; opacity: 0.85; }
.skb i { display: block; height: 100%; }
.skv { font-size: 13px; font-variant-numeric: tabular-nums; display: flex; gap: 10px; justify-content: flex-end; }
.skv b { color: var(--s1); }
.skv span { color: #a16207; }

/* 方角 */
#smap { height: 440px; border-radius: 14px; border: 1px solid var(--line); margin: 6px 0 8px; }
.mlegend .ring { color: var(--mute); }
.sides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.side { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.sdir { font-size: 13px; font-weight: 700; color: var(--ink); }
.sbig { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.25; font-variant-numeric: tabular-nums; }
.sbig small { font-size: 14px; color: var(--sub); }
.ssub { font-size: 11.5px; color: var(--mute); }
.sbar { height: 6px; background: #eef2f7; border-radius: 3px; margin: 8px 0 10px; }
.sbar i { display: block; height: 100%; border-radius: 3px; background: var(--s1); }
.side dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 8px; font-size: 12.5px; }
.side dt { color: var(--mute); }
.side dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.minibar { display: inline-block; width: 56px; height: 6px; background: #eef2f7; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.minibar i { display: block; height: 100%; border-radius: 3px; }
.stt { background: var(--ink); color: #fff; border: none; font-weight: 700; font-size: 12px; padding: 3px 8px; box-shadow: none; }
.stt::before { border-top-color: var(--ink) !important; }

/* 近くの駅・似ている駅 */
.spark { width: 96px; height: 24px; display: block; }
.spark polyline { fill: none; stroke: var(--blue); stroke-width: 1.6; }
.stn { font-weight: 700; }
.sims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sim { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); display: block; transition: border-color 0.15s, box-shadow 0.15s; }
.sim:hover { border-color: #93b8ff; box-shadow: 0 4px 14px rgba(37,99,235,0.08); color: var(--text); }
.simn { font-size: 17px; font-weight: 700; color: var(--ink); }
.simp { font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.sim dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 8px; font-size: 12.5px; }
.sim dt { color: var(--mute); }
.sim dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* 案内・質問・データ */
.cta-sec { border-bottom: none; }
.cta { border: 1px solid #bfdbfe; background: #f5f9ff; border-radius: 16px; padding: 24px; }
.cta h2 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.cta p { margin: 0 0 16px; font-size: 14.5px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 15px; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-d); color: #fff; }
.btn.o { background: #fff; color: var(--blue-d); border: 1.5px solid var(--blue); }
.btn.o:hover { background: #eff6ff; color: var(--blue-d); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--mute); font-weight: 400; font-size: 20px; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa p { margin: 0 0 16px; color: var(--sub); font-size: 14.5px; }
.meta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 13.5px; }
.meta dt { color: var(--sub); font-weight: 700; }
.meta dd { margin: 0; color: var(--text); }
.foot { background: var(--ink); color: #94a3b8; font-size: 13px; }
.foot div { max-width: 1120px; margin: 0 auto; padding: 26px 20px; }
.foot a { color: #94a3b8; }

@media (max-width: 1020px) {
  .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ranks li:nth-child(4) { padding-left: 0; border-left: none; }
  .sides, .sims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sec { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 34px 0; }
  .rail h2, .railnote { position: static; }
  .rail h2 { font-size: 20px; }
  .kpis { grid-template-columns: 1fr; }
  .kpis > div + div { padding-left: 0; border-left: none; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 112px; }
  .toc { top: 69px; }
  .hero { min-height: 0; display: flex; flex-direction: column-reverse; background: #fff; }
  #hmap { position: relative; height: 210px; }
  .lhero #hmap { height: 340px; }
  .hcap { position: static; order: -1; border-radius: 0; padding: 6px 16px; background: var(--soft); }
  .hcard { top: 0; margin: 0; width: 100%; border-radius: 0; border: none; box-shadow: none; padding: 18px 16px 16px; }
  main { padding: 0 16px 32px; }
  .lead p { font-size: 15.5px; line-height: 2; }
  .c-pc { display: none; }
  .c-sp { display: block; }
  .kpis.three { grid-template-columns: 1fr 1fr; }
  .kpis.three > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: none; }
  .cmp > div { grid-template-columns: minmax(0, 1fr) 40px; gap: 2px 10px; }
  .cmp span { grid-column: 1 / -1; }
  .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranks li:nth-child(odd) { padding-left: 0; border-left: none; }
  .ranks li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .sk { grid-template-columns: 1fr auto; grid-template-areas: "l v" "b b"; gap: 4px 10px; }
  .skl { grid-area: l; } .skv { grid-area: v; } .skb { grid-area: b; }
  #smap { height: 320px; }
  .meta { grid-template-columns: 1fr; gap: 2px; }
  .meta dd { margin-bottom: 10px; }
  .btn { width: 100%; }
}
@media print { .toc, #hmap, .sample { display: none !important; } .hero { min-height: 0; } .hcard { top: 0; box-shadow: none; } }

/* ---- 路線ページ ---- */
.lhero .leaflet-tooltip.lbl { background: rgba(255,255,255,0.92); border: none; box-shadow: none; font-size: 11.5px; font-weight: 700; color: var(--ink); padding: 1px 6px; }
.lhero .leaflet-tooltip.lbl::before { display: none; }
.lhero .leaflet-bar a.lhome { width: auto; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--ink); }
.sec.wide { grid-template-columns: 160px minmax(0, 1fr); }

/* 路線の図: 行の並び（km・駅の点・駅名・乗降客数・人口・一人暮らし・タイプ） */
.sthead, .strip li { display: grid; grid-template-columns: 38px 22px minmax(150px, 1.25fr) minmax(170px, 1.6fr) minmax(130px, 1.1fr) 70px 92px; gap: 0 10px; align-items: center; }
.sthead { font-size: 11.5px; color: var(--mute); font-weight: 700; padding: 0 0 6px; border-bottom: 1px solid var(--ink); }
.sthead span:nth-child(6) { text-align: right; }
.strip { list-style: none; margin: 0; padding: 0; }
.strip li { min-height: 44px; padding: 5px 0; border-bottom: 1px solid #f1f5f9; position: relative; }
.strip li.big { min-height: 56px; background: linear-gradient(90deg, rgba(37,99,235,0.04), transparent 60%); }
.km { font-size: 11.5px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.node { position: relative; align-self: stretch; }
.node::before { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: #0f172a; }
.strip li.first .node::before { top: 50%; }
.strip li.last .node::before { bottom: 50%; }
.node i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #ffffff; border: 3px solid #0f172a; z-index: 1; }
.strip li.big .node i { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.strip.branch .node::before { background: #94a3b8; }
.strip.branch .node i { border-color: #94a3b8; }
.strip.branch li:first-child .node::before { top: -6px; }
.nm { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.nm .n { font-size: 15px; font-weight: 700; color: var(--ink); }
.strip li.big .nm .n { font-size: 17px; }
.nm small { font-size: 11px; color: var(--mute); line-height: 1.45; margin-top: 1px; }
.rd, .pp { display: flex; align-items: center; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.rd b { font-weight: 700; color: var(--ink); min-width: 62px; text-align: right; }
.pp { color: var(--sub); }
.bar { flex: 1 1 auto; height: 10px; background: #f1f5f9; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar.b1 i { background: var(--blue); }
.bar.b2 i { background: #94a3b8; }
.nd { font-size: 12px; color: var(--mute); }
.sg { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; color: var(--sub); }
.ty { font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ty::before { content: ""; width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.ty.t4 { color: #1d4ed8; } .ty.t4::before { background: #1d4ed8; }
.ty.t3 { color: #2563eb; } .ty.t3::before { background: #5b8def; }
.ty.t2 { color: var(--sub); } .ty.t2::before { background: #a9c6f5; }
.ty.t1 { color: var(--mute); } .ty.t1::before { background: #dbe7fb; }
.ty.tn { color: var(--mute); } .ty.tn::before { background: transparent; }
.brlabel { font-size: 12.5px; font-weight: 700; color: var(--sub); margin: 18px 0 2px 70px; }

/* ランキング */
.rks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 28px; }
.rk h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.rk ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rk li { counter-increment: r; display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.rk li span::before { content: counter(r); display: inline-block; width: 20px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rk li b { font-variant-numeric: tabular-nums; }

@media (max-width: 1020px) {
  .rks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sthead, .strip li { grid-template-columns: 34px 22px minmax(120px, 1.2fr) minmax(140px, 1.5fr) minmax(110px, 1fr) 50px; }
  .sthead span:nth-child(7), .strip .ty { display: none; }
}
@media (max-width: 860px) {
  .sec.wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .rks { grid-template-columns: 1fr; }
  .sthead { display: none; }
  .strip li { grid-template-columns: 22px minmax(0, 1fr); grid-template-areas: "node nm" "node rd" "node pp"; gap: 2px 10px; padding: 8px 0; }
  .strip .km, .strip .sg, .strip .ty { display: none; }
  .node { grid-area: node; } .nm { grid-area: nm; } .rd { grid-area: rd; } .pp { grid-area: pp; font-size: 12px; }
  .rd::before, .pp::before { content: "乗降客数"; font-size: 10.5px; color: var(--mute); width: 52px; flex: 0 0 auto; }
  .pp::before { content: "1km人口"; }
  .rd b { min-width: 0; }
  .brlabel { margin-left: 32px; }
}

/* ---- 一覧・ランキング・地域のページ（全駅の生成で追加） ---- */
.lhead { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f6f9ff, #ffffff); }
.lhead .in { max-width: 1120px; margin: 0 auto; padding: 26px 20px 22px; }
.lhead h1 { display: block; font-size: clamp(26px, 3.6vw, 36px); margin: 4px 0 8px; }
.lhead p { margin: 0; color: var(--sub); font-size: 15px; }
.lt td:first-child a { font-weight: 700; }
.lt td small { white-space: normal; max-width: 360px; }
.grid-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 18px; }
.grid-links li { border-bottom: 1px solid #f1f5f9; padding: 7px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.grid-links li small { color: var(--mute); font-variant-numeric: tabular-nums; }
.rk-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rk-links a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-weight: 700; }
.rk-links a small { display: block; font-weight: 400; color: var(--mute); font-size: 12.5px; }
.rk-links a:hover { border-color: #93b8ff; }
.nolink { color: var(--text); }
.lo { color: #b91c1c; } .hi { color: #047857; }

/* 路線の一覧（地域ごと・乗降客数の多い順・主要駅つき） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.chips a small { color: var(--mute); font-weight: 400; font-variant-numeric: tabular-nums; }
.lrows { list-style: none; margin: 0; padding: 0; }
.lrows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.lrows li a { font-size: 16px; font-weight: 700; }
.lrows .ls { grid-column: 1; font-size: 12.5px; color: var(--mute); line-height: 1.5; }
.lrows .lv { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: 14.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lrows .lv small { font-size: 11px; font-weight: 400; color: var(--mute); margin-left: 2px; }
details.more summary { cursor: pointer; list-style: none; margin-top: 10px; padding: 10px 0; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { display: none; }

/* 関係するコラム */
.cols { list-style: none; margin: 0; padding: 0; }
.cols li { border-bottom: 1px solid #f1f5f9; }
.cols a { display: block; padding: 11px 0; font-size: 14.5px; font-weight: 700; }
.cols a::after { content: " →"; color: var(--mute); font-weight: 400; }

/* 駅のタイプの決め方（この駅のタイプを強調） */
.ttypes td:first-child { white-space: nowrap; font-weight: 700; }
.ttypes tr.on td { background: #eff6ff; color: var(--blue); }
.ttypes tr.on td:first-child::before { content: "● "; }
.ttypes td { white-space: normal; }
.ttypes td:first-child { white-space: nowrap; width: 1%; }
@media (max-width: 720px) { .ttypes td:first-child { white-space: normal; width: 38%; } }
