:root {
  color-scheme: light;
  --g: #E9E4D6;
  --a: #1D1D1B;
  --a2: #E23D28;
  --at: #A22A1B;
  --ink: var(--a);
  --on: #FFF9EC;
  --paper: #F8F3E7;
  --board: #DDD5C3;
  --panel: var(--paper);
  --rule: #6C6254;
  --muted: #575045;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--g); color: var(--ink); font: 1rem/1.75 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul { margin: 0; }
ul { padding-inline-start: 1.4em; }
a { color: var(--a); text-underline-offset: .25em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--a); outline-offset: 5px; }
h1, h2, h3 { font-weight: 900; line-height: 1.16; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); letter-spacing: -.04em; }
h3 { font-size: 1.25rem; }
p + p, h2 + p, h2 + ul, h2 + table, h3 + p, ul + p { margin-top: 1rem; }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; top: .5rem; left: .5rem; width: auto; height: auto; z-index: 3; padding: .65rem 1rem; background: var(--board); }
.site-header { border-bottom: 1px solid var(--rule); }
.site-header-inner, .site-footer-inner, main { width: min(100% - 64px, 1328px); margin-inline: auto; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 68px; }
.site-logo { font-size: 1.15rem; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.site-logo::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-inline-end: .65em; vertical-align: .16em; background: var(--a2); border-radius: 50%; }
.site-header a { text-decoration: none; }
.site-nav ul, .site-footer ul { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.75rem, 2.2vw, 2rem); list-style: none; padding: 0; }
.site-nav a { display: block; color: var(--ink); font-size: .875rem; font-weight: 700; }
.site-nav a:hover, .site-nav [aria-current] { color: var(--a); }
.site-nav a[href="/contact/"] { padding: .35rem 1.1rem; color: var(--on); background: var(--a); border-radius: 4px; }
.site-footer { margin-top: 5rem; padding-block: 2rem; background: var(--board); border-top: 4px double var(--rule); }
.site-footer a, .site-footer p { font-size: .875rem; }
.site-footer p { margin-top: 1.25rem; color: var(--muted); }

