/* ==========================================================================
   羽野国 羽野県鯖 公式サイト

   色はロゴから取っている。
     緑 … HN ロゴの緑（#00c050 前後）。白地の文字・ボタンは読める濃さに落とした --g-ink
     灰 … 丸ロゴの地の灰（#8d8d8d）
     4色 … 丸ロゴの縁（青 #007aff・紫 #a304fc・赤 #9f0000・緑 #00d501）。上のバーの下の帯
   ========================================================================== */
:root {
  --g: #00b84c;
  --g-ink: #00803a;
  --g-ink-h: #006a30;
  --g-tint: #ecf8f0;
  --ring-b: #007aff; --ring-p: #a304fc; --ring-r: #9f0000; --ring-g: #00d501;
  --emblem: #8d8d8d;
  --ink: #1d2320;
  --sub: #59615c;
  --mute: #8b928e;
  --line: #dde2df;
  --line-2: #c5ccc8;
  --bg-2: #f3f5f4;
  --ok: #00803a; --delay: #c76a00; --suspend: #d32f2f; --info: #1d6ad6;
  --wrap: 1080px;
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.8; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--g-ink); text-underline-offset: 3px; }
a:hover { color: var(--g-ink-h); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.45; font-weight: 700; }
p { margin: 0 0 .7em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* 日本語は文節の区切り（サイトを作るときに入れた <wbr>）でだけ折り返す。
   単語の途中（「平常ど／おり」など）では改行しない。
   Chrome の word-break: auto-phrase は使わない（自分で文節を探して「平常ど／おり」と切ってしまう） */
main, .ftr { word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip:focus { left: 8px; }

/* 丸ロゴの縁と同じ4色の帯 */
.stripe { display: flex; height: 4px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--ring-b); }
.stripe i:nth-child(2) { background: var(--ring-p); }
.stripe i:nth-child(3) { background: var(--ring-r); }
.stripe i:nth-child(4) { background: var(--ring-g); }

/* ==========================================================================
   上のバー
   ========================================================================== */
.hdr { background: #fff; position: relative; z-index: 50; }
.hdr-in { display: flex; align-items: center; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: 52px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.2; }
.brand-s { font-size: 11px; color: var(--sub); letter-spacing: .14em; }
.brand-n { font-size: 21px; font-weight: 700; letter-spacing: .06em; }
/* メニュー。開いているページは緑で塗る（下の4色の帯と見分けがつくように、線ではなく面で示す） */
.gnav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.gnav a { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 4px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.gnav a:hover { background: var(--g-tint); color: var(--g-ink); }
.gnav a.cur, .gnav a.cur:hover { background: var(--g-ink); color: #fff; }
.gnav .gnav-discord { display: none; }
.hdr-cta { flex: none; }
.navbtn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.navbtn span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .15s; }
body.nav-open .navbtn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .navbtn span:nth-child(2) { opacity: 0; }
body.nav-open .navbtn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .gnav a { padding: 0 8px; font-size: 13.5px; }
  .hdr-in { gap: 14px; }
}
@media (max-width: 960px) {
  .hdr-in { height: 64px; }
  .brand img { width: 44px; height: 44px; }
  .brand-n { font-size: 19px; }
  .navbtn { display: flex; }
  .hdr .hdr-cta { display: none; }
  .gnav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2); display: none; }
  body.nav-open .gnav { display: flex; }
  .gnav a { height: auto; padding: 15px 20px; border-radius: 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .gnav a::before { content: '›'; color: var(--g-ink); margin-right: 10px; font-size: 18px; line-height: 1; }
  .gnav a.cur, .gnav a.cur:hover { background: var(--g-tint); color: var(--g-ink); box-shadow: inset 5px 0 0 var(--g); }
  .gnav a.cur::after { content: '表示中'; margin-left: auto; font-size: 11px; font-weight: 700; color: var(--g-ink); border: 1px solid var(--g-ink); border-radius: 2px; padding: 0 7px; line-height: 1.7; }
  .gnav .gnav-discord { display: flex; border-bottom: 0; }
}

/* ==========================================================================
   部品
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid transparent; border-radius: 4px; font-family: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn::after { content: '›'; font-size: 19px; line-height: 0; margin-left: 2px; }
.btn-g { background: var(--g-ink); color: #fff; }
.btn-g:hover { background: var(--g-ink-h); color: #fff; }
.btn-w { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-w:hover { border-color: var(--g-ink); color: var(--g-ink); }
.btn-d { background: #5865f2; color: #fff; }
.btn-d:hover { background: #4651d6; color: #fff; }
.btn-d svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* 見出し。左に緑の線（鉄道会社のサイトでよくある形） */
.h2 { font-size: 21px; padding: 1px 0 1px 13px; border-left: 5px solid var(--g); letter-spacing: .02em; }
.sec { padding: 48px 0; }
.sec-2 { background: var(--bg-2); }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.more { font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more::after { content: '›'; margin-left: 6px; font-size: 17px; line-height: 0; }
.note { font-size: 13.5px; color: var(--sub); }
/* 短い札・見出し・表の見出しは1行のまま（折り返すと読みにくい） */
.h2, .crumb li, .tbl thead th, .tbl.kv th, .news time, .news .cat, .lg-dir, .lg-t, .chips li, .veh-sub, .veh-meta,
.song-cr div, .ftr-nav a, .ftr-name, .panel-h h2, .top-h1, .ops-coh, .lsec-co, .stno, .lcode, .pb, .steps li::before { white-space: nowrap; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 4px; }

/* 路線記号・駅ナンバリング（走行位置のページと同じ、枠だけ路線色） */
.lcode { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 3px solid var(--c); border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1; flex: none; }
.lcode.sm { width: 28px; height: 28px; border-width: 2.5px; border-radius: 5px; font-size: 11px; }
.lcode.lg { width: 50px; height: 50px; border-width: 3.5px; border-radius: 8px; font-size: 17px; }
.stno { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2.5px solid var(--c); border-radius: 6px; background: #fff; color: var(--ink); line-height: 1; flex: none; }
.stno .c { font-size: 8.5px; font-weight: 700; }
.stno .n { font-size: 13px; font-weight: 700; margin-top: 1px; }
.stno-link { display: inline-block; margin-right: 4px; text-decoration: none; }

/* 表 */
.tbl-wrap { overflow-x: auto; }
.tbl { border-top: 2px solid var(--ink); font-size: 14.5px; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl thead th { background: var(--bg-2); font-size: 12.5px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.tbl.kv th { width: 9.5em; background: var(--bg-2); font-weight: 700; vertical-align: top; white-space: nowrap; }
.tbl.kv td { vertical-align: top; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .go { text-align: right; white-space: nowrap; }
.tbl .go a { font-size: 13px; font-weight: 700; text-decoration: none; }
.tbl .go a::after { content: '›'; margin-left: 5px; }
.tbl tbody tr:hover { background: #fafbfa; }

/* ==========================================================================
   トップ
   ========================================================================== */
/* 写真。上のバーのすぐ下に、画面の幅いっぱいで出す。6秒ごとに次の写真へ（main.js） */
/* 横に指を動かしたときは写真をめくる（ブラウザの「戻る」にしない）。縦のスクロールと拡大はそのまま */
.mv { position: relative; height: clamp(220px, 40vw, 560px); background: #1d2320; overflow: hidden; touch-action: pan-y pinch-zoom; }
.mv-s { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0s linear 1.2s; }
/* 次の写真は前の写真の上に重ねて浮かび上がらせ、前の写真は重なり終わってから消す（途中で暗くならない） */
.mv-s.is-on { z-index: 1; opacity: 1; transition: opacity 1.2s ease; }
.mv-s img { width: 100%; height: 100%; object-fit: cover; }
.mv::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 100px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .42)); pointer-events: none; }
.mv-ui { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; }
.mv-ui .wrap { display: flex; align-items: center; gap: 10px; }
.mv-ui button { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.mv-ui button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mv-ui .mv-btn { width: 36px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(0, 0, 0, .3); }
.mv-ui .mv-btn:hover { background: rgba(0, 0, 0, .55); }
.mv-btn svg { width: 14px; height: 14px; fill: currentColor; }
.mv.is-play .ic-play, .mv:not(.is-play) .ic-pause { display: none; }
.mv-dots { display: flex; }
/* 線は細いが、押せる範囲は広くとる */
.mv-ui .mv-dot { width: 34px; height: 32px; }
.mv-dot i { position: relative; display: block; width: 26px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.mv-dot b { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.mv-dot.is-on b { transform: none; }
/* 今の写真の線が端まで伸びたら次へ。止めているあいだは伸びない */
.mv.is-play .mv-dot.is-on b { animation: mv-bar 6s linear both; }
.mv.is-hold .mv-dot.is-on b { animation-play-state: paused; }
@keyframes mv-bar { from { transform: scaleX(0); } to { transform: none; } }
.mv-arw { margin-left: auto; display: flex; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .mv-s, .mv-s.is-on { transition: none; } }

.top { background: var(--bg-2); padding: 22px 0 32px; border-bottom: 1px solid var(--line); }
.top-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; }
.top-h1 { font-size: 15px; }
.top-intro p { margin: 0; color: var(--sub); font-size: 14px; }
.top-intro .more { margin-left: auto; }

.panel-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.panel-h h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.panel-meta { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--sub); }
.chip-demo { font-size: 11px; font-weight: 700; color: #8a5a00; background: #fff3d6; border: 1px solid #f0d59a; padding: 1px 8px; border-radius: 2px; }

/* 路線図。駅を横に並べ、駅名は縦書き */
.rmap { position: relative; padding: 6px 0 16px; }
.rmap.is-scroll::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.rmap.is-scroll.at-end::after { display: none; }
.rmap-scroll { overflow-x: auto; scrollbar-width: thin; }
.rmap-in { position: relative; min-width: calc(var(--n) * 36px); width: min(100%, calc(var(--n) * 110px)); padding: 0 10px; }
.rmap-trains { position: relative; height: 46px; }
.rmap-st { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
/* 線は最初の駅の中心から最後の駅の中心まで */
.rmap-st::before { content: ''; position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: 23px; height: 8px; background: var(--c); }
.rmap-st a { display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; }
.rmap-no { height: 16px; font-size: 10.5px; line-height: 16px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rmap-dot { position: relative; z-index: 1; width: 16px; height: 16px; margin: 3px 0 9px; border: 3.5px solid var(--c); border-radius: 50%; background: #fff; }
.rmap-nm { writing-mode: vertical-rl; text-orientation: upright; font-size: 14px; font-weight: 700; letter-spacing: .1em; line-height: 1; }
.rmap-st a:hover .rmap-nm { color: var(--g-ink); }
.rmap-st a:hover .rmap-dot { background: var(--c); }
/* 列車。尖った方が進む向き。下り（右へ）は線に近い段、上り（左へ）は上の段 */
.rmap-tr { position: absolute; width: 22px; height: 13px; margin-left: -11px; border-radius: 2px; background: var(--tc); box-shadow: 0 0 0 2px #fff; }
/* 同じ向きの列車が重なるときは、render.js が後ろの列車を1両ぶん後ろへずらして並べる */
.rmap-tr.dn { top: 26px; }
.rmap-tr.up { top: 6px; }
.rmap-tr::after { content: ''; position: absolute; top: 0; border-style: solid; }
.rmap-tr.dn::after { right: -7px; border-width: 6.5px 0 6.5px 7px; border-color: transparent transparent transparent var(--tc); }
.rmap-tr.up::after { left: -7px; border-width: 6.5px 7px 6.5px 0; border-color: transparent var(--tc) transparent transparent; }
.rmap-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 10px 18px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--sub); }
.lg-dir, .lg-t { display: inline-flex; align-items: center; gap: 6px; }
.lg-ar { width: 0; height: 0; border-style: solid; }
.lg-ar.dn { border-width: 5px 0 5px 7px; border-color: transparent transparent transparent var(--sub); }
.lg-ar.up { border-width: 5px 7px 5px 0; border-color: transparent var(--sub) transparent transparent; }
.lg-types { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.lg-t i { width: 14px; height: 9px; border-radius: 2px; background: var(--tc); }
.tr-note { margin-left: auto; }
.tr-note a { font-weight: 700; }

/* 運行情報 */
.ops-sum { display: flex; align-items: center; gap: 10px; padding: 13px 18px; margin-bottom: 20px; background: var(--g-tint); border-left: 5px solid var(--ok); font-weight: 700; color: var(--ok); }
.ops-sum span { color: var(--ink); }
.ops-sum.is-delay { background: #fff6e6; border-color: var(--delay); color: var(--delay); }
.ops-sum.is-suspend { background: #fdecec; border-color: var(--suspend); color: var(--suspend); }
.ops-sum.is-info { background: #eaf1fd; border-color: var(--info); color: var(--info); }
.mk { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ops-co + .ops-co { margin-top: 18px; }
.ops-coh { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.ops { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ops li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.ops a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.ops a:hover { background: var(--g-tint); }
.ops-nm { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ops-st .mk { width: 16px; height: 16px; }
.st-normal .ops-st { color: var(--ok); }
.st-delay .ops-st { color: var(--delay); }
.st-suspend .ops-st { color: var(--suspend); }
.st-info .ops-st { color: var(--info); }
.ops-tx { margin: -4px 0 0; padding: 0 14px 12px 52px; font-size: 12.5px; line-height: 1.7; }

/* お知らせ・参加方法 */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.news { border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 88px auto minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.news time { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.news .cat { justify-self: start; font-size: 11px; font-weight: 700; color: var(--g-ink); border: 1px solid var(--g-ink); padding: 0 7px; border-radius: 2px; white-space: nowrap; line-height: 1.7; }
.news a, .news span.t { color: var(--ink); font-weight: 500; text-decoration: none; }
.news a:hover { color: var(--g-ink); text-decoration: underline; }
.join { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--g); padding: 20px 22px 22px; }
.join .h2 { margin-bottom: 14px; }
.steps { counter-reset: s; margin-bottom: 18px; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 7px 0; font-size: 14.5px; line-height: 1.7; }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--g-ink); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 24px; text-align: center; }

/* ピックアップ（車両・音楽） */
.picks { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.vlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--line); }
.vlist a, .slist a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.vlist a:hover, .slist a:hover { color: var(--g-ink); }
.vlist b, .slist b { font-weight: 700; }
.vlist small, .slist small { font-size: 12.5px; color: var(--sub); white-space: nowrap; }
.slist { border-top: 1px solid var(--line); }

/* 羽野県鯖について */
.about-b { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; }
.about-b .tbl { background: #fff; }

/* ==========================================================================
   中のページ
   ========================================================================== */
.ph { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 18px 0 28px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--sub); margin-bottom: 12px; }
.crumb li + li::before { content: '›'; margin-right: 6px; color: var(--mute); }
.crumb a { color: var(--sub); }
.ph h1 { font-size: 30px; letter-spacing: .03em; }
.ph p { margin: 6px 0 0; color: var(--sub); }

.body { padding: 40px 0 64px; }
.body > .wrap > .h2, .body .blk > .h2 { margin: 40px 0 16px; }
.body > .wrap > .h2:first-child, .body .blk:first-child > .h2 { margin-top: 0; }
.body p.lead { font-size: 15px; }
.narrow { max-width: 860px; }

/* 路線と駅 */
.lines-idx td:first-child { width: 52px; }
.lsec { padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); }
.lsec-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.lsec-t { flex: 1; min-width: 200px; }
.lsec-co { font-size: 12px; color: var(--sub); font-weight: 700; }
.lsec-t h2 { font-size: 24px; }
.lsec-t h2 small { font-size: 12.5px; color: var(--sub); font-weight: 500; margin-left: 10px; letter-spacing: .04em; }
.lsec-meta { color: var(--sub); font-size: 13.5px; margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.lsec-meta .tr-note { margin-left: 0; }
.lsec-draft { color: var(--sub); background: var(--bg-2); padding: 14px 18px; margin: 12px 0 0; font-size: 14px; }
.lsec .panel { margin-bottom: 18px; }
.st-tbl td:first-child { width: 64px; }
.st-tbl td { padding-top: 8px; padding-bottom: 8px; }

/* 車両図鑑 */
.v-idx a { font-weight: 700; text-decoration: none; }
.v-idx td small { color: var(--sub); font-weight: 400; margin-left: 4px; }
.veh { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.veh-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.veh-h h2 { font-size: 28px; letter-spacing: .02em; padding-left: 13px; border-left: 5px solid var(--g); line-height: 1.2; }
.veh-sub { font-size: 13px; font-weight: 700; color: var(--sub); border: 1px solid var(--line-2); padding: 1px 9px; border-radius: 2px; }
.veh-meta { font-size: 13px; color: var(--sub); }
.veh-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.veh-desc p { margin: 0 0 .55em; }
.veh-spec td { white-space: pre-line; overflow-wrap: anywhere; }
.v-idx td { white-space: nowrap; }
.v-idx td.pc:last-of-type { white-space: normal; }

/* 音楽 */
.songs { border-top: 1px solid var(--line); }
.song { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.song-no { font-size: 30px; font-weight: 700; color: var(--line-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.song.is-fav .song-no { color: var(--g); }
.song-t { font-size: 22px; margin-bottom: 8px; }
.song-tx p { margin: 0 0 .3em; }
.song-cr { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 12px 0 0; font-size: 13.5px; }
.song-cr div { display: flex; gap: 8px; }
.song-cr dt { color: var(--sub); }
.song-cr dd { margin: 0; font-weight: 700; }

/* ルール */
.rules td.no { width: 52px; text-align: center; font-weight: 700; color: var(--sub); }
.rules td.pn { width: 120px; text-align: right; }
.pb { display: inline-block; min-width: 72px; padding: 2px 10px; border-radius: 2px; font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap; }
.pb.p0 { background: #eef1ef; color: var(--sub); }
.pb.p1 { background: #e6f0fd; color: #1757b3; }
.pb.p2 { background: #fff1d9; color: #8a5300; }
.pb.p3 { background: #ffe5d9; color: #a63a0b; }
.pb.p4 { background: #fde0e0; color: #b01c1c; }
.pun td:first-child { width: 120px; }
.rule-notes { margin: 12px 0 0; font-size: 13.5px; color: var(--sub); }
.rule-notes li { padding: 2px 0; }
.closing { font-size: 17px; font-weight: 700; margin-top: 28px; }
.sign { margin-top: 28px; text-align: right; color: var(--sub); font-size: 14px; line-height: 1.9; }

/* 羽野県について */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.about-top figure { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { text-decoration: none; }
.chips a:hover { text-decoration: underline; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border: 1px solid var(--line-2); border-radius: 4px; font-weight: 700; font-size: 14px; }
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 24px; }
.logos figure { margin: 0; border: 1px solid var(--line); padding: 20px; background: #fff; }
.logos figcaption { margin-top: 10px; font-size: 13px; color: var(--sub); text-align: center; }

/* 乗換案内（走行位置と同じ画面を、このサイトの色に合わせる） */
.tf-wrap { padding: 32px 0 64px; }

/* ==========================================================================
   フッター
   ========================================================================== */
.ftr { background: #1f2522; color: #c4ccc7; font-size: 13.5px; }
.ftr-in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 36px; }
.ftr-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ftr-id { display: flex; align-items: center; gap: 12px; }
.ftr-id img { width: 60px; height: 60px; }
.ftr-name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
.ftr-name small { display: block; font-size: 12px; color: #9ba59f; font-weight: 400; letter-spacing: 0; }
.ftr-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ftr-nav h2 { font-size: 12.5px; color: #fff; margin-bottom: 10px; letter-spacing: .08em; }
.ftr-nav li { padding: 3px 0; }
.ftr-nav a { color: #c4ccc7; text-decoration: none; }
.ftr-nav a:hover { color: #fff; text-decoration: underline; }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 0 18px; font-size: 12px; color: #8f9993; }
.ftr-bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
/* 列車位置情報システムの提供元（AOIROSERVER のロゴは白地なので、角を丸めた小さな札にする） */
.ftr-pw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: #c4ccc7; text-decoration: none; }
.ftr-pw img { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.ftr-pw b { color: #fff; font-weight: 700; white-space: nowrap; }
.ftr-pw:hover { color: #fff; }
.ftr-pw:hover b { text-decoration: underline; }
.ftr-tm { flex-basis: 100%; }

/* ==========================================================================
   狭い画面
   ========================================================================== */
@media (max-width: 960px) {
  .cols, .picks, .about-b, .about-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-b figure, .about-top figure { max-width: 240px; }
  .veh-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ops { grid-template-columns: repeat(2, 1fr); }
  .ftr-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 36px 0; }
  .h2 { font-size: 19px; }
  .ph h1 { font-size: 24px; }
  .top-intro .more { margin-left: 0; }
  .mv { height: 60vw; }
  .mv::after { height: 72px; }
  .mv-ui { bottom: 6px; }
  .mv-ui .wrap { gap: 6px; }
  .mv-ui .mv-btn { width: 32px; height: 32px; }
  .mv-ui .mv-dot { width: 24px; }
  .mv-dot i { width: 18px; }
  .panel-meta { margin-left: 0; width: 100%; }
  .ops { grid-template-columns: minmax(0, 1fr); }
  .news li { grid-template-columns: auto minmax(0, 1fr); }
  .news li > a, .news li > span.t { grid-column: 1 / -1; }
  .vlist { grid-template-columns: minmax(0, 1fr); }
  .tbl th, .tbl td { padding: 9px 10px; }
  .tbl.kv th { width: 6.5em; }
  .st-tbl .en, .v-idx .pc { display: none; }
  .rules td.pn { width: auto; }
  .song { grid-template-columns: 44px minmax(0, 1fr); gap: 0 10px; }
  .song-no { font-size: 24px; }
  .veh-h h2 { font-size: 24px; }
  .ftr-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .logos figure { padding: 10px; }
  .tr-note { margin-left: 0; width: 100%; }
}
/* とても狭い画面では、戻る・進むのボタンを出さない（指で左右にめくれる） */
@media (max-width: 374px) {
  .mv-arw { display: none; }
}
