:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.008 343);
  --ink: oklch(0.19 0.035 280);
  --muted: oklch(0.43 0.035 280);
  --primary: oklch(0.63 0.22 343);
  --primary-dark: oklch(0.46 0.19 343);
  --accent: oklch(0.48 0.22 264);
  --highlight: oklch(0.89 0.18 96);
  --mint: oklch(0.82 0.15 165);
  --line: oklch(0.87 0.02 280);
  --white: oklch(1 0 0);
  --display: "Mochiy Pop One", sans-serif;
  --body: "Zen Kaku Gothic New", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1rem 3rem oklch(0.19 0.035 280 / .14);
  --z-sticky: 20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
.skip-link {
  position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .7rem 1rem;
  background: var(--ink); color: var(--white); transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header {
  position: absolute; z-index: var(--z-sticky); top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 3rem, 86rem); margin-inline: auto; padding-block: 1.35rem;
  color: var(--white);
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.brand b { color: var(--highlight); }
.brand-mark { display: grid; grid-template-columns: repeat(2, .48rem); gap: .16rem; transform: rotate(45deg); }
.brand-mark i { width: .48rem; height: .48rem; background: currentColor; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header nav a { font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--highlight); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.language-toggle {
  display: inline-flex; align-items: center; gap: .35rem; padding: .52rem .7rem;
  border: 2px solid var(--white); color: var(--white); background: transparent;
  font-weight: 900; cursor: pointer; transition: color .2s, background .2s, transform .2s var(--ease-out);
}
.language-toggle:hover { color: var(--ink); background: var(--white); transform: translateY(-2px); }
.header-share {
  padding: .58rem 1rem; color: var(--ink); background: var(--highlight);
  font-weight: 900; text-decoration: none; box-shadow: .28rem .28rem 0 var(--ink);
}

.hero {
  position: relative; min-height: 54rem; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(26rem, .98fr);
  background: var(--accent); color: var(--white); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0 50% 0 0; opacity: .14;
  background-image: linear-gradient(oklch(1 0 0 / .5) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / .5) 1px, transparent 1px);
  background-size: 3rem 3rem;
}
.hero-copy {
  position: relative; z-index: 2; align-self: center;
  max-width: 46rem; padding: 9rem clamp(2rem, 7vw, 7rem) 7rem max(1.5rem, calc((100vw - 86rem) / 2));
  animation: hero-in .9s var(--ease-out) both;
}
.hero-kicker {
  display: inline-flex; margin: 0 0 1.8rem; padding: .42rem .75rem;
  color: var(--ink); background: var(--highlight); font-weight: 900; transform: rotate(-1deg);
}
h1 { max-width: 10ch; font-size: clamp(3.2rem, 6.4vw, 6rem); letter-spacing: -.038em; }
h1 span { color: var(--highlight); }
.hero-intro { max-width: 59ch; margin: 2rem 0; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem;
  min-height: 3.5rem; padding: .78rem 1.25rem; border: 2px solid var(--ink);
  font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.button:hover { transform: translate(-3px, -3px); box-shadow: .4rem .4rem 0 var(--highlight); }
.button-dark { background: var(--ink); color: var(--white); }
.button-primary { background: var(--primary-dark); color: var(--white); }
.fan-note { margin: 1rem 0 0; font-size: .86rem; color: oklch(0.9 0.04 264); }
.hero-art { position: relative; min-height: 100%; overflow: hidden; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent) 0%, transparent 22%), linear-gradient(0deg, oklch(0.15 0.04 280 / .5), transparent 50%); }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; animation: photo-in 1.2s var(--ease-out) both; }
.art-ticket { position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 1rem 1.2rem; color: var(--ink); box-shadow: .45rem .45rem 0 var(--ink); }
.art-ticket span { font-family: var(--display); font-size: 1.8rem; }
.art-ticket small { font-weight: 700; }
.art-ticket-top { top: 18%; right: 8%; background: var(--highlight); transform: rotate(3deg); }
.art-ticket-bottom { bottom: 14%; left: 14%; background: var(--mint); transform: rotate(-2deg); }
.art-ticket-bottom .ticket-dot { width: 1rem; height: 1rem; border-radius: 50%; background: var(--primary); }
.pixel-spark { position: absolute; z-index: 3; width: .8rem; height: .8rem; background: var(--white); box-shadow: 1.2rem 0 var(--white), 0 1.2rem var(--white), 1.2rem 1.2rem var(--white); }
.spark-one { top: 27%; left: 16%; }
.spark-two { right: 12%; bottom: 35%; transform: scale(.6); }
.route-strip {
  position: absolute; z-index: 4; bottom: 0; left: 0; right: 0; display: flex; align-items: center;
  min-height: 4.5rem; padding-inline: max(1.5rem, calc((100vw - 86rem) / 2));
  color: var(--ink); background: var(--highlight); font-weight: 900; overflow: hidden;
}
.route-strip i { flex: 1; min-width: 2rem; height: 3px; margin-inline: .7rem; background: var(--ink); }
.route-train { color: var(--primary-dark); margin-right: .7rem; }

