/* =====================================================================
   RICS Visual Identity Renewal（2026-11-17）— Natural & Elegant ＋ 国鉄の味
   読み込み順：rics-ui → rics-member → rics-tokens → rics-yoru → rics-shikishima → このファイル（最後）
   ・既存の CSS は書き換えない。この 1 枚を外せば元に戻る
   ・入るのは「ライト／ホワイトのテーマ」と「日中の演出（四季島）」だけ。黒テーマ・夜の演出は今まで通り
   ・.dash（黒い計器パネル＝LIVE・在線位置などの鉄道画面）の中には入らない
   ・遅延・障害・正常など意味のある色（--delay* --alert* --ok*）は変えない
   ・花・植物の絵や模様は使わない。背景は色のにじみ（CSS のグラデーション）だけ
   ===================================================================== */

/* ---------- 1. 色（デザイントークン） ---------- */
:root {
  --rn-pink: #E7BFCB;        /* ソフトピンク（飾り・ハイライト） */
  --rn-pink-deep: #A8566E;   /* 文字にも使えるピンク（白上 5.1:1） */
  --rn-green: #52745B;       /* ナチュラルグリーン（主色。白文字 5.0:1） */
  --rn-green-deep: #3E5C47;
  --rn-cream: #FAF6EF;
  --rn-cream-jnr: #F5EBD6;   /* 国鉄のクリームに近い色 */
  --rn-pale-green: #DDE9DD;
  --rn-pale-pink: #F3DDE5;
  --rn-ink: #24302A;
  --rn-ease: cubic-bezier(.2, .7, .2, 1);
}
html:not([data-theme="black"]) body.rics-body:not(.rics-yoru),
html:not([data-theme="black"]) body.rics-body.rics-yoru.rics-shikishima {
  --bg: var(--rn-cream); --bg2: #F3EEE4; --surface: #FFFFFF; --surface2: #FBF8F2;
  --ink: var(--rn-ink); --ink2: #3D4A42; --ink3: #5B675F; --mute: #7E887F;
  --line: #E6DFD3; --line2: #DCD3C5;
  --btn: var(--rn-green); --btn-ink: #FFFFFF;
  --acc: var(--rn-green); --acc2: var(--rn-green-deep); --acc-soft: var(--rn-pale-green);
  --blush: var(--rn-pale-pink); --gold: var(--rn-pink-deep);
  --p-blue: #E6EEF0; --p-pink: var(--rn-pale-pink); --p-yellow: var(--rn-cream-jnr); --p-green: var(--rn-pale-green); --p-purple: #EEE6EE; --on-p: var(--rn-ink);
  --rad: 14px; --rad-s: 10px; --rad-xs: 6px;
  --shadow: 0 1px 2px rgba(36, 48, 42, .06), 0 4px 14px rgba(36, 48, 42, .05);
  --shadow-l: 0 2px 6px rgba(36, 48, 42, .08), 0 10px 28px rgba(36, 48, 42, .08);
  --font-head: "Zen Maru Gothic", var(--font-sans);
  color: var(--ink);
}

/* ---------- 2. 背景：白〜クリームに、端だけ淡いピンクとグリーンのにじみ（画像は使わない） ---------- */
html:not([data-theme="black"]) body.rics-body:not(.rics-yoru):not(:has(.dash)),
html:not([data-theme="black"]) body.rics-body.rics-yoru.rics-shikishima:not(:has(.dash)) {
  background-color: var(--bg);
  background-image:
    radial-gradient(42rem 28rem at -8% -10%, rgba(231, 191, 203, .38), transparent 70%),
    radial-gradient(38rem 26rem at 108% 8%, rgba(221, 233, 221, .55), transparent 70%),
    radial-gradient(46rem 30rem at 50% 115%, rgba(243, 221, 229, .35), transparent 70%);
  background-attachment: fixed;
}

/* ---------- 3. 見出し：丸みのある書体＋国鉄の駅名標のような 2 本の帯（緑とピンク） ---------- */
html:not([data-theme="black"]) body.rics-body:not(.rics-yoru) main h1:not(.rs-h1),
html:not([data-theme="black"]) body.rics-body.rics-shikishima main h1:not(.rs-h1) {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .04em;
  padding-bottom: .55em;
  background:
    linear-gradient(var(--rn-green), var(--rn-green)) left bottom / 100% 3px no-repeat,
    linear-gradient(var(--rn-pink), var(--rn-pink)) left calc(100% - 6px) / 100% 2px no-repeat;
}
html:not([data-theme="black"]) body.rics-body:not(.rics-yoru) main :is(h2, h3),
html:not([data-theme="black"]) body.rics-body.rics-shikishima main :is(h2, h3) { font-family: var(--font-head); letter-spacing: .03em; }
.dash :is(h1, h2, h3) { background: none !important; font-family: inherit !important; }

