:root {
  /* 色付き背景の上に載せる文字色。ダークでは accent/green が明るいので濃紺にする（2026-08-24） */
  --on-accent: #fff;
  --on-green: #fff;
  --on-red: #fff;
  color-scheme: light;
  /* UI の入場・移動はこれ1本（強めの ease-out。組み込みの ease は入場に弱い） */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --bg: #f2f5fa;
  --card: #ffffff;
  --text: #2a3542;
  --sub: #5e6c82;
  --line: #e6ebf2;
  --accent: #3a6db8;
  --accent-soft: #eaf1f9;
  --header-from: #2a4a94;
  --header-to: #4a72c4;
  --green: #4a9d5f;
  --lime: #93a850;
  --orange: #d68f4c;
  --amber: #c9993a;
  --red: #c04141;
  --gray: #a3aebb;
  --chip-yellow-bg: #fff3cd;
  --chip-yellow-fg: #8a6d00;
  --chip-green-bg: #e2f2e5;
  --chip-green-fg: #217a36;
  --radius: 12px;
}
html[data-theme="dark"] {
  --on-accent: #0d1526;
  --on-green: #0d1526;
  --on-red: #2a0f0f;
  color-scheme: dark;
  --bg: #10192c;
  --card: #1a2540;
  --text: #dde5ef;
  --sub: #93a2b8;
  --line: #2b3a5c;
  --accent: #7fa9e0;
  --accent-soft: #24365a;
  --header-from: #1a3468;
  --header-to: #33549e;
  --green: #6cbc80;
  --lime: #aec26e;
  --orange: #e2a56c;
  --amber: #d9b25e;
  --red: #d97e7e;
  --gray: #66748a;
  --chip-yellow-bg: #4a3d10;
  --chip-yellow-fg: #e8cc6a;
  --chip-green-bg: #17331e;
  --chip-green-fg: #7fd694;
}
html[data-theme="dark"] img.wiki-img { opacity: .92; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* header / nav */
header.site {
  background: linear-gradient(120deg, var(--header-from), var(--header-to));
  color: #fff;
  padding: 14px 20px 0;
  position: relative;
  border-bottom: 2px solid rgba(201, 164, 78, .55);
}
.hdr-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 10px; margin-bottom: 8px;
}
.hdr-row h1 { margin: 0; font-size: 1.25rem; font-weight: 700; text-align: center; grid-column: 2; }
.hdr-row h1 .sub { font-size: 0.75rem; font-weight: 400; opacity: .8; margin-left: 8px; }
#menu-btn {
  grid-column: 1; justify-self: start;
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: 4px 12px; font-size: 1.125rem; line-height: 1; cursor: pointer;
}
#menu-btn:hover { background: rgba(255,255,255,.28); }
.hdr-spacer { grid-column: 3; width: 44px; }  /* 中央タイトルの対称確保 */

/* メニューポップアップ（上から被さる・全画面にはしない） */
.menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.45);
}
.menu-overlay.open { display: block; }
.menu-panel {
  background: var(--card); color: var(--text);
  max-width: 440px; margin: 0 auto;
  border-radius: 0 0 16px 16px; padding: 14px 18px 20px;
  /* 遊園地が15park あるためメニューは背が高い。小さい端末や横向きでは画面から
     はみ出して下の項目（利用規約など）に指が届かなかったので中でスクロールさせる。
     iOS の慣性スクロールも効かせる（2026-08-24） */
  max-height: 100vh; max-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  animation: menuDrop .18s ease;
}
@keyframes menuDrop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.menu-close { text-align: right; }
.menu-close button {
  background: none; border: none; color: var(--sub); font-size: 1.25rem; cursor: pointer; padding: 2px 6px;
}
.menu-sec { margin-top: 10px; }
.menu-sec-ttl { font-size: 0.75rem; color: var(--sub); font-weight: 700; margin-bottom: 8px; }
.menu-parks, .menu-langs, .menu-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-park, .menu-lang, .menu-theme {
  text-decoration: none; cursor: pointer;
  background: var(--bg); color: var(--text); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 16px; font-size: 0.84375rem; font-weight: 600;
}
.menu-park.active, .menu-lang.active, .menu-theme.active {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.menu-howto {
  background: var(--accent-soft); color: var(--text); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 16px; font-size: 0.84375rem; font-weight: 600; cursor: pointer;
}
.menu-howto:hover { border-color: var(--accent); }
.menu-sec-terms { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.menu-terms { font-size: 0.78125rem; color: var(--sub); text-decoration: none; }
.menu-terms:hover { color: var(--accent); text-decoration: underline; }

/* 利用規約ページ */
.terms h2 { font-size: 1.125rem; margin: 0 0 4px; }
.terms .terms-date { font-size: 0.75rem; color: var(--sub); margin: 0 0 14px; }
.terms h3 { font-size: 0.90625rem; margin: 20px 0 6px; }
.terms p, .terms li { font-size: 0.84375rem; line-height: 1.8; }
.terms ol, .terms ul { padding-left: 22px; margin: 4px 0; }
.terms li { margin: 2px 0; }

/* 初見チュートリアル */
.tut-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55); align-items: center; justify-content: center; padding: 20px;
}
.tut-overlay.open { display: flex; }
.tut-card {
  position: relative; background: var(--card); color: var(--text);
  max-width: 380px; width: 100%; border-radius: 18px; padding: 26px 22px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4); animation: tutIn .2s ease;
}
@keyframes tutIn { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.tut-x { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--sub); font-size: 1.125rem; cursor: pointer; }
.tut-step { font-size: 0.6875rem; color: var(--sub); font-weight: 700; letter-spacing: .5px; }
.tut-title { margin: 4px 0 10px; font-size: 1.1875rem; color: var(--accent); }
.tut-body { font-size: 0.875rem; line-height: 1.7; }
.tut-legend { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 8px; }
.tut-chip { color: #fff; font-weight: 700; font-size: 0.6875rem; padding: 3px 9px; border-radius: 999px; }
.tut-iconrow { display: flex; gap: 8px; margin-top: 2px; }
.tut-dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0 14px; }
.tut-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tut-dots span.on { background: var(--accent); }
.tut-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tut-nav { display: flex; gap: 8px; }
.tut-skip { background: none; border: none; color: var(--sub); font-size: 0.8125rem; cursor: pointer; }
.tut-prev { background: var(--bg); color: var(--text); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.84375rem; font-weight: 600; cursor: pointer; }
.tut-next { background: var(--accent); color: var(--on-accent); border: none; border-radius: 999px; padding: 9px 22px; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tut-card { animation: none; } }

/* 文字サイズ。rem は body ではなく **ルート**を基準にするので、html 側で変える。
   % 指定にすることで、ブラウザ/OS の文字拡大設定にも掛け算で乗る（2026-08-24） */
html[data-fontsize="s"] { font-size: 87.5%; }
html[data-fontsize="l"] { font-size: 112.5%; }
nav.tabs { display: flex; gap: 4px; }
nav.tabs a {
  color: #cfe0f5; text-decoration: none; padding: 8px 16px;
  border-radius: 10px 10px 0 0; font-size: 0.875rem; font-weight: 600;
}
nav.tabs a.active { background: var(--bg); color: var(--accent); }
nav.tabs a:not(.active):hover { background: rgba(255,255,255,.12); }

