/* わくわくランド — primary-colour pop: red, yellow, blue on cream, candy stripes, balloons, ticket-shaped cards.
   Each stage fades the colours, rusts the stripes, adds grain to the photos and drains the ink from the text. */
:root {
  --red: #ff4d4d;
  --red-deep: #e02b3a;
  --yellow: #ffd400;
  --yellow-soft: #fff3b0;
  --blue: #2fa8ff;
  --blue-deep: #1673d6;
  --green: #3cc46a;
  --cream: #fffaf0;
  --paper: #fff6e3;
  --card: #ffffff;
  --ink: #2b2140;
  --muted: #6c6380;
  --line: #f0e2c4;
  --shadow: 4px 5px 0 rgba(43, 33, 64, .9);
  --shadow-soft: 0 10px 30px rgba(120, 70, 20, .12);
  --photo-filter: none;
  --grain: 0;
  --f-pop: "Mochiy Pop P One", "Kiwi Maru", "Hiragino Maru Gothic ProN", sans-serif;
  --f-hand: "Hachi Maru Pop", "Kiwi Maru", cursive;
  --f-ja: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --f-num: "Bungee", "Mochiy Pop P One", system-ui, sans-serif;
  --r: 18px;
  color-scheme: light;
}
/* stage 1: a little dust */
html[data-stage="1"] { --red: #f2645c; --red-deep: #d34048; --yellow: #f6d23a; --blue: #4aa6e8; --photo-filter: saturate(.88); --grain: .05; }
/* stage 2: sun-faded */
html[data-stage="2"] { --red: #cf7867; --red-deep: #a8584d; --yellow: #e2c879; --yellow-soft: #f4ead0; --blue: #7d9db5; --blue-deep: #5d7a91; --green: #8fa786; --paper: #f5ecda; --cream: #f8f1e3; --ink: #3f3847; --muted: #7b7380; --photo-filter: saturate(.6) sepia(.14) contrast(.95); --grain: .1; }
/* stage 3-4: rust */
html:is([data-stage="3"], [data-stage="4"]) { --red: #8a6e5a; --red-deep: #6e5444; --yellow: #b8a48c; --yellow-soft: #e2d8c6; --blue: #5c5f63; --blue-deep: #4a4c50; --green: #6f7563; --paper: #e3dccf; --cream: #ebe5d9; --card: #f1ece2; --ink: #5f564e; --muted: #8b8177; --line: #cfc4b1; --shadow: 4px 5px 0 rgba(70, 58, 48, .55); --photo-filter: saturate(.4) sepia(.32) contrast(.92) brightness(.95); --grain: .17; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-ja); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .8s, color .8s; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: var(--grain); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .15 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.container { max-width: 1160px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.num { font-family: var(--f-num); letter-spacing: .02em; }
.nb { white-space: nowrap; }

/* stage visibility helpers */
html[data-stage="0"] :is(.from-1, .from-2, .from-3, .from-4),
html[data-stage="1"] :is(.from-2, .from-3, .from-4),
html[data-stage="2"] :is(.from-3, .from-4),
html[data-stage="3"] .from-4,
html:is([data-stage="1"], [data-stage="2"], [data-stage="3"], [data-stage="4"]) .until-1,
html:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .until-2,
html:is([data-stage="3"], [data-stage="4"]) .until-3 { display: none !important; }

/* photos fade with the stage */
.photo { filter: var(--photo-filter); transition: filter 1s; }

/* ---------- top bar ---------- */
.topbar { background: var(--blue-deep); color: #fff; font-size: 13px; }
.topbar .container { display: flex; gap: 12px; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar .tb-sep { color: var(--yellow); font-size: 11px; }
.topbar .tb-wait { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.6); }
.topbar .tb-right { margin-left: auto; font-family: var(--f-hand); color: var(--yellow); }
.blink { animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- header with a striped awning ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--cream); }
.site-header .container { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.awning { height: 24px; background: repeating-linear-gradient(90deg, var(--red) 0 30px, #fff 30px 60px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 9px no-repeat, radial-gradient(circle 15px at 15px 9px, #000 97%, transparent) 0 0 / 30px 24px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% 9px no-repeat, radial-gradient(circle 15px at 15px 9px, #000 97%, transparent) 0 0 / 30px 24px repeat-x;
  margin-bottom: -24px; position: relative; pointer-events: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-balloons { width: 40px; height: 47px; color: var(--ink); animation: float 4s ease-in-out infinite; transform-origin: 50% 100%; }
.logo-balloons .b1 { fill: var(--red); } .logo-balloons .b2 { fill: var(--yellow); } .logo-balloons .b3 { fill: var(--blue); }
.logo .word { font-family: var(--f-pop); font-size: 23px; line-height: 1; letter-spacing: .02em; display: flex; flex-wrap: wrap; }
.logo .word span { display: inline-block; animation: hop 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .09s); }
.logo .word span:nth-child(3n+1) { color: var(--red); } .logo .word span:nth-child(3n+2) { color: var(--blue-deep); } .logo .word span:nth-child(3n) { color: #f0a400; }
html:is([data-stage="3"], [data-stage="4"]) .logo .word span { color: var(--muted) !important; animation: none; }
.logo .word small { flex-basis: 100%; font-family: var(--f-num); font-size: 9.5px; letter-spacing: .32em; color: var(--muted); margin-top: 6px; }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 78% { transform: translateY(-5px); } 86% { transform: translateY(0); } 92% { transform: translateY(-2px); } }
@keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-3px); } }
html:is([data-stage="3"], [data-stage="4"]) .logo-balloons { animation: none; transform: rotate(8deg) translateY(4px); filter: grayscale(.7); }
.nav { display: flex; gap: 2px; margin-left: auto; font-size: 13.5px; }
.nav a { text-decoration: none; white-space: nowrap; padding: 6px 9px; border-radius: 999px; font-weight: 500; transition: background .2s, transform .2s; }
.nav a:hover { background: var(--yellow-soft); transform: translateY(-2px); }
.nav a[aria-current="page"] { background: var(--yellow); }
.menu-btn { display: none; margin-left: auto; background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; box-shadow: 2px 3px 0 var(--ink); }
.menu-btn span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); margin: 4px auto; }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 26px; font-family: var(--f-pop); font-size: 15px; text-decoration: none; border: 2.5px solid var(--ink); background: var(--red); color: #fff; cursor: pointer; box-shadow: 3px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .4s; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 4px 7px 0 var(--ink); animation: boing .5s; }
.btn:active { transform: translateY(2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.blue { background: var(--blue); }
.btn.white { background: #fff; color: var(--ink); }
.btn.sm { padding: 8px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; animation: none; transform: none; }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(1.08, .92) translateY(-2px); } 55% { transform: scale(.96, 1.05) translateY(-4px); } 80% { transform: scale(1.02, .98) translateY(-3px); } 100% { transform: translateY(-3px) rotate(-1deg); } }

/* ---------- headings ---------- */
.sec { padding-block: 64px; position: relative; }
.sec.alt { background: var(--cream); }
.sec.stripe { background: repeating-linear-gradient(-45deg, var(--yellow-soft) 0 22px, var(--cream) 22px 44px); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head .en { font-family: var(--f-num); font-size: 13px; letter-spacing: .3em; color: var(--red); display: block; }
.sec-head h2 { font-family: var(--f-pop); font-weight: 400; font-size: clamp(25px, 4vw, 36px); margin: 4px 0 0; line-height: 1.35; }
.sec-head p { margin: 10px auto 0; max-width: 40em; color: var(--muted); }
.page-head { padding: 54px 0 30px; text-align: center; background: radial-gradient(circle at 12% 30%, var(--yellow-soft) 0 70px, transparent 71px), radial-gradient(circle at 88% 70%, color-mix(in srgb, var(--blue) 22%, transparent) 0 60px, transparent 61px); }
.page-head .en { font-family: var(--f-num); color: var(--red); letter-spacing: .3em; font-size: 13px; }
.page-head h1 { font-family: var(--f-pop); font-weight: 400; font-size: clamp(28px, 5vw, 44px); margin: 4px 0 6px; line-height: 1.3; }
.page-head p { margin: 0 auto; max-width: 40em; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.hand { font-family: var(--f-hand); }
.pill { display: inline-block; font-family: var(--f-pop); font-size: 12.5px; padding: 3px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); line-height: 1.5; }
.pill.red { background: var(--red); color: #fff; } .pill.blue { background: var(--blue); color: #fff; }
.note { font-size: 13.5px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 46px 0 70px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--f-pop); font-weight: 400; font-size: clamp(34px, 5.6vw, 62px); line-height: 1.22; margin: 14px 0 16px; }
.hero h1 .bounce span { display: inline-block; animation: hop 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * .07s); }
.hero h1 .c1 { color: var(--red); } .hero h1 .c2 { color: var(--blue-deep); } .hero h1 .c3 { color: #f0a400; text-shadow: 2px 2px 0 var(--ink); }
html:is([data-stage="3"], [data-stage="4"]) .hero h1 :is(.c1, .c2, .c3) { color: var(--muted); text-shadow: none; }
.hero .lead { font-size: 17px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; border: 4px solid var(--ink); box-shadow: 8px 9px 0 var(--ink); transform: rotate(1.2deg); aspect-ratio: 16 / 9; background: #ddd; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .tag { position: absolute; left: 14px; bottom: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-size: 13px; }
.today { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 8px 16px; box-shadow: 3px 4px 0 var(--ink); font-size: 14.5px; }
.today b { font-family: var(--f-pop); font-weight: 400; color: var(--red); }

/* floating balloons */
.balloons { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.balloons i { position: absolute; bottom: -90px; width: 46px; height: 56px; border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%; background: var(--c); opacity: .9; animation: rise var(--d) linear infinite; animation-delay: var(--dl); box-shadow: inset -6px -8px 0 rgba(0,0,0,.08), inset 7px 6px 0 rgba(255,255,255,.35); }
.balloons i::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.4px; height: 70px; background: rgba(43,33,64,.35); }
@keyframes rise { 0% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(18px, -60vh) rotate(4deg); } 100% { transform: translate(-10px, -125vh) rotate(-3deg); } }
html[data-stage="2"] .balloons i { animation-duration: calc(var(--d) * 2.4); opacity: .55; }
html:is([data-stage="3"], [data-stage="4"]) .balloons i { animation: sag 6s ease-in-out infinite alternate; animation-delay: var(--dl); bottom: 6px; background: #9a9088; opacity: .5; border-radius: 52% 48% 60% 40% / 40% 50% 50% 60%; height: 34px; }
@keyframes sag { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(8deg) translateY(4px); } }
.hero .container > * { position: relative; z-index: 1; }

/* ---------- ticket-shaped card ---------- */
.tk { --notch: 13px; position: relative; background: var(--card); border-radius: 16px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--ny, 50%), transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--ny, 50%), transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 var(--ny, 50%), transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--ny, 50%), transparent 97%, #000) right / 51% 100% no-repeat;
  border: 2.5px solid var(--ink); }