/* ---------- 4. 部品 ---------- */
/* ボタン：色の変化と、押すと少し沈む */
body.rics-body .r-btn { transition: background-color .2s var(--rn-ease), color .2s var(--rn-ease), transform .1s ease, box-shadow .2s var(--rn-ease); }
body.rics-body .r-btn:active { transform: translateY(1px) scale(.985); }
/* カード：控えめに浮く */
html:not([data-theme="black"]) body.rics-body:not(.rics-yoru) :is(.r-card, .r-card2, .r-tile, .ntc-card),
html:not([data-theme="black"]) body.rics-body.rics-shikishima :is(.r-card, .r-card2, .r-tile, .ntc-card) {
  border-radius: var(--rad); transition: transform .25s var(--rn-ease), box-shadow .25s var(--rn-ease);
}
@media (hover: hover) {
  html:not([data-theme="black"]) body.rics-body:not(.rics-yoru) :is(.r-card, .r-card2, .r-tile, .ntc-card):hover,
  html:not([data-theme="black"]) body.rics-body.rics-shikishima :is(.r-card, .r-card2, .r-tile, .ntc-card):hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
}
/* 小さな札＝国鉄のサボ（行先標）のような、白地に枠線の札 */
html:not([data-theme="black"]) body.rics-body:not(.rics-yoru) :is(.r-badge, .m-badge),
html:not([data-theme="black"]) body.rics-body.rics-shikishima :is(.r-badge, .m-badge) {
  border-radius: 4px; border: 1.5px solid currentColor; background: #fff; letter-spacing: .06em;
}
/* 入力欄の選択時 */
body.rics-body :is(input, select, textarea):focus-visible { outline: 3px solid var(--rn-pale-green); outline-offset: 1px; border-color: var(--rn-green); }
/* フォーカスの輪（キーボード操作で見える） */
body.rics-body :is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--rn-green); outline-offset: 2px; border-radius: 6px; }

/* ---------- 5. 動き（動きを減らす設定では止める） ---------- */
@keyframes rn-fade { from { opacity: 0; } to { opacity: 1; } }
body.rics-body main { animation: rn-fade .35s var(--rn-ease) both; }
.rn-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--rn-ease), transform .5s var(--rn-ease); }
.rn-reveal.rn-in { opacity: 1; transform: none; }