.home { padding-top: 1.35rem; }
.board {
  position: relative;
  overflow: hidden;
  padding: clamp(.65rem, 2vw, 1.7rem);
  border: 7px double var(--a);
  border-radius: 4px;
  background: var(--board);
  box-shadow: inset 0 0 0 4px var(--g);
}
.board h1 { font-size: clamp(4.5rem, 9.8vw, 8.75rem); line-height: 1; }
.flip-word {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: clamp(3px, .7vw, 11px);
}
.flip-tile {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 1.25em;
  border-radius: 4px;
  color: var(--on);
  background: var(--a);
  box-shadow: 0 3px 0 var(--rule);
  perspective: 700px;
}
.flip-tile > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--a);
  animation: flip-settle .49s calc(.08s + var(--slot) * .14s) cubic-bezier(.25,.62,.27,1) both;
}
.flip-tile::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: var(--a);
  box-shadow: 0 -1px 0 rgb(255 249 236 / .24);
  pointer-events: none;
}
@keyframes flip-settle {
  0% { transform: rotateX(-90deg); }
  65% { transform: rotateX(19deg); }
  83% { transform: rotateX(-6deg); }
  100% { transform: rotateX(0); }
}
.ticker { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--rule); border-top: 0; color: var(--a); background: var(--board); font: 700 .875rem/2.15 var(--mono); }
.ticker-label { flex: none; color: var(--on); background: var(--a); padding-inline: 1rem; }
.ticker-window { overflow: hidden; }
.ticker-track { display: flex; width: max-content; white-space: nowrap; animation: ticker 22s linear infinite; }
.ticker-track span { padding-inline-start: 1.25rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.23fr) minmax(0, 1fr); gap: clamp(.9rem, 2vw, 2.1rem); align-items: start; padding-block: clamp(1.35rem, 3vw, 2.75rem); }
.hero-copy { align-self: center; }
.bulletin { display: inline-block; padding: .06em .35em .12em; color: var(--on); background: var(--at); font-size: clamp(2rem, 4.3vw, 4rem); font-weight: 900; line-height: 1.15; letter-spacing: .08em; border-radius: 4px; }
.hero-copy > p:nth-child(2) { max-width: 28rem; font-weight: 700; line-height: 1.85; }
.cta { margin-top: 1.35rem; }
.cta-button, button[type="submit"] {
  display: inline-block;
  border: 2px solid var(--a);
  border-radius: 4px;
  background: var(--a);
  color: var(--on);
  box-shadow: 4px 4px 0 var(--rule);
  padding: .72rem 1.2rem;
  font: 900 1rem/1.5 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.cta-button:hover, button[type="submit"]:hover, .round-button:hover { background: var(--ink); color: var(--on); }
.hero-art { position: relative; align-self: center; }
.hero-art img { width: 100%; object-fit: contain; }
.hero-art figcaption { position: absolute; inset: auto 0 0 auto; padding: .16rem .55rem; color: var(--muted); background: var(--g); border: 1px solid var(--rule); font-size: .75rem; }
.dispatch { min-width: 0; border: 4px double var(--rule); border-radius: 4px; background: var(--board); }
.dispatch-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .85rem; border-bottom: 1px solid var(--rule); color: var(--a); font: 700 .875rem/1.5 var(--mono); }
.bell { position: relative; display: block; width: 22px; height: 19px; margin-block: 2px 4px; border-radius: 55% 55% 18% 18%; background: var(--a); transform-origin: 50% 0; pointer-events: none; }
.bell::after { content: ""; position: absolute; left: 8px; bottom: -4px; width: 6px; height: 5px; background: var(--a); border-radius: 0 0 50% 50%; }
.bell.ring { animation: ring .65s ease-out; }
@keyframes ring {
  20% { transform: rotate(18deg); }
  40% { transform: rotate(-18deg); }
  60% { transform: rotate(11deg); }
  80% { transform: rotate(-6deg); }
  100% { transform: rotate(0); }
}
.notice-stack, .sample-notices { list-style: none; padding: 0; }
.notice-stack { display: grid; gap: 4px; overflow: hidden; padding: .5rem; }
.notice-stack li, .sample-notices li { border: 1px solid var(--rule); border-inline-start: 4px solid var(--a); border-radius: 4px; padding: .35rem .55rem; color: var(--ink); background: var(--panel); font-weight: 800; }
.notice-stack li { font-size: .875rem; }
.notice-stack li.arrive { animation: latch .4s cubic-bezier(.2,.7,.22,1) both; }
.notice-stack li.shift { animation: shift .35s ease-out both; }
@keyframes latch { from { transform: translateY(-.85rem); opacity: .55; } 77% { transform: translateY(2px); } to { transform: translateY(0); opacity: 1; } }
@keyframes shift { from { transform: translateY(-.5rem); } to { transform: translateY(0); } }

.mascot { display: flex; align-items: center; gap: .65rem; }
.mascot-art { position: relative; flex: none; width: 170px; }
.mascot-art img { width: 100%; }
.mascot figcaption { position: relative; max-width: 22rem; padding: .65rem .8rem; background: var(--paper); color: var(--ink); border-radius: 4px; font-size: .875rem; line-height: 1.55; }
.mascot figcaption::before { content: ""; position: absolute; inset: 48% auto auto -7px; border-block: 6px solid transparent; border-right: 8px solid var(--paper); }
.station-agent { align-items: center; padding: .25rem .55rem .65rem; }
.station-agent .mascot-art { width: clamp(104px, 12vw, 170px); }
.station-agent figcaption { padding: .5rem; }
.signal-flag { position: absolute; inset: 48% auto auto 88%; width: 4px; height: 43px; background: var(--a); transform-origin: 50% 100%; transform: rotate(8deg); pointer-events: none; }
.signal-flag::before { content: ""; position: absolute; left: 3px; width: 22px; height: 16px; background: var(--a2); clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%); }
.signal-flag.wave { animation: flag .33s ease-in-out 2; }
@keyframes flag { 35% { transform: rotate(-16deg) translateY(-3px); } 70% { transform: rotate(21deg); } }

