:root {
  --night: #0E1B2E;
  --predawn: #24344F;
  --alpine: #5E7EA6;
  --dawn: #E8DCCE;
  --snow: #F5F2EC;
  --ink: #1D2733;
  --raicho: #D96C3F;
  --line: #8FA3BD;
  --story: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ui: "Zen Kaku Gothic New", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --page: clamp(1rem, 4vw, 4rem);
  --content: 72rem;
  --reading: 48rem;
  --radius: 1rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--night); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--snow);
  font-family: var(--ui);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; text-underline-offset: .22em; }
button { border: 0; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }

.ambient-background {
  position: fixed;
  z-index: -5;
  inset: 0;
  background: var(--night);
  pointer-events: none;
  will-change: background-color;
}
.site-shell { position: relative; isolation: isolate; overflow: clip; }
.section { position: relative; width: 100%; }
.section-inner { width: min(100%, var(--content)); margin-inline: auto; padding-inline: var(--page); }
.light-section { color: var(--ink); }
.eyebrow {
  margin: 0 0 .9rem;
  color: rgb(245 242 236 / .68);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.light-section .eyebrow { color: rgb(29 39 51 / .62); }
.story-heading {
  margin: 0;
  font-family: var(--story);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.5;
  text-wrap: balance;
}
.note-copy { margin: 0; color: rgb(245 242 236 / .68); font-size: .84rem; line-height: 1.75; }
.light-section .note-copy { color: rgb(29 39 51 / .64); }
.screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* S0 */
.title-section {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 76%, rgb(94 126 166 / .18), transparent 42%),
    var(--night);
}
.title-brand {
  position: absolute;
  z-index: 2;
  top: max(1rem, env(safe-area-inset-top));
  left: var(--page);
  margin: 0;
  color: rgb(245 242 236 / .64);
  font-size: clamp(.66rem, 1.7vw, .82rem);
  letter-spacing: .11em;
}
.title-content {
  display: grid;
  justify-items: center;
  width: min(100%, 65rem);
  padding: 5rem var(--page) 7rem;
  text-align: center;
  opacity: 0;
  transform: translateY(.8rem);
  animation: title-in 1100ms cubic-bezier(.22,1,.36,1) 100ms forwards;
}
.title-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  font-family: var(--story);
  font-size: clamp(2rem, 7vw, 5.6rem);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.35;
}
.signature-number {
  display: inline-block;
  color: var(--raicho);
  font-family: var(--story);
  font-size: clamp(8rem, 40vw, 24rem);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .74;
  vertical-align: -.12em;
}
.title-sub {
  max-width: 34rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  color: rgb(245 242 236 / .82);
  font-family: var(--story);
  font-size: clamp(.96rem, 2.3vw, 1.35rem);
  letter-spacing: .1em;
  line-height: 2;
}
.scroll-cue {
  position: absolute;
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  left: 50%;
  margin: 0;
  color: rgb(245 242 236 / .62);
  font-size: .78rem;
  letter-spacing: .14em;
  transform: translateX(-50%);
  white-space: nowrap;
}
@keyframes title-in { to { opacity: 1; transform: translateY(0); } }