main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 0; }
main > .card:last-of-type { margin-bottom: 12px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 1rem; }
.muted { color: var(--sub); font-size: 0.8125rem; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* wait chip */
.chip {
  display: inline-block; min-width: 58px; text-align: center;
  padding: 3px 10px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 0.875rem;
  transition: background-color .35s ease;  /* 待ち時間の色変化をなめらかに（WP6） */
}
.chip.na { background: var(--gray); font-weight: 500; font-size: 0.75rem; }

/* dashboard table */
table.waits { width: 100%; border-collapse: collapse; }
table.waits th {
  text-align: left; font-size: 0.75rem; color: var(--sub); font-weight: 600;
  padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap;
  cursor: pointer; user-select: none;
  touch-action: manipulation; /* タップ時のダブルタップズーム判定を避け、並び替えを即時反応させる */
}
table.waits th .arrow { font-size: 0.625rem; }
table.waits td { white-space: nowrap; }
table.waits td.ridename { white-space: normal; }
html[data-theme="dark"] table.waits th { color: #cdd9ea; }
html[data-theme="dark"] table.waits th .arrow { color: #ffffff; }
table.waits td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.waits tr:hover td { background: var(--accent-soft); }
.ridename { font-weight: 600; }
.ridename .en { display: block; font-size: 0.6875rem; color: var(--sub); font-weight: 400; }
.badge {
  display: inline-block; font-size: 0.625rem; padding: 1px 6px; border-radius: 4px;
  background: var(--chip-yellow-bg); color: var(--chip-yellow-fg); margin-left: 6px; vertical-align: middle;
}
.badge.sr { background: var(--chip-green-bg); color: var(--chip-green-fg); }
/* 画像＋名前を横並びにするが、td を display:flex にすると table-cell の高さ自動調整が効かず
   この列だけ行区切り線が数px上にズレる（2026-07-26 修正）。セルは table-cell のまま中身を flex にする */
.ridename { cursor: pointer; }
table.waits td.ridename > * { vertical-align: middle; }
table.waits td.ridename { white-space: normal; }
.ridename { display: table-cell; }
td.ridename { position: relative; }
td.ridename > .thumb, td.ridename > .thumb-ph { display: inline-block; margin-right: 10px; vertical-align: middle; }
/* 画像(48px)＋余白(10px)＋インライン要素間の空白(数px) を引く。
   62px だと数px足りず、PCで**画像だけが単独行に落ちて1行が3行になっていた**（2026-08-12 実測） */
td.ridename > .name-wrap { display: inline-block; vertical-align: middle; width: calc(100% - 72px); }
.ridename .thumb {
  width: 48px; height: 36px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); flex-shrink: 0; background: var(--bg);
}
.thumb-ph { display: inline-block; }
.ridename-text { min-width: 0; }
.name-wrap { min-width: 0; flex: 1; }
/* 長期ランキング（画像付き・線区切り） */
.longrank-col { flex: 1; min-width: 280px; }
.longrank-col h3 {
  font-size: 0.9375rem; color: var(--accent);
  margin: 4px 0 6px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 2px; border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: none; }
.rank-row .rank-no {
  width: 24px; text-align: right; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.rank-row .thumb {
  width: 52px; height: 38px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); flex-shrink: 0;
}
.rank-row .rank-name { min-width: 0; font-size: 0.84375rem; }
.rank-row .rank-avg {
  margin-left: auto; flex-shrink: 0; font-size: 0.78125rem;
  color: var(--sub); font-variant-numeric: tabular-nums;
}
.pass-pill {
  display: inline-block; background: #7b52c4; color: #fff;
  border-radius: 999px; font-size: 0.53125rem; font-weight: 700;
  padding: 1px 8px; line-height: 1.5; margin-bottom: 2px; white-space: nowrap;
}
.name-wrap .pass-pill, .pick-name .pass-pill { display: inline-block; margin-left: 0; }
/* 無料の優先入場（TDR 40周年プライオリティパス）— 有料(紫)と区別する緑系 */
.pp-pill {
  display: inline-block; background: #0e8a5f; color: #fff;
  border-radius: 999px; font-size: 0.53125rem; font-weight: 700;
  padding: 1px 8px; line-height: 1.5; margin-bottom: 2px; white-space: nowrap;
}
.name-wrap .pp-pill, .pick-name .pp-pill { display: inline-block; margin-left: 0; }
/* パーク別テーマ色（ヘッダー・アクセント・下線）。季節テーマが優先 */
/* TDL: パープル×ピンク（夢・城） */
html[data-park="tdl"] { --header-from: #3c2a6e; --header-to: #7a4fb0; --accent: #8b6cc9; --accent-soft: #efe9f9; }
html[data-park="tdl"] header.site { border-bottom-color: rgba(233, 160, 200, .6); }
html[data-park="tdl"][data-theme="dark"] { --accent: #a98fd8; --accent-soft: #2e2450; }
/* TDS: 深いマリンブルー×エメラルド（海） */
html[data-park="tds"] { --header-from: #0d3b52; --header-to: #1a6e84; --accent: #2a8ea6; --accent-soft: #e5f2f5; }
html[data-park="tds"] header.site { border-bottom-color: rgba(80, 200, 190, .55); }
html[data-park="tds"][data-theme="dark"] { --accent: #58b7c9; --accent-soft: #123642; }
/* 富士急: 富士急レッド×ダークグレー */
html[data-park="fjq"] { --header-from: #6e1520; --header-to: #c0273a; --accent: #c14a58; --accent-soft: #f9e9eb; }
html[data-park="fjq"] header.site { border-bottom-color: rgba(255, 255, 255, .35); }
html[data-park="fjq"][data-theme="dark"] { --accent: #d97983; --accent-soft: #3c1a20; }
/* レゴランド: レゴレッド×イエロー */
html[data-park="lego"] { --header-from: #b01f24; --header-to: #e03a30; --accent: #cf4030; --accent-soft: #fdeee8; }
html[data-park="lego"] header.site { border-bottom-color: rgba(255, 205, 3, .75); }
html[data-park="lego"][data-theme="dark"] { --accent: #e8766a; --accent-soft: #421d18; }
/* ピューロランド: ピューロピンク×パープル */
html[data-park="puro"] { --header-from: #b03a78; --header-to: #e06aa8; --accent: #cc5590; --accent-soft: #fbeaf3; }
html[data-park="puro"] header.site { border-bottom-color: rgba(255, 255, 255, .45); }
html[data-park="puro"][data-theme="dark"] { --accent: #e089b5; --accent-soft: #462034; }
/* よみうりランド: フレッシュグリーン×スカイ */
html[data-park="yomi"] { --header-from: #1c6e3c; --header-to: #3ba05e; --accent: #3a9159; --accent-soft: #e9f5ec; }
html[data-park="yomi"] header.site { border-bottom-color: rgba(140, 210, 250, .6); }
html[data-park="yomi"][data-theme="dark"] { --accent: #66bb85; --accent-soft: #1c3a28; }
html[data-park="tdc"] { --header-from: #0369a1; --header-to: #0ea5e9; --accent: #0284c7; --accent-soft: #e6f3f9; }
html[data-park="tdc"][data-theme="dark"] { --accent: #38bdf8; --accent-soft: #183a55; }
html[data-park="naga"] { --header-from: #0369a1; --header-to: #0ea5e9; --accent: #0284c7; --accent-soft: #e6f3f9; }
html[data-park="naga"][data-theme="dark"] { --accent: #38bdf8; --accent-soft: #183a55; }
html[data-park="sea"] { --header-from: #0369a1; --header-to: #0891b2; --accent: #0284c7; --accent-soft: #e6f3f9; }
html[data-park="sea"][data-theme="dark"] { --accent: #38bdf8; --accent-soft: #183a55; }
html[data-park="ghibli"] { --header-from: #3f6b45; --header-to: #6a9c5a; --accent: #4b7f52; --accent-soft: #edf2ee; }
html[data-park="ghibli"][data-theme="dark"] { --accent: #84b98c; --accent-soft: #27393f; }
html[data-park="htb"] { --header-from: #0e3a7a; --header-to: #2563eb; --accent: #1d4ed8; --accent-soft: #e8edfb; }
html[data-park="htb"][data-theme="dark"] { --accent: #60a5fa; --accent-soft: #203555; }
html[data-park="shima"] { --header-from: #E11D2E; --header-to: #F5A524; --accent: #C2410C; --accent-soft: #f9ece7; }
html[data-park="shima"][data-theme="dark"] { --accent: #FB923C; --accent-soft: #3f312f; }
html[data-park="joy"] { --header-from: #4338ca; --header-to: #06b6d4; --accent: #0e7490; --accent-soft: #e7f1f4; }
html[data-park="joy"][data-theme="dark"] { --accent: #22d3ee; --accent-soft: #143e53; }
html[data-park="nasu"] { --header-from: #1f7a45; --header-to: #37a862; --accent: #2e9e5b; --accent-soft: #eaf5ef; }
html[data-park="nasu"][data-theme="dark"] { --accent: #37c274; --accent-soft: #183b3a; }

/* 季節テーマ（自動切替） */
html[data-season="halloween"] { --header-from: #3d1a5b; --header-to: #c75300; }
html[data-season="halloween"] header.site { border-bottom-color: #ff8c00; }
html[data-season="christmas"] { --header-from: #7a1023; --header-to: #0e5c2f; }
html[data-season="christmas"] header.site { border-bottom-color: #e6b84c; }

.sr-pill {
  display: inline-block; background: var(--green); color: var(--on-green);
  border-radius: 999px; font-size: 0.53125rem; font-weight: 700;
  padding: 1px 8px; line-height: 1.5; margin-bottom: 2px; white-space: nowrap;
}
/* 全遊園地タブ: 遊園地一覧（縦並びカード・画像付き・各サイトへリンク） */
.allparks-lead { font-size: 0.875rem; font-weight: 700; margin: 2px 0 12px; color: var(--accent); }
.allparks-list { display: flex; flex-direction: column; }

/* 全遊園地アトラクションランキング表（待ち時間ページと同じ見た目＋遊園地名を副題に） */
.ap-h2 { font-size: 1.125rem; margin: 0 0 4px; }
p.allparks-lead.muted { font-size: 0.78125rem; font-weight: 400; color: var(--sub); }
.ap-table tr.ap-row { cursor: pointer; }
.ap-table tr.ap-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ap-table td.ap-namecell { cursor: pointer; }
/* 遊園地名。スマホは縦に積むが、PC/タブレットは横幅があるので同じ行に置く（1行1件で読みやすく） */
.ap-parksub { display: block; font-size: 0.6875rem; color: var(--accent); font-weight: 700; margin-top: 1px; }
@media (min-width: 641px) { .ap-parksub { display: inline; margin-left: 10px; } }
/* 閉園中の平均待ちチップ: 「塗り=現在の待ち時間」と区別するため塗りなしの輪郭のみ＋実日付の小ラベル（例: 7/18の平均） */
.chip.avgc {
  background: transparent; border: 1.5px solid currentColor;
  padding: 1.5px 8.5px; font-size: 0.8125rem;
}
.avg-when { display: block; font-size: 0.5625rem; color: var(--sub); margin-top: 1px; white-space: nowrap; }
/* 閉園中（過去の待ち時間モード）: 平均比較列を非表示（PC/スマホ共通）。推移データが無いパークは推移列も非表示 */
#waits.past-mode th[data-key="trend"], #waits.past-mode .c-trend { display: none; }
#waits.no-spark th.spark-td, #waits.no-spark td.spark-td { display: none; }
#ap-table.past-mode th[data-key="trend"], #ap-table.past-mode .c-trend { display: none; }

/* 15分前比の増減マーク(待ち時間チップの下・変化±5分以上のみ) */
/* 囲み線なし（ユーザー指定）。行区切りは薄い下線のみ、クリックは即可能 */
.ap-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 9px 4px; border-bottom: 1px solid var(--line); color: inherit; transition: background .15s;
}
.ap-card:last-child { border-bottom: none; }
.ap-card:hover { background: var(--accent-soft); }
.ap-img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: rgba(127,127,127,.12); }
.ap-img-ph { display: inline-block; }
.ap-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-name { font-size: 0.9375rem; font-weight: 700; }
.ap-meta { font-size: 0.75rem; color: var(--sub); }
.ap-avg { margin-left: 8px; }
.ap-arrow { flex: 0 0 auto; font-size: 1.375rem; color: var(--accent); opacity: .7; padding-right: 4px; }
/* AIプランの体験型チュートリアル（コーチマーク: 対象をリング＋周囲を暗転、tipはクリック可） */
.ptut { position: fixed; inset: 0; z-index: 3000; pointer-events: none; transition: opacity .2s; }
.ptut-ring {
  position: fixed; left: 0; top: 0; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.6), 0 0 0 2px var(--accent) inset;
  outline: 2px solid #fff; outline-offset: 1px;
  /* 位置は transform で動かす（left/top/width/height のトランジションは毎フレーム再レイアウトになる）。
     大きさは transform だと枠線まで伸びてしまうので、大きさだけは即時に変える */
  transition: transform .25s var(--ease-out);
}
.ptut-tip {
  position: fixed; pointer-events: auto; background: var(--card); color: var(--text);
  border: 1px solid var(--accent); border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35); left: 0; top: 0;
  transition: transform .25s var(--ease-out);
}
.ptut-ring.no-anim, .ptut-tip.no-anim { transition: none; }   /* スクロール追従中は即時 */
.ptut-step { font-size: 0.6875rem; font-weight: 700; color: var(--accent); }
.ptut-text { font-size: 0.875rem; font-weight: 700; margin: 4px 0 10px; line-height: 1.5; }
.ptut-skip { font-size: 0.75rem; color: var(--sub); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
/* 終了予定バッジ（最終営業日。赤系で強調＝重要情報） */
.closing-pill {
  display: inline-block; background: #dc2626; color: #fff;
  border-radius: 999px; font-size: 0.53125rem; font-weight: 700;
  padding: 1px 8px; line-height: 1.4; white-space: nowrap;
}
.name-wrap .badge-row .closing-pill { margin: 0; vertical-align: baseline; }
/* 整理券バッジ（エリア入場整理券・アンバー系でパス/SRと区別） */
.seiriken-pill {
  display: inline-block; background: #d97706; color: #fff;
  border-radius: 999px; font-size: 0.53125rem; font-weight: 700;
  padding: 1px 8px; line-height: 1.5; margin-bottom: 2px; white-space: nowrap;
}
.name-wrap .seiriken-pill, .pick-name .seiriken-pill { display: inline-block; margin-left: 0; }
/* バッジのアイコン（パス=雷/シングル=人）。currentColorで白文字色を継承 */
.pass-pill .pill-ic, .sr-pill .pill-ic { display: inline-block; vertical-align: -1px; margin-right: 2px; opacity: .95; }
.name-wrap .pass-pill, .name-wrap .sr-pill, .pick-name .pass-pill, .pick-name .sr-pill { display: inline-flex; align-items: center; }
.name-wrap .pass-pill .pill-ic, .name-wrap .sr-pill .pill-ic, .pick-name .pass-pill .pill-ic, .pick-name .sr-pill .pill-ic { vertical-align: 0; margin-right: 3px; }
/* イベント/特別版アトラクションのバッジ（例: ジュラシック～イン・ザ・ダーク～） */
/* データ未成熟パーク: 平均比較はデータが溜まるまで「収集中」表示（列自体は常に表示） */
.trend.collecting { color: var(--muted); font-size: .8em; opacity: .8; }

.special-pill {
  display: block; width: fit-content; margin-top: 3px;
  background: linear-gradient(120deg, #e0951a, #f5c243); color: #4a2f00;
  border-radius: 999px; font-size: 0.59375rem; font-weight: 800;
  padding: 2px 10px; letter-spacing: .2px; white-space: nowrap;
  box-shadow: 0 1px 5px rgba(224,149,26,.4);
}
.pick-name .pass-pill {
  display: inline-block; background: #7b52c4; color: #fff;
  border-radius: 999px; font-size: 0.53125rem; font-weight: 700;
  padding: 1px 8px; line-height: 1.5; margin-bottom: 2px; white-space: nowrap;
}
.name-wrap .pass-pill, .pick-name .pass-pill { display: inline-block; margin-left: 0; }
/* パーク別テーマ色（ヘッダー・アクセント・下線）。季節テーマが優先 */
/* TDL: パープル×ピンク（夢・城） */
html[data-park="tdl"] { --header-from: #3c2a6e; --header-to: #7a4fb0; --accent: #8b6cc9; --accent-soft: #efe9f9; }
html[data-park="tdl"] header.site { border-bottom-color: rgba(233, 160, 200, .6); }
html[data-park="tdl"][data-theme="dark"] { --accent: #a98fd8; --accent-soft: #2e2450; }
/* TDS: 深いマリンブルー×エメラルド（海） */
html[data-park="tds"] { --header-from: #0d3b52; --header-to: #1a6e84; --accent: #2a8ea6; --accent-soft: #e5f2f5; }
html[data-park="tds"] header.site { border-bottom-color: rgba(80, 200, 190, .55); }
html[data-park="tds"][data-theme="dark"] { --accent: #58b7c9; --accent-soft: #123642; }
/* 富士急: 富士急レッド×ダークグレー */
html[data-park="fjq"] { --header-from: #6e1520; --header-to: #c0273a; --accent: #c14a58; --accent-soft: #f9e9eb; }
html[data-park="fjq"] header.site { border-bottom-color: rgba(255, 255, 255, .35); }
html[data-park="fjq"][data-theme="dark"] { --accent: #d97983; --accent-soft: #3c1a20; }
/* レゴランド: レゴレッド×イエロー */
html[data-park="lego"] { --header-from: #b01f24; --header-to: #e03a30; --accent: #cf4030; --accent-soft: #fdeee8; }
html[data-park="lego"] header.site { border-bottom-color: rgba(255, 205, 3, .75); }
html[data-park="lego"][data-theme="dark"] { --accent: #e8766a; --accent-soft: #421d18; }
/* ピューロランド: ピューロピンク×パープル */
html[data-park="puro"] { --header-from: #b03a78; --header-to: #e06aa8; --accent: #cc5590; --accent-soft: #fbeaf3; }
html[data-park="puro"] header.site { border-bottom-color: rgba(255, 255, 255, .45); }
html[data-park="puro"][data-theme="dark"] { --accent: #e089b5; --accent-soft: #462034; }
/* よみうりランド: フレッシュグリーン×スカイ */
html[data-park="yomi"] { --header-from: #1c6e3c; --header-to: #3ba05e; --accent: #3a9159; --accent-soft: #e9f5ec; }
html[data-park="yomi"] header.site { border-bottom-color: rgba(140, 210, 250, .6); }
html[data-park="yomi"][data-theme="dark"] { --accent: #66bb85; --accent-soft: #1c3a28; }

/* 季節テーマ（自動切替） */
html[data-season="halloween"] { --header-from: #3d1a5b; --header-to: #c75300; }
html[data-season="halloween"] header.site { border-bottom-color: #ff8c00; }
html[data-season="christmas"] { --header-from: #7a1023; --header-to: #0e5c2f; }
html[data-season="christmas"] header.site { border-bottom-color: #e6b84c; }

.sr-pill { display: inline-block; margin-left: 5px; }
.name-wrap .pass-pill {
  display: inline-block; background: #7b52c4; color: #fff;
  border-radius: 999px; font-size: 0.53125rem; font-weight: 700;
  padding: 1px 8px; line-height: 1.5; margin-bottom: 2px; white-space: nowrap;
}
.name-wrap .pass-pill, .pick-name .pass-pill { display: inline-block; margin-left: 0; }
/* パーク別テーマ色（ヘッダー・アクセント・下線）。季節テーマが優先 */
/* TDL: パープル×ピンク（夢・城） */
html[data-park="tdl"] { --header-from: #3c2a6e; --header-to: #7a4fb0; --accent: #8b6cc9; --accent-soft: #efe9f9; }
html[data-park="tdl"] header.site { border-bottom-color: rgba(233, 160, 200, .6); }
html[data-park="tdl"][data-theme="dark"] { --accent: #a98fd8; --accent-soft: #2e2450; }
/* TDS: 深いマリンブルー×エメラルド（海） */
html[data-park="tds"] { --header-from: #0d3b52; --header-to: #1a6e84; --accent: #2a8ea6; --accent-soft: #e5f2f5; }
html[data-park="tds"] header.site { border-bottom-color: rgba(80, 200, 190, .55); }
html[data-park="tds"][data-theme="dark"] { --accent: #58b7c9; --accent-soft: #123642; }
/* 富士急: 富士急レッド×ダークグレー */
html[data-park="fjq"] { --header-from: #6e1520; --header-to: #c0273a; --accent: #c14a58; --accent-soft: #f9e9eb; }
html[data-park="fjq"] header.site { border-bottom-color: rgba(255, 255, 255, .35); }
html[data-park="fjq"][data-theme="dark"] { --accent: #d97983; --accent-soft: #3c1a20; }
/* レゴランド: レゴレッド×イエロー */
html[data-park="lego"] { --header-from: #b01f24; --header-to: #e03a30; --accent: #cf4030; --accent-soft: #fdeee8; }
html[data-park="lego"] header.site { border-bottom-color: rgba(255, 205, 3, .75); }
html[data-park="lego"][data-theme="dark"] { --accent: #e8766a; --accent-soft: #421d18; }
/* ピューロランド: ピューロピンク×パープル */
html[data-park="puro"] { --header-from: #b03a78; --header-to: #e06aa8; --accent: #cc5590; --accent-soft: #fbeaf3; }
html[data-park="puro"] header.site { border-bottom-color: rgba(255, 255, 255, .45); }
html[data-park="puro"][data-theme="dark"] { --accent: #e089b5; --accent-soft: #462034; }
/* よみうりランド: フレッシュグリーン×スカイ */
html[data-park="yomi"] { --header-from: #1c6e3c; --header-to: #3ba05e; --accent: #3a9159; --accent-soft: #e9f5ec; }
html[data-park="yomi"] header.site { border-bottom-color: rgba(140, 210, 250, .6); }
html[data-park="yomi"][data-theme="dark"] { --accent: #66bb85; --accent-soft: #1c3a28; }

/* 季節テーマ（自動切替） */
html[data-season="halloween"] { --header-from: #3d1a5b; --header-to: #c75300; }
html[data-season="halloween"] header.site { border-bottom-color: #ff8c00; }
html[data-season="christmas"] { --header-from: #7a1023; --header-to: #0e5c2f; }
html[data-season="christmas"] header.site { border-bottom-color: #e6b84c; }

.sr-pill { display: inline-block; margin-left: 5px; }
.cal-cell .wx { font-size: 0.625rem; color: var(--sub); margin-top: 1px; }
.trend-compact { display: none; }
.bn-compact { display: none; }
.ridename:hover { color: var(--accent); text-decoration: underline; }
.areatag { font-size: 0.75rem; color: var(--sub); white-space: nowrap; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head button {
  border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  padding: 6px 14px; cursor: pointer; font-size: 0.875rem;
}
.cal-head .title { font-size: 1.125rem; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto; grid-auto-rows: 1fr; gap: 6px; }
.cal-dow { text-align: center; font-size: 0.75rem; color: var(--sub); padding: 2px 0; }
.dow-0 { color: var(--red) !important; }
.dow-6 { color: var(--accent) !important; }
.cal-hours {
  font-size: 0.625rem; color: var(--sub); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cal-closed {
  display: inline-block; margin-top: 4px; background: var(--gray); color: #fff;
  border-radius: 6px; font-size: 0.6875rem; font-weight: 700; padding: 2px 8px;
}
.cal-cell.closed-day { opacity: .75; }
.cal-cell .jogai {
  font-size: 0.53125rem; color: var(--on-red); background: var(--red);
  border-radius: 6px; padding: 0 4px; margin-top: 2px;
  display: inline-block; white-space: nowrap; letter-spacing: -0.3px;
  max-width: 100%; overflow: hidden; box-sizing: border-box;
}
.cal-cell .seiriken {
  font-size: 0.53125rem; font-weight: 700; border-radius: 6px; padding: 0 4px; margin-top: 2px;
  display: inline-block; white-space: nowrap; letter-spacing: -0.3px;
  max-width: 100%; overflow: hidden; box-sizing: border-box; border: 1px solid transparent;
}
/* マリオ整理券あり=注意色(枠)、なし=フリー(緑) */
.cal-cell .seiriken.on { color: var(--red); border-color: var(--red); background: var(--card); }
.cal-cell .seiriken.off { color: var(--on-green); background: var(--green); }
.cal-cell {
  min-height: 72px; border-radius: 8px; border: 1px solid var(--line);
  padding: 6px 8px; background: var(--card); cursor: default; position: relative;
}
.cal-cell.clickable { cursor: pointer; }
.cal-cell.clickable:hover { outline: 2px solid var(--accent); }
/* 本日。輪郭だけだと30マスの中で埋もれるので（2026-08-12 指摘）、
   日付を塗りつぶした丸にして「今日はここ」を一目で分かるようにする（iOSカレンダーと同じ作法）。
   目立つ色は1画面に1つなので、ここ以外でアクセント塗りは使わない */
.cal-cell.today { outline: 2px solid var(--accent); background: var(--accent-soft); }
.cal-cell.today .d {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 5px; margin: -2px 0 2px -2px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
}
.cal-cell .d { font-size: 0.8125rem; font-weight: 700; }
.cal-cell .v { font-size: 0.75rem; margin-top: 4px; font-weight: 600; }
.cal-cell .lab { font-size: 0.625rem; color: var(--sub); }
.cal-cell.other { visibility: hidden; }
.cal-s { display: none; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 0.75rem; color: var(--sub); }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* plan */
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; }
fieldset legend { font-size: 0.8125rem; font-weight: 700; color: var(--accent); padding: 0 6px; }
.ridepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.ridepick label { font-size: 0.875rem; display: flex; align-items: center; gap: 6px; }
.ridepick label .w { margin-left: auto; font-size: 0.75rem; color: var(--sub); }
select, input[type="time"], input[type="date"] {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.875rem;
  background: var(--card); color: var(--text);
}
button.primary {
  background: var(--accent); color: var(--on-accent); border: none; border-radius: 10px;
  padding: 10px 26px; font-size: 0.9375rem; font-weight: 700; cursor: pointer;
  transition: filter .15s ease, transform .12s cubic-bezier(.34,1.56,.64,1);  /* バネ感（WP6） */
}
@media (hover: hover) and (pointer: fine) {
  button.primary:hover { filter: brightness(1.1); }   /* タッチ端末ではタップ後に hover が張り付く */
}
button.primary:active { transform: scale(.94); }
button.primary:disabled { background: var(--gray); cursor: wait; transform: none; }

.result-main { display: block; }
.result-sub { display: block; font-weight: 400; font-size: 0.78125rem; margin-top: 2px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex; gap: 14px; padding: 10px 4px; border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.timeline .time {
  font-weight: 700; min-width: 64px; color: var(--accent); font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; gap: 4px; flex-shrink: 0;
}
.timeline .tl-img {
  width: 64px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line);
}
.skip-warn {
  border: 2px solid var(--red); border-radius: 10px;
  background: color-mix(in srgb, var(--red) 10%, var(--card));
  color: var(--red); font-weight: 600;
  padding: 10px 12px; margin: 10px 0; font-size: 0.84375rem; line-height: 1.6;
}
.tips { padding-left: 20px; }
.tips li { margin: 5px 0; line-height: 1.65; }
.timeline .body { line-height: 1.55; }
.timeline .body { flex: 1; }
.timeline .walk { font-size: 0.75rem; color: var(--sub); }
.timeline .walk, .timeline .tl-name, .timeline .wait-line { display: block; }
.timeline .tl-name { margin: 1px 0; }
.totals { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 4px; }
.totals .t { background: var(--accent-soft); border-radius: 10px; padding: 8px 16px; font-size: 0.875rem; }
.totals .t b { font-size: 1.125rem; }
.tips { margin: 8px 0 0; padding-left: 20px; }
.tips li { margin-bottom: 6px; font-size: 0.875rem; }

/* 回り方プラン（ステップUI） */
.step-head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.9375rem; margin: 16px 0 8px;
}
.step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; flex-shrink: 0;
}
.step-body { padding-left: 0; margin-bottom: 6px; }
.hm-group { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.hm-colon { font-weight: 700; }
/* 高さは即時に開き、フェードだけ残す。
   max-height 0→3000px は「中身の高さ(実測1555px)まで開いた時点で見た目は終わり、
   残り約240msは何も起きない」という見え方になるうえ、毎フレーム再レイアウトが走っていた */
.step-sec {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: opacity .15s var(--ease-out);
}
.step-sec.open { max-height: none; opacity: 1; overflow: visible; }
.pick-list { padding: 0; }
.pick-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 2px;
  border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.875rem;
}
.pick-row:last-child { border-bottom: none; }
.pick-row .thumb {
  width: 52px; height: 38px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); flex-shrink: 0; background: var(--bg);
}
.pick-row .pick-name { min-width: 0; }
.pick-row .w { margin-left: auto; font-size: 0.75rem; color: var(--sub); white-space: nowrap; }
.pick-check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.875rem; flex-shrink: 0;
}
.pick-row.on { background: var(--accent-soft); }
#ep-box {
  border: 2px solid var(--orange); border-radius: 10px;
  padding: 10px 12px; margin-top: 10px;
  background: color-mix(in srgb, var(--orange) 8%, var(--card));
}
#ep-box > p { color: var(--orange); font-weight: 700; margin-top: 0 !important; }
#ep-list label {
  font-size: 0.75rem; display: flex; align-items: center; gap: 8px;
  min-width: 0; padding: 5px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
#ep-list label:last-child { border-bottom: none; }
#ep-list .thumb {
  width: 46px; height: 34px; object-fit: cover; border-radius: 7px;
  border: 1px solid var(--line); flex-shrink: 0;
}
#ep-list .ep-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row.on .pick-check { background: var(--accent); border-color: var(--accent); }

/* 回り方プラン（1列レイアウト） */
.plan-row { margin-bottom: 12px; gap: 14px; }
button.ghost {
  border: 1px solid var(--line); background: var(--card); color: var(--accent);
  border-radius: 8px; padding: 7px 14px; cursor: pointer; font-size: 0.875rem;
}
button.ghost:hover { border-color: var(--accent); }
button.primary.big { width: 100%; padding: 14px; font-size: 1rem; margin-top: 14px; }
details.fold {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0 14px; margin: 10px 0; background: var(--bg);
}
details.fold summary {
  cursor: pointer; padding: 11px 0; font-size: 0.875rem; font-weight: 600;
  color: var(--accent); list-style-position: inside; user-select: none;
}
details.fold[open] { padding-bottom: 10px; }
.ridelist { display: block; }
.ridelist .ridelist label {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px; border-bottom: 1px solid var(--line);
  font-size: 0.9375rem; cursor: pointer;
}
.ridelist label:last-child { border-bottom: none; }
.ridelist label .w { margin-left: auto; font-size: 0.8125rem; color: var(--sub); white-space: nowrap; }
.ridelist input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }

footer.site {
  text-align: center; padding: 0 18px 20px; color: var(--sub); font-size: 0.75rem;
}
footer.site a { color: var(--accent); }
/* 流れる横スクロール（無限ループ・ドラッグで手動スライド可） */
.marquee {
  overflow: hidden; cursor: grab;
  overscroll-behavior-x: contain; touch-action: pan-y;   /* 横は自前ドラッグ、縦はページスクロール */
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; user-select: none; }
/* transformでスクロール（サブピクセル対応・GPU合成でカクつかない） */
.mq-track { display: flex; flex-wrap: nowrap; gap: 10px; width: max-content; will-change: transform; }
.marquee.dragging .mq-track a, .marquee.dragging .mq-track img { pointer-events: none; }

/* 他の遊園地への案内（画像＋名前＋アトラクション数＋平均待ち・無限ループ） */
.footer-parks {
  padding: 16px 0 0; margin: 0;
  border-top: 1px solid var(--line);
}
.footer-park {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 0 0 auto; width: auto; min-width: 92px; padding: 8px 12px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.footer-park:hover { border-color: var(--accent); }
.footer-park .fp-img {
  width: 76px; height: 52px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); display: block;
}
.footer-park .fp-name { font-weight: 700; font-size: 0.71875rem; text-align: center; line-height: 1.25; white-space: nowrap; }
.footer-park .fp-count { color: var(--sub); font-size: 0.65625rem; }
.footer-park .fp-avg { color: var(--accent); font-size: 0.65625rem; font-weight: 600; }

/* 全アトラクションのミニ帯（最上部・地味に一定速で流す・サブ扱いで控えめ） */
.rides-marquee {
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 5px 0; opacity: .9;
}
.rides-marquee .mq-track { padding: 0 6px; }
.mq-ride {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 2px 10px 2px 4px;
}
.mq-ride + .mq-ride { border-left: 1px solid var(--line); }
.mq-ride .mr-img {
  width: 34px; height: 28px; object-fit: cover; border-radius: 5px;
  background: var(--card); flex: 0 0 auto; display: block; opacity: .95;
}
.mq-ride .mr-body { min-width: 0; text-align: left; }
.mq-ride .mr-park { font-size: 0.5625rem; color: var(--sub); font-weight: 600; }
.mq-ride .mr-name { font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.mq-ride .mr-pills { display: inline-flex; gap: 5px; align-items: center; }
.mq-ride .mr-name-line { display: flex; align-items: baseline; gap: 6px; }
.mq-ride .mr-wait { color: #fff; font-weight: 700; font-size: 0.59375rem; padding: 0 6px; border-radius: 999px; }
.mq-ride .mr-avg { color: var(--sub); font-size: 0.59375rem; }
/* 最下部の全アトラクション帯（パーク一覧の下）: 下線でなく上線で区切る */
.all-rides-marquee { border-bottom: none; border-top: 1px solid var(--line); margin-top: 12px; }

/* ダッシュボード: 優先/整理券/シングルのバッジをアトラクション名の上に。
   flex+gapで必ず1行・等間隔（斜め上ズレ・くっつき防止。ユーザー指定で縦幅は増やさない） */
.name-wrap .badge-row { display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; line-height: 1; margin-bottom: 3px; }
.name-wrap .badge-row:empty { display: none; }
.name-wrap .badge-row .pass-pill,
.name-wrap .badge-row .seiriken-pill,
.name-wrap .badge-row .sr-pill { margin: 0; vertical-align: baseline; }

/* 一番下の自パーク表記（線で区切ってその下） */
.footer-self {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.footer-self-link { color: var(--sub); text-decoration: none; font-size: 0.75rem; }
.footer-self-link:hover { color: var(--accent); }

/* ライド詳細モーダル */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 12px; overflow-y: auto;
}
.modal {
  background: var(--card); color: var(--text); border-radius: 14px;
  max-width: 720px; width: 100%; padding: 20px 22px; position: relative;
  border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.modal .close {
  position: absolute; top: 10px; right: 12px; border: none; background: none;
  font-size: 1.375rem; color: var(--sub); cursor: pointer; line-height: 1;
}
.modal h2 { margin: 0 34px 4px 0; font-size: 1.125rem; }
.modal .meta { font-size: 0.75rem; color: var(--sub); margin-bottom: 10px; }
.modal img.wiki-img {
  float: right; max-width: 42%; height: auto; border-radius: 10px;
  margin: 0 0 10px 14px; border: 1px solid var(--line);
}
.modal .extract { font-size: 0.875rem; line-height: 1.75; }
.modal .vsbadge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; color: #fff; margin: 4px 0 8px;
}
.modal .src { clear: both; font-size: 0.6875rem; color: var(--sub); margin-top: 12px; }
.modal .chartwrap { clear: both; margin-top: 12px; overflow-x: auto; }

/* 通常比バッジ（テーブル内） */
.trend { font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.trend.low { color: var(--green); }
.trend.high { color: var(--red); }
.trend.same { color: var(--sub); font-weight: 500; }

/* パーク混雑バナー */
.crowd-banner {
  background: var(--accent-soft); border-radius: 10px; padding: 8px 14px;
  font-size: 0.8125rem; margin-bottom: 12px;
}
/* 待ち時間の取得元が提供を止めたパーク（common.js showLiveUnavailable）。amber=注意。
   amber は白地の文字色にすると薄すぎるので、色は左の帯と下地だけに使い文字は本文色 */
.live-notice {
  border-left: 4px solid var(--amber); border-radius: 10px; padding: 8px 14px;
  background: color-mix(in srgb, var(--amber) 14%, var(--card));
  color: var(--text); font-size: 0.8125rem; line-height: 1.6; margin-bottom: 12px;
}
.live-notice a { margin-left: 4px; white-space: nowrap; color: var(--accent); }

/* 日別ナビ */
.day-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.day-nav button {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 0.8125rem;
}
.day-nav button:hover { border-color: var(--accent); }
.compare-opts { display: flex; gap: 14px; font-size: 0.8125rem; margin: 8px 0; flex-wrap: wrap; }

svg.spark { display: block; }
.detail-chart { overflow-x: auto; }

svg.spark { max-width: 100%; height: auto; }
.sort-mobile { display: none; margin: 6px 0 2px; width: 100%; }

/* --- タブレット（641〜1024px: iPad mini/iPad/縦向きiPad Pro） ---
   モバイル1行レイアウトとPC表レイアウトの狭間で、名前列が窮屈になり3行折返しが起きていたため、
   数値列を絞って名前に幅を回し、推移グラフを小さくする（2026-07-26） */
@media (min-width: 641px) and (max-width: 1024px) {
  main { padding: 14px 10px 0; }
  table.waits { table-layout: fixed; width: 100%; }
  table.waits th, table.waits td { padding: 8px 4px; }
  /* 名前列は残り幅を全部使う。数値列は内容が収まる最小限に固定 */
  #waits th[data-key="wait"], #waits td.c-chip { width: 86px; text-align: center; }
  /* 平均比較は「▲いつもより約55分長い」まで入るよう十分な幅を確保（不足すると推移グラフに重なる） */
  #waits th[data-key="trend"], #waits td.c-trend { width: 152px; white-space: nowrap; }
  #waits th.spark-td, #waits td.spark-td { width: 104px; }
  #waits .spark-td svg.spark { width: 96px; height: 32px; }
  .ridename-text { font-size: 0.875rem; line-height: 1.35; }
  .trend { font-size: 0.6875rem; }
  /* 全遊園地ランキングも同様に数値列を絞る */
  #ap-table th[data-key="now"], #ap-table td.c-chip { width: 88px; text-align: center; }
  #ap-table th[data-key="trend"], #ap-table td.c-trend { width: 130px; }
  /* ショーも同じ扱い。table-layout:fixed のままだと3列が均等になり、
     名前列が画面の1/3しか使えず会場名が切れていた（756px の横向きで実測・2026-08-12） */
  #shows th[data-key="next"], #shows td.c-next { width: 116px; }
  #shows th[data-key="arrive"], #shows td.c-arrive { width: 186px; }
  /* 上のタブの文字を折らない。スマホ横向き（756px）で8つのタブが全部「全遊園／地」のように2行に折れていた（2026-11-23）。
     640px 以下と同じく、入りきらないときは横に滑らせる */
  nav.tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a { white-space: nowrap; padding: 8px 10px; flex-shrink: 0; }
}

/* --- 大きいモニター・ワイドモニター（1600px〜） ---
   コンテンツ最大幅は保ちつつ、余白過多で間延びして見えないよう少しだけ広げる */
@media (min-width: 1600px) {
  main { max-width: 1240px; }
  #waits .spark-td svg.spark { width: 240px; }
}

@media (max-width: 640px) {
  body { font-size: 0.875rem; }
  main { padding: 12px 8px 0; }

  /* ヘッダー: タイトル・タブを必ず1行に収める */
  header.site { padding: 10px 10px 0; }
  .hdr-row { gap: 6px; }
  .hdr-row h1 {
    font-size: 0.78125rem; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; min-width: 0; max-width: 100%;
  }
  .hdr-row h1 .sub { display: none; }
  .hdr-row button, .hdr-row select { padding: 3px 6px; font-size: 0.625rem; white-space: nowrap; }
  .park-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 6px 4px 0; }
  .park-tabs a { font-size: 0.65625rem; padding: 2px 9px; flex-shrink: 0; }
  /* 横に滑らせられるようにする（以前は overflow:hidden で、320px では右端のタブが押せなかった。2026-11-21） */
  nav.tabs { gap: 2px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a {
    padding: 7px 6px; font-size: 0.71875rem; white-space: nowrap;
    flex: 1; text-align: center;
  }

  /* バナー（天気・混雑）は小さく */
  .crowd-banner { font-size: 0.6875rem; padding: 6px 10px; line-height: 1.7; }

  .hide-sm { display: none !important; }
  .card { padding: 12px; }
  .sort-mobile { display: block; }

  /* 待ち時間一覧: 完全1行 [画像][名前(最大2行)][チップ][差] */
  /* 見出し(アトラクション名/待ち時間/平均比較)を並び順メニューの下に、各列へ揃えて表示 */
  #waits, #waits thead, #waits tbody { display: block; }
  #waits thead th { display: block; border: none; padding: 0; }
  #waits thead tr { padding: 2px 0 6px; border-bottom: 2px solid var(--line); }
  #waits thead th:first-child { flex: 1; }
  #waits thead th:nth-of-type(2) { flex: 0 0 62px; text-align: center; }
  #waits thead th:nth-of-type(3) { flex: 0 0 64px; text-align: right; }
  #waits tr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }
  #waits td { display: block; border: none; padding: 0; }
  #waits td.ridename { display: flex; align-items: center; flex: 1; min-width: 0; font-size: 0.78125rem; gap: 10px; }
  #waits .name-wrap { min-width: 0; flex: 1; }
  /* 狭い画面ではバッジ（優先あり/整理券/シングル）を隠して名前に幅を回す。
     3つ並ぶと名前欄が98pxまで潰れて名前が2行で切れ、バッジが待ち時間チップに重なっていた（2026-07-26） */
  #waits .badge-row, #ap-table .badge-row { display: none; }
  /* 375px幅の内訳が 画像54+名前98+待ち62+比較64 で名前が潰れていたため、
     画像と数値列を詰めて名前に約30px回す（アトラクション名が読めることを最優先） */
  #waits .ridename .thumb, #ap-table .thumb { width: 44px; height: 33px; }
  #waits tr, #ap-table tr { gap: 8px; }
  #waits td:nth-of-type(2), #waits thead th:nth-of-type(2),
  #ap-table td:nth-of-type(2), #ap-table th:nth-of-type(2) { flex: 0 0 56px; }
  #waits td:nth-of-type(3), #waits thead th:nth-of-type(3),
  #ap-table td:nth-of-type(3), #ap-table th:nth-of-type(3) { flex: 0 0 56px; }
  #waits .chip, #ap-table .chip { width: 54px; min-width: 0; font-size: 0.78125rem; padding: 2px 4px; }
  .trend { font-size: 0.65625rem; }

  /* 全遊園地ランキングも待ち時間ページと同じ1行レイアウト＋見出し表示 */
  #ap-table, #ap-table thead, #ap-table tbody { display: block; }
  #ap-table tr { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  #ap-table thead tr { padding: 2px 0 6px; border-bottom: 2px solid var(--line); }
  #ap-table th, #ap-table td { display: block; border: none; padding: 0; }
  #ap-table td.ridename { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-size: 0.78125rem; }
  #ap-table th:first-child { flex: 1; }
  #ap-table .name-wrap { min-width: 0; flex: 1; }
  #ap-table .ridename-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
  #ap-table .thumb { width: 54px; height: 40px; }
  #ap-table td:nth-of-type(2), #ap-table th:nth-of-type(2) { flex: 0 0 62px; text-align: center; }
  #ap-table td:nth-of-type(3), #ap-table th:nth-of-type(3) { flex: 0 0 64px; text-align: right; }
/* 長期ランキング（画像付き・線区切り） */
.longrank-col { flex: 1; min-width: 280px; }
.longrank-col h3 {
  font-size: 0.9375rem; color: var(--accent);
  margin: 4px 0 6px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 2px; border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: none; }
.rank-row .rank-no {
  width: 24px; text-align: right; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.rank-row .thumb {
  width: 52px; height: 38px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); flex-shrink: 0;
}
.rank-row .rank-name { min-width: 0; font-size: 0.84375rem; }
.rank-row .rank-avg {
  margin-left: auto; flex-shrink: 0; font-size: 0.78125rem;
  color: var(--sub); font-variant-numeric: tabular-nums;
}
  #waits .ridename-text {
    min-width: 0; flex: 1; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #waits .spark-td { display: none; }
  #waits td:nth-of-type(3) { flex-shrink: 0; width: 64px; text-align: right; }
  .trend-full { display: none; }
  .trend-compact { display: inline; }
  .bn-full { display: none; }
  .bn-compact { display: inline; }
  .crowd-banner { padding: 6px 10px; font-size: 0.75rem; }
  /* ランキング表: 枠内に収める（最大待ち列は非表示・名前は1行省略・数値はnowrap） */
  table.waits { table-layout: fixed; width: 100%; }
  table.waits th, table.waits td { font-size: 0.71875rem; padding: 7px 2px; }
  #rank-table th:nth-child(4), #rank-table td:nth-child(4) { display: none; }
  #rank-table th:nth-child(1), #rank-table td:nth-child(1) { width: 34px; white-space: nowrap; }
  #rank-table th:nth-child(3), #rank-table td:nth-child(3),
  #rank-table th:nth-child(5), #rank-table td:nth-child(5) { width: 54px; white-space: nowrap; }
  #rank-table td.ridename { font-size: 0.75rem; }
  #rank-table td.ridename .thumb { width: 40px; height: 30px; }
  #rank-table .ridename-text {
    display: block; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rank-row .thumb { width: 44px; height: 33px; }
  .rank-row .rank-name { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trend { font-size: 0.6875rem; font-weight: 700; }
  .ridename .thumb { width: 54px; height: 40px; }
  .chip.na { font-size: 0.5625rem; min-width: 0; padding: 2px 4px; white-space: normal; line-height: 1.15; word-break: break-word; }
  .special-pill { white-space: normal; word-break: break-word; font-size: 0.53125rem; padding: 1.5px 7px; }
  #waits td:nth-of-type(2) { flex-shrink: 0; }
  #waits .chip { display: inline-block; width: 62px; text-align: center; box-sizing: border-box; }
    .chip { min-width: 48px; font-size: 0.8125rem; padding: 2px 8px; }

  /* カレンダー: スマホは短縮語のみ・補足行なし（詳細はタップ） */
  .cal-grid { gap: 2px; }
  .cal-cell { min-height: 62px; min-width: 0; padding: 5px 0; text-align: center; border-radius: 6px; }
  .cal-cell .d { font-size: 0.6875rem; }
  .cal-cell .v {
    font-size: 0.59375rem; margin-top: 3px; letter-spacing: -0.3px;
    white-space: nowrap; overflow: hidden;
  }
  .cal-cell .lab { display: none; }
  .cal-cell .wx { font-size: 0.5625rem; margin-top: 2px; white-space: nowrap; overflow: hidden; }
  .cal-cell .cal-hours { font-size: 0.53125rem; margin-top: 1px; overflow: hidden; }
  .pass-pill {
  display: inline-block; background: #7b52c4; color: #fff;
  border-radius: 999px; font-size: 0.53125rem; font-weight: 700;
  padding: 1px 8px; line-height: 1.5; margin-bottom: 2px; white-space: nowrap;
}
.name-wrap .pass-pill, .pick-name .pass-pill { display: inline-block; margin-left: 0; }
/* パーク別テーマ色（ヘッダー・アクセント・下線）。季節テーマが優先 */
/* TDL: パープル×ピンク（夢・城） */
html[data-park="tdl"] { --header-from: #3c2a6e; --header-to: #7a4fb0; --accent: #8b6cc9; --accent-soft: #efe9f9; }
html[data-park="tdl"] header.site { border-bottom-color: rgba(233, 160, 200, .6); }
html[data-park="tdl"][data-theme="dark"] { --accent: #a98fd8; --accent-soft: #2e2450; }
/* TDS: 深いマリンブルー×エメラルド（海） */
html[data-park="tds"] { --header-from: #0d3b52; --header-to: #1a6e84; --accent: #2a8ea6; --accent-soft: #e5f2f5; }
html[data-park="tds"] header.site { border-bottom-color: rgba(80, 200, 190, .55); }
html[data-park="tds"][data-theme="dark"] { --accent: #58b7c9; --accent-soft: #123642; }
/* 富士急: 富士急レッド×ダークグレー */
html[data-park="fjq"] { --header-from: #6e1520; --header-to: #c0273a; --accent: #c14a58; --accent-soft: #f9e9eb; }
html[data-park="fjq"] header.site { border-bottom-color: rgba(255, 255, 255, .35); }
html[data-park="fjq"][data-theme="dark"] { --accent: #d97983; --accent-soft: #3c1a20; }
/* レゴランド: レゴレッド×イエロー */
html[data-park="lego"] { --header-from: #b01f24; --header-to: #e03a30; --accent: #cf4030; --accent-soft: #fdeee8; }
html[data-park="lego"] header.site { border-bottom-color: rgba(255, 205, 3, .75); }
html[data-park="lego"][data-theme="dark"] { --accent: #e8766a; --accent-soft: #421d18; }
/* ピューロランド: ピューロピンク×パープル */
html[data-park="puro"] { --header-from: #b03a78; --header-to: #e06aa8; --accent: #cc5590; --accent-soft: #fbeaf3; }
html[data-park="puro"] header.site { border-bottom-color: rgba(255, 255, 255, .45); }
html[data-park="puro"][data-theme="dark"] { --accent: #e089b5; --accent-soft: #462034; }
/* よみうりランド: フレッシュグリーン×スカイ */
html[data-park="yomi"] { --header-from: #1c6e3c; --header-to: #3ba05e; --accent: #3a9159; --accent-soft: #e9f5ec; }
html[data-park="yomi"] header.site { border-bottom-color: rgba(140, 210, 250, .6); }
html[data-park="yomi"][data-theme="dark"] { --accent: #66bb85; --accent-soft: #1c3a28; }

/* 季節テーマ（自動切替） */
html[data-season="halloween"] { --header-from: #3d1a5b; --header-to: #c75300; }
html[data-season="halloween"] header.site { border-bottom-color: #ff8c00; }
html[data-season="christmas"] { --header-from: #7a1023; --header-to: #0e5c2f; }
html[data-season="christmas"] header.site { border-bottom-color: #e6b84c; }

.sr-pill { font-size: 0.5rem; padding: 1px 6px; }
  .cal-full { display: none; }
  .cal-s { display: inline; }
  .timeline .time { min-width: 52px; font-size: 0.8125rem; }
  .timeline .tl-img { width: 52px; height: 38px; }
  .timeline li { gap: 8px; padding: 9px 2px; }
  .timeline .body { min-width: 0; }
  .timeline .walk, .timeline .tl-name, .timeline .wait-line, .result-sub {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* .ridename は待ち時間表のために display:table-cell。table-cell は「…」を出せず、
     長いライド名が無言でハード切れしていた（2026-08-24 修正）。順路の中だけ inline に戻す */
  .timeline .tl-name .ridename { display: inline; }
  .timeline .walk { font-size: 0.6875rem; }
  .timeline .wait-line { font-size: 0.75rem; }
    #result h2 { font-size: 0.9375rem; }
  /* 合計欄: 2列グリッドで揃える（改行のばらつき防止） */
  .totals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .totals .t {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 0.75rem; text-align: center;
  }
  .totals .t:nth-child(odd):last-child { grid-column: 1 / -1; }
}

/* ===== WP6 モーション（CSS/WAAPI・0KB・transform/opacityのみ・reduced-motion対応） ===== */
/* 待ち時間チップが変化した瞬間のポップ */
@keyframes chipBump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
.chip.bump { animation: chipBump .4s cubic-bezier(.34,1.56,.64,1); }
/* カードの初回入場（軽いフェードアップ） */
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card.anim-in { animation: cardIn .28s var(--ease-out) both; }
/* AIプラン結果のスプリング入場 */
@keyframes resultPop { 0% { opacity: 0; transform: translateY(12px) scale(.98); } 60% { transform: translateY(0) scale(1.01); } 100% { opacity: 1; transform: none; } }
#result.pop { animation: resultPop .45s cubic-bezier(.34,1.4,.64,1) both; }
/* 成功チェック（プラン生成完了の合図・SVGパスを描画） */
.plan-check { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
.plan-check circle { fill: var(--green); }
.plan-check path { stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; animation: checkDraw .4s .12s ease forwards; }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
/* タイムラインの各行が順に入場 */
@keyframes rowIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.timeline li.anim-in { animation: rowIn .25s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  /* 落とすのは「動き」だけ。色の変化(.chip の background-color)は残す＝情報が失われるため */
  button.primary { transition: none; }
  .chip.bump, .card.anim-in, #result.pop, .plan-check path, .timeline li.anim-in { animation: none; }
  .menu-panel { animation: none; }
  .ptut-ring, .ptut-tip { transition: none; }
  .plan-check path { stroke-dashoffset: 0; }
  /* マーキーは自動スクロールを止め、手動の横スクロールに */
  .mq-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---- ショー・パレードのタブ（開始時刻と場所取り目安。待ち時間表とは別の見せ方） ---- */
/* 行の作りは待ち時間ページと同じ（画像＋バッジ行＋名前の2行）。
   以前は「場所・所要」「本日の公演(全時刻)」「詳しく」を各1行ずつ常時表示していて
   1行145px（待ち時間ページは70px）になり、別サイトのように見えていた。 */
.shows-table td { vertical-align: middle; }
.shows-table td.shows-name { white-space: normal; }
.shows-name .ridename-text { font-size: 0.90625rem; line-height: 1.35; display: block; }
/* 場所・所要はバッジ行に相乗りさせる（行を増やさない）。全文は行のツールチップに入れてある。
   .badge-row は flex-wrap:nowrap なので、長い会場名は折り返さず「…」で切る（幅の狭いスマホ対策）。 */
/* ショー詳細モーダル（1日に何回もあるので公演時刻を全部見せる） */
.show-row { cursor: pointer; }
.modal .show-h3 { font-size: 0.8125rem; color: var(--accent); margin: 14px 0 6px; }
.modal .showtimes { display: flex; flex-wrap: wrap; gap: 6px; }
.modal .showtime {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.875rem; font-variant-numeric: tabular-nums;
}
.modal .showtime.next { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.modal .showtime.done { opacity: .38; }
.modal .show-ul { margin: 0; padding-left: 1.2em; font-size: 0.8125rem; line-height: 1.7; }
.modal .show-ul-note { font-size: 0.75rem; color: var(--sub); }
.show-venue { font-size: 0.6875rem; color: var(--sub); margin-left: 2px; vertical-align: middle;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-pill {
  display: inline-block; font-size: 0.59375rem; font-weight: 700; border-radius: 999px;
  padding: 1.5px 7px; margin-right: 4px; white-space: nowrap;
}
.show-pill.entry { background: var(--chip-yellow-bg); color: var(--chip-yellow-fg); }
.show-pill.outdoor { background: var(--chip-green-bg); color: var(--chip-green-fg); }
.shows-table .c-next { white-space: nowrap; }
.show-time { display: block; font-size: 1.0625rem; font-weight: 700; color: var(--accent); }
.show-in { display: block; font-size: 0.6875rem; color: var(--sub); margin-top: 1px; }
/* 幅の配分を明示する。折り返し禁止のままだと「並ぶ目安」が最長行の幅を要求して名前列を圧迫し、
   かといって折り返しを許すだけだと3列が均等（各1/3）になって今度も名前が狭い
   （756px の横向きで実測）。名前を主役にして、残りを2列で分ける */
.shows-table .c-arrive { white-space: normal; }
/* ⚠️ 列幅の指定は**表として並ぶ幅のときだけ**。スマホは1行flexに組み替えるので、
   ここで width を効かせると時刻セルが3pxに潰れて中身が隣にはみ出す（2026-08-15 実測） */
@media (min-width: 641px) {
  .shows-table .c-arrive { width: 26%; }
  .shows-table .c-next { width: 1%; }      /* 中身(時刻)ぶんだけに縮める */
}
.arrive-row { display: block; font-size: 0.71875rem; line-height: 1.5; }
.arrive-row b { font-weight: 700; margin-right: 3px; }
.by-time { color: var(--sub); font-size: 0.65625rem; }

@media (max-width: 640px) {
  /* スマホは **1行で「左=アイコン / 中央=タイトル / 右=時刻」**（2026-08-15 指定）。
     以前は縦積みにして時刻と「並ぶ目安」を2行目に横並びで置いていたが、
     文字が入りきらず折り返し・重なりが起きていた。「並ぶ目安」は行から外してモーダルへ寄せる */
  #shows, #shows thead, #shows tbody { display: block; }
  #shows thead { display: none; }               /* 1行レイアウトでは列見出しが意味を持たない */
  #shows tr { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  #shows td { display: block; border: none; padding: 0; }
  #shows td.shows-name { flex: 1 1 auto; min-width: 0; width: auto; }
  .shows-name .ridename-text { font-size: 0.84375rem; }
  /* タイトルは2行で打ち切る（長い演目名で行が青天井に伸びるのを防ぐ） */
  #shows .ridename-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
  #shows .show-venue { font-size: 0.625rem; }
  #shows .show-dur { display: none; }           /* 所要時間はモーダルへ（幅が足りない） */
  /* バッジが2つ付く行は会場名の居場所が数文字しか残らず「シ…」のようになる。そこは会場ごと省く */
  #shows .badge-row .show-pill + .show-pill ~ .show-venue { display: none; }
  /* 右端の時刻。折り返さず、内容ぶんだけ確保する */
  #shows td.c-next { flex: 0 0 auto; text-align: right; white-space: nowrap; margin: 0; }
  #shows .show-time { display: block; font-size: 1rem; }
  #shows .show-in { display: block; font-size: 0.65625rem; margin: 1px 0 0; }
  #shows .show-timelink { font-size: 0.6875rem; }
  /* 並ぶ目安は行に入れない（横幅が足りず折り返しの原因になる）。モーダルには従来どおり出る */
  #shows td.c-arrive { display: none; }
}

/* 公演時刻を公式が出していないショー（ピューロランド）の誘導リンク */
.show-timelink { color: var(--link, #8ab4f8); text-decoration: underline; font-size: .86rem; white-space: nowrap; }

/* 「並ぶ目安」を持たないパークでは列ごと隠す（全行「—」になるのを避ける） */
#shows.no-arrive th[data-key="arrive"], #shows.no-arrive td.c-arrive { display: none; }

/* AIプランの行程のうち「ショー」の行（動かせない予定なので時刻を主役にする） */
#timeline li.tl-show .time { color: var(--accent); font-weight: 700; }
#timeline li.tl-show { background: var(--accent-soft); border-radius: 10px; }
.badge.show { background: var(--chip-green-bg); color: var(--chip-green-fg); }

/* ============ パークマップ（map.html）============ */
.map-card { padding: 12px; }
#map { height: 62vh; min-height: 320px; border-radius: 10px; z-index: 0; }
/* OSM標準タイルは1種類だけ読み、暗色テーマは画像処理で合わせる（別API・キー不要）。 */
html[data-theme="dark"] #map .leaflet-tile-pane {
  filter: invert(.9) hue-rotate(180deg) brightness(.72) contrast(.9);
}
.map-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.map-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--accent);
  border-radius: 999px; padding: 8px 16px; font-size: 0.8125rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.map-attr { font-size: 0.625rem; margin: 8px 0 0; }
.map-attr a { color: inherit; }
.map-note { font-size: 0.75rem; margin: 10px 0 4px; }
#map-nopin { display: flex; flex-wrap: wrap; gap: 8px; }
.nopin-link {
  font-size: 0.75rem; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; color: var(--text); text-decoration: none; background: var(--bg);
  /* 指で押す場所なので高さ44pxを確保（iOS/Androidの推奨） */
  min-height: 44px; display: inline-flex; align-items: center;
}
/* アトラクション名のピン（Googleマップの施設ラベル風。待ち時間は色バッジ） */
.ride-pin-wrap { background: none; border: none; }
.ride-pin2 {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  background: rgba(255,255,255,.95); border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px; padding: 2px 8px 2px 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transform: translate(-6px, -12px);          /* アンカー(施設位置)にバッジ左端が乗るように */
  color: #202124; font-size: 0.6875rem; font-weight: 700;
}
.ride-pin2 .rp-badge {
  display: inline-block; min-width: 30px; text-align: center; padding: 2px 5px;
  border-radius: 999px; color: #fff; font-size: 0.65625rem; font-style: normal;
}
.ride-pin2 .rp-name { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; }
.ride-pin2 .rp-img {
  width: 34px; height: 26px; object-fit: cover; border-radius: 7px; display: block;
  background: #d7dce3;
}
.ride-pin2 .rp-ph { display: inline-block; }
.ride-pin2 .rp-badge.rp-show { background: var(--accent); }
.show-pin { border-color: var(--accent); }
.pin-pop .pop-show { margin-bottom: 6px; }
/* 引きのズームでは画像サムネだけに（名前・待ち時間は拡大時に見せる） */
#map.zoom-far .rp-name, #map.zoom-far .rp-badge { display: none; }
#map.zoom-far .ride-pin2 { padding: 2px; }
#map.zoom-far .ride-pin2 .rp-img { width: 28px; height: 22px; }
.you-pin-wrap { background: none; border: none; }
.you-pin {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 6px rgba(26,115,232,.8);
}
.pin-pop { font-size: 0.8125rem; max-width: 200px; }
.pin-pop .pin-img { width: 100%; border-radius: 8px; margin-bottom: 6px; }
.pin-pop .pin-wait { font-weight: 700; margin: 2px 0 6px; }
/* 裏技 */
.tip { border-bottom: 1px solid var(--line); }
/* 見出しは指で押す場所なので高さ44px以上を確保する（iOS/Androidの推奨） */
.tip summary {
  cursor: pointer; font-weight: 700; font-size: 0.875rem;
  padding: 12px 2px; min-height: 44px; display: flex; align-items: center; gap: 6px;
}
.tip[open] summary { padding-bottom: 6px; }
.tip p { font-size: 0.8125rem; line-height: 1.7; margin: 0 0 10px; padding: 0 2px; }
.tip .src { font-size: 0.6875rem; color: var(--sub); }
.tip-ride { font-size: 0.8125rem; color: var(--accent); margin: 16px 0 2px; }
/* 平均値バッジ（今の待ち時間が無いとき）: 塗らずに輪郭だけ＝現在値と区別する既存の作法 */
.ride-pin2 .rp-badge.rp-avg {
  background: transparent; border: 1.5px solid currentColor; font-weight: 700;
}
.pin-pop .pin-avg { font-size: 0.6875rem; color: var(--sub); font-weight: 400; }
/* 現在地の状態表示（alert を使わずその場に出す） */
.map-geo-msg { font-size: 0.75rem; color: var(--sub); margin: 10px 0 0; }
.map-geo-msg.is-err { color: var(--red); }
/* 閉園中の注記（数字が平均であることを伝える） */
.map-closed-note {
  font-size: 0.75rem; color: var(--sub); margin: 0 0 8px;
  background: var(--bg); border-radius: 8px; padding: 8px 10px;
}
/* 今動いていないライドのバッジ（灰色・待ち時間と混同させない） */
.ride-pin2 .rp-badge.rp-off { background: var(--gray); color: #fff; }
/* 順路が空のときの案内 */
.plan-empty { font-size: 0.8125rem; line-height: 1.7; padding: 16px 4px; margin: 0; }

/* 裏技カード（絵つき）。文章だけだと読み飛ばされるのでアトラクション一覧と同じ見た目に寄せる（2026-08-25） */
.tipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.75rem; margin: 0.5rem 0 0.25rem; }
.tipcard { background: var(--card); border: 1px solid var(--line); border-radius: 0.75rem; overflow: hidden; display: flex; flex-direction: column; }
.tipcard-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--line); }
.tipcard-body { padding: 0.625rem 0.6875rem 0.75rem; }
.tipcard-t { margin: 0 0 0.25rem; font-size: 0.8125rem; line-height: 1.45; font-weight: 700; }
.tipcard-b { margin: 0; font-size: 0.75rem; line-height: 1.65; color: var(--sub); }
@media (max-width: 22.5rem) { .tipgrid { grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr)); gap: 0.5rem; } }
/* 横に滑らせる1列（2026-11-24。縦に長かった格子の置き換え）。ボタン＝操作の色（indigo 系の --accent） */
.tiprow-wrap { position: relative; margin: 0.5rem 0 0.25rem; }
.tiprow {
  display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0.125rem 0.125rem 0.5rem; scrollbar-width: thin; align-items: flex-start;
}
.tiprow .tipcard { flex: 0 0 10rem; scroll-snap-align: start; cursor: pointer; }
.tiprow .tipcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tiprow .tipcard-b { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tiprow .tipcard.open .tipcard-b { display: block; -webkit-line-clamp: unset; overflow: visible; }
.tipcard-ride { display: block; font-size: 0.6875rem; font-weight: 700; color: var(--accent); margin-bottom: 0.125rem; line-height: 1.35; }
.tiprow-btn {
  display: none; position: absolute; top: 4.25rem; z-index: 2; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--accent); font-size: 1.375rem; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.tiprow-btn.prev { left: -0.5rem; }
.tiprow-btn.next { right: -0.5rem; }
.tiprow-btn:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .tiprow-btn { display: block; } }
@media (max-width: 22.5rem) { .tiprow .tipcard { flex-basis: 8.75rem; } }

/* ---- グッズ（2026-11-21）。色: 空色(accent-soft)=情報 / 琥珀=注意（在庫なし）/ 緑=達成（再入荷） ---- */
.goods-h { font-size: 1rem; margin: 2px 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.goods-scope { font-size: 0.75rem; font-weight: 600; color: var(--sub); }
.goods-day { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.goods-day-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.goods-date { font-weight: 700; font-size: 1rem; }
.goods-count { font-size: 0.75rem; margin-left: auto; }
.goods-chip { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.goods-chip.info { background: var(--accent-soft); color: var(--accent); }
.goods-chip.warn { background: var(--chip-yellow-bg); color: var(--chip-yellow-fg); }
.goods-chip.ok { background: var(--chip-green-bg); color: var(--chip-green-fg); }
.goods-chip.muted-chip { background: var(--line); color: var(--sub); }
.goods-list { list-style: none; margin: 0; padding: 0; }
.goods-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; min-height: 44px; border-bottom: 1px dashed var(--line); color: var(--text); text-decoration: none; }
.goods-list li:last-child .goods-row { border-bottom: none; }
a.goods-row:hover .goods-name, a.goods-row:focus-visible .goods-name { color: var(--accent); }
.goods-name { flex: 1; min-width: 0; font-size: 0.875rem; line-height: 1.4; overflow-wrap: anywhere; }
/* 公式の商品写真（2026-11-22）。写真は白地が多いので白い枠にし、切り抜かずに全体を見せる */
.goods-thumb { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 0.5rem; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.goods-thumb-none { display: block; background: var(--line); border-color: transparent; }
.goods-brand { display: block; font-size: 0.6875rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.goods-price { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.875rem; min-width: 4.5em; text-align: right; }
.goods-more summary { cursor: pointer; color: var(--accent); font-size: 0.8125rem; font-weight: 600; padding: 8px 2px; min-height: 44px; display: flex; align-items: center; }
.goods-note { margin: 12px 0 0; }
.goods-meter { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 2px 0 4px; }
.goods-meter span { display: block; height: 100%; background: var(--accent); }
.goods-meter-label { font-size: 0.75rem; margin: 0 0 6px; }
.goods-foot { font-size: 0.75rem; margin: 14px 0 0; }
.goods-foot a { color: var(--accent); }
@media (max-width: 640px) {
  .goods-row { gap: 6px; }
  .goods-thumb { width: 3rem; height: 3rem; }
  .goods-chip { font-size: 0.6875rem; padding: 2px 6px; }
  .goods-price { min-width: 4em; font-size: 0.8125rem; }
}

/* ===== ヘッダー（2026-11-24 作り直し）=====
   ユーザー「ヘッダーがユニバっぽくない（ほかも）」「待ち時間のページだけ色が変わる」を受けて:
   ・パークの色はいつも同じ（季節で塗り替えない）。季節は右上の小さな飾り（雪・こうもり）と下の線の色だけ
   ・パークごとの絵柄を右側に薄く置く。絵はすべて単純な図形で描いたもの（公式のロゴ・絵・書体は使わない）
   ・季節の判定は全ページで同じ（common.js の initSeason。サーバーの lib/season.js と同じ決まり）
   ・tdc・naga・sea は同じ青だったので色を分けた */
header.site { overflow: hidden; isolation: isolate; border-bottom: 3px solid var(--hdr-line, rgba(201, 164, 78, .55)); }
header.site::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: min(62%, 30rem); z-index: -1;
  background: var(--hdr-motif, none) right center / auto 100% no-repeat; opacity: .3; pointer-events: none;
}
header.site::after {
  content: ''; position: absolute; top: 0; left: 0; width: min(38%, 14rem); height: 70%; z-index: -1;
  background: var(--hdr-season, none) left top / auto 100% no-repeat; opacity: .32; pointer-events: none;
}
html[data-season="christmas"] { --hdr-season: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 96'%3E%3Cpath d='M20 18L26 18M23.6 18L24.9 16.7M23.6 18L24.9 19.3M20 18L23 23.2M21.8 21.1L23.5 21.6M21.8 21.1L21.3 22.8M20 18L17 23.2M18.2 21.1L18.7 22.8M18.2 21.1L16.5 21.6M20 18L14 18M16.4 18L15.1 19.3M16.4 18L15.1 16.7M20 18L17 12.8M18.2 14.9L16.5 14.4M18.2 14.9L18.7 13.2M20 18L23 12.8M21.8 14.9L21.3 13.2M21.8 14.9L23.5 14.4' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M70 40L74 40M72.4 40L73.2 39.1M72.4 40L73.2 40.9M70 40L72 43.5M71.2 42.1L72.4 42.4M71.2 42.1L70.9 43.2M70 40L68 43.5M68.8 42.1L69.1 43.2M68.8 42.1L67.6 42.4M70 40L66 40M67.6 40L66.8 40.9M67.6 40L66.8 39.1M70 40L68 36.5M68.8 37.9L67.6 37.6M68.8 37.9L69.1 36.8M70 40L72 36.5M71.2 37.9L70.9 36.8M71.2 37.9L72.4 37.6' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M120 14L125 14M123 14L124 12.9M123 14L124 15.1M120 14L122.5 18.3M121.5 16.6L123 17M121.5 16.6L121.1 18M120 14L117.5 18.3M118.5 16.6L118.9 18M118.5 16.6L117 17M120 14L115 14M117 14L116 15.1M117 14L116 12.9M120 14L117.5 9.7M118.5 11.4L117 11M118.5 11.4L118.9 10M120 14L122.5 9.7M121.5 11.4L121.1 10M121.5 11.4L123 11' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M146 62L150 62M148.4 62L149.2 61.1M148.4 62L149.2 62.9M146 62L148 65.5M147.2 64.1L148.4 64.4M147.2 64.1L146.9 65.2M146 62L144 65.5M144.8 64.1L145.1 65.2M144.8 64.1L143.6 64.4M146 62L142 62M143.6 62L142.8 62.9M143.6 62L142.8 61.1M146 62L144 58.5M144.8 59.9L143.6 59.6M144.8 59.9L145.1 58.8M146 62L148 58.5M147.2 59.9L146.9 58.8M147.2 59.9L148.4 59.6' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M44 74L47.5 74M46.1 74L46.8 73.2M46.1 74L46.8 74.8M44 74L45.8 77M45.1 75.8L46.1 76.1M45.1 75.8L44.8 76.8M44 74L42.3 77M43 75.8L43.2 76.8M43 75.8L41.9 76.1M44 74L40.5 74M41.9 74L41.2 74.8M41.9 74L41.2 73.2M44 74L42.3 71M42.9 72.2L41.9 71.9M42.9 72.2L43.2 71.2M44 74L45.8 71M45.1 72.2L44.8 71.2M45.1 72.2L46.1 71.9' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M98 82L101 82M99.8 82L100.4 81.4M99.8 82L100.4 82.6M98 82L99.5 84.6M98.9 83.6L99.8 83.8M98.9 83.6L98.7 84.4M98 82L96.5 84.6M97.1 83.6L97.3 84.4M97.1 83.6L96.2 83.8M98 82L95 82M96.2 82L95.6 82.6M96.2 82L95.6 81.4M98 82L96.5 79.4M97.1 80.4L96.2 80.2M97.1 80.4L97.3 79.6M98 82L99.5 79.4M98.9 80.4L98.7 79.6M98.9 80.4L99.8 80.2' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
html[data-season="halloween"] { --hdr-season: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 96'%3E%3Ccircle cx='130' cy='22' r='12' fill='%23ffd27a' opacity='.85'/%3E%3Cpath transform='translate(30 30) scale(1)' d='M0 0 C-6 -8 -14 -6 -18 -2 C-14 -2 -12 2 -12 4 C-8 0 -4 2 0 6 C4 2 8 0 12 4 C12 2 14 -2 18 -2 C14 -6 6 -8 0 0 Z' fill='%23fff'/%3E%3Cpath transform='translate(70 54) scale(0.8)' d='M0 0 C-6 -8 -14 -6 -18 -2 C-14 -2 -12 2 -12 4 C-8 0 -4 2 0 6 C4 2 8 0 12 4 C12 2 14 -2 18 -2 C14 -6 6 -8 0 0 Z' fill='%23fff'/%3E%3Cpath transform='translate(100 26) scale(0.7)' d='M0 0 C-6 -8 -14 -6 -18 -2 C-14 -2 -12 2 -12 4 C-8 0 -4 2 0 6 C4 2 8 0 12 4 C12 2 14 -2 18 -2 C14 -6 6 -8 0 0 Z' fill='%23fff'/%3E%3C/svg%3E"); }
html[data-season="christmas"] header.site { border-bottom-color: var(--hdr-line); }
html[data-season="halloween"] header.site { border-bottom-color: var(--hdr-line); }
@media (prefers-reduced-transparency: reduce) { header.site::before, header.site::after { opacity: .15; } }
html[data-park="usj"], html[data-park="usj"][data-season] { --header-from: #0c2259; --header-to: #2457b5; --hdr-line: #f0c14b; --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M128 96 L92 0 L106 0 Z' fill='%23fff' opacity='.5'/%3E%3Cpath d='M150 96 L198 0 L214 0 Z' fill='%23fff' opacity='.5'/%3E%3Cpath d='M139 96 L150 0 L160 0 Z' fill='%23fff' opacity='.3'/%3E%3Cpath d='M52 15L53.9 19.5L58.7 19.8L55 23L56.1 27.7L52 25.2L47.9 27.7L49 23L45.3 19.8L50.1 19.5Z' fill='%23ffd76a'/%3E%3Cpath d='M232 25L233.3 28.2L236.8 28.5L234.1 30.7L234.9 34L232 32.3L229.1 34L229.9 30.7L227.2 28.5L230.7 28.2Z' fill='%23ffd76a'/%3E%3Cpath d='M176 50L177.1 52.5L179.8 52.8L177.7 54.6L178.4 57.2L176 55.8L173.6 57.2L174.3 54.6L172.2 52.8L174.9 52.5Z' fill='%23ffd76a'/%3E%3Cpath d='M18 50L19.1 52.5L21.8 52.8L19.7 54.6L20.4 57.2L18 55.8L15.6 57.2L16.3 54.6L14.2 52.8L16.9 52.5Z' fill='%23ffd76a'/%3E%3Crect x='0' y='86' width='240' height='10' fill='%23fff' opacity='.28'/%3E%3Crect x='4' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='20' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='36' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='52' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='68' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='84' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='100' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='116' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='132' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='148' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='164' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='180' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='196' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='212' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3Crect x='228' y='88.5' width='7' height='5' rx='1' fill='%23fff' opacity='.55'/%3E%3C/svg%3E"); }
html[data-park="usj"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="tdl"], html[data-park="tdl"][data-season] { --header-from: #3c2a6e; --header-to: #7a4fb0; --hdr-line: rgba(255, 194, 230, .8); --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M183 34L202 34M182.3 37L199.4 45.3M180.4 39.5L192.2 54.3M177.6 40.8L181.8 59.3M174.4 40.8L170.2 59.3M171.6 39.5L159.8 54.3M169.7 37L152.6 45.3M169 34L150 34M169.7 31L152.6 22.7M171.6 28.5L159.8 13.7M174.4 27.2L170.2 8.7M177.6 27.2L181.8 8.7M180.4 28.5L192.2 13.7M182.3 31L199.4 22.7' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3Cpath d='M227 62L237 62M226 64.9L234.1 70.8M223.5 66.8L226.6 76.3M220.5 66.8L217.4 76.3M218 64.9L209.9 70.8M217 62L207 62M218 59.1L209.9 53.2M220.5 57.2L217.4 47.7M223.5 57.2L226.6 47.7M226 59.1L234.1 53.2' stroke='%23ffc2e6' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3Cpath d='M114 26L123 26M113.2 28.4L120.5 33.6M111.2 29.8L114 38.4M108.8 29.8L106 38.4M106.8 28.4L99.5 33.6M106 26L97 26M106.8 23.6L99.5 18.4M108.8 22.2L106 13.6M111.2 22.2L114 13.6M113.2 23.6L120.5 18.4' stroke='%23ffc2e6' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3Cpath d='M40 14L41.1 16.5L43.8 16.8L41.7 18.6L42.4 21.2L40 19.8L37.6 21.2L38.3 18.6L36.2 16.8L38.9 16.5Z' fill='%23fff'/%3E%3Cpath d='M70 49L70.8 50.9L72.9 51.1L71.3 52.4L71.8 54.4L70 53.4L68.2 54.4L68.7 52.4L67.1 51.1L69.2 50.9Z' fill='%23fff'/%3E%3Cpath d='M140 67L140.8 68.9L142.9 69.1L141.3 70.4L141.8 72.4L140 71.4L138.2 72.4L138.7 70.4L137.1 69.1L139.2 68.9Z' fill='%23fff'/%3E%3C/svg%3E"); }
html[data-park="tdl"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="tds"], html[data-park="tds"][data-season] { --header-from: #0d3b52; --header-to: #1a6e84; --hdr-line: #e8c25a; --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Ccircle cx='182' cy='40' r='28' stroke='%23ffd76a' stroke-width='1.6' fill='none' opacity='.9'/%3E%3Cpath d='M182 6 L188 34 L216 40 L188 46 L182 74 L176 46 L148 40 L176 34 Z' fill='%23fff' opacity='.9'/%3E%3Cpath d='M182 22 L185 37 L200 40 L185 43 L182 58 L179 43 L164 40 L179 37 Z' fill='%23ffd76a'/%3E%3Cpath d='M0 84q7 -6 14 0t14 0q7 -6 14 0t14 0q7 -6 14 0t14 0q7 -6 14 0t14 0q7 -6 14 0t14 0q7 -6 14 0t14 0q7 -6 14 0t14 0q7 -6 14 0t14 0q7 -6 14 0t14 0' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 92q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0q5.5 -4 11 0t11 0' stroke='%23fff' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
html[data-park="tds"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="fjq"], html[data-park="fjq"][data-season] { --header-from: #6e1520; --header-to: #c0273a; --hdr-line: rgba(255, 255, 255, .5); --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M96 96 L150 30 L176 30 L232 96 Z' fill='%23fff' opacity='.35'/%3E%3Cpath d='M150 30 L176 30 L186 42 L176 38 L168 44 L160 37 L150 44 L141 41 Z' fill='%23fff'/%3E%3Cpath d='M0 70 C40 10 70 10 96 52 S150 96 190 60 S230 20 240 30' stroke='%23fff' stroke-width='3' fill='none'/%3E%3C/svg%3E"); }
html[data-park="fjq"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="lego"], html[data-park="lego"][data-season] { --header-from: #b01f24; --header-to: #e03a30; --hdr-line: #ffd500; --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Ccircle cx='100' cy='16' r='5.5' fill='%23ffd500' opacity='0.45'/%3E%3Ccircle cx='116' cy='16' r='5.5' fill='%23fff' opacity='0.56'/%3E%3Ccircle cx='132' cy='16' r='5.5' fill='%23ffd500' opacity='0.67'/%3E%3Ccircle cx='148' cy='16' r='5.5' fill='%237fd3ff' opacity='0.78'/%3E%3Ccircle cx='164' cy='16' r='5.5' fill='%23ffd500' opacity='0.89'/%3E%3Ccircle cx='180' cy='16' r='5.5' fill='%23fff' opacity='0.45'/%3E%3Ccircle cx='196' cy='16' r='5.5' fill='%23ffd500' opacity='0.56'/%3E%3Ccircle cx='212' cy='16' r='5.5' fill='%237fd3ff' opacity='0.67'/%3E%3Ccircle cx='228' cy='16' r='5.5' fill='%23ffd500' opacity='0.78'/%3E%3Ccircle cx='100' cy='36' r='5.5' fill='%23fff' opacity='0.78'/%3E%3Ccircle cx='116' cy='36' r='5.5' fill='%23ffd500' opacity='0.89'/%3E%3Ccircle cx='132' cy='36' r='5.5' fill='%237fd3ff' opacity='0.45'/%3E%3Ccircle cx='148' cy='36' r='5.5' fill='%23ffd500' opacity='0.56'/%3E%3Ccircle cx='164' cy='36' r='5.5' fill='%23fff' opacity='0.67'/%3E%3Ccircle cx='180' cy='36' r='5.5' fill='%23ffd500' opacity='0.78'/%3E%3Ccircle cx='196' cy='36' r='5.5' fill='%237fd3ff' opacity='0.89'/%3E%3Ccircle cx='212' cy='36' r='5.5' fill='%23ffd500' opacity='0.45'/%3E%3Ccircle cx='228' cy='36' r='5.5' fill='%23fff' opacity='0.56'/%3E%3Ccircle cx='100' cy='56' r='5.5' fill='%23ffd500' opacity='0.56'/%3E%3Ccircle cx='116' cy='56' r='5.5' fill='%237fd3ff' opacity='0.67'/%3E%3Ccircle cx='132' cy='56' r='5.5' fill='%23ffd500' opacity='0.78'/%3E%3Ccircle cx='148' cy='56' r='5.5' fill='%23fff' opacity='0.89'/%3E%3Ccircle cx='164' cy='56' r='5.5' fill='%23ffd500' opacity='0.45'/%3E%3Ccircle cx='180' cy='56' r='5.5' fill='%237fd3ff' opacity='0.56'/%3E%3Ccircle cx='196' cy='56' r='5.5' fill='%23ffd500' opacity='0.67'/%3E%3Ccircle cx='212' cy='56' r='5.5' fill='%23fff' opacity='0.78'/%3E%3Ccircle cx='228' cy='56' r='5.5' fill='%23ffd500' opacity='0.89'/%3E%3Ccircle cx='100' cy='76' r='5.5' fill='%237fd3ff' opacity='0.89'/%3E%3Ccircle cx='116' cy='76' r='5.5' fill='%23ffd500' opacity='0.45'/%3E%3Ccircle cx='132' cy='76' r='5.5' fill='%23fff' opacity='0.56'/%3E%3Ccircle cx='148' cy='76' r='5.5' fill='%23ffd500' opacity='0.67'/%3E%3Ccircle cx='164' cy='76' r='5.5' fill='%237fd3ff' opacity='0.78'/%3E%3Ccircle cx='180' cy='76' r='5.5' fill='%23ffd500' opacity='0.89'/%3E%3Ccircle cx='196' cy='76' r='5.5' fill='%23fff' opacity='0.45'/%3E%3Ccircle cx='212' cy='76' r='5.5' fill='%23ffd500' opacity='0.56'/%3E%3Ccircle cx='228' cy='76' r='5.5' fill='%237fd3ff' opacity='0.67'/%3E%3C/svg%3E"); }
html[data-park="lego"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="puro"], html[data-park="puro"][data-season] { --header-from: #b03a78; --header-to: #e06aa8; --hdr-line: rgba(255, 255, 255, .6); --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M180 30 C180 18 198 16 200 30 C202 16 220 18 220 30 C220 44 200 54 200 60 C200 54 180 44 180 30 Z' fill='%23fff' opacity='.9'/%3E%3Cpath d='M116 58 C108 48 104 64 112 64 C104 64 108 80 116 70 L124 70 C132 80 136 64 128 64 C136 64 132 48 124 58 Z' fill='%23fff' opacity='.75'/%3E%3Cpath d='M150 14L151.6 17.8L155.7 18.1L152.6 20.8L153.5 24.9L150 22.7L146.5 24.9L147.4 20.8L144.3 18.1L148.4 17.8Z' fill='%23fff'/%3E%3Cpath d='M232 65L233.3 68.2L236.8 68.5L234.1 70.7L234.9 74L232 72.3L229.1 74L229.9 70.7L227.2 68.5L230.7 68.2Z' fill='%23fff'/%3E%3Cpath d='M90 20L91.1 22.5L93.8 22.8L91.7 24.6L92.4 27.2L90 25.8L87.6 27.2L88.3 24.6L86.2 22.8L88.9 22.5Z' fill='%23fff'/%3E%3Ccircle cx='160' cy='78' r='4' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='60' cy='60' r='3' fill='%23fff' opacity='.6'/%3E%3C/svg%3E"); }
html[data-park="puro"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="yomi"], html[data-park="yomi"][data-season] { --header-from: #1c6e3c; --header-to: #3ba05e; --hdr-line: rgba(140, 210, 250, .8); --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Ccircle cx='182' cy='46' r='34' stroke='%23fff' stroke-width='2.2' fill='none'/%3E%3Cpath d='M182 46L216 46M182 46L211.4 63M182 46L199 75.4M182 46L182 80M182 46L165 75.4M182 46L152.6 63M182 46L148 46M182 46L152.6 29M182 46L165 16.6M182 46L182 12M182 46L199 16.6M182 46L211.4 29' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' fill='none'/%3E%3Crect x='212' y='43' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='207.4' y='60' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='195' y='72.4' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='178' y='77' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='161' y='72.4' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='148.6' y='60' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='144' y='43' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='148.6' y='26' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='161' y='13.6' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='178' y='9' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='195' y='13.6' width='8' height='7' rx='2' fill='%23fff'/%3E%3Crect x='207.4' y='26' width='8' height='7' rx='2' fill='%23fff'/%3E%3Cpath d='M182 46 L160 96 M182 46 L204 96' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M70 22L71.1 24.5L73.8 24.8L71.7 26.6L72.4 29.2L70 27.8L67.6 29.2L68.3 26.6L66.2 24.8L68.9 24.5Z' fill='%23fff'/%3E%3C/svg%3E"); }
html[data-park="yomi"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="tdc"], html[data-park="tdc"][data-season] { --header-from: #13235e; --header-to: #2f5fd0; --hdr-line: #ffe066; --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Crect x='100' y='60' width='14' height='36' fill='%23fff' opacity='.45'/%3E%3Crect x='118' y='46' width='12' height='50' fill='%23fff' opacity='.45'/%3E%3Crect x='134' y='66' width='16' height='30' fill='%23fff' opacity='.45'/%3E%3Crect x='154' y='38' width='14' height='58' fill='%23fff' opacity='.45'/%3E%3Crect x='172' y='56' width='12' height='40' fill='%23fff' opacity='.45'/%3E%3Crect x='188' y='30' width='16' height='66' fill='%23fff' opacity='.45'/%3E%3Crect x='208' y='62' width='14' height='34' fill='%23fff' opacity='.45'/%3E%3Crect x='226' y='50' width='14' height='46' fill='%23fff' opacity='.45'/%3E%3Ccircle cx='150' cy='40' r='24' stroke='%23ffe066' stroke-width='3' fill='none'/%3E%3Cpath d='M60 70 C100 70 120 16 150 16 S200 70 240 60' stroke='%23ffe066' stroke-width='2.5' fill='none'/%3E%3C/svg%3E"); }
html[data-park="tdc"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="naga"], html[data-park="naga"][data-season] { --header-from: #0a4f8a; --header-to: #1d8fd8; --hdr-line: #ffb454; --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M70 96 L190 12 C204 4 214 10 220 30 L240 96' stroke='%23fff' stroke-width='3.2' fill='none'/%3E%3Cpath d='M82 87.6 L82 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M95 78.5 L95 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M108 69.4 L108 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M121 60.3 L121 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M134 51.2 L134 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M147 42.1 L147 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M160 33 L160 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M173 23.9 L173 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M186 14.8 L186 96' stroke='%23fff' stroke-width='1.4' opacity='.7'/%3E%3Cpath d='M82 87.6 L95 96' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M95 78.5 L108 96' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M108 69.4 L121 96' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M121 60.3 L134 96' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M134 51.2 L147 96' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M147 42.1 L160 96' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M160 33 L173 96' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M173 23.9 L186 96' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Ccircle cx='226' cy='22' r='9' fill='%23ffd27a' opacity='.9'/%3E%3C/svg%3E"); }
html[data-park="naga"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="sea"], html[data-park="sea"][data-season] { --header-from: #035a6e; --header-to: #0aa6b8; --hdr-line: rgba(255, 255, 255, .6); --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M0 70q7.5 -7 15 0t15 0q7.5 -7 15 0t15 0q7.5 -7 15 0t15 0q7.5 -7 15 0t15 0q7.5 -7 15 0t15 0q7.5 -7 15 0t15 0q7.5 -7 15 0t15 0q7.5 -7 15 0t15 0' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 82q6 -5 12 0t12 0q6 -5 12 0t12 0q6 -5 12 0t12 0q6 -5 12 0t12 0q6 -5 12 0t12 0q6 -5 12 0t12 0q6 -5 12 0t12 0q6 -5 12 0t12 0q6 -5 12 0t12 0q6 -5 12 0t12 0' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 92q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0q5 -4 10 0t10 0' stroke='%23fff' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M150 52 C160 26 196 18 214 34 L226 30 L220 40 C214 44 206 42 200 40 C190 50 170 54 150 52 Z' fill='%23fff'/%3E%3Cpath d='M184 28 L190 16 L196 30 Z' fill='%23fff'/%3E%3Ccircle cx='120' cy='40' r='4' stroke='%23fff' stroke-width='1.4' fill='none'/%3E%3Ccircle cx='110' cy='26' r='2.6' stroke='%23fff' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='126' cy='18' r='2' stroke='%23fff' stroke-width='1' fill='none'/%3E%3C/svg%3E"); }
html[data-park="sea"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="ghibli"], html[data-park="ghibli"][data-season] { --header-from: #3f6b45; --header-to: #6a9c5a; --hdr-line: rgba(255, 240, 200, .7); --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cg transform='translate(150 30) rotate(-30)' opacity='1'%3E%3Cpath d='M0 -16 C12 -8 12 8 0 16 C-12 8 -12 -8 0 -16 Z' fill='%23fff'/%3E%3Cpath d='M0 -14 L0 14' stroke='%233f6b45' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(190 20) rotate(20)' opacity='0.9'%3E%3Cpath d='M0 -16 C12 -8 12 8 0 16 C-12 8 -12 -8 0 -16 Z' fill='%23fff'/%3E%3Cpath d='M0 -14 L0 14' stroke='%233f6b45' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(214 56) rotate(60)' opacity='0.8'%3E%3Cpath d='M0 -16 C12 -8 12 8 0 16 C-12 8 -12 -8 0 -16 Z' fill='%23fff'/%3E%3Cpath d='M0 -14 L0 14' stroke='%233f6b45' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(168 66) rotate(-70)' opacity='0.85'%3E%3Cpath d='M0 -16 C12 -8 12 8 0 16 C-12 8 -12 -8 0 -16 Z' fill='%23fff'/%3E%3Cpath d='M0 -14 L0 14' stroke='%233f6b45' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(120 64) rotate(10)' opacity='0.7'%3E%3Cpath d='M0 -16 C12 -8 12 8 0 16 C-12 8 -12 -8 0 -16 Z' fill='%23fff'/%3E%3Cpath d='M0 -14 L0 14' stroke='%233f6b45' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(96 26) rotate(-50)' opacity='0.6'%3E%3Cpath d='M0 -16 C12 -8 12 8 0 16 C-12 8 -12 -8 0 -16 Z' fill='%23fff'/%3E%3Cpath d='M0 -14 L0 14' stroke='%233f6b45' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-park="ghibli"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="htb"], html[data-park="htb"][data-season] { --header-from: #0e3a7a; --header-to: #2563eb; --hdr-line: #ffb347; --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M176 96 L182 46 L196 46 L202 96 Z' fill='%23fff' opacity='.6'/%3E%3Cg transform='translate(189 44)' fill='%23fff'%3E%3Crect x='-4' y='-40' width='8' height='36' rx='1.5' transform='rotate(20)'/%3E%3Crect x='-4' y='-40' width='8' height='36' rx='1.5' transform='rotate(110)'/%3E%3Crect x='-4' y='-40' width='8' height='36' rx='1.5' transform='rotate(200)'/%3E%3Crect x='-4' y='-40' width='8' height='36' rx='1.5' transform='rotate(290)'/%3E%3Ccircle r='4'/%3E%3C/g%3E%3Cpath d='M110 96 L110 78' stroke='%23a7f3a0' stroke-width='2'/%3E%3Cpath d='M103 70 L103 80 C103 86 117 86 117 80 L117 70 L113 75 L110 69 L107 75 Z' fill='%23ffb347'/%3E%3Cpath d='M126 96 L126 78' stroke='%23a7f3a0' stroke-width='2'/%3E%3Cpath d='M119 70 L119 80 C119 86 133 86 133 80 L133 70 L129 75 L126 69 L123 75 Z' fill='%23ff6b81'/%3E%3Cpath d='M142 96 L142 78' stroke='%23a7f3a0' stroke-width='2'/%3E%3Cpath d='M135 70 L135 80 C135 86 149 86 149 80 L149 70 L145 75 L142 69 L139 75 Z' fill='%23ffd166'/%3E%3Cpath d='M222 96 L222 78' stroke='%23a7f3a0' stroke-width='2'/%3E%3Cpath d='M215 70 L215 80 C215 86 229 86 229 80 L229 70 L225 75 L222 69 L219 75 Z' fill='%23ff6b81'/%3E%3C/svg%3E"); }
html[data-park="htb"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="shima"], html[data-park="shima"][data-season] { --header-from: #c8141f; --header-to: #f5a524; --hdr-line: #ffe08a; --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Ccircle cx='186' cy='38' r='16' fill='%23ffe08a'/%3E%3Cpath d='M207 38L217 38M204.2 48.5L212.8 53.5M196.5 56.2L201.5 64.8M186 59L186 69M175.5 56.2L170.5 64.8M167.8 48.5L159.2 53.5M165 38L155 38M167.8 27.5L159.2 22.5M175.5 19.8L170.5 11.2M186 17L186 7M196.5 19.8L201.5 11.2M204.2 27.5L212.8 22.5' stroke='%23ffe08a' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M100 66 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M120 66 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M140 66 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M160 66 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M180 66 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M200 66 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M220 66 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M110 76 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M130 76 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M150 76 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M170 76 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M190 76 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M210 76 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M230 76 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M100 86 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M120 86 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M140 86 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M160 86 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M180 86 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M200 86 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3Cpath d='M220 86 l6 -5 l6 5 l-6 5 Z' fill='%23fff' opacity='.55'/%3E%3C/svg%3E"); }
html[data-park="shima"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="joy"], html[data-park="joy"][data-season] { --header-from: #4338ca; --header-to: #06b6d4; --hdr-line: #7df9ff; --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M150 96 L172 40' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M164 96 L178 40' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M178 96 L184 40' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M192 96 L190 40' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M206 96 L196 40' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M220 96 L202 40' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M234 96 L208 40' stroke='%23fff' stroke-width='1' opacity='.5'/%3E%3Cpath d='M110 56 L240 56' stroke='%23fff' stroke-width='1' opacity='.4'/%3E%3Cpath d='M110 68 L240 68' stroke='%23fff' stroke-width='1' opacity='.4'/%3E%3Cpath d='M110 82 L240 82' stroke='%23fff' stroke-width='1' opacity='.4'/%3E%3Cpath d='M196 4 L170 46 L188 46 L176 86 L214 36 L194 36 L208 4 Z' fill='%237df9ff' opacity='.95'/%3E%3C/svg%3E"); }
html[data-park="joy"] header.site { border-bottom-color: var(--hdr-line); }
html[data-park="nasu"], html[data-park="nasu"][data-season] { --header-from: #1f7a45; --header-to: #37a862; --hdr-line: rgba(255, 255, 255, .55); --hdr-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 96'%3E%3Cpath d='M90 96 L140 40 L166 66 L196 30 L240 96 Z' fill='%23fff' opacity='.4'/%3E%3Cpath d='M196 30 L206 44 L198 42 L190 46 L186 40 Z' fill='%23fff'/%3E%3Cpath d='M110 30 a10 10 0 0 1 18 -6 a12 12 0 0 1 22 4 a8 8 0 0 1 2 16 h-40 a8 8 0 0 1 -2 -14 Z' fill='%23fff' opacity='.85'/%3E%3Cpath d='M206 18 a7 7 0 0 1 13 -4 a8 8 0 0 1 15 3 a6 6 0 0 1 0 11 h-27 a6 6 0 0 1 -1 -10 Z' fill='%23fff' opacity='.7'/%3E%3C/svg%3E"); }
html[data-park="nasu"] header.site { border-bottom-color: var(--hdr-line); }

/* ===== グッズ（新しい画面・2026-11-24）: 種類のボタン＋並び／種類ごとに流れる列／一覧 =====
   色: 操作＝--accent（indigo 系）／情報＝空色（goods-chip info）／注意＝琥珀（残りわずか・限定）／達成＝緑（再入荷） */
.gd-bar { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
.gd-chips { display: flex; gap: 0.375rem; overflow-x: auto; flex: 1 1 auto; min-width: 0; padding: 0.125rem 0.125rem 0.375rem; scrollbar-width: thin; }
.gd-chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px;
  padding: 0.3125rem 0.75rem; font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.gd-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gd-chip:focus-visible, .gd-row-btn:focus-visible, .gd-card:focus-visible, .gd-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gd-n { font-size: 0.6875rem; font-weight: 600; opacity: .7; margin-left: 0.25rem; }
.gd-sort { flex: 0 0 auto; display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--sub); }
.gd-sort select { font: inherit; font-size: 0.8125rem; padding: 0.3125rem 0.375rem; border-radius: 0.5rem; border: 1px solid var(--line); background: var(--card); color: var(--text); max-width: 10.5rem; }
@media (max-width: 30rem) { .gd-bar { flex-wrap: wrap; } .gd-sort { margin-left: auto; } .gd-sort-l { display: none; } }
.gd-rowwrap { margin: 0 0 1rem; }
.gd-row-h { margin: 0 0 0.375rem; font-size: 0.9375rem; }
.gd-row-btn { border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; padding: 0.125rem 0; cursor: pointer; display: inline-flex; align-items: baseline; gap: 0.125rem; }
.gd-go { color: var(--accent); margin-left: 0.25rem; font-size: 1.0625rem; }
.gd-row { overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; position: relative; }
.gd-row.dragging { cursor: grabbing; }
.gd-row.gd-static { overflow-x: auto; cursor: auto; touch-action: auto; user-select: auto; -webkit-user-select: auto; }
.gd-track { display: flex; gap: 0.625rem; width: max-content; will-change: transform; }
.gd-card {
  display: flex; flex-direction: column; gap: 0.25rem; width: 8.75rem; flex: 0 0 auto; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.5rem; -webkit-user-drag: none;
}
.gd-card:hover { border-color: var(--accent); }
.gd-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 0.5rem; overflow: hidden; background: #fff; }
.gd-img img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.gd-noimg { display: block; width: 100%; height: 100%; background: var(--line); }
.gd-rank { position: absolute; left: 0.25rem; top: 0.25rem; background: var(--accent); color: #fff; font-size: 0.6875rem; font-weight: 700; border-radius: 999px; padding: 0.0625rem 0.4375rem; }
.gd-badges { display: flex; flex-wrap: wrap; gap: 0.25rem; min-height: 1.125rem; }
.gd-badges .goods-chip { font-size: 0.6875rem; padding: 0 0.375rem; line-height: 1.55; }
.gd-name { font-size: 0.75rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.1em; }
.gd-name .goods-brand { display: block; font-size: 0.6875rem; color: var(--sub); font-weight: 600; }
.gd-price { font-size: 0.8125rem; font-weight: 700; margin-top: auto; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); gap: 0.625rem; }
.gd-grid .gd-card { width: auto; }
.gd-more-wrap { text-align: center; margin: 0.875rem 0 0.25rem; }
.gd-more { border: 1px solid var(--accent); background: var(--card); color: var(--accent); border-radius: 999px; padding: 0.5rem 1.25rem; font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 64rem) { .gd-card { width: 10rem; } .gd-grid { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .gd-row { overflow-x: auto; cursor: auto; } .gd-track { transform: none !important; } }