.home-section { border-top: 4px double var(--rule); padding-block: clamp(1.75rem, 4vw, 3.5rem); }
.home-section h2 { color: var(--a); }
.service-section { display: grid; grid-template-columns: minmax(14rem, .7fr) minmax(0, 1.3fr); gap: .8rem 2rem; }
.service-section h2 { grid-row: span 2; }
.service-sample { grid-column: 1 / -1; }
.service-section p { margin: 0; }
.service-section .sample-label { margin-top: 1.25rem; font: 700 .875rem/1.5 var(--mono); }
.sample-notices { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.sample-notices li { padding: .7rem 1rem; }
.audience-section { background: var(--panel); padding-inline: clamp(1rem, 3vw, 2.5rem); border-inline: 1px solid var(--rule); }
.price-list { list-style: none; padding: 0; }
.price-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem 1.5rem; padding: clamp(1rem, 3vw, 2rem); border: 4px double var(--rule); border-radius: 4px; background: var(--board); }
.price-card > * { grid-column: 1; margin: 0; }
.price-card .price { font-size: clamp(1.3rem, 4.4vw, 3.2rem); font-weight: 900; color: var(--a); overflow-wrap: anywhere; }
.round-button { grid-column: 2; grid-row: 1 / span 4; display: grid; place-items: center; width: clamp(6rem, 14vw, 9rem); aspect-ratio: 1; padding: .5rem; border: 6px double var(--rule); border-radius: 50%; background: var(--a); color: var(--on); font-size: .875rem; font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none; }
.departures { width: 100%; border-collapse: collapse; background: var(--board); }
.departures :is(th, td) { border: 1px solid var(--rule); padding: .7rem clamp(.65rem, 2vw, 1.25rem); text-align: left; }
.departures th:first-child { width: 5rem; color: var(--a); font-family: var(--mono); }
.departures thead { background: var(--panel); }