/* S1 */
.act-one-section { background: transparent; }
.act-one-intro {
  display: grid;
  min-height: 74vh;
  place-items: center;
  padding-block: 7rem;
  text-align: center;
}
.act-one-scroll { position: relative; min-height: 320vh; }
.act-one-sticky {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
}
.act-one-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgb(36 52 79 / .32), transparent 58%),
    linear-gradient(180deg, rgb(14 27 46 / .12), rgb(14 27 46 / .68));
  pointer-events: none;
}
.time-map-layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: clamp(.8rem, 2vh, 1.5rem);
  width: min(100%, 82rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: max(4rem, env(safe-area-inset-top)) var(--page) max(4rem, env(safe-area-inset-bottom));
}
.time-map-heading {
  justify-self: center;
  margin: 0;
  color: rgb(245 242 236 / .72);
  font-family: var(--story);
  font-size: clamp(.85rem, 2vw, 1.12rem);
  letter-spacing: .12em;
  text-align: center;
}
.time-map-frame { position: relative; justify-self: center; width: min(100%, 62rem); height: clamp(22rem, 66vh, 48rem); }
.time-map { width: 100%; height: 100%; overflow: visible; }
.time-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 5 8;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.time-ring-label {
  fill: rgb(245 242 236 / .56);
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .05em;
  opacity: 0;
}
.time-map.is-time-view .time-ring,
.time-map.is-time-view .time-ring-label { opacity: .65; }
.city-node { transform-box: fill-box; transform-origin: center; will-change: transform; }
.city-marker {
  fill: rgb(245 242 236 / .76);
  stroke: rgb(14 27 46 / .74);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.city-marker.is-hub { fill: var(--snow); stroke: var(--night); stroke-width: 2.4; }
.city-marker.is-toyama { fill: var(--raicho); stroke: var(--snow); stroke-width: 2.4; }
.city-label {
  fill: rgb(245 242 236 / .84);
  paint-order: stroke;
  stroke: rgb(14 27 46 / .88);
  stroke-width: 3px;
  stroke-linejoin: round;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .02em;
  pointer-events: none;
}
.city-label.is-hub, .city-label.is-toyama { fill: var(--snow); font-weight: 700; }
.toyama-minutes-label {
  fill: var(--snow);
  paint-order: stroke;
  stroke: rgb(14 27 46 / .9);
  stroke-width: 4px;
  font-family: var(--story);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
}
.time-map.is-time-view .toyama-minutes-label { opacity: 1; }
.time-map-caption {
  justify-self: center;
  width: min(100%, 48rem);
  padding: .85rem 1rem;
  border: 1px solid rgb(245 242 236 / .13);
  border-radius: .55rem;
  background: rgb(8 17 30 / .56);
  opacity: 0;
  transform: translateY(.65rem);
  transition: opacity 280ms ease, transform 280ms ease;
  backdrop-filter: blur(8px);
}
.time-map-caption.is-visible { opacity: 1; transform: translateY(0); }
.time-map-caption p {
  margin: 0;
  font-family: var(--story);
  font-size: clamp(.9rem, 2.3vw, 1.15rem);
  letter-spacing: .07em;
  line-height: 1.85;
  text-align: center;
}
.time-map-caption p + p { margin-top: .25rem; color: rgb(245 242 236 / .72); font-family: var(--ui); font-size: .85rem; }
.time-map-method { width: min(100%, 62rem); margin-inline: auto; padding: 2.5rem var(--page) 5rem; }
.time-map-method-panel {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgb(245 242 236 / .18);
  border-radius: .9rem;
  background: rgb(14 27 46 / .48);
}
.time-map-method-panel p { margin: 0; }
.time-map-method-panel p + p { margin-top: .8rem; }
.honest-comparison { padding: 5rem 0 7rem; }
.comparison-header { width: min(100%, var(--reading)); margin-inline: auto; padding-inline: var(--page); text-align: center; }
.comparison-header .story-heading { font-size: clamp(1.8rem, 5vw, 3.8rem); }
.comparison-table-wrap {
  width: min(calc(100% - (var(--page) * 2)), var(--content));
  margin: 2.5rem auto 0;
  overflow-x: auto;
  border: 1px solid rgb(245 242 236 / .18);
  border-radius: .9rem;
  background: rgb(14 27 46 / .48);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / .2);
}
.comparison-table { width: 100%; min-width: 48rem; border-collapse: collapse; font-size: .94rem; }
.comparison-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.comparison-table th, .comparison-table td {
  padding: 1rem;
  border-right: 1px solid rgb(245 242 236 / .1);
  border-bottom: 1px solid rgb(245 242 236 / .1);
  vertical-align: top;
  text-align: left;
}
.comparison-table th:last-child, .comparison-table td:last-child { border-right: 0; }
.comparison-table tbody tr:last-child th, .comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table thead th { color: rgb(245 242 236 / .7); background: rgb(8 17 30 / .45); font-size: .78rem; letter-spacing: .08em; white-space: nowrap; }
.comparison-table tbody th { width: 24%; color: var(--snow); }
.comparison-table td[data-mode="plane"].is-winner { background: rgb(217 108 63 / .2); box-shadow: inset 0 0 0 1px rgb(217 108 63 / .32); }
.comparison-table td[data-mode="train"].is-winner { background: rgb(94 126 166 / .36); box-shadow: inset 0 0 0 1px rgb(143 163 189 / .36); }
.comparison-table tr.is-even td[data-mode="plane"],
.comparison-table tr.is-even td[data-mode="train"] { background: rgb(245 242 236 / .1); }
.comparison-notes { width: min(100%, var(--reading)); margin: 1.8rem auto 0; padding-inline: var(--page); }
.comparison-notes p { margin: 0; }
.comparison-notes p + p { margin-top: 1rem; }
.comparison-principle { color: var(--snow); font-family: var(--story); font-size: clamp(1rem, 2.4vw, 1.3rem); letter-spacing: .07em; text-align: center; }

/* S2 */
.interlude-section {
  display: grid;
  min-height: 78vh;
  min-height: 78svh;
  place-items: center;
  padding: 5rem var(--page);
  background: var(--predawn);
}
.interlude-copy {
  margin: 0;
  font-family: var(--story);
  font-size: clamp(1.55rem, 5.2vw, 4rem);
  letter-spacing: .1em;
  line-height: 1.8;
  text-align: center;
}