/* カーソル演出（PC だけ。操作を奪わない） */
.rn-cursor, .rn-ripple, .rn-trail { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2147483000; border-radius: 50%; }
.rn-cursor {
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(82, 116, 91, .78); border: 1.5px solid rgba(82, 116, 91, 0);
  transition: width .32s cubic-bezier(.2,.7,.2,1), height .32s cubic-bezier(.2,.7,.2,1), margin .32s cubic-bezier(.2,.7,.2,1), background-color .32s ease, border-color .32s ease, border-radius .32s ease, opacity .2s ease;
}
/* ボタンの上：大きな輪に広がる（緑）。リンクの上はピンク */
.rn-cursor.rn-hot { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(221, 233, 221, .42); border-color: rgba(82, 116, 91, .6); }
.rn-cursor.rn-hot.rn-link { background: rgba(243, 221, 229, .5); border-color: rgba(168, 86, 110, .55); }
/* 押した瞬間：少し縮む */
.rn-cursor.rn-press { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.rn-cursor.rn-hot.rn-press { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
.rn-cursor.rn-off { opacity: 0; }
/* ひとこと：輪の中の小さな文字 */
.rn-cursor-label { font: 700 10px/1 "Zen Maru Gothic", "Zen Kaku Gothic New", system-ui, sans-serif; letter-spacing: .04em; color: #3E5C47; white-space: nowrap; opacity: 0; transform: scale(.7); transition: opacity .2s ease, transform .25s cubic-bezier(.2,.7,.2,1); }
.rn-cursor.rn-hot .rn-cursor-label { opacity: 1; transform: none; }
.rn-cursor.rn-hot.rn-link .rn-cursor-label { color: #8A3F57; }
/* LIVE：小さな電車（前面が丸い車体に窓 3 つ）。ボタンの上では輪に戻る */
.rn-cursor.rn-train:not(.rn-hot) {
  width: 26px; height: 12px; margin: -6px 0 0 -13px; border-radius: 3px 8px 8px 3px; border: 1.5px solid #3E5C47;
  background: linear-gradient(90deg, transparent 3px, #FFFFFF 3px 7px, transparent 7px 10px, #FFFFFF 10px 14px, transparent 14px 17px, #FFFFFF 17px 21px, transparent 21px) 0 2px / 100% 4px no-repeat, #52745B;
  box-shadow: 0 1px 0 #E7BFCB;
}
.rn-cursor.rn-train.rn-press:not(.rn-hot) { width: 22px; height: 10px; margin: -5px 0 0 -11px; }
/* 残像：動いているときだけ（濃さは JS が速さで決める） */
.rn-trail { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: rgba(82, 116, 91, .9); opacity: 0; will-change: transform, opacity; }
.rn-trail + .rn-trail { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.rn-trail + .rn-trail + .rn-trail { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: rgba(231, 191, 203, .95); }
.rn-ripple { width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid rgba(82, 116, 91, .55); animation: rn-ripple .5s var(--rn-ease) forwards; }
@keyframes rn-ripple { to { transform: scale(4.2); opacity: 0; } }
.rn-ripple.rn-link { border-color: rgba(168, 86, 110, .55); }
html[data-theme="black"] .rn-cursor:not(.rn-hot):not(.rn-train), body.rics-yoru:not(.rics-shikishima) .rn-cursor:not(.rn-hot):not(.rn-train), html[data-theme="black"] .rn-trail, body.rics-yoru:not(.rics-shikishima) .rn-trail { background: rgba(221, 233, 221, .8); }

@media (prefers-reduced-motion: reduce) {
  body.rics-body main { animation: none; }
  .rn-reveal { opacity: 1; transform: none; transition: none; }
  .rn-cursor, .rn-ripple, .rn-trail { display: none !important; }
  body.rics-body .r-btn, body.rics-body :is(.r-card, .r-card2, .r-tile, .ntc-card) { transition: none; }
  body.rics-body .r-btn:active { transform: none; }
}
@media (hover: none), (pointer: coarse) { .rn-cursor, .rn-ripple, .rn-trail { display: none !important; } }

/* スマホのヘッダー：文字のラベルを隠してアイコンだけにし、右端からはみ出さないようにする（もとから狭い画面ではみ出していた） */
@media (max-width: 480px) {
  .r-head-actions { gap: 4px !important; min-width: 0; }
  .r-head-actions .r-me .lbl, .r-head-actions .r-me .r-me-st, .r-head-actions .r-menu-btn > span { display: none !important; }
  .r-head-actions .r-me, .r-head-actions .r-menu-btn { padding-left: 8px !important; padding-right: 8px !important; }
}
@media (max-width: 400px) {
  .r-head .r-theme, .r-head .r-mood { zoom: .8; }
  .r-head .r-logo-t, .r-head .r-logo span { font-size: .95em; }
}

/* ---------- 7. BGM プレーヤー（今の RICS。画面の左下・小さく。地図の画面では ♪ だけ） ---------- */
.rics-bgm { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: min(460px, calc(100vw - 24px));
  padding: 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface, #fff) 94%, transparent); border: 1px solid var(--line, #e6dfd3);
  box-shadow: 0 6px 20px -10px rgba(36, 48, 42, .35); font-size: .8rem; color: var(--ink, #24302a); }
.rics-bgm button { min-width: 36px; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font-size: .95rem; }
.rics-bgm button:hover { background: var(--rn-pale-green, #dde9dd); }
.rics-bgm .rb-toggle { background: var(--rn-green, #52745b); color: #fff; font-weight: 700; }
.rics-bgm.on .rb-toggle { animation: rb-pulse 2.4s ease-in-out infinite; }
@keyframes rb-pulse { 50% { box-shadow: 0 0 0 6px rgba(82, 116, 91, .18); } }
.rics-bgm .rb-title { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rics-bgm .rb-ctrls { display: flex; gap: 2px; }
.rics-bgm .rb-link { font-size: .72rem; color: var(--ink2, #3d4a42); text-decoration: underline; padding: 0 4px; }
.rics-bgm .rb-panel { flex-basis: 100%; padding: 8px 6px 4px; border-top: 1px solid var(--line, #e6dfd3); }
.rics-bgm.mini { padding: 4px; gap: 0; }
.rics-bgm.mini > :not(.rb-toggle) { display: none !important; }
.rb-row { padding: 4px 0; } .rb-row label { display: flex; gap: 8px; align-items: center; min-height: 36px; }
#bgm-settings-slot .rb-row label { min-height: 44px; }
@media (max-width: 640px) { .rics-bgm { bottom: 72px; flex-wrap: nowrap; } .rics-bgm .rb-title { max-width: 84px; } .rics-bgm .rb-link { display: none; } .rics-bgm:has(.rb-panel:not([hidden])) { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .rics-bgm.on .rb-toggle { animation: none; } }

/* ---------- 8. Admin のメニュー：用事別の 5 つの箱（2026-11-18） ---------- */
.m-admnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; width: 100%; align-items: start; }
.m-admnav > .m-admhome { grid-column: 1 / -1; justify-self: start; }
.m-admgrp { background: var(--surface, #fff); border: 1px solid var(--line, #e6dfd3); border-radius: 14px; }
.m-admgrp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; font-weight: 700; }
.m-admgrp > summary::-webkit-details-marker { display: none; }
.m-admgrp > summary::after { content: "＋"; color: var(--mute, #7e887f); font-weight: 400; }
.m-admgrp[open] > summary::after { content: "－"; }
.m-admgrp > summary span { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--mute, #7e887f); background: var(--bg2, #f3eee4); border-radius: 999px; padding: 1px 8px; }
.m-admgrp[open] { grid-column: 1 / -1; box-shadow: var(--shadow, 0 4px 14px rgba(36,48,42,.06)); }
.m-admgrp > .r-chips { padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 9. 三本線のメニュー：よく使う入口と、項目の一言説明（2026-11-18） ---------- */
.r-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.r-quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: .8rem;
  color: var(--ink, #24302a); background: var(--surface, #fff); border: 1px solid var(--line, #e6dfd3); transition: transform .15s ease, border-color .15s ease; }
.r-quick a span { font-size: 1.35rem; line-height: 1; }
.r-quick a:hover { transform: translateY(-2px); border-color: var(--rn-green, #52745b); }
.r-quick a.adm { background: var(--rn-pale-green, #dde9dd); }
.r-tree-c small { display: block; font-size: .72rem; font-weight: 400; color: var(--mute, #7e887f); margin-top: 1px; }
.r-tree-sub { margin-top: 14px !important; font-weight: 700; color: var(--rn-green-deep, #3e5c47); }
@media (prefers-reduced-motion: reduce) { .r-quick a { transition: none; } .r-quick a:hover { transform: none; } }

/* ---------- 10. ヘッダー：画面の上に浮かぶ、角の丸い 1 枚の帯（ライト・ホワイト・昼）（2026-11-18） ---------- */
html:not([data-theme="black"]) body.rics-body:not(.rics-yoru) .r-head,
html:not([data-theme="black"]) body.rics-body.rics-shikishima .r-head {
  background: color-mix(in srgb, var(--surface, #fff) 82%, transparent) !important;
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line, #e6dfd3) 70%, transparent) !important;
  box-shadow: 0 6px 24px -18px rgba(36, 48, 42, .45);
}
html:not([data-theme="black"]) body.rics-body:not(.rics-yoru) .r-head::after,
html:not([data-theme="black"]) body.rics-body.rics-shikishima .r-head::after {
  /* 国鉄の帯のような 2 本線（緑とピンク）をヘッダーの下に細く */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; pointer-events: none;
  background: linear-gradient(var(--rn-green), var(--rn-green)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--rn-pink), var(--rn-pink)) 0 3px / 100% 1px no-repeat; opacity: .55;
}
.r-head { position: sticky; }

/* ---------- 11. フッター：ゆるい波線の上の、クリームの板（2026-11-18） ---------- */
.r-site-foot { position: relative; margin-top: 56px; color: var(--ink2, #3d4a42); }
.r-site-foot-wave { display: block; width: 100%; height: 28px; fill: var(--rn-pale-green, #dde9dd); }
.r-site-foot-in { background: var(--rn-pale-green, #dde9dd); padding: 22px 16px 8px; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .r-site-foot-in { grid-template-columns: 1.1fr 2fr; padding: 28px max(24px, calc((100vw - 1080px) / 2)) 12px; } }
.r-site-foot-logo { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.6rem; letter-spacing: .2em; color: var(--rn-green-deep, #3e5c47); margin: 0 0 6px; }
.r-site-foot-brand p:not(.r-site-foot-logo) { font-size: .82rem; line-height: 1.9; margin: 0; }
.r-site-foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 18px; }
.r-site-foot-nav p { font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: var(--rn-green-deep, #3e5c47); margin: 0 0 6px; }
.r-site-foot-nav a { display: block; font-size: .84rem; color: inherit; text-decoration: none; padding: 6px 0; min-height: 32px; }
.r-site-foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--rn-pink, #e7bfcb); text-underline-offset: 4px; }
.r-site-foot-bottom { background: var(--rn-pale-green, #dde9dd); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px 88px; border-top: 1px solid color-mix(in srgb, var(--rn-green, #52745b) 18%, transparent); font-size: .76rem; }
@media (min-width: 760px) { .r-site-foot-bottom { padding: 12px max(24px, calc((100vw - 1080px) / 2)) 20px; } }
.r-site-foot-top { color: inherit; }
html[data-theme="black"] .r-site-foot-wave, body.rics-yoru:not(.rics-shikishima) .r-site-foot-wave { fill: #141a24; }
html[data-theme="black"] .r-site-foot-in, html[data-theme="black"] .r-site-foot-bottom,
body.rics-yoru:not(.rics-shikishima) .r-site-foot-in, body.rics-yoru:not(.rics-shikishima) .r-site-foot-bottom { background: #141a24; color: #c9d3cc; }
html[data-theme="black"] .r-site-foot-nav p, html[data-theme="black"] .r-site-foot-logo,
body.rics-yoru:not(.rics-shikishima) .r-site-foot-nav p, body.rics-yoru:not(.rics-shikishima) .r-site-foot-logo { color: #b9d4c0; }

/* ---------- 12. 推しデザイン（今の RICS の画面。2026-11-18） ---------- */
/* ボタンを推しの色に。形は 4 種類（いつもの／まる長／きっぷ／ふち）。黒テーマ・夜でも推しの色は出す */
html[data-oshi] body.rics-body .r-btn:not(.ghost):not([style*="background:transparent"]) { background: var(--oshi-accent) !important; color: var(--oshi-on) !important; border-color: var(--oshi-accent) !important; }
html[data-oshi-btn="pill"] body.rics-body .r-btn { border-radius: 999px !important; padding-left: 1.3em; padding-right: 1.3em; }
html[data-oshi-btn="ticket"] body.rics-body .r-btn { border-radius: 6px !important;
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 6px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  padding-left: 1.4em; padding-right: 1.4em; }
html[data-oshi-btn="badge"] body.rics-body .r-btn { background: var(--surface, #fff) !important; color: var(--ink, #24302a) !important; border: 2px solid var(--oshi-accent) !important;
  box-shadow: 0 3px 0 var(--oshi-accent2); }
html[data-oshi] body.rics-body .r-quick a:hover, html[data-oshi] body.rics-body .r-chip.on { border-color: var(--oshi-accent) !important; }
html[data-oshi] .r-site-foot-in, html[data-oshi] .r-site-foot-bottom { box-shadow: inset 0 3px 0 var(--oshi-accent2); }
/* ヘッダーの推しの写真の小さな丸 */
.oshi-mark { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-left: 6px; vertical-align: middle; border: 2px solid var(--oshi-accent, #52745b); background: #fff; }
/* ひょこっと：ボタンの上（または横）から顔を出して、少し弾む */
.oshi-peek { position: fixed; left: 0; top: 0; z-index: 2147482000; pointer-events: none; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(14px) scale(.6); transition: opacity .15s ease; }
.oshi-peek.on { opacity: 1; animation: oshi-peek .45s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.oshi-peek[data-dir="side"].on { animation-name: oshi-peek-side; }
@keyframes oshi-peek { 0% { transform: translateY(14px) scale(.6); } 70% { transform: translateY(-3px) scale(1.04); } 100% { transform: translateY(0) scale(1); } }
@keyframes oshi-peek-side { 0% { transform: translateX(-14px) scale(.6) rotate(-12deg); } 70% { transform: translateX(3px) scale(1.04) rotate(4deg); } 100% { transform: translateX(0) scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .oshi-peek { display: none !important; } }

/* ---------- 13. 電光掲示板型インフォメーション（2026-11-18） ---------- */
.led-board { --led-bg: #0d1013; --led-frame: #2a2f35; background: var(--led-bg); border: 3px solid var(--led-frame); border-radius: 10px; color: #ffb000; margin: 12px 0; overflow: hidden;
  box-shadow: inset 0 0 0 1px #000, 0 6px 18px -12px rgba(0, 0, 0, .6); font-family: "DotGothic16", "BIZ UDGothic", monospace; }
.led-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px; border-bottom: 1px solid #1d2227; font-size: .72rem; }
.led-badge { color: #9ee6a0; letter-spacing: .2em; }
.led-ctl { background: transparent; border: 1px solid #3a4148; color: #c8d0d8; border-radius: 999px; padding: 2px 10px; min-height: 30px; font: inherit; cursor: pointer; }
.led-window { position: relative; height: 44px; overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px); background-size: 4px 4px; }
.led-track { list-style: none; margin: 0; padding: 0; }
.led-item { position: absolute; top: 0; left: 0; height: 44px; display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.15rem; letter-spacing: .06em; will-change: transform; }
.led-item .led-text { color: inherit; text-decoration: none; text-shadow: 0 0 6px currentColor; }
.led-item a.led-text:hover, .led-item a.led-text:focus-visible { text-decoration: underline; outline: none; }
.led-lv { font-size: .7rem; padding: 1px 6px; border: 1px solid currentColor; border-radius: 3px; }
.led-item.lv-normal { color: #9ee6a0; } .led-item.lv-info { color: #ffb000; } .led-item.lv-caution { color: #ffd84d; }
.led-item.lv-important { color: #ff8a3d; } .led-item.lv-emergency { color: #ff5a5a; }
.led-item.lv-emergency .led-lv { background: #ff5a5a; color: #0d1013; }
.led-board.paused .led-head .led-badge::after { content: "　一時停止中"; color: #c8d0d8; letter-spacing: .05em; }
/* 一覧表示（動きを止める・動きを減らす設定）：全文を折り返して並べる */
.led-board.static .led-window { height: auto; }
.led-board.static .led-item { position: static; height: auto; white-space: normal; padding: 6px 10px; font-size: 1rem; line-height: 1.6; border-top: 1px solid #1a1f24; }
.led-board.static .led-item:first-child { border-top: 0; }
@media (max-width: 640px) { .led-item { font-size: 1rem; } .led-window, .led-item { height: 40px; } }

/* ---------- 14. ホームの運行情報（2026-11-18） ---------- */
.rail-home { display: grid; gap: 12px; margin: 14px 0 22px; }
.rail-card { background: var(--surface, #fff); border: 1px solid var(--line, #e6dfd3); border-radius: 14px; padding: 12px 14px; }
.rail-card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.rail-card-h h2 { font-size: 1.05rem; margin: 0; }
.rail-meta { font-size: .74rem; color: var(--mute, #7e887f); }
.rail-empty, .rail-ok { font-size: .88rem; margin: 4px 0; }
.rail-ok small { display: block; color: var(--mute, #7e887f); font-size: .74rem; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rail-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid var(--line, #e6dfd3); border-left-width: 5px; }
.rail-list .sev-critical a { border-left-color: #c62828; background: color-mix(in srgb, #c62828 6%, transparent); }
.rail-list .sev-high a { border-left-color: #ef6c00; background: color-mix(in srgb, #ef6c00 6%, transparent); }
.rail-list .sev-normal a { border-left-color: #f9a825; }
.rail-list .sev-unknown a { border-left-color: #9e9e9e; border-left-style: dashed; }
.rail-line { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.rail-line i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.rail-state { white-space: nowrap; }
.rail-sec, .rail-src { grid-column: 1 / -1; font-size: .76rem; color: var(--ink2, #3d4a42); }
.rail-src em { font-style: normal; color: #b45309; }
.rail-cta { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #fff; background: var(--rn-green, #52745b); }
.rail-cta span { font-weight: 700; font-size: 1.05rem; } .rail-cta span::after { content: " →"; } .rail-cta small { opacity: .9; }

/* ---------- 15. ホームの運行情報の路線図（2026-11-18） ---------- */
.rail-card.homemap { border: 2px solid var(--rn-green, #52745b); box-shadow: 0 8px 24px -16px rgba(36, 48, 42, .5); }
.homemap-canvas { border-radius: 10px; overflow: hidden; border: 1px solid var(--line, #e6dfd3); background: #fff; }
.homemap-svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.homemap-line { cursor: pointer; }
.homemap-line.bad:hover { stroke-width: 10; }
.homemap-cap { margin-top: 6px; color: var(--ink2, #3d4a42); font-size: .82rem; }
.homemap-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.homemap-legend i { display: inline-block; width: 22px; height: 6px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