.sheet { max-width: 990px; padding-top: clamp(1.5rem, 5vw, 4rem); }
.page-head { border: 6px double var(--rule); border-radius: 4px; background: var(--board); padding: clamp(1rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.5rem, 6.5vw, 5.25rem); color: var(--a); letter-spacing: -.045em; text-wrap: balance; }
.page-head h1 + p { margin-top: 1rem; }
.sheet > section { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--rule); border-top: 4px double var(--rule); border-radius: 4px; background: var(--panel); }
.sheet > section + section { margin-top: 1rem; }
.sheet section h2 { color: var(--a); }
.sheet li + li { margin-top: .25rem; }
.sheet li, .records td { overflow-wrap: anywhere; }
.vending .vending-panel { border-width: 6px; border-style: double; background: var(--board); }
.vending-panel .price-card { background: var(--panel); }
.panel-label, .blog-date, .status {
  font: 700 .875rem/1.4 var(--mono);
  color: var(--a);
}
.panel-label, .status { width: fit-content; padding: .25rem .65rem; border: 1px solid var(--rule); border-radius: 4px; }
.panel-label + h2 { margin-top: .8rem; }
.notice { border-inline-start: 4px solid var(--a); padding-inline-start: .8rem; }
.counter-guide { margin-block: 1rem 0; border-bottom: 4px double var(--rule); }
.counter-guide .mascot-art { width: 110px; }
form { margin-block: 1rem; }
.form-field { display: grid; grid-template-columns: minmax(10rem, .4fr) minmax(0, 1fr); gap: .5rem 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
label { font-weight: 800; }
.required { margin-inline-start: .35rem; padding: .15rem .35rem; border-radius: 4px; background: var(--at); color: var(--on); font-size: .75rem; }
input, select, textarea { width: 100%; min-width: 0; padding: .65rem .75rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--board); color: var(--ink); font: inherit; }
select { appearance: none; padding-inline-end: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--a) 50%), linear-gradient(135deg, var(--a) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { resize: vertical; }
form button { margin-top: 1.1rem; }
.confirmation, .missing { text-align: center; }
.receipt-board { font-size: clamp(2.5rem, 7.5vw, 5.5rem); font-weight: 900; letter-spacing: .065em; line-height: 1.3; white-space: nowrap; }
.thanks-guide, .missing-guide { justify-content: center; margin-block: 1.1rem; text-align: left; }
.thanks-guide .signal-flag { inset: 23% auto auto 80%; transform: rotate(-15deg) translateY(-6px); animation: flag-raise .6s .65s ease-out both; }
@keyframes flag-raise { from { transform: rotate(50deg) translateY(15px); } }
.missing .panel-label { margin-inline: auto; font-size: 1rem; }
.suspended { position: absolute; inset: auto 0 10% auto; background: var(--at); color: var(--on); border: 3px double var(--on); padding: .2rem .55rem; font-weight: 900; pointer-events: none; }
.faq-item { border-bottom: 1px solid var(--rule); padding: .9rem 0; }
.faq-item summary { color: var(--a); cursor: pointer; }
.faq-item summary span { display: inline; color: var(--ink); font-size: clamp(1.05rem, 2.5vw, 1.5rem); letter-spacing: normal; font-weight: 900; }
.faq-item p { padding: .7rem 0 0 1.2rem; }
.blog-list { list-style: none; padding: 0; border-top: 4px double var(--rule); margin-top: .6rem; }
.blog-list li { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: .65rem 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--rule); background: var(--board); }
.blog-list li > p:last-child { grid-column: 2 / -1; margin: 0; }
.article { max-width: 46rem; }
.article section > :is(h2, p) { max-width: 42ic; }
.article .blog-date { margin-bottom: .85rem; }
.article section { line-height: 1.9; }
.article section h2:not(:first-child) { margin-top: 2rem; }
.article > p { margin-top: 1rem; }
.records .page-head { background: var(--panel); }
.records table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.records th, .records td { border-bottom: 1px solid var(--rule); padding: .7rem clamp(.35rem, 2vw, 1rem); text-align: left; vertical-align: top; }
.records th { width: 31%; color: var(--a); overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-art { grid-column: 1; grid-row: 2; }
  .dispatch { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .site-header-inner, .site-footer-inner, main { width: calc(100% - 28px); }
  .site-header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: .35rem; padding-block: .55rem; }
  .site-nav ul { column-gap: clamp(.55rem, 3vw, 1rem); }
  .site-nav a[href="/contact/"] { padding: .16rem .6rem; }
  .home { padding-top: .8rem; }
  .board { padding: .45rem .65rem .65rem; border-width: 5px; }
  .board h1 { font-size: clamp(1.6rem, 10.25vw, 4rem); }
  .ticker-label { padding-inline: .6rem; }
  .hero { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.1rem 1.65rem; }
  .hero-copy, .hero-art, .dispatch { grid-column: auto; grid-row: auto; }
  .hero-copy > p:nth-child(2) { margin-top: .55rem; }
  .hero-art { order: 3; }
  .hero-art img { max-height: 290px; }
  .bulletin { font-size: 2rem; }
  .station-agent .mascot-art, .mascot-art { width: 124px; }
  .station-agent { padding-block: 0 .45rem; }
  .counter-guide .mascot-art { width: 86px; }
  .service-section { display: block; }
  .service-section p { margin-top: .7rem; }
  .form-field { grid-template-columns: minmax(0, 1fr); }
  .blog-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .blog-list li > p:last-child { grid-column: 1 / -1; }
  .blog-list h2 { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The cream fascia, black flaps and stacked paper slips share the same frame. */
.site-header { border-bottom: 4px double var(--rule); }
.site-logo::before { border-radius: 1px; transform: rotate(-8deg); }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
.site-nav a[href="/contact/"] { color: var(--on); }
.cta-button:hover, button[type="submit"]:hover, .round-button:hover { background: var(--at); }
.ticker-label { background: var(--at); }
.bulletin { background: var(--a2); color: var(--a); }
.hero-copy > p:nth-child(2) { margin-top: 1rem; }
.hero-art { border: 1px solid var(--rule); background: var(--g); }
.hero-art figcaption { inset: auto 0 0 auto; border-width: 1px 0 0 1px; }
.dispatch-head { border-bottom: 4px double var(--rule); }
.bell, .bell::after { background: var(--a2); }
.notice-stack .diff-card, .sample-notices .diff-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-height: 3.45rem;
  border-inline-start: 1px solid var(--rule);
  padding: .35rem .7rem;
}
.diff-pair { position: relative; width: 6.4rem; height: 2.6rem; }
.diff-pair span {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  width: 4.65rem;
  height: 1.65rem;
  padding-inline: .32rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--g);
  font: 700 .69rem/1 var(--mono);
}
.diff-before { inset: 0 auto auto 0; }
.diff-pair .diff-after { inset: auto 0 0 auto; background: var(--paper); }
.diff-pair i {
  width: 2.3rem;
  height: .82rem;
  background: repeating-linear-gradient(0deg, transparent 0 3px, var(--rule) 3px 4px);
}
.diff-after i {
  border: 2px solid var(--a2);
  background: linear-gradient(var(--rule), var(--rule)) left center / 70% 1px no-repeat;
}
.agent-desk { position: relative; padding-inline-end: 2.15rem; border-top: 4px double var(--rule); }
.agent-desk .signal-flag { inset: auto 1.8rem .9rem auto; }
.station-agent .mascot-art { width: 160px; }
.station-agent figcaption { min-width: 0; overflow-wrap: anywhere; }
.mascot figcaption { border: 1px solid var(--rule); }
.mascot figcaption::before { inset-inline-start: -8px; border-right-color: var(--rule); }
.flow-section .departures { margin-top: 1rem; }
.home-section .price-card { margin-top: 1rem; }
.vending-panel .price-list { margin-top: 1rem; }
.stripe-button { border-color: var(--paper); box-shadow: 0 0 0 2px var(--a2), 0 0 .8rem var(--a2); }
.counter > section:last-child { border: 6px double var(--rule); }
.receipt-board { max-width: 43rem; margin-inline: auto; }
.thanks-guide .mascot-art { width: 180px; }
.thanks-guide .signal-flag { inset: 18% auto auto 94%; }
.thanks-guide figcaption { margin-inline-start: 1rem; }
.missing .suspended { inset: auto -.45rem .2rem auto; }
.records th { vertical-align: top; }