/* S3 */
.flight-scroll { position: relative; min-height: 900vh; }
.flight-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--alpine);
}
.flight-map { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; background: var(--alpine); }
.flight-map::after {
  content: "";
  position: absolute;
  z-index: 450;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(8 17 30 / .5), transparent 28%, transparent 64%, rgb(8 17 30 / .6)),
    radial-gradient(ellipse at center, transparent 48%, rgb(8 17 30 / .24));
}
.flight-map .leaflet-tile-pane { filter: saturate(.88) contrast(1.04); }
.flight-map .leaflet-control-attribution {
  right: .35rem;
  bottom: .35rem;
  max-width: calc(100% - .8rem);
  padding: .15rem .35rem;
  border-radius: .25rem;
  background: rgb(8 17 30 / .68);
  color: rgb(245 242 236 / .74);
  font: .62rem/1.35 var(--ui);
  white-space: normal;
}
.flight-map .leaflet-control-attribution a { color: var(--snow); }
.flight-map .leaflet-control-zoom { margin-top: 4.7rem; border: 1px solid rgb(245 242 236 / .24); box-shadow: none; }
.flight-map .leaflet-control-zoom a { border-bottom-color: rgb(245 242 236 / .16); background: rgb(8 17 30 / .75); color: var(--snow); }
.flight-overlay { position: absolute; z-index: 500; inset: 0; display: grid; grid-template-rows: auto 1fr auto; pointer-events: none; }
.flight-hud {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: max(.8rem, env(safe-area-inset-top)) max(var(--page), env(safe-area-inset-right)) .8rem max(var(--page), env(safe-area-inset-left));
  border-bottom: 1px solid rgb(245 242 236 / .16);
  background: linear-gradient(180deg, rgb(8 17 30 / .75), rgb(8 17 30 / .24));
  color: var(--snow);
  font-size: clamp(.68rem, 1.8vw, .84rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: .07em;
}
.flight-hud-primary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flight-hud-secondary { display: flex; flex: 0 0 auto; gap: clamp(.7rem, 2.5vw, 1.4rem); white-space: nowrap; }
.flight-route-note {
  align-self: start;
  justify-self: end;
  margin: .8rem max(var(--page), env(safe-area-inset-right)) 0;
  padding: .25rem .55rem;
  border: 1px solid rgb(245 242 236 / .2);
  border-radius: 999px;
  background: rgb(8 17 30 / .5);
  color: rgb(245 242 236 / .72);
  font-size: .72rem;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
}
.flight-caption-wrap {
  align-self: end;
  width: 100%;
  padding: 1.2rem max(var(--page), env(safe-area-inset-right)) max(2.4rem, calc(env(safe-area-inset-bottom) + 1rem)) max(var(--page), env(safe-area-inset-left));
  background: linear-gradient(180deg, transparent, rgb(8 17 30 / .36) 28%, rgb(8 17 30 / .78));
}
.flight-caption {
  width: min(100%, 56rem);
  margin-inline: auto;
  padding: .9rem 1.1rem;
  border-block: 1px solid rgb(245 242 236 / .24);
  background: rgb(0 0 0 / .24);
  color: var(--snow);
  font-family: var(--story);
  font-size: clamp(1rem, 2.7vw, 1.48rem);
  letter-spacing: .08em;
  line-height: 1.85;
  text-align: center;
  text-shadow: 0 1px 3px rgb(0 0 0 / .72);
  backdrop-filter: blur(4px);
}
.flight-caption.is-changing { opacity: 0; transform: translateY(.4rem); }
.flight-progress { position: absolute; z-index: 560; top: 0; left: 0; width: 3px; height: calc(var(--flight-progress, 0) * 100%); background: var(--snow); opacity: .72; pointer-events: none; }
.flight-progress::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--snow); }
.map-unlock {
  position: absolute;
  z-index: 610;
  right: max(var(--page), env(safe-area-inset-right));
  bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 3.4rem));
  min-height: 2.7rem;
  padding: .6rem .95rem;
  border: 1px solid rgb(245 242 236 / .3);
  border-radius: 999px;
  background: rgb(8 17 30 / .75);
  color: var(--snow);
  cursor: pointer;
  font-size: .8rem;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}
.map-unlock[aria-pressed="true"] { background: rgb(245 242 236 / .9); color: var(--ink); }
.map-loading, .map-error {
  position: absolute;
  z-index: 700;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--page);
  background: var(--alpine);
  color: var(--snow);
  font-family: var(--story);
  letter-spacing: .08em;
  text-align: center;
}
.map-loading { transition: opacity 250ms ease, visibility 250ms ease; }
.map-loading.is-complete { visibility: hidden; opacity: 0; }
.map-error { display: none; background: linear-gradient(rgb(36 52 79 / .78), rgb(36 52 79 / .78)), var(--alpine); }
.map-error.is-visible { display: grid; }
.reduced-flight { display: none; }
.landing-section {
  position: relative;
  padding: 7rem 0;
  background:
    radial-gradient(circle at 82% 12%, rgb(245 242 236 / .62), transparent 34%),
    var(--dawn);
}
.landing-header { width: min(100%, var(--reading)); margin-inline: auto; padding-inline: var(--page); text-align: center; }
.landing-cards {
  display: grid;
  width: min(calc(100% - (var(--page) * 2)), var(--content));
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.4rem;
  margin: 3rem auto 0;
}
.info-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  border: 1px solid rgb(29 39 51 / .16);
  border-radius: var(--radius);
  background: rgb(245 242 236 / .58);
  box-shadow: 0 1.25rem 3rem rgb(29 39 51 / .12);
}
.info-card h3 { margin: 0; font-family: var(--story); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 500; letter-spacing: .06em; line-height: 1.65; }
.info-card p { margin: 0; }
.airport-facts { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .45rem 1rem; margin: 0; font-size: .92rem; }
.airport-facts dt { color: rgb(29 39 51 / .62); }
.airport-facts dd { margin: 0; overflow-wrap: anywhere; }
.source-link { margin-top: auto; font-weight: 700; }
.open-data-credit { width: min(100%, var(--reading)); margin: 3rem auto 0; padding-inline: var(--page); font-family: var(--story); font-size: clamp(1rem, 2.4vw, 1.35rem); letter-spacing: .07em; text-align: center; }