.planner-section { padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - 76rem) / 2)); background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading > p { max-width: 34rem; margin: 0; color: var(--muted); font-size: 1.1rem; }
.section-tag { margin: 0 0 .65rem; color: var(--primary-dark); font-weight: 900; }
h2 { font-size: clamp(2.4rem, 5vw, 4.7rem); letter-spacing: -.035em; }
.planner { padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); border: 2px solid var(--ink); box-shadow: .7rem .7rem 0 var(--ink); }
fieldset { min-width: 0; margin: 0 0 2.4rem; padding: 0; border: 0; }
legend { margin-bottom: 1rem; font-weight: 900; font-size: 1.18rem; }
legend span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; margin-right: .4rem; color: var(--white); background: var(--accent); }
.option-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.option-row label { flex: 1 1 9rem; cursor: pointer; }
.option-row input { position: absolute; opacity: 0; pointer-events: none; }
.option-row label > span {
  display: flex; align-items: center; justify-content: center; min-height: 4.2rem; padding: .8rem;
  border: 2px solid var(--line); background: var(--bg); font-weight: 700; transition: .2s var(--ease-out);
}
.days-row b { margin-right: .3rem; font-family: var(--display); font-size: 1.5rem; }
.city-row span { flex-direction: column; }
.city-row small { color: var(--muted); }
.option-row input:checked + span { border-color: var(--ink); background: var(--highlight); box-shadow: .28rem .28rem 0 var(--ink); transform: translate(-2px, -2px); }
.option-row input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.planner .button { width: 100%; }
.itinerary { margin-top: 4rem; padding: clamp(1.5rem, 4vw, 3rem); color: var(--white); background: var(--accent); border: 2px solid var(--ink); box-shadow: .7rem .7rem 0 var(--primary); }
.itinerary.is-updating { animation: route-pop .45s var(--ease-out); }
.itinerary-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding-bottom: 2rem; border-bottom: 1px solid oklch(1 0 0 / .28); }
.itinerary-head h3 { font-size: clamp(1.8rem, 4vw, 3rem); }
.itinerary-head p { max-width: 34rem; margin: 0; color: oklch(0.9 0.04 264); }
.save-file { display: inline-block; margin-bottom: .55rem; padding: .2rem .5rem; color: var(--ink); background: var(--mint); font-weight: 900; }
#route-list { display: grid; gap: 0; margin: 0; padding: 1rem 0; list-style: none; counter-reset: days; }
#route-list li { counter-increment: days; display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid oklch(1 0 0 / .2); }
#route-list li::before { content: "D" counter(days); display: grid; place-items: center; width: 2.8rem; height: 2.8rem; color: var(--ink); background: var(--highlight); font-family: var(--display); }
#route-list strong { display: block; font-size: 1.12rem; }
#route-list span { color: oklch(0.9 0.04 264); }
#route-list em { color: var(--mint); font-style: normal; font-weight: 900; }
.booking-alert { margin: 1.2rem 0 0; padding: 1rem; color: var(--ink); background: var(--highlight); }

.destinations { padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - 86rem) / 2)); }
.destinations-intro { display: grid; grid-template-columns: .6fr 1.2fr .8fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.destinations-intro > p:first-child { color: var(--primary-dark); font-weight: 900; }
.destinations-intro > p:last-child { color: var(--muted); }
.destination-featured { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 35rem; color: var(--white); background: var(--primary-dark); }
.destination-image { position: relative; min-height: 30rem; overflow: hidden; }
.destination-image img { width: 100%; height: 100%; object-fit: cover; }
.city-stamp { position: absolute; right: 1rem; bottom: 1rem; padding: .3rem .7rem; color: var(--ink); background: var(--highlight); font-family: var(--display); font-size: 1.6rem; transform: rotate(-3deg); }
.destination-copy { align-self: center; padding: clamp(2rem, 6vw, 5rem); }
.destination-meta { display: flex; justify-content: space-between; color: var(--mint); font-weight: 900; }
.destination-copy h3 { margin: 1.4rem 0; font-size: clamp(2.2rem, 4vw, 4rem); }
.destination-copy > p { color: oklch(0.94 0.025 343); }
.tip { display: grid; grid-template-columns: auto 1fr; gap: 1rem; margin: 2rem 0; padding: 1rem 0; border-block: 1px solid oklch(1 0 0 / .25); }
.tip strong { color: var(--highlight); }
.text-link { color: var(--white); font-weight: 900; text-underline-offset: .3rem; }
.destination-list { margin-top: 4rem; border-top: 2px solid var(--ink); }
.destination-row { display: grid; grid-template-columns: 4rem minmax(14rem, .75fr) 1.25fr auto; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 2px solid var(--ink); transition: transform .25s var(--ease-out), background .25s; }
.destination-row:hover { background: var(--surface); transform: translateX(.6rem); }
.station-number { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--highlight); border-radius: 50%; font-weight: 900; }
.place-city { color: var(--primary-dark); font-weight: 900; }
.destination-row h3 { margin-top: .2rem; font-size: 1.45rem; }
.destination-row p { max-width: 48rem; margin: 0; color: var(--muted); }
.destination-row > a { font-weight: 900; }