@media (max-width: 600px) {
  .hero-copy > p:nth-child(2) { margin-top: .65rem; }
  .station-agent .mascot-art { width: 120px; }
  .thanks-guide .mascot-art { width: 135px; }
  .price-card { grid-template-columns: minmax(0, 1fr) auto; column-gap: .65rem; }
  .blog-list h2 { grid-row: 2; }
}

/* iori-companion */
.iori-companion{position:fixed;right:16px;bottom:16px;z-index:80;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.iori-companion.iori-hidden{display:none}
.iori-bubble{background:#fff;color:#1c2420;border:1.5px solid #1c2420;border-radius:12px;padding:8px 12px;font-size:12.5px;line-height:1.6;max-width:210px;box-shadow:0 6px 18px rgba(0,0,0,.18);opacity:1;transition:opacity .45s ease;position:relative}
.iori-bubble:after{content:"";position:absolute;right:26px;bottom:-7px;width:12px;height:12px;background:#fff;border-right:1.5px solid #1c2420;border-bottom:1.5px solid #1c2420;transform:rotate(45deg)}
.iori-bubble.iori-fade{opacity:0}
.iori-body{display:block;animation:ioriFloat 3.4s ease-in-out infinite}
.iori-body img{width:84px;height:auto;display:block;filter:drop-shadow(0 8px 14px rgba(0,0,0,.25))}
.iori-close{position:absolute;top:-8px;right:-4px;width:22px;height:22px;border-radius:50%;border:1.5px solid #1c2420;background:#fff;color:#1c2420;font-size:13px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
@keyframes ioriFloat{0%,100%{transform:translateY(0) rotate(-1.2deg)}50%{transform:translateY(-7px) rotate(1.2deg)}}
@media (max-width:640px){.iori-body img{width:62px}.iori-bubble{max-width:168px;font-size:11.5px}}
@media (prefers-reduced-motion:reduce){.iori-body{animation:none}.iori-bubble{transition:none}}