/* S4 */
.result-section {
  position: relative;
  padding: 7rem 0;
  background:
    linear-gradient(180deg, transparent, rgb(245 242 236 / .48)),
    var(--dawn);
}
.result-header { width: min(100%, 54rem); margin-inline: auto; padding-inline: var(--page); text-align: center; }
.seat-guide {
  width: min(calc(100% - (var(--page) * 2)), 56rem);
  margin: 3rem auto 0;
  padding: clamp(1.3rem, 4vw, 2.3rem);
  border: 1px solid rgb(29 39 51 / .16);
  border-radius: var(--radius);
  background: rgb(245 242 236 / .7);
  box-shadow: 0 1.25rem 3rem rgb(29 39 51 / .12);
}
.seat-guide h3 { margin: 0; color: rgb(29 39 51 / .64); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.seat-guide p { margin: .8rem 0 0; font-family: var(--story); font-size: clamp(1.18rem, 3.4vw, 2rem); letter-spacing: .05em; line-height: 1.8; }
.action-links {
  display: grid;
  width: min(calc(100% - (var(--page) * 2)), 56rem);
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .9rem;
  margin: 2rem auto 0;
}
.cta-button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  border-radius: .55rem;
  background: var(--raicho);
  color: var(--snow);
  box-shadow: 0 .8rem 1.8rem rgb(29 39 51 / .13);
  cursor: pointer;
  font-size: clamp(.82rem, 1.7vw, .94rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}
.cta-button:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-1px); }
.boarding-pass-area { width: min(calc(100% - (var(--page) * 2)), 56rem); margin: 5rem auto 0; }
.boarding-pass-heading { margin: 0 0 1rem; font-family: var(--story); font-size: clamp(1.3rem, 3.3vw, 2.1rem); font-weight: 500; letter-spacing: .07em; text-align: center; }
.boarding-pass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  overflow: hidden;
  border: 1px solid rgb(29 39 51 / .2);
  border-radius: var(--radius);
  background: var(--snow);
  color: var(--ink);
  box-shadow: 0 1.25rem 3rem rgb(29 39 51 / .12);
}
.boarding-pass::before, .boarding-pass::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 25%;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--dawn);
  transform: translate(50%,-50%);
}
.boarding-pass::before { top: 0; }
.boarding-pass::after { bottom: 0; transform: translate(50%,50%); }
.boarding-pass-main { min-width: 0; padding: clamp(1.3rem, 4vw, 2.4rem); }
.boarding-pass-stub {
  display: grid;
  width: clamp(7.2rem, 23vw, 11rem);
  place-items: center;
  padding: 1.1rem .9rem;
  border-left: 1px dashed rgb(29 39 51 / .28);
  background: rgb(232 220 206 / .5);
  text-align: center;
}
.boarding-label { margin: 0; color: rgb(29 39 51 / .58); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.boarding-route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: clamp(.6rem, 3vw, 1.5rem); margin-top: 1rem; }
.boarding-airport:last-child { text-align: right; }
.airport-code { display: block; font-family: var(--story); font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 700; letter-spacing: .04em; line-height: 1; }
.airport-city { display: block; margin-top: .35rem; color: rgb(29 39 51 / .62); font-size: .75rem; letter-spacing: .1em; }
.boarding-arrow { align-self: center; color: rgb(29 39 51 / .46); font-size: clamp(1.3rem, 4vw, 2rem); }
.boarding-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgb(29 39 51 / .16); }
.boarding-meta-item dt { color: rgb(29 39 51 / .54); font-size: .65rem; letter-spacing: .12em; }
.boarding-meta-item dd { margin: .25rem 0 0; font-size: .92rem; font-weight: 700; overflow-wrap: anywhere; }
.boarding-duration { margin: 0; font-family: var(--story); font-size: clamp(1.4rem, 4.4vw, 2.4rem); font-weight: 700; line-height: 1.2; }
.boarding-duration-label { margin: .4rem 0 0; color: rgb(29 39 51 / .58); font-size: .7rem; letter-spacing: .1em; }
.barcode { width: min(100%, 5.6rem); height: 3.1rem; margin-top: 1.2rem; opacity: .7; background: repeating-linear-gradient(90deg,var(--ink) 0 1px,transparent 1px 3px,var(--ink) 3px 5px,transparent 5px 7px,var(--ink) 7px 8px,transparent 8px 11px); }
.share-actions { display: flex; justify-content: center; margin-top: 1rem; }
.share-status { min-height: 1.5em; margin: .7rem 0 0; color: rgb(29 39 51 / .62); font-size: .82rem; text-align: center; }

