/* Hotels by event — design "Ticket and signage" (2026-12-05).
   Style rules (one meaning per colour, the same on every page):
   - Navy (--ink): text, station signs, the selected state, primary buttons.
   - Exit yellow (--exit): only the answer and "fits your ticket".  Pale green (--ticket): only the ticket.
   - Line colour (--line): only transit information.  Stamp red: only the check stamp.  Grey (--tint): footer and quiet surfaces.
   - Buttons: two kinds only. Primary = filled (one per block, the action we most want). Secondary = outline (everything else).
     On navy surfaces the same two kinds are inverted (white fill / white outline). No other button colours.
   - Choice chips (ticket picker) show a state, not an action: outline, filled navy when selected.
   - Navy surfaces (top hero, event board) use white and pale grey text only.
   - Pointer (hover): the whole target gets the pale hover surface (--hover): list rows, questions, menu items,
     secondary buttons. No underline appears on hover except on links inside running text and link lists.
     A hotel row and its map pin are shown together as selected: pale surface on the row, navy pin.
   - Sections are separated by space, not lines. Lines only separate items inside a list or table.
   Line colour (--line, set per venue) is used only for transit information. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --paper: #ffffff;
  --tint: #f4f6f7;
  --hover: #e9eff5;
  --ink: #13233a;
  --muted: #4b5a69;
  --soft: #6b7a89;
  --rule: #d3dae0;
  --rule-strong: #b8c3cc;
  --sign: #13233a;
  --sign-text: #f4f6f8;
  --sign-sub: #b9c6d3;
  --exit: #f5c400;
  --line: #c9242f;
  --ticket: #e3eee8;
  --ticket-edge: #9fbfae;
  --ticket-label: #46685a;
  --stamp: #b8322a;
  --focus: #0b6bcb;
  --header-h: 3.75rem;
  --latin: "Barlow", "BIZ UDPGothic", system-ui, sans-serif;
  --narrow: "Barlow Condensed", "Barlow", "BIZ UDPGothic", sans-serif;
  --ja: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --tc: "Barlow", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --kr: "Barlow", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: var(--latin);
  --head: var(--narrow);
}
html[lang="ja"] { --body: var(--ja); --head: var(--ja); }
html[lang="zh-hant"] { --body: var(--tc); --head: var(--tc); }
html[lang="ko"] { --body: var(--kr); --head: var(--kr); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* One width for every section, so the map sits in the same frame as the rest */
.wrap { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
[lang="ja"] { font-family: var(--ja); }
[lang="en"] { font-family: var(--latin); }
[lang="zh-hant"] { font-family: var(--tc); }
[lang="ko"] { font-family: var(--kr); }
.skip { position: absolute; left: .5rem; top: -3rem; padding: .5rem .8rem; background: var(--ink); color: var(--sign-text); z-index: 40; }
.skip:focus { top: .5rem; }
.no-js .js-only { display: none !important; } /* utility: wins over the button system */
.mock-note { margin: 0; padding: .35rem 1rem; background: #fff4c2; color: var(--ink); font-size: .85rem; text-align: center; }

/* ---- Buttons: one system for the whole site ---- */
:is(.btn, .cta a, .jump-link a, .map-toggle, .row .book a, .ev-go, .finder-go) {
  display: inline-block; padding: .55rem .95rem; border: 1px solid var(--rule-strong); border-radius: 2px;
  background: transparent; color: var(--ink); font: 500 .95rem/1.3 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
:is(.btn, .cta a, .jump-link a, .map-toggle, .row .book a):hover { border-color: var(--ink); background: var(--hover); }
:is(.btn.primary, .cta a.primary, .row .book a.primary) { background: var(--ink); border-color: var(--ink); color: var(--sign-text); font-weight: 600; }
:is(.btn.primary, .row .book a.primary):hover { background: #24395a; border-color: #24395a; color: var(--sign-text); }
/* On navy surfaces: the same two kinds, inverted */
:is(.hero, .events) :is(.cta a, .ev-go) { border-color: rgba(244, 246, 248, .6); color: var(--sign-text); background: transparent; }
:is(.hero, .events) :is(.cta a:hover, .ev:hover .ev-go) { border-color: var(--sign-text); background: rgba(244, 246, 248, .1); }
.hero .cta a.primary { background: var(--sign-text); border-color: var(--sign-text); color: var(--ink); }
.hero .cta a.primary:hover { background: #ffffff; color: var(--ink); }

/* ---- Header: brand, main menu, language ---- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 1.6rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font: 600 1.08rem/1 var(--latin); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; color: var(--ink); }
.brand svg { width: 1.65rem; height: 1.65rem; flex: none; }
.main-nav { display: flex; gap: .2rem; margin-left: auto; }
.main-nav a { padding: .45rem .7rem; border-radius: 2px; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { background: var(--hover); }
.lang-menu { position: relative; flex: none; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .7rem; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--paper); font-size: .9rem; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: .45rem; height: .45rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-.15rem) rotate(45deg); }
.lang-menu[open] summary::after { transform: translateY(.1rem) rotate(-135deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + .35rem); display: grid; min-width: 9.5rem; padding: .35rem; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 3px; box-shadow: 0 6px 18px rgba(19, 35, 58, .14); }
.lang-list a { padding: .45rem .6rem; border-radius: 2px; text-decoration: none; white-space: nowrap; }
.lang-list a:hover { background: var(--hover); }
.lang-list a[aria-current] { background: var(--ink); color: var(--sign-text); }

/* ---- Type scale and sections ---- */
section { padding-block: 3.4rem; }
:is(section > h2, .band .wrap > h2) { font: 600 clamp(1.75rem, 3.1vw, 2.3rem)/1.1 var(--head); letter-spacing: -.005em; margin-bottom: 1.5rem; text-wrap: balance; }
.section-lead { margin: -.85rem 0 1.8rem; max-width: 58ch; color: var(--muted); font-size: 1.04rem; }
.band { padding-block: 4.2rem; }
.head { padding-block: 2.4rem 1.2rem; }
.head h1 { font: 600 clamp(2rem, 4.6vw, 3rem)/1.05 var(--head); letter-spacing: -.005em; max-width: 22ch; text-wrap: balance; }
.head p { margin-top: .7rem; color: var(--muted); max-width: 60ch; }
.jump-link { margin-top: 1.2rem; }


/* ---- Venue page KV: a solid navy band (title, lead, travel times) with a white station sign;
        the search panel overlaps its lower edge ---- */
.venue-kv { position: relative; overflow: hidden; background: var(--sign); color: var(--sign-text); }
/* With a photo: the photo sits behind the band; navy stays solid on the text side and opens up to the right */
.vk-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue-kv.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(19, 35, 58, .96) 0%, rgba(19, 35, 58, .86) 40%, rgba(19, 35, 58, .35) 75%, rgba(19, 35, 58, .2) 100%),
              linear-gradient(0deg, rgba(19, 35, 58, .7) 0%, rgba(19, 35, 58, 0) 35%); }
.venue-kv .vk-inner { position: relative; z-index: 2; }
.vk-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2.5rem; align-items: center; padding-block: 2.8rem 3rem; }
.venue-kv.has-finder .vk-inner { padding-bottom: 6.6rem; }
.vk-text h1 { font: 600 clamp(2.2rem, 4.6vw, 3.4rem)/1.04 var(--head); letter-spacing: -.005em; text-wrap: balance; }
.vk-text .lead { margin-top: .9rem; color: #c9d4df; max-width: 48ch; font-size: 1.06rem; }
.vk-strip { display: flex; flex-wrap: wrap; margin-top: 1.4rem; border-top: 3px solid var(--line); font-size: .95rem; font-weight: 500; width: fit-content; max-width: 100%; }
.vk-strip span { padding: .5rem 1rem .1rem 0; }
.vk-strip span + span { padding-left: 1rem; border-left: 1px solid #34486a; }
.venue-kv .jump-link { margin-top: 1.3rem; }
.venue-kv .jump-link a { border-color: rgba(244, 246, 248, .6); color: var(--sign-text); }
.venue-kv .jump-link a:hover { border-color: var(--sign-text); background: rgba(244, 246, 248, .1); }
/* White station name board with the line colour band, like the real sign on the platform */
.vk-sign { justify-self: end; display: grid; width: min(100%, 21rem); padding: 1.25rem 1.2rem 0; background: var(--paper); color: var(--ink); border-radius: 4px; text-align: center; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.vk-sign .sp-k { font: 700 min(3.2rem, calc(18.4rem / (var(--chars, 4) * 1.1)))/1.05 var(--ja); letter-spacing: .08em; white-space: nowrap; }
.vk-sign .sp-r { margin-top: .2rem; font: 500 1.08rem/1.2 var(--latin); letter-spacing: .02em; }
.vk-sign .sp-local { font-size: .85rem; color: var(--soft); }
.vk-sign .sp-line { height: .5rem; margin: 1rem -1.2rem 0; background: var(--line); }
.vk-sign .sp-foot { margin: 0 -1.2rem; padding: .45rem .8rem .5rem; font-size: .84rem; color: var(--muted); background: var(--tint); }

/* ---- Ticket picker: the page's main search panel (choose event and ticket, the answer appears below) ---- */
.finder { border-top: 0; padding-top: .4rem; }
/* The panel sits on the lower edge of the navy KV band */
.finder.overlap { position: relative; z-index: 2; margin-top: -4.8rem; padding-top: 0; }
.finder-panel { padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--rule-strong); border-top: 4px solid var(--ink); border-radius: 6px; background: var(--paper); box-shadow: 0 16px 40px rgba(19, 35, 58, .2); margin-bottom: 1.6rem; }
.finder-panel h2 { font: 600 clamp(1.5rem, 2.6vw, 1.95rem)/1.15 var(--head); margin-bottom: 1rem; }
.picker { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: .7rem; align-items: stretch; }
.field { position: relative; display: grid; align-content: center; min-height: 4rem; padding: .45rem 2.6rem .45rem 1rem; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper); cursor: pointer; }
.field:hover { border-color: var(--ink); }
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 107, 203, .25); }
.field span { font-size: .8rem; color: var(--soft); line-height: 1.3; }
.field select { appearance: none; -webkit-appearance: none; width: 100%; margin: 0; padding: .1rem 0 0; border: 0; background: transparent; color: var(--ink); font: 600 1.08rem/1.35 var(--body); cursor: pointer; text-overflow: ellipsis; }
.field select:focus { outline: none; }
.field::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.finder .picker .finder-go { display: grid; place-items: center; min-height: 4rem; padding-inline: 1.6rem; font-size: 1.02rem; border-radius: 4px; }

/* ---- The ticket. All answers are in the HTML; with JavaScript only the selected ticket is shown ---- */
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem; background: var(--ticket); border: 1px solid var(--ticket-edge); border-radius: 4px; position: relative; }
.js .ticket { display: none; }
.js .ticket.on { display: grid; }
.ticket + .ticket, .answer-group + .answer-group { margin-top: 1rem; }
.ticket-main { padding: 1.35rem 1.5rem 1.3rem; }
.ticket-title { font-size: 1rem; font-weight: 600; margin-bottom: .7rem; }
.js .ticket-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ticket-stub { padding: 1.35rem 1.15rem; border-left: 2px dashed var(--ticket-edge); display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; }
.ticket::before, .ticket::after { content: ""; position: absolute; right: calc(10.5rem - .55rem); width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--page); border: 1px solid var(--ticket-edge); }
.ticket::before { top: -.6rem; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -.6rem; clip-path: inset(0 0 50% 0); }
.ticket dl { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem 1.2rem; }
.ticket dt { color: var(--ticket-label); font-size: .86rem; padding-top: .2rem; }
.ticket dd { font-size: 1.02rem; }
.ticket dd.answer { font: 600 1.45rem/1.25 var(--head); }
.ticket dd.answer mark { background: var(--exit); color: var(--ink); padding: .05rem .35rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ticket-source { margin-top: 1.1rem; padding-top: .75rem; border-top: 1px solid var(--ticket-edge); font-size: .84rem; color: var(--ticket-label); }
.ticket-source a { color: inherit; }
.stub-date { font: 600 1.7rem/1.05 var(--narrow); font-variant-numeric: tabular-nums; }
.stub-event { font-size: .9rem; line-height: 1.3; margin-top: .25rem; }
.stub-ride { font-size: .84rem; color: var(--ticket-label); line-height: 1.35; }
.stub-ride b { display: block; font: 600 1.3rem/1.1 var(--narrow); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ticket.reprint { animation: reprint .32s ease-out; }
  @keyframes reprint { from { transform: translateY(-.4rem); opacity: .2; } to { transform: none; opacity: 1; } }
}

/* ---- Hotel list grouped by way of staying, rows like a timetable ---- */
.hotel-group + .hotel-group { margin-top: 3.4rem; }
.hotel-group.pick { box-shadow: inset 4px 0 0 var(--exit); padding-left: 1.1rem; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 2px solid var(--ink); }
.group-head h3 { font: 600 1.45rem/1.2 var(--head); }
.group-st { font: 400 .9rem/1.2 var(--body); color: var(--soft); margin-left: .7rem; }
/* Visually hidden text for search engines and screen readers (e.g. brackets around the stations in a heading) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* The badge sits on its own line under the group title, so long ticket names do not squeeze the title */
.group-head { flex-wrap: wrap; }
.fits { order: 3; flex: 0 1 auto; width: fit-content; max-width: 100%; margin-top: .35rem; background: var(--exit); color: var(--ink); font-size: .84rem; font-weight: 600; padding: .25rem .65rem; border-radius: 2px; text-align: left; }
.group-head h3 { flex: 1 1 100%; }
.hotel-group:not(.pick) .fits { display: none; }
.group-note { font-size: .92rem; color: var(--muted); margin: .7rem 0 .2rem; max-width: 64ch; }
/* Timetable rows: walking time on the left like a departure time, then the hotel, then where to book */
.row { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; gap: .4rem 1.4rem; align-items: start; padding: 1.25rem .75rem; border-bottom: 1px solid var(--rule); transition: background-color .15s ease; }
.row:hover, .row.hot { background: var(--hover); }
.r-time { display: grid; align-content: start; padding-top: .1rem; }
.r-time b { font: 600 2.3rem/1 var(--narrow); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.r-time b small { margin-left: .15rem; font: 500 .95rem/1 var(--body); }
.r-time span { margin-top: .35rem; font-size: .76rem; line-height: 1.35; color: var(--soft); }
.r-time.none b { color: var(--soft); }
.r-time.direct b { font: 600 1.45rem/1.15 var(--body); padding-top: .25rem; }
.r-main h4 { font-size: 1.28rem; font-weight: 600; line-height: 1.3; }
.r-main .sub { display: block; margin-top: .1rem; font-size: .85rem; color: var(--soft); }
.r-type { margin-top: .5rem; font-size: .9rem; color: var(--ink); }
.r-more { margin-top: .25rem; font-size: .85rem; color: var(--muted); }
.row .fit { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
.row .fit span { margin-right: .5rem; color: var(--soft); }
.row .fit span::after { content: "："; }
html[lang="en"] .row .fit span::after { content: ":"; }
html[lang="ko"] .row .fit span::after, html[lang="zh-hant"] .row .fit span::after { content: "："; }
.row .book { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; align-self: center; }
@media (prefers-reduced-motion: no-preference) {
  .row.flash { animation: flash 1.2s ease-out; }
  @keyframes flash { from { background: #cfdbe7; } to { background: var(--hover); } }
}

/* ---- Map beside the hotel list (wide screens) or under "Show map" (small screens) ---- */
.map-toggle { margin: 0 0 1.1rem; }
.no-js .map-wrap, .map-wrap { display: none; }
.js .map-wrap.open { display: block; margin: 0 0 1.4rem; }
.map { height: 62vh; min-height: 320px; border-radius: 4px; overflow: hidden; background: var(--tint); border: 1px solid var(--rule); }
.map-note { margin-top: .5rem; font-size: .82rem; color: var(--soft); }
.hotels-split { display: flex; flex-direction: column; }
.hotels-split .map-wrap { order: -1; }
@media (min-width: 75rem) {
  .hotels-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 2.2rem; align-items: start; }
  .hotels-split .map-wrap { order: 0; }
  section .map-toggle.map-toggle { display: none; } /* stronger than the shared button rule */
  .js .map-wrap { display: block; position: sticky; top: calc(var(--header-h) + 1rem); margin: 0; }
  .map { height: calc(100vh - var(--header-h) - 4rem); }
  .hotels-split .row { grid-template-columns: 6.2rem minmax(0, 1fr); }
  .hotels-split .row .book { grid-column: 2; justify-content: flex-start; margin-top: .35rem; }
}
.pin { font: 600 .8rem/1 var(--body); white-space: nowrap; }
.pin-hotel { padding: .34rem .5rem; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; box-shadow: 0 1px 3px rgba(19, 35, 58, .28); cursor: pointer; }
.pin-hotel.dot { width: .95rem; height: .95rem; padding: 0; border-radius: 50%; }
/* MapLibre moves markers with transform, so the highlight changes colour and shadow only */
.pin-hotel:hover, .pin-hotel.hot { background: var(--ink); color: var(--sign-text); z-index: 3; box-shadow: 0 0 0 3px rgba(19, 35, 58, .22), 0 2px 6px rgba(19, 35, 58, .35); }
.pin-hotel:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pin-hotel.dim { opacity: .4; }
.pin-venue { padding: .42rem .65rem .38rem; background: var(--sign); color: var(--sign-text); border-bottom: 3px solid var(--line); border-radius: 2px; font-size: .88rem; z-index: 2; }
.pin-station { padding: .28rem .45rem .28rem .4rem; background: var(--paper); color: var(--ink); border-left: 4px solid var(--line); border-radius: 2px; box-shadow: 0 1px 2px rgba(19, 35, 58, .25); font-weight: 500; }

/* ---- Route diagram: a real sequence, so it is an ordered list ---- */
.route { display: grid; margin-top: .5rem; }
.route li { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; align-items: center; }
.route .stop { min-height: 1.7rem; }
.route .ride, .route .walk { min-height: 3.2rem; }
.route .stop::before { content: ""; justify-self: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); z-index: 1; }
.route .stop.venue::before { border-radius: 2px; background: var(--ink); }
.route .ride::before, .route .walk::before { content: ""; justify-self: center; align-self: stretch; width: .45rem; margin-block: -.3rem; background: var(--line); }
.route .walk::before { width: 0; border-left: 3px dotted var(--ink); background: none; }
.route .name { font-weight: 600; }
.route .name span { font-weight: 400; color: var(--soft); margin-left: .4rem; }
.route .leg { font-size: .92rem; color: var(--muted); }
.route-note { margin-top: 1rem; font-size: .92rem; color: var(--muted); max-width: 66ch; }
@media (min-width: 46rem) {
  .route { display: flex; align-items: flex-start; }
  .route .stop, .route .ride, .route .walk { grid-template-columns: none; grid-template-rows: 1.4rem auto; justify-items: center; text-align: center; min-height: 0; gap: .5rem; }
  .route .stop { flex: none; max-width: 12rem; }
  .route .ride, .route .walk { flex: 1 1 0; }
  .route .ride::before, .route .walk::before { width: calc(100% + 1rem); height: .45rem; margin: 0 -.5rem; align-self: center; justify-self: stretch; }
  .route .walk::before { height: 0; border-left: 0; border-top: 3px dotted var(--ink); }
  .route .name span { display: block; margin: 0; }
  .route .leg { padding-inline: .5rem; }
}

/* ---- Organizer note, sources, stamp ---- */
.note { padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--ink); max-width: 64ch; }
.sources { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: start; }
.sources ul { columns: 2 18rem; column-gap: 2rem; }
.sources li { font-size: .9rem; padding: .25rem 0; break-inside: avoid; }
.stamp { width: 6.4rem; height: 6.4rem; flex: none; border: 2px solid var(--stamp); border-radius: 50%; color: var(--stamp); display: grid; place-content: center; text-align: center; transform: rotate(-8deg); font-size: .8rem; line-height: 1.25; }
.stamp b { display: block; font: 600 1.1rem/1.1 var(--narrow); }

/* ---- FAQ: questions open and close; answers stay in the HTML ---- */
/* Blocks with rules or frames span the full content width; only running text keeps a reading measure */
.faq { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.05rem .75rem; transition: background-color .15s ease; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--rule-strong);
  background: linear-gradient(var(--ink), var(--ink)) center / .7rem 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px .7rem no-repeat; }
.qa[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / .7rem 1.5px no-repeat; }
.qa summary:hover { background: var(--hover); }
.qa summary:hover::after { border-color: var(--ink); background-color: var(--ink);
  background-image: linear-gradient(var(--sign-text), var(--sign-text)), linear-gradient(var(--sign-text), var(--sign-text)); }
.qa[open] summary:hover::after { background-image: linear-gradient(var(--sign-text), var(--sign-text)), none; }
.qa h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.45; }
.qa p { max-width: calc(72ch + 1.5rem); padding: 0 .75rem 1.2rem; color: var(--muted); }