.history { padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - 86rem) / 2)); color: var(--white); background: var(--ink); }
.history-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 3rem; margin-bottom: 5rem; align-items: end; }
.history-heading > p { color: var(--highlight); font-weight: 900; }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); }
.timeline article { position: relative; padding-right: 1.5rem; }
.timeline time { color: var(--mint); font-family: var(--display); font-size: clamp(1.3rem, 2vw, 2rem); }
.timeline article > span { display: block; position: relative; height: 3px; margin: 1rem 0 1.5rem; background: var(--primary); }
.timeline article > span::before { content: ""; position: absolute; top: 50%; left: 0; width: .85rem; height: .85rem; background: var(--highlight); border-radius: 50%; transform: translateY(-50%); }
.timeline h3 { min-height: 3.2rem; font-size: 1.05rem; }
.timeline p { color: oklch(0.78 0.02 280); font-size: .9rem; }

.share-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 40rem; background: var(--highlight); }
.share-photo { min-height: 30rem; }
.share-photo img { width: 100%; height: 100%; object-fit: cover; }
.share-copy { align-self: center; padding: clamp(3rem, 8vw, 7rem); }
.share-copy > p:not(.section-tag) { max-width: 55ch; }
.share-actions { display: flex; gap: 2rem; align-items: center; margin-top: 2rem; }
.qr-frame { flex: 0 0 10rem; padding: .75rem; background: var(--white); border: 2px solid var(--ink); box-shadow: .45rem .45rem 0 var(--primary); }
.qr-frame img { width: 100%; aspect-ratio: 1; }
#copy-status { min-height: 1.5rem; margin: .5rem 0 0; font-weight: 700; }

footer {
  display: grid; grid-template-columns: .8fr 1.4fr .8fr; gap: 2rem; align-items: center;
  padding: 2.5rem max(1.5rem, calc((100vw - 86rem) / 2)); color: var(--white); background: var(--accent); font-size: .84rem;
}
.footer-brand b { color: var(--highlight); }
footer p { margin: 0; }
footer p:last-child { text-align: right; color: var(--mint); font-weight: 900; }

@keyframes hero-in { from { opacity: 0; transform: translateY(2rem); } }
@keyframes photo-in { from { transform: scale(1.08); filter: saturate(.5); } }
@keyframes route-pop { 50% { transform: scale(.992); filter: saturate(1.25); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 44rem; padding-right: 2rem; }
  .hero-art { min-height: 32rem; clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }
  .route-strip { position: relative; }
  .destinations-intro { grid-template-columns: 1fr 1fr; }
  .destinations-intro > p:last-child { grid-column: 2; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 3rem; }
  .destination-row { grid-template-columns: 4rem .7fr 1.3fr auto; gap: 1rem; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 2rem); }
  .site-header nav { display: none; }
  .header-share { font-size: .85rem; }
  .hero-copy { min-height: 42rem; padding: 8rem 1.25rem 5rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .route-strip { font-size: .75rem; padding-inline: 1rem; }
  .section-heading, .itinerary-head { display: block; }
  .section-heading > p, .itinerary-head > p { margin-top: 1rem; }
  .planner, .itinerary { box-shadow: .35rem .35rem 0 var(--ink); }
  .option-row label { flex-basis: calc(50% - .5rem); }
  #route-list li { grid-template-columns: 3.5rem 1fr; }
  #route-list em { grid-column: 2; }
  .destinations-intro { display: block; }
  .destination-featured { grid-template-columns: 1fr; }
  .destination-row { grid-template-columns: 3.5rem 1fr auto; }
  .destination-row p { grid-column: 2 / -1; }
  .history-heading { display: block; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .share-section { grid-template-columns: 1fr; }
  .share-photo { min-height: 24rem; }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 440px) {
  .brand { font-size: .88rem; }
  .header-actions { gap: .4rem; }
  .language-toggle { padding: .42rem .5rem; font-size: .78rem; }
  .header-share { padding: .45rem .6rem; }
  .hero-copy { min-height: 40rem; }
  .hero-art { min-height: 25rem; }
  .art-ticket-top { top: 12%; }
  .timeline { grid-template-columns: 1fr; }
  .timeline h3 { min-height: 0; }
  .share-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