/* S5 */
.site-footer { position: relative; padding: 7rem 0 max(3.5rem, calc(env(safe-area-inset-bottom) + 2rem)); background: var(--dawn); color: var(--ink); }
.site-footer::before { content: ""; position: absolute; top: 0; right: var(--page); left: var(--page); height: 1px; background: rgb(29 39 51 / .18); }
.footer-inner { width: min(100%, var(--content)); margin-inline: auto; padding-inline: var(--page); }
.footer-lead { width: min(100%, var(--reading)); margin: 0; font-family: var(--story); font-size: clamp(1.3rem, 3.8vw, 2.5rem); letter-spacing: .07em; line-height: 1.85; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(14rem,.75fr); gap: clamp(2rem, 6vw, 5rem); margin-top: 3rem; }
.footer-section h2 { margin: 0 0 .8rem; color: rgb(29 39 51 / .58); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-section p { margin: 0; font-size: .9rem; }
.footer-links { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-weight: 700; }
.fork-message { margin-top: 3rem; padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid rgb(29 39 51 / .16); border-radius: .9rem; background: rgb(245 242 236 / .5); }
.fork-message p { margin: 0; font-family: var(--story); font-size: clamp(1.05rem, 2.7vw, 1.45rem); letter-spacing: .06em; }
.footer-disclaimer { margin-top: 3rem; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1.4rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgb(29 39 51 / .14); color: rgb(29 39 51 / .6); font-size: .76rem; }

/* observation */
.is-observed { opacity: 0; transform: translateY(1rem); transition: opacity 600ms cubic-bezier(.22,1,.36,1), transform 600ms cubic-bezier(.22,1,.36,1); }
.is-observed.is-in-view { opacity: 1; transform: none; }
.no-js-message { padding: 1rem; background: var(--dawn); color: var(--ink); text-align: center; }

@media (max-width: 960px) {
  .landing-cards, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .title-main { display: block; line-height: 1.55; }
  .signature-number { display: block; width: max-content; margin: .14em auto .08em; font-size: min(40vw, 11rem); }
  .time-map-frame { height: min(62vh, 32rem); }
  .flight-hud { align-items: flex-start; }
  .flight-hud-secondary { flex-direction: column; align-items: flex-end; gap: 0; }
  .flight-caption-wrap { padding-inline: .8rem; }
  .flight-caption { padding: .75rem .8rem; line-height: 1.75; }
  .map-unlock { right: .8rem; bottom: max(5.8rem, calc(env(safe-area-inset-bottom) + 4.7rem)); }
  .action-links { grid-template-columns: 1fr; }
  .boarding-pass { grid-template-columns: 1fr; }
  .boarding-pass::before, .boarding-pass::after { top: auto; right: auto; bottom: 24%; width: 1.2rem; height: 1.2rem; }
  .boarding-pass::before { left: 0; transform: translate(-50%,50%); }
  .boarding-pass::after { right: 0; transform: translate(50%,50%); }
  .boarding-pass-stub { width: 100%; min-height: 7rem; grid-template-columns: 1fr auto; justify-items: start; gap: 1rem; border-top: 1px dashed rgb(29 39 51 / .28); border-left: 0; text-align: left; }
  .barcode { width: 5rem; margin-top: 0; }
  .footer-meta { flex-direction: column; }
}
@media (max-width: 520px) {
  .title-brand { max-width: calc(100% - 2rem); line-height: 1.5; }
  .scroll-cue { width: calc(100% - 2rem); white-space: normal; text-align: center; }
  .time-map-frame { width: calc(100% + 1.2rem); margin-inline: -.6rem; }
  .city-label { font-size: 10px; stroke-width: 2.8px; }
  .toyama-minutes-label { font-size: 14px; }
  .comparison-table-wrap { width: calc(100% - 1rem); }
  .comparison-table { min-width: 43rem; font-size: .86rem; }
  .comparison-table th, .comparison-table td { padding: .8rem; }
  .flight-hud { padding-inline: .75rem; font-size: .64rem; letter-spacing: .04em; }
  .flight-route-note { margin-right: .75rem; font-size: .6rem; }
  .flight-caption { font-size: clamp(.86rem, 4.2vw, 1.06rem); letter-spacing: .055em; }
  .airport-facts { grid-template-columns: 1fr; gap: .1rem; }
  .airport-facts dd + dt { margin-top: .5rem; }
  .seat-guide, .boarding-pass-area { width: calc(100% - 2rem); }
  .boarding-meta { grid-template-columns: 1fr 1fr; }
  .boarding-meta-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
  :root { --page: 1rem; }
  .title-main { font-size: 1.8rem; }
  .signature-number { font-size: min(40vw, 9.4rem); }
  .title-sub { font-size: .9rem; }
  .time-map-heading { font-size: .78rem; }
  .time-map-frame { height: 57vh; }
  .time-map-caption p { font-size: .82rem; }
  .flight-hud-primary { max-width: 48%; }
  .flight-caption { font-size: .84rem; }
  .airport-code { font-size: 2.5rem; }
  .boarding-arrow { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .title-content, .is-observed { opacity: 1; transform: none; animation: none; }
  .act-one-scroll { min-height: auto; }
  .act-one-sticky { position: relative; min-height: auto; padding-block: 4rem; }
  .time-map-layout { min-height: auto; }
  .time-map .time-ring, .time-map .time-ring-label, .time-map .toyama-minutes-label { opacity: 1; }
  .time-map-caption { opacity: 1; transform: none; }
  .flight-scroll { min-height: auto; }
  .flight-sticky { display: none; }
  .reduced-flight { display: block; padding: 5rem 0; background: var(--alpine); }
  .reduced-flight-header { width: min(100%, var(--reading)); margin-inline: auto; padding-inline: var(--page); text-align: center; }
  .reduced-flight-list { display: grid; width: min(calc(100% - (var(--page) * 2)), var(--content)); gap: 1rem; margin: 2.5rem auto 0; padding: 0; list-style: none; }
  .reduced-flight-item { display: grid; grid-template-columns: minmax(7rem,.34fr) minmax(0,1fr); overflow: hidden; border: 1px solid rgb(245 242 236 / .2); border-radius: .9rem; background: rgb(14 27 46 / .5); }
  .reduced-flight-map { min-height: 10rem; background: linear-gradient(135deg, rgb(14 27 46 / .75), rgb(94 126 166 / .8)); }
  .reduced-flight-copy { display: grid; align-content: center; gap: .45rem; padding: 1rem 1.2rem; }
  .reduced-flight-meta { margin: 0; color: rgb(245 242 236 / .62); font-size: .74rem; letter-spacing: .07em; }
  .reduced-flight-caption { margin: 0; font-family: var(--story); font-size: clamp(.96rem, 2.5vw, 1.2rem); letter-spacing: .06em; line-height: 1.8; }
  .map-unlock, .flight-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .reduced-flight-item { grid-template-columns: 1fr; }
  .reduced-flight-map { min-height: 11rem; }
}

/* ===== Upgrade layer: impact patch ===== */
/* Title: starfield + glow */
.title-section { position: relative; overflow: hidden; }
.title-sky { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgb(245 242 236 / .9), transparent 60%),
    radial-gradient(1px 1px at 68px 12px, rgb(245 242 236 / .55), transparent 60%),
    radial-gradient(1.5px 1.5px at 41px 74px, rgb(245 242 236 / .75), transparent 60%),
    radial-gradient(1px 1px at 90px 52px, rgb(143 163 189 / .8), transparent 60%);
  background-size: 110px 96px;
  animation: sky-twinkle 5.5s ease-in-out infinite alternate;
}
.title-sky::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 58%, rgb(217 108 63 / .16), transparent 70%);
}
@keyframes sky-twinkle { from { opacity: .55; } to { opacity: 1; } }
.signature-number { text-shadow: 0 0 46px rgb(217 108 63 / .5), 0 0 120px rgb(217 108 63 / .3); }
.title-content, .title-brand, .scroll-cue { position: relative; }