/* ---- Footer: links to every main page, for readers, search engines and AI crawlers ---- */
footer { padding-block: 2.8rem 2.6rem; font-size: .9rem; color: var(--muted); background: var(--tint); border-top: 1px solid var(--rule); }
.fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.5rem 2rem; }
.fbrand p { margin-top: .7rem; max-width: 24ch; }
.fcol { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.fcol .fhead { color: var(--ink); font-weight: 600; margin-bottom: .2rem; }
.fcol a { color: var(--muted); text-decoration: none; }
.fcol a:hover { color: var(--ink); text-decoration: underline; }
.fcopy { margin-top: 2rem; font-size: .82rem; }

/* ---- Publisher ---- */
.person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.person p { max-width: 72ch; }
.person img { width: 160px; height: 160px; border-radius: 3px; object-fit: cover; background: #dfe5ea; }
.person .pname { font: 600 1.5rem/1.2 var(--head); }
.person .prole { color: var(--soft); margin: .25rem 0 .7rem; }
.plinks { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .8rem; }
.company { display: grid; grid-template-columns: 12rem minmax(0, 1fr); border-top: 1px solid var(--rule-strong); }
.company dt, .company dd { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.company dt { color: var(--soft); font-size: .9rem; }

/* ---- Root page board ---- */
.board-wrap { background: #0f1b2d; color: #f4f6f8; padding-block: 2.6rem 2.8rem; }
.board-wrap h1 { font: 600 clamp(2.1rem, 6vw, 3.6rem)/1.02 var(--head); max-width: 16ch; text-wrap: balance; }
.board-wrap .lead { margin-top: .9rem; color: #c9d4df; max-width: 46ch; }
.locales { margin-top: 1.6rem; border-top: 1px solid #2b3a50; }
.locale { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: .3rem 1.2rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid #2b3a50; }
.locale h2 { font: 600 1.25rem/1.2 var(--narrow); }
.locale h2 a { color: #f4f6f8; }
.locale p { color: #b9c6d3; }
.locale ul { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .92rem; }
.locale ul a { color: var(--sign-text); }
.locale[lang="ja"] h2, .locale[lang="zh-hant"] h2, .locale[lang="ko"] h2 { font-family: inherit; font-weight: 700; font-size: 1.1rem; }

/* ---- Top: venue photos change behind the concept line (no rotation when reduced motion is preferred) ---- */
.hero { position: relative; display: grid; align-items: end; min-height: clamp(380px, 56vh, 520px); padding: 0; border-top: 0; background: #0f1b2d; color: #f4f6f8; overflow: hidden; }
.hero.no-photo { min-height: 0; }
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.on { opacity: 1; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Light gradient: enough for the text on the left, the photo stays visible */
.slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 27, 45, .74) 0%, rgba(15, 27, 45, .42) 38%, rgba(15, 27, 45, 0) 70%),
              linear-gradient(0deg, rgba(15, 27, 45, .4) 0%, rgba(15, 27, 45, 0) 38%); }
.slide figcaption { position: absolute; z-index: 1; right: clamp(1rem, 4vw, 2.5rem); bottom: 1.3rem; display: grid; padding: .5rem .85rem .55rem; background: var(--sign); border-bottom: 4px solid var(--line); border-radius: 2px; }
.slide .cap-k { font: 700 1.1rem/1.15 var(--ja); letter-spacing: .04em; }
.slide .cap-r { font-size: .78rem; color: var(--sign-sub); }
.hero-text { position: relative; z-index: 1; width: 100%; padding-block: 2.6rem 2.8rem; }
.hero h1 { font: 600 clamp(2.3rem, 5.6vw, 3.8rem)/1.02 var(--head); max-width: 14ch; text-wrap: balance; text-shadow: 0 1px 12px rgba(15, 27, 45, .35); }
.hero .lead { margin-top: .9rem; color: #e6edf3; max-width: 44ch; text-shadow: 0 1px 8px rgba(15, 27, 45, .45); }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.cta a { padding: .65rem 1.1rem; font-size: 1rem; }

/* ---- Top section 2: upcoming events as a large departure board ---- */
.events { background: #0f1b2d; color: #f4f6f8; padding-block: 3.4rem 3.8rem; border-top: 0; }
.events h2 { font: 600 clamp(1.8rem, 3.6vw, 2.5rem)/1.1 var(--head); margin-bottom: 1.4rem; }
.events .section-lead { color: #b9c6d3; }
.ev-month { margin-top: 2rem; }
.ev-month h3 { font: 600 .95rem/1.3 var(--body); color: #8ea0b3; padding-bottom: .5rem; border-bottom: 1px solid #3a4b63; }
.ev { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: .4rem 1.4rem; align-items: center; padding: 1.2rem .5rem; border-bottom: 1px solid #22324a; color: #f4f6f8; text-decoration: none; }
.ev { transition: background-color .15s ease; }
.ev:hover { background: #1c2e48; }
.ev-date { font: 600 1.55rem/1.1 var(--narrow); color: var(--sign-text); font-variant-numeric: tabular-nums; }
.ev-name { display: block; font: 600 1.4rem/1.25 var(--head); }
.ev-meta { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin-top: .3rem; color: #b9c6d3; font-size: .92rem; }


/* ---- Top section 3: venues as photo cards, name over a gradient ---- */
.area + .area { margin-top: 2rem; }
.area-h { font: 600 .95rem/1.3 var(--body); color: var(--soft); margin-bottom: .7rem; }
.venue-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.2rem; }
.venue-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--sign); color: var(--sign-text); text-decoration: none; border-bottom: 5px solid var(--line); }
.venue-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.venue-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 27, 45, .9) 0%, rgba(15, 27, 45, .6) 36%, rgba(15, 27, 45, 0) 68%); }
.venue-card.no-photo::after { display: none; }
.vc-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; padding: 1.2rem 1.3rem 1.05rem; }
.vc-k { font: 700 2.15rem/1.05 var(--ja); letter-spacing: .05em; }
.vc-r { margin-top: .2rem; font-weight: 500; }
.vc-facts { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin-top: .6rem; font-size: .86rem; color: #d3dde7; }
@media (prefers-reduced-motion: no-preference) { .venue-card:hover img { transform: scale(1.04); } }

/* ---- How it works: numbered like platform signs (a real sequence) ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: var(--ink); color: var(--sign-text); border-radius: 3px; font: 600 1.45rem/1 var(--narrow); }
.steps b { display: block; font-size: 1.12rem; line-height: 1.35; padding-top: .3rem; }
.steps span { display: block; margin-top: .35rem; color: var(--muted); font-size: .95rem; }

/* ---- How we check: a check slip with real counts, stamped in the corner ---- */
.slip { position: relative; padding: 1.4rem 1.6rem 1.2rem; background: var(--paper); border: 1px solid var(--rule-strong); border-left: 6px solid var(--ink); border-radius: 2px; }
.slip dl { display: grid; grid-template-columns: 13rem minmax(0, 1fr); }
.slip dt, .slip dd { padding: .7rem 0; border-bottom: 1px dashed var(--rule-strong); }
.slip dt:last-of-type, .slip dd:last-of-type { border-bottom: 0; }
.slip dt { color: var(--soft); font-size: .9rem; padding-right: 1rem; }
.slip dd { font-weight: 500; padding-right: 6.5rem; }
.slip .stamp { position: absolute; right: 1.4rem; top: 1.1rem; background: rgba(255, 255, 255, .85); }
.more { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.6rem; }

/* ---- About and privacy ---- */
.legal section p { max-width: 72ch; }
.legal section.first { border-top: 0; padding-top: .5rem; }
.legal section p + p { margin-top: .9rem; }
.legal section > h2 { font-size: 1.45rem; margin-bottom: .9rem; }

/* ---- Japanese, Traditional Chinese and Korean: same system, CJK typesetting
   (no condensed face for headings, roomier line height) ---- */
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) body { font-size: 1rem; line-height: 1.85; }
/* 日本語の見出しを語の途中で折り返さない（Chromeは文節で折り返す。ほかのブラウザは句読点で折り返す） */
html[lang="ja"] :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
@supports (word-break: auto-phrase) { html[lang="ja"] :is(h1, h2, h3) { word-break: auto-phrase; } }
/* 韓国語は語の途中で折り返さず、空白で折り返す（韓国語の組版の慣習） */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) :is(h1, h2, .group-head h3, .row h4, .ev-name, .steps b) { font-weight: 700; letter-spacing: .02em; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) :is(.head h1, .vk-text h1) { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.35; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .board-wrap h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); max-width: 14em; line-height: 1.3; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) :is(section > h2, .band .wrap > h2) { font-size: clamp(1.45rem, 2.6vw, 1.75rem); line-height: 1.4; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .group-head h3 { font-size: 1.2rem; line-height: 1.4; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .row h4 { font-size: 1.2rem; line-height: 1.45; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .ticket dd.answer { font-size: 1.15rem; line-height: 1.6; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .stub-date { font-size: 1.12rem; white-space: nowrap; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .stub-ride b { font: 700 1.1rem/1.3 var(--body); }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .stamp b { font-size: 1rem; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); max-width: 14em; line-height: 1.3; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .events h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.35; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .ev-date { font: 700 1.15rem/1.3 var(--body); }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .ev-name { font-size: 1.2rem; line-height: 1.45; }
html:is([lang="ja"], [lang="zh-hant"], [lang="ko"]) .qa h3 { font-size: 1.02rem; }

/* ---- Tablet and phone ---- */
@media (max-width: 60rem) {
  .vk-inner { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 1.6rem 2rem; }
  .venue-kv.has-photo::before { background: linear-gradient(0deg, rgba(19, 35, 58, .96) 0%, rgba(19, 35, 58, .85) 55%, rgba(19, 35, 58, .45) 100%); }
  .venue-kv.has-finder .vk-inner { padding-bottom: 5.6rem; }
  .vk-sign { order: -1; justify-self: start; width: auto; min-width: 15rem; padding-top: .8rem; }
  .vk-sign .sp-k { font-size: min(2.1rem, calc(15rem / (var(--chars, 4) * 1.1))); }
}
@media (max-width: 48rem) {
  .bar { flex-wrap: wrap; gap: .3rem .8rem; padding-block: .5rem .35rem; }
  .main-nav { order: 3; width: 100%; margin: 0 -.35rem; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: .4rem .55rem; font-size: .9rem; }
  .lang-menu { margin-left: auto; }
  :root { --header-h: 6rem; }
}
@media (max-width: 40rem) {
  section { padding-block: 2.4rem; }
  .band { padding-block: 2.8rem; }
  .row { grid-template-columns: 4.6rem minmax(0, 1fr); gap: .4rem 1rem; padding-right: 0; }
  .r-time b { font-size: 1.9rem; }
  .row .book { grid-column: 1 / -1; justify-content: flex-start; margin-top: .3rem; }
  .row .book a { font-size: .86rem; padding: .45rem .65rem; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--ticket-edge); flex-direction: row; flex-wrap: wrap; }
  .ticket::before, .ticket::after { display: none; }
  .ticket dl { grid-template-columns: 1fr; gap: .15rem; }
  .ticket dd { margin-bottom: .6rem; }
  .group-head { flex-wrap: wrap; }
  .group-st { display: block; margin: .2rem 0 0; }
  .vk-strip { flex-direction: column; font-size: .88rem; }
  .vk-strip span { padding: .45rem 0 0; }
  .vk-strip span + span { padding: .2rem 0 0; border-left: 0; }
  .finder.overlap { margin-top: -4rem; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
  .person { grid-template-columns: 1fr; }
  .person img { width: 120px; height: 120px; }
  .company { grid-template-columns: 1fr; }
  .company dt { padding-bottom: 0; border-bottom: 0; }
  .hero { min-height: 520px; }
  .slide::after { background: linear-gradient(0deg, rgba(15, 27, 45, .88) 0%, rgba(15, 27, 45, .55) 48%, rgba(15, 27, 45, .05) 100%); }
  .slide figcaption { top: 1rem; bottom: auto; right: 1rem; }
  .hero-text { padding-block: 2rem 2.2rem; }
  .ev { grid-template-columns: 1fr; gap: .3rem; padding: 1.05rem .2rem; }
  .ev-go { justify-self: start; margin-top: .45rem; }
  .venue-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.3rem; }
  .locale { grid-template-columns: 1fr; }
  .sources { grid-template-columns: 1fr; }
  .qa p { padding-right: 0; }
  .finder-panel { padding: 1.1rem 1rem 1.1rem; border-width: 2px; }
  .picker { grid-template-columns: 1fr; }
  .finder-go { min-height: 3.2rem; }
  .slip { padding: 1.1rem 1.1rem 1rem; }
  .slip dl { grid-template-columns: 1fr; }
  .slip dt { padding: .7rem 0 0; border-bottom: 0; }
  .slip dd { padding: .1rem 0 .7rem; padding-right: 0; }
  .slip dd:first-of-type { padding-right: 6rem; }
  .slip .stamp { width: 5.2rem; height: 5.2rem; right: .9rem; top: .9rem; font-size: .72rem; }
}