.tk-wrap { filter: drop-shadow(0 0 0 transparent); }
.tk .perf { border-top: 2.5px dashed var(--line); margin: 0 18px; }

/* grids */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- wait board ---------- */
.board { background: #1e1a2b; color: #fff; border-radius: 22px; padding: 18px; border: 4px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.board::before { content: ""; position: absolute; inset: 8px; border-radius: 16px; border: 2px dotted rgba(255, 212, 0, .45); pointer-events: none; }
html:is([data-stage="3"], [data-stage="4"]) .board { background: #3b3631; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 2px 8px 10px; font-size: 13px; color: #d9d2ea; }
.board-head b { font-family: var(--f-pop); font-weight: 400; font-size: 18px; color: var(--yellow); }
.board-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.board-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 12px; text-decoration: none; color: #fff; min-width: 0; }
.board-row .nm { font-size: 13.5px; line-height: 1.35; min-width: 0; }
.board-row .wt { font-family: var(--f-num); font-size: 26px; line-height: 1; color: #ffe66b; text-shadow: 0 0 8px rgba(255, 220, 60, .6); white-space: nowrap; }
.board-row .wt small { font-family: var(--f-ja); font-size: 12px; margin-left: 2px; color: #fff; text-shadow: none; }
.board-row .wt.off { font-family: var(--f-ja); font-size: 13px; color: #bbb; text-shadow: none; }
html:not([data-stage="0"]) .board-row .wt { color: #ff6a5a; text-shadow: 0 0 8px rgba(255, 80, 60, .6); }

/* ---------- attraction cards ---------- */
.ride { text-decoration: none; color: inherit; display: flex; flex-direction: column; overflow: hidden; }
.ride .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.ride .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ride:hover .ph img { transform: scale(1.04); }
.ride .badge { position: absolute; right: 12px; top: 12px; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 14px; padding: 4px 10px; text-align: center; line-height: 1.1; box-shadow: 2px 3px 0 var(--ink); transform: rotate(3deg); }
.ride .badge small { display: block; font-size: 10.5px; }
.ride .badge b { font-family: var(--f-num); font-weight: 400; font-size: 24px; }
html:not([data-stage="0"]) .ride .badge { background: var(--red); color: #fff; }
.ride .bd { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ride h3 { font-family: var(--f-pop); font-weight: 400; font-size: 18px; margin: 0; line-height: 1.4; }
.ride p { margin: 0; font-size: 14.5px; }
.ride .spec { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.ride .spec span { background: var(--yellow-soft); border-radius: 999px; padding: 1px 10px; }
.ride .status { font-size: 13.5px; color: var(--muted); }
.ride .status.alert { color: var(--red-deep); font-weight: 500; }
.ride .more { margin-top: auto; align-self: flex-start; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(30, 20, 40, .62); display: grid; place-items: center; padding: 18px; overflow-y: auto; }
.modal-box { position: relative; width: min(640px, 100%); background: var(--card); border: 4px solid var(--ink); border-radius: 24px; padding: 28px 26px 24px; box-shadow: 8px 9px 0 var(--ink); animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); max-height: calc(100dvh - 36px); overflow-y: auto; }
.modal-box h3 { font-family: var(--f-pop); font-weight: 400; font-size: 21px; margin: 0 0 10px; line-height: 1.4; }
.modal-close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--yellow); cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes pop { from { transform: scale(.7) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 40px; background: var(--blue-deep); color: #fff; padding: 64px 0 90px; font-size: 14px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 26px; background: radial-gradient(circle 26px at 26px 26px, var(--blue-deep) 98%, transparent) 0 0 / 52px 26px repeat-x; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.site-footer .logo { background: var(--cream); padding: 8px 14px; border-radius: 16px; }
.site-footer h4 { font-family: var(--f-pop); font-weight: 400; margin: 0 0 10px; color: var(--yellow); font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1.5px dashed rgba(255,255,255,.4); padding-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.site-footer .legal button { background: none; border: 1.5px solid rgba(255,255,255,.6); color: #fff; border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 12.5px; }

/* BGM switch */
.bgm { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: flex; align-items: center; gap: 8px; }
.bgm-btn { display: inline-flex; align-items: center; gap: 6px; border: 2.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 6px 14px 6px 10px; font-family: var(--f-pop); font-size: 13px; cursor: pointer; box-shadow: 2px 3px 0 var(--ink); }
.bgm-btn .bgm-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); }
.bgm-btn.on .bgm-ico { background: var(--red); color: #fff; animation: hop 1.2s ease-in-out infinite; }
.bgm-note { font-size: 12px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 10px; border: 1.5px solid var(--line); }

/* ---------- alteration overlay ---------- */
.alter { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer; background: #000; }
.alter canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.alter .msg { position: relative; text-align: center; color: #fff; font-family: var(--f-ja); font-size: clamp(22px, 4vw, 40px); font-weight: 500; letter-spacing: .12em; text-shadow: 3px 0 #ff2a2a, -3px 0 #2affff; animation: jit .18s steps(2) infinite; padding: 0 16px; }
.alter .msg small { display: block; margin-top: 18px; font-size: 13px; letter-spacing: .3em; text-shadow: none; color: #bbb; animation: none; }
@keyframes jit { 0% { transform: translate(0, 0); } 50% { transform: translate(-2px, 1px); } 100% { transform: translate(2px, -1px); } }
html.glitching body { animation: gl .55s steps(3); }
@keyframes gl { 0% { filter: hue-rotate(0) contrast(1); transform: translateX(0); } 33% { filter: hue-rotate(60deg) contrast(1.6); transform: translateX(-6px); } 66% { filter: grayscale(1) contrast(2); transform: translateX(5px); } 100% { filter: none; transform: none; } }

/* ---------- rust: stage 3+ text loses its ink ---------- */
html:is([data-stage="3"], [data-stage="4"]) :is(.btn, .pill) { background: var(--yellow-soft); color: var(--ink); }
html:is([data-stage="3"], [data-stage="4"]) .awning { background: repeating-linear-gradient(90deg, #8a6e5a 0 30px, #d8cfc0 30px 60px); opacity: .8; }
html:is([data-stage="3"], [data-stage="4"]) .topbar { background: #4f4740; }
html:is([data-stage="3"], [data-stage="4"]) .site-footer, html:is([data-stage="3"], [data-stage="4"]) .site-footer::before { background-color: #55504a; }
html:is([data-stage="3"], [data-stage="4"]) .site-footer::before { background: radial-gradient(circle 26px at 26px 26px, #55504a 98%, transparent) 0 0 / 52px 26px repeat-x; }
.rust { background-image: radial-gradient(circle at 20% 30%, rgba(120, 60, 20, .35) 0 3px, transparent 4px), radial-gradient(circle at 70% 60%, rgba(120, 60, 20, .3) 0 5px, transparent 6px); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .lbl { font-family: var(--f-pop); font-size: 14px; }
.field input, .field select { border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; background: #fff; font-size: 16px; min-width: 0; }
.date-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.date-row select { width: auto; }
.err { color: var(--red-deep); font-weight: 500; font-size: 14.5px; min-height: 1.5em; margin: 6px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { position: fixed; left: 12px; right: 12px; top: 112px; flex-direction: column; gap: 2px; background: var(--cream); border: 3px solid var(--ink); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); display: none; z-index: 45; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 14px; font-size: 15px; }
  .menu-btn { display: block; }
  .hdr-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .board-list { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .site-header .container { gap: 10px; min-height: 64px; }
  .logo .word { font-size: 19px; }
  .logo-balloons { width: 32px; height: 38px; }
  .hdr-cta { padding: 6px 12px; font-size: 12.5px; }
  .nav { top: 100px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .board-list { grid-template-columns: 1fr; }
  .sec { padding-block: 46px; }
  .topbar .tb-right { display: none; }
  .site-footer .container { grid-template-columns: 1fr; }
  .bgm-note { display: none; }
  .modal-box { padding: 24px 18px 20px; }
}
@media (max-width: 380px) { .hdr-cta { display: none; } }

/* ---------- Ferris wheel (photo layers) ---------- */
.wheel { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; background: #2d7fd0; }
.wheel img { -webkit-user-drag: none; }
.wheel .wl-bg { width: 100%; height: 100%; object-fit: cover; }
.wheel .wl-ring { position: absolute; max-width: none; transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
.wheel .wl-gons { position: absolute; inset: 0; }
.wheel .wl-gon { position: absolute; left: 0; top: 0; will-change: transform; }
.wheel .wl-gon img { width: 100%; pointer-events: none; }
.wheel .plate { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); font-family: var(--f-num); font-size: var(--fs, 12px); line-height: 1.15; background: #fffdf6; color: #2b2140; border-radius: .2em; padding: .05em .28em 0; box-shadow: 0 1px 1px rgba(0,0,0,.35); pointer-events: none; }
.wheel .g13 .plate { background: #cfc8bb; color: #3a332c; }
.wheel .wl-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wheel .wl-gon[role="button"] { cursor: pointer; }
.wheel .wl-gon[role="button"]:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 30%; }
.wheel.draggable { cursor: grab; touch-action: none; }
.wheel.grabbing { cursor: grabbing; }
.wl-bubble { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 10px)); background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 4px 12px; font-family: var(--f-pop); font-size: 14px; white-space: nowrap; box-shadow: 2px 3px 0 var(--ink); pointer-events: none; animation: pop .3s cubic-bezier(.3,1.6,.5,1); }
.wl-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: #fff; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); }

/* ---------- 1999 newspaper ---------- */
.np-modal { position: fixed; inset: 0; z-index: 85; background: rgba(24, 18, 12, .78); display: grid; place-items: center; padding: 14px; }
.np-wrap { min-width: 0; width: min(1040px, 100%); max-height: calc(100dvh - 28px); display: flex; flex-direction: column; gap: 12px; align-items: center; animation: pop .35s ease-out; }
.np-scroll { overflow: auto; width: 100%; max-width: 100%; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #e9e0c7; }
.np { width: max-content; min-width: 100%; padding: 18px 22px 22px; color: #2a2520; font-family: "Noto Serif JP", "Yu Mincho", serif; background:
  radial-gradient(ellipse at 20% 10%, rgba(120, 90, 40, .10), transparent 60%), radial-gradient(ellipse at 90% 90%, rgba(120, 90, 40, .16), transparent 55%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"), #e9e0c7; }
.np-head { display: flex; flex-direction: row-reverse; align-items: baseline; gap: 18px; border-bottom: 4px double #2a2520; padding-bottom: 6px; font-size: 14px; }
.np-head .np-name { font-weight: 900; font-size: 24px; letter-spacing: .35em; margin: 0 auto; }
.np-head .np-ed { border: 1.5px solid #2a2520; padding: 0 6px; }
.np-body { display: flex; flex-direction: row-reverse; align-items: stretch; height: 27em; margin-top: 14px; font-size: 16px; }
.np-midashi { writing-mode: vertical-rl; display: flex; flex-direction: column; gap: 10px; padding-left: 16px; margin-left: 16px; border-left: 1px solid #6b6052; }
.np-midashi p, .np-midashi h2 { margin: 0; }
.np-sode { font-size: 21px; font-weight: 700; padding-top: .6em; }
.np-main { font-size: 40px; font-weight: 900; letter-spacing: .02em; line-height: 1.1; }
.np-beta { background: #2a2520; color: #e9e0c7; font-size: 24px; font-weight: 900; padding: .5em .18em; line-height: 1.15; align-self: flex-start; }
.np-sode2 { font-size: 19px; font-weight: 700; padding-top: 5em; }
.np-right { display: flex; flex-direction: row-reverse; align-items: stretch; gap: 18px; }
.np-dan { writing-mode: vertical-rl; font-size: 16px; line-height: 1.75; white-space: pre-line; text-align: justify; letter-spacing: .02em; }
.np-photo { margin: 0; width: 300px; align-self: center; }
.np-photo img { width: 100%; filter: contrast(1.05); }
.np-photo figcaption { font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.np-sub { display: flex; flex-direction: row-reverse; margin-right: 18px; padding-right: 12px; border-right: 1px solid #6b6052; }
.np-sub section { writing-mode: vertical-rl; padding-left: 12px; margin-left: 12px; border-left: 1px solid #b3a68e; font-size: 14px; line-height: 1.7; }
.np-sub h3 { font-size: 18px; font-weight: 700; margin: 0 0 0 .5em; }
.np-sub p { margin: 0; }
.np-weather { background: rgba(60, 50, 40, .06); }
.np-close { font-family: var(--f-pop); background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 22px; cursor: pointer; box-shadow: 2px 3px 0 var(--ink); }