/* Time map: bigger, brighter, alive */
.time-map-frame { height: min(72vh, 640px); }
.time-ring { stroke: rgb(143 163 189 / .55); stroke-dasharray: 5 7; fill: none; }
.time-ring-label { fill: rgb(143 163 189 / .85); font-size: 13px; }
.city-label { font-size: 13.5px; fill: rgb(245 242 236 / .82); }
.city-label.is-toyama, .city-label.is-hub { font-size: 16px; font-weight: 700; fill: #F5F2EC; }
.city-marker { fill: rgb(245 242 236 / .8); }
.city-marker.is-hub { fill: #F5F2EC; }
.city-marker.is-toyama { fill: var(--raicho, #D96C3F); }
.is-time-view .city-marker.is-toyama { animation: toyama-pulse 1.8s ease-out infinite; }
@keyframes toyama-pulse {
  0% { stroke: rgb(217 108 63 / .8); stroke-width: 0; }
  70% { stroke: rgb(217 108 63 / 0); stroke-width: 16px; }
  100% { stroke: rgb(217 108 63 / 0); stroke-width: 0; }
}
.toyama-minutes-label { fill: var(--raicho, #D96C3F); font-size: 15px; font-weight: 700; }
.hub-link { stroke: var(--raicho, #D96C3F); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; opacity: 0; }

/* Act two: pseudo-3D flight view */
.flight-sticky { perspective: 950px; overflow: hidden; }
.flight-map { transform: rotateX(42deg) scale(1.75); transform-origin: 50% 72%; will-change: transform; }
.flight-sticky::before { content: ""; position: absolute; inset: 0 0 55% 0; z-index: 400; pointer-events: none;
  background: linear-gradient(to bottom, rgb(14 27 46 / .85), rgb(94 126 166 / .25) 55%, transparent);
}
body.map-interaction-enabled .flight-map { transform: none; }
body.map-interaction-enabled .flight-sticky::before { display: none; }
@media (prefers-reduced-motion: reduce) { .title-sky { animation: none; } }

/* ===== Upgrade layer 2: self-contained flight scene + bigger type ===== */
.flight-map { transform: none; }
.flight-sticky { perspective: none; }
.flight-sticky::before { display: none; }

.flight-scene { position: absolute; inset: 0; overflow: hidden; }
.fs-sky, .fs-stars, .fs-sun, .fs-ridge, .fs-clouds, .fs-landing { position: absolute; inset: 0; pointer-events: none; }
.fs-stars {
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgb(245 242 236 / .95), transparent 60%),
    radial-gradient(1px 1px at 68px 12px, rgb(245 242 236 / .6), transparent 60%),
    radial-gradient(1.6px 1.6px at 41px 74px, rgb(245 242 236 / .8), transparent 60%),
    radial-gradient(1px 1px at 90px 52px, rgb(143 163 189 / .85), transparent 60%);
  background-size: 112px 98px;
}
.fs-sun { background: radial-gradient(38% 30% at 72% 66%, rgb(217 108 63 / .55), rgb(217 108 63 / .12) 55%, transparent 75%); opacity: 0; }
.fs-ridge { top: auto; height: 62%; bottom: 0; background-repeat: repeat-x; background-size: auto 100%; background-position: bottom left; transform-origin: bottom center; will-change: transform, background-position; }
.fs-ridge-far { height: 44%; filter: blur(.6px); }
.fs-ridge-mid { height: 54%; }
.fs-ridge-near { height: 66%; }
.fs-clouds i { position: absolute; width: 42vw; height: 9vh; border-radius: 50%; background: rgb(245 242 236 / .16); filter: blur(18px); }
.fs-clouds i:nth-child(1) { top: 24%; left: 12%; }
.fs-clouds i:nth-child(2) { top: 42%; left: 58%; width: 55vw; }
.fs-clouds i:nth-child(3) { top: 12%; left: 78%; }
.fs-plane { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); font-size: clamp(2.6rem, 9vw, 4.4rem); color: #F5F2EC; text-shadow: 0 4px 18px rgb(14 27 46 / .6); }
.fs-landing { opacity: 0; transform-origin: 50% 78%; }
.fs-river { position: absolute; left: -10%; right: -10%; bottom: 0; height: 34%; background: linear-gradient(to bottom, rgb(94 126 166 / 0), rgb(94 126 166 / .75) 35%, rgb(36 52 79 / .95)); }
.fs-runway { position: absolute; left: 50%; bottom: 0; width: min(66vw, 340px); height: 46%; transform: translateX(-50%); clip-path: polygon(43% 0, 57% 0, 96% 100%, 4% 100%); background: linear-gradient(to bottom, #2A3648, #151E2C); }
.fs-centerline { position: absolute; left: 50%; top: 6%; bottom: 4%; width: 4%; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, rgb(245 242 236 / .95) 0 9%, transparent 9% 20%); }
.fs-runway::before, .fs-runway::after { content: ""; position: absolute; top: 0; bottom: 0; width: 5%;
  background: repeating-linear-gradient(to bottom, rgb(217 108 63 / .95) 0 3%, transparent 3% 14%); }
.fs-runway::before { left: 6%; transform: skewX(11deg); }
.fs-runway::after { right: 6%; transform: skewX(-11deg); }
.fs-runway-label { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); margin: 0; color: rgb(245 242 236 / .85); font-size: .8rem; letter-spacing: .28em; white-space: nowrap; }

/* Bigger, bolder type across the story */
.story-heading { font-size: clamp(2rem, 7vw, 3.2rem); }
.time-map-heading { font-size: clamp(1.15rem, 4.2vw, 1.7rem); }
.time-map-caption p { font-size: clamp(1.1rem, 4.2vw, 1.6rem); line-height: 1.9; }
.flight-caption { font-size: clamp(1.2rem, 4.6vw, 1.85rem); }
.interlude-copy { font-size: clamp(1.4rem, 5.4vw, 2.3rem); }
.city-label { font-size: 15px; }
.city-label.is-hub, .city-label.is-toyama { font-size: 20px; }
.toyama-minutes-label { font-size: 19px; }
.city-marker { r: 6; }
.time-map-frame { height: min(76vh, 700px); }

/* ===== Upgrade layer 3: Japan warp + satellite hybrid + title photo ===== */
.title-photo { position: absolute; inset: 0; pointer-events: none; opacity: .38;
  background-image:
    linear-gradient(to bottom, rgb(14 27 46 / .75), rgb(14 27 46 / .55) 45%, rgb(14 27 46 / .92)),
    url("https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/13/7217/3198.jpg"),
    url("https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/13/7216/3198.jpg");
  background-size: cover, 60% auto, 60% auto;
  background-position: center, 78% 45%, 18% 45%;
  background-repeat: no-repeat;
  filter: saturate(.85);
}
.coast { fill: rgb(94 126 166 / .16); stroke: rgb(190 208 230 / .9); stroke-width: 1.7;
  vector-effect: non-scaling-stroke; stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgb(143 163 189 / .55)); }
.arrive-ping { fill: none; stroke: var(--raicho, #D96C3F); opacity: 0; }
.is-time-view .arrive-ping { animation: arrive-ping 1.9s ease-out infinite; }
@keyframes arrive-ping {
  0% { opacity: .9; r: 9; stroke-width: 3; }
  80% { opacity: 0; r: 46; stroke-width: .5; }
  100% { opacity: 0; r: 46; }
}
.fs-sat { position: absolute; inset: -34% -28%; opacity: 0; transition: opacity 1.2s ease;
  transform: perspective(900px) rotateX(50deg) scale(1.62); transform-origin: 50% 70%;
  will-change: transform; background: transparent; }
.sat-live .fs-sat { opacity: 1; }
.sat-live .fs-ridge, .sat-live .fs-landing, .sat-live .fs-clouds { opacity: 0 !important; transition: opacity .8s ease; }
.fs-sat .leaflet-control-attribution { transform: rotateX(0deg); font-size: .62rem; opacity: .8; }

/* Act 1 text: bigger and bolder */
.time-map-heading { font-size: clamp(1.45rem, 5.6vw, 2.5rem); line-height: 1.7; }
.time-map-caption p { font-size: clamp(1.25rem, 4.9vw, 1.9rem); }
.time-map-caption p:last-child { color: var(--raicho, #D96C3F); font-weight: 700; }
.eyebrow { font-size: clamp(.95rem, 3.2vw, 1.2rem); letter-spacing: .3em; }

/* share button alignment fix (boarding-pass removal follow-up) */
.share-area { display: grid; justify-items: stretch; margin-top: 2.4rem; }
.share-area .cta-button { width: 100%; }
.share-area .share-status { text-align: center; margin: .6rem 0 0; }

/* ===== Upgrade layer 4: editorial polish + motion + Toyama motif ===== */
/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Mountain motif divider on light sections */
.why-section, .result-section { position: relative; }
.why-section::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 64px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64 L90 30 L170 52 L300 8 L420 48 L540 18 L660 44 L780 6 L900 40 L1020 22 L1120 46 L1200 28 L1200 0 L0 0 Z' fill='%230E1B2E'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

/* Why section */
.why-section { background: linear-gradient(to bottom, #EDE3D4, var(--dawn, #E8DCCE)); color: var(--ink, #1D2733); padding: 7rem 0 5rem; }
.why-lead { font-family: "Shippori Mincho", serif; font-size: clamp(1.1rem, 4vw, 1.5rem); line-height: 2.1; margin: 1.6rem 0 3rem; }
.why-cards { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .why-cards { grid-template-columns: repeat(3, 1fr); } }
.why-card { background: rgb(255 255 255 / .68); border: 1px solid rgb(29 39 51 / .08); border-radius: 22px;
  padding: 1.9rem 1.6rem; box-shadow: 0 18px 40px -24px rgb(29 39 51 / .35);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -22px rgb(29 39 51 / .4); }
.why-num { font-family: "Shippori Mincho", serif; color: var(--raicho, #D96C3F); font-size: 1.05rem; letter-spacing: .35em; margin: 0 0 .7rem; }
.why-card h3 { font-family: "Shippori Mincho", serif; font-size: clamp(1.25rem, 4.6vw, 1.5rem); line-height: 1.75; margin: 0 0 .9rem; }
.why-card p { font-size: clamp(1rem, 3.6vw, 1.08rem); line-height: 2; margin: 0; }
.why-card .fine { display: block; margin-top: .6rem; font-size: .78rem; color: rgb(29 39 51 / .55); }
.why-close { font-family: "Shippori Mincho", serif; text-align: center; font-size: clamp(1.35rem, 5.4vw, 2.1rem);
  line-height: 2.05; margin: 4rem 0 0; }
.why-close strong { color: var(--raicho, #D96C3F); font-weight: 700; }

/* Global type + rhythm upgrade */
.section-inner { max-width: 1080px; }
.story-heading { line-height: 1.55; letter-spacing: .06em; }
.result-section .story-heading, .why-section .story-heading { font-size: clamp(2.1rem, 8vw, 3.6rem); }
.landing-copy .story-heading { font-size: clamp(1.9rem, 7.4vw, 3.2rem); }
.info-card h3 { font-size: clamp(1.2rem, 4.4vw, 1.45rem); line-height: 1.8; }
.info-card p, .seat-guide p { font-size: clamp(1rem, 3.7vw, 1.1rem); line-height: 2; }
.cta-button { letter-spacing: .12em; font-size: clamp(1rem, 3.8vw, 1.1rem);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, filter .35s;
  box-shadow: 0 14px 30px -16px rgb(217 108 63 / .55); }
.cta-button:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 20px 36px -16px rgb(217 108 63 / .6); }
.cta-button:active { transform: translateY(0); }
.flight-hud { font-variant-numeric: tabular-nums; letter-spacing: .08em; }

/* why-card visuals: real GSI aerial photos with graceful fallback */
.why-card { padding-top: 1.3rem; }
.why-visual { margin: 0 0 1.2rem; height: 168px; border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #24344F, #5E7EA6 55%, #8FA3BD); }
.why-visual::before { content: ""; position: absolute; inset: 0; opacity: 0;
  transition: opacity .9s ease; background-size: cover; background-position: center; }
.why-visual::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(29 39 51 / .28), transparent 45%); }
.wv-alps::before { background-image: url("https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/12/3613/1600.jpg"); }
.wv-runway::before { background-image: url("https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/15/28871/12794.jpg"); }
.wv-plain::before { background-image: url("https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/11/1804/799.jpg"); }
.photo-ok .why-visual::before { opacity: 1; }
.why-visual .wv-credit { position: absolute; right: 8px; bottom: 5px; z-index: 1; margin: 0;
  font-size: .6rem; letter-spacing: .06em; color: rgb(245 242 236 / .85); opacity: 0; transition: opacity .9s ease; }
.photo-ok .why-visual .wv-credit { opacity: 1; }

.oss-line { font-size: clamp(.95rem, 3.4vw, 1.05rem); line-height: 2; }
.oss-line a { color: var(--raicho, #D96C3F); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
