/* 町を歩く */
.walk-page { --sil: #060914; --far: #121b38; --far2: #0d1530; --p: 0; }
.walk { position: relative; height: 100vh; height: 100svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(#050a1e, #0d1838); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.far, .world { position: absolute; left: 0; bottom: 0; will-change: transform; }
.far { height: 100%; width: 100%; pointer-events: none; }
.far-svg { position: absolute; left: 0; bottom: 0; fill: var(--far); }
.far-svg .hill { fill: var(--far2); }
.far-svg .fw { fill: var(--lamp); opacity: calc(.7 - var(--p) * .6); }
.world { height: 100%; pointer-events: none; }
.mid, .fore { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; }
.mid-svg, .fore-svg { position: absolute; left: 0; bottom: 0; }
.far-svg, .mid-svg, .fore-svg { max-width: none; }
.mid-svg { fill: var(--mid); }
.mid-svg .ant { fill: none; stroke: var(--mid); stroke-width: 3; }
.mid-svg .mw { fill: var(--lamp); opacity: calc(.38 - var(--p) * .34); }
.fore { z-index: 3; }
.fore-svg { fill: #03050c; filter: blur(2px); opacity: .92; }
.fore-svg .rope { fill: none; stroke: #03050c; stroke-width: 5; }
/* 水平線のかすみと、画面のふちの暗がり */
.haze { position: absolute; left: 0; right: 0; bottom: calc(var(--haze, 0) * 1px); height: 55%; pointer-events: none;
  background: linear-gradient(to top, transparent 0%, color-mix(in srgb, var(--hazec, #1a2550) 30%, transparent) 30%, transparent 85%); mix-blend-mode: screen; }
.vignette { position: absolute; inset: 0; pointer-events: none; z-index: 4; background: radial-gradient(ellipse 120% 90% at 50% 55%, transparent 55%, rgba(2, 4, 12, .55) 100%); }
.under { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--sil); }
.place { position: absolute; bottom: 0; }
.place > svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; overflow: hidden; }

/* シルエットと光 */
.place .s { fill: var(--sil); }
.place .tower-shade { fill: var(--sil); opacity: calc(.62 - var(--p) * .45); }
.place .band { fill: color-mix(in srgb, var(--sil) 40%, #b04040); }
.place .line { stroke: var(--sil); }
.place .wire { stroke: var(--sil); stroke-width: 2; opacity: .9; }
.place .road { fill: rgba(255, 255, 255, .05); }
.place .dk { fill: color-mix(in srgb, var(--sil) 75%, #2a3150); }
.place .lw { fill: var(--lamp); }
.place .lw.dim { opacity: .55; }
.place .lc { fill: #e6f4ff; }
.place .win { animation: winflick 9s infinite steps(1); }
.place .win:nth-of-type(3n) { animation-delay: -3s; }
@keyframes winflick { 0%, 96% { opacity: 1; } 97% { opacity: .6; } 98% { opacity: 1; } }
.place .glow { mix-blend-mode: screen; pointer-events: none; }
.place .glow.soft { opacity: .55; }
.place .sign { fill: #ece3c8; }
.place .sign-t { font-family: var(--hand); font-size: 30px; fill: #1b2340; }
.place .sign-s { font-family: var(--hand); font-size: 20px; fill: #1b2340; }
.place .arch-t { font-family: var(--hand); font-size: 30px; fill: var(--lamp); opacity: .85; }
.place .lantern { fill: #ffcf7a; opacity: .92; }
.place .lantern-rib { stroke: #c4813a; stroke-width: 1.2; fill: none; opacity: .6; }
.place .isaribi { fill: #ffd890; animation: flick 6s infinite; }
.place .tetra { fill: none; stroke: var(--sil); stroke-width: 22; stroke-linecap: round; }
.place .shutter { fill: color-mix(in srgb, var(--sil) 80%, #4b5470); }
.place .shline { fill: var(--sil); opacity: .6; }
.place .rail { fill: color-mix(in srgb, var(--sil) 60%, #8890aa); }
.place .barbody { fill: color-mix(in srgb, var(--sil) 50%, #d8c27a); }
.place .barstripe { fill: var(--sil); }
.place .sxb { fill: color-mix(in srgb, var(--sil) 50%, #d8d8d8); }
.place .xlamp { fill: #3b0f12; transition: fill .05s; }
.place .xlamp.on { fill: #ff4a3d; }
.place .xglow { opacity: 0; mix-blend-mode: screen; transition: opacity .05s; }
.place .xglow.on { opacity: 1; }
.place .bar { transform-box: view-box; transform-origin: 325px 743px; transform: rotate(-78deg); transition: transform 1.4s cubic-bezier(.5, 0, .3, 1); }
.place .bar.down { transform: rotate(0deg); }
.place .train { transform: translateX(-1500px); visibility: hidden; }
.place .vpanel { fill: color-mix(in srgb, var(--sil) 60%, #44506e); }
.place .vbtn { fill: #9fd4ff; }
.place .can-out { opacity: 0; }
.place .moths circle { fill: #e6f0ff; animation: moth 2.4s ease-in-out infinite alternate; }
.place .moths circle:nth-child(2) { animation-duration: 1.7s; }
.place .moths circle:nth-child(3) { animation-duration: 3.1s; }
@keyframes moth { to { transform: translate(14px, -10px); } }
.place .cine-v { font-family: var(--hand); font-size: 40px; fill: #5a4a3a; }
.place .cine-v.flick, .place .flick { animation: flick 4s infinite; }
.place .cine-v.flick { fill: #ffcf73; }
@keyframes flick { 0%, 40%, 44%, 100% { opacity: 1; } 42% { opacity: .2; } 70% { opacity: .85; } 71% { opacity: .25; } 72% { opacity: 1; } }
.place .cine-m { font-family: var(--gothic); font-weight: 700; font-size: 24px; fill: #4a4458; }
.place .bulb { fill: #3a3446; }
.place .plank { stroke: color-mix(in srgb, var(--sil) 70%, #5a4a3a); }
.place .frame { stroke: color-mix(in srgb, var(--sil) 50%, #7a6a50); }
.place .post-t { font-family: var(--mincho); font-size: 14px; fill: #2a2440; }
.place .poster { transform-box: fill-box; transform-origin: center; transition: transform .6s ease; }
.place .poster.flip { transform: perspective(400px) rotateY(180deg); }
.place .far2 rect, .place .far2 { fill: var(--far2); }
.place .far2 .dk { fill: color-mix(in srgb, var(--far2) 70%, #000); }
.place .far2 .yard { fill: color-mix(in srgb, var(--far2) 55%, var(--sil)); }
.place .bike .tire { fill: none; stroke: var(--sil); stroke-width: 5; }
.place .bike .spoke { stroke: var(--sil); stroke-width: 1.2; opacity: .8; }
.place .bike .frame { fill: none; stroke: var(--sil); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.place .clock { fill: #c9c6b4; opacity: .7; }
.place .plate { fill: #d8d2bc; }
.place .plate-t { font-family: var(--mincho); font-weight: 700; font-size: 17px; fill: #2a2440; }
.place .gate { transition: transform 1.1s cubic-bezier(.5, 0, .3, 1); }
.place .gate.open#gateL { transform: translateX(-70px); }
.place .gate.open#gateR { transform: translateX(70px); }
.place .joint { fill: color-mix(in srgb, var(--sil) 70%, #50587a); }
.place .shell { fill: #d9b8a6; opacity: .85; }
.place .boat { transform-box: view-box; transform-origin: 575px 800px; animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(5px); } }
.place .mast.flash { animation: mastflash .3s 4 alternate; }
@keyframes mastflash { from { opacity: .3; } to { opacity: 1.6; transform: scale(1.5); transform-origin: 621px 518px; } }
.place .beam { transform-box: view-box; transform-origin: 560px 447px; animation: beam 7s ease-in-out infinite; mix-blend-mode: screen; opacity: calc(1 - var(--p) * .9); }
@keyframes beam { 0% { transform: scaleX(1) rotate(-3deg); } 50% { transform: scaleX(-1) rotate(3deg); } 100% { transform: scaleX(1) rotate(-3deg); } }
.place .lantern-room { animation: lr 7s ease-in-out infinite; }
@keyframes lr { 0%, 100% { opacity: 1; } 25%, 75% { opacity: .6; } }
.place .marble { animation: roll 3.2s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
@keyframes roll { from { transform: translateX(-40px); } to { transform: translateX(40px); } }


/* 描きこみ（月明かりのふち・質感・窓・看板） */
.walk-page { --rimc: color-mix(in srgb, #9fb6f0 calc((1 - var(--p)) * 100%), #ffc59a); }
.place .rim { fill: none; stroke: var(--rimc); stroke-width: 2; opacity: .34; stroke-linecap: round; stroke-linejoin: round; }
.place .far-rim { fill: none; stroke: var(--rimc); stroke-width: 2; opacity: .25; }
.place .tex { fill: none; stroke: rgba(160, 180, 240, .07); stroke-width: 1.5; }
.place .curb { fill: rgba(160, 180, 240, .14); }
.place .roadline { fill: rgba(233, 230, 242, .1); }
.place .tactile { fill: #c9a640; opacity: .32; }
.place .wframe { fill: color-mix(in srgb, var(--sil) 82%, #3a3350); }
.place .mull { stroke: color-mix(in srgb, var(--sil) 80%, #3a3350); stroke-width: 3; }
.place .glass { stroke: rgba(160, 190, 255, .12); stroke-width: 3; fill: none; }
.place .curtain { fill: #c46f3a; opacity: .45; }
.place .wsil { fill: #5a3a22; opacity: .7; }
.place .win.dim { opacity: .62; }
.place .far2 .win { fill: url(#gWin); }
.place .insul { fill: color-mix(in srgb, var(--sil) 60%, #7b84a8); }
.place .plate-sm { fill: color-mix(in srgb, var(--sil) 55%, #8a8fa8); }
.place .cone { mix-blend-mode: screen; pointer-events: none; opacity: calc(1 - var(--p) * .8); }
.place .eye { fill: #d8f07a; animation: blink 6s infinite; }
@keyframes blink { 0%, 95%, 100% { opacity: 1; } 96%, 98% { opacity: 0; } }
.place .ek-board { fill: #eef1f4; }
.place .ek-big { font-family: var(--gothic); font-weight: 700; font-size: 30px; fill: #1b2340; }
.place .ek-sub { font-family: var(--gothic); font-weight: 700; font-size: 11px; fill: #3a4460; }
.place .ek-band { fill: #1f4f8f; }
.place .ek-next { font-family: var(--gothic); font-size: 10px; fill: #fff; }
.place .clockf { fill: #e8e4d6; }
.place .poster-a { fill: #b5664a; opacity: .55; }
.place .poster-b { fill: #4e7aa0; opacity: .5; }
.place .poster-c { fill: #c9b27a; opacity: .45; }
.place .shop-sign { fill: color-mix(in srgb, var(--sil) 60%, #5a5368); }
.place .shop-sign.lit { fill: #f0e3c0; }
.place .shop-t { font-family: var(--mincho); font-weight: 700; font-size: 17px; fill: color-mix(in srgb, var(--sil) 40%, #9a93a8); }
.place .shop-t.lit { fill: #4a2c1a; }
.place .awning { fill: #6e2f2a; opacity: .85; }
.place .sign-y { fill: #e8c43a; }
.place .sign-ys { font-family: var(--gothic); font-weight: 700; font-size: 11px; fill: #1b1b1b; }
.place .trainline { fill: #9c3a34; opacity: .8; }
.place .vlogo { fill: #d84a3a; }
.place .cine-top { font-family: var(--mono); font-size: 18px; letter-spacing: .2em; fill: #6a5a48; }
.place .cine-s { font-family: var(--gothic); font-weight: 700; font-size: 11px; fill: #3a3446; }
.place .nail { fill: #8a8090; }
.place .torn { fill: #8a7f6a; opacity: .45; }
.place .fence { opacity: .9; }
.place .fence { fill: url(#pFence); }
.place .sea-peek { fill: color-mix(in srgb, var(--sil) 50%, #1c2a58); }
.place .sea-line { stroke: #9fb6f0; stroke-width: 2; opacity: .35; animation: shim 3s ease-in-out infinite alternate; }
@keyframes shim { to { opacity: .1; transform: translateX(8px); } }
.far-svg .tower-far { fill: var(--far2); stroke: var(--far2); stroke-width: 2; }
.far-svg .red-blink { fill: #ff4a3d; animation: redblink 2.4s steps(1) infinite; opacity: calc(1 - var(--p)); }
@keyframes redblink { 0%, 50% { opacity: .9; } 51%, 100% { opacity: .15; } }
/* 画面全体のざらつき（紙の質感） */
.stage::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* さわれるもの */
.place .poke { pointer-events: all; cursor: pointer; outline: none; }
.place .poke .hit { fill: transparent; }
.place .poke .ring { fill: none; stroke: var(--lamp); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.place.near .poke:not(.done) .ring { animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.5); } }
.place .poke:focus-visible .hit { stroke: var(--lamp); stroke-width: 3; }
.place .glint { fill: #fff8d8; transform-box: fill-box; transform-origin: center; animation: glint 1.8s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: .2; transform: scale(.5) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
.place .item-on.got { display: none; }
.place .hidden { display: none; }
.poke.done { cursor: default; }

/* HUD */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; transition: opacity .8s; }
.hud button, .hud a { pointer-events: auto; }

/* 町の10か所（道のり） */
.route {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--head-h) + 2px);
  width: min(560px, calc(100% - 32px)); text-align: center;
}
.route-dots { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.route-dots::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--line); }
.route-dots::after { content: ''; position: absolute; left: 6px; top: 50%; height: 1px; background: var(--lamp); width: calc((100% - 12px) * var(--route, 0)); transition: width .3s; }
.route-dots li { position: relative; z-index: 1; }
.route-dot {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.route-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--night); border: 1px solid rgba(233, 230, 242, .5); transition: all .3s; }
.route-dot.passed::before { background: var(--lamp); border-color: var(--lamp); }
.route-dot.now::before { width: 11px; height: 11px; background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 0 4px rgba(255, 211, 107, .2), 0 0 14px rgba(255, 211, 107, .7); }
.route-now { margin: 2px 0 0; font-size: 13px; display: flex; gap: 8px; justify-content: center; align-items: baseline; text-shadow: 0 0 10px rgba(5, 10, 30, .9); }
.route-no { font-family: var(--mono); font-size: 11px; color: var(--lamp); }

.clock { position: absolute; left: max(18px, env(safe-area-inset-left)); top: calc(var(--head-h) + 62px); display: flex; flex-direction: column; font-family: var(--mono); line-height: 1.2; }
.clock-l { font-family: var(--gothic); font-size: 10px; letter-spacing: .14em; color: var(--ink-dim); }
.clock-t { font-size: 30px; font-weight: 500; letter-spacing: .02em; color: var(--lamp); text-shadow: 0 0 18px rgba(255, 211, 107, .35); }

.place-card {
  position: absolute; right: max(18px, env(safe-area-inset-right)); top: calc(var(--head-h) + 64px);
  display: flex; flex-direction: row-reverse; gap: 16px; align-items: flex-start;
  max-height: calc(100% - var(--head-h) - 260px);
  opacity: 0; transition: opacity .5s;
}
.place-card.show { opacity: 1; }
.pc-track { writing-mode: vertical-rl; margin: 0; display: flex; gap: 10px; align-items: center; }
.pc-no { font-family: var(--gothic); font-size: 11px; color: var(--lamp); letter-spacing: .1em; }
.pc-name { font-family: var(--mincho); font-weight: 700; font-size: 24px; letter-spacing: .14em; }
.pc-lyric { writing-mode: vertical-rl; margin: 0; font-family: var(--mincho); font-size: 18px; line-height: 2.2; letter-spacing: .16em; text-shadow: 0 0 14px rgba(5, 10, 30, .95); }
.pc-lyric .ln { display: block; }
.pc-lyric .ln + .ln { margin-top: 2.4em; }
.pc-lyric .ch { opacity: 0; display: inline-block; }
@media (max-width: 640px) {
  .pc-name { font-size: 19px; }
  .pc-lyric { font-size: 15px; }
  .clock-t { font-size: 24px; }
  .route-now { font-size: 12px; }
}

/* 下：ヒント・拾ったもの・次へ */
.controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 max(14px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: 'tip tip tip' 'bag bag bag' 'prev . next'; gap: 10px; align-items: center;
}
.tip { grid-area: tip; margin: 0; text-align: center; font-size: 13px; letter-spacing: .06em; text-shadow: 0 0 10px #000, 0 0 4px #000; min-height: 1.5em; transition: opacity .4s; }
.tip b { color: var(--lamp); font-weight: 700; }
.steps { display: contents; }
.step-prev, .step-next {
  min-height: 48px; border-radius: 999px; cursor: pointer; font-family: var(--gothic); font-weight: 700; font-size: 15px;
  transition: opacity .3s, background .2s, transform .2s;
}
.step-prev { grid-area: prev; justify-self: start; width: 48px; border: 1px solid rgba(233, 230, 242, .35); background: rgba(5, 10, 30, .45); }
.step-next { white-space: nowrap; grid-area: next; justify-self: end; padding: 0 22px; border: 0; background: var(--lamp); color: #15131f; display: inline-flex; gap: 10px; align-items: center; box-shadow: 0 6px 24px rgba(255, 211, 107, .25); }
.step-next:hover { background: #ffe39a; }
.step-prev:disabled, .step-next:disabled { opacity: .3; cursor: default; }
.step-next:active, .step-prev:active { transform: scale(.96); }
.moving .step-next, .moving .step-prev { opacity: .5; }

.bag {
  grid-area: bag; justify-self: center; display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 14px; border-radius: 999px;
  background: rgba(5, 10, 30, .5); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: auto; max-width: 100%;
}
.bag-count { font-size: 11px; color: var(--ink-dim); white-space: nowrap; letter-spacing: .06em; }
.bag-slots { display: flex; gap: 4px; }
.bag-slot { width: 32px; height: 32px; border-radius: 50%; border: 1px dashed rgba(233, 230, 242, .28); background: none; padding: 3px; display: grid; place-items: center; }
.bag-slot.got { border-style: solid; border-color: rgba(255, 211, 107, .5); background: rgba(255, 211, 107, .08); cursor: pointer; }
.bag-slot.new { animation: pop .6s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.bag-slot svg { width: 100%; height: 100%; }
@media (min-width: 900px) {
  .controls { grid-template-areas: 'tip tip tip' 'prev bag next'; }
}
@media (max-width: 420px) {
  .bag { gap: 6px; padding-left: 10px; }
  .bag-count { display: none; }
  .bag-slot { width: 30px; height: 30px; }
}

/* はじまり */
.intro {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: calc(var(--head-h) + 10px) 22px 28px; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 60%, rgba(5, 10, 30, .78), rgba(5, 10, 30, .94) 75%);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  transition: opacity 1s, visibility 1s;
}
.intro-in { text-align: center; max-width: 560px; }
.intro-kicker { font-family: var(--hand); font-size: clamp(18px, 4.6vw, 22px); margin: 0; letter-spacing: .1em; }
.intro .intro-album { font-family: var(--mincho); font-weight: 700; font-size: clamp(28px, 8.2vw, 60px); white-space: nowrap; line-height: 1.25; margin: 6px 0 4px; letter-spacing: .08em; }
.intro-date { font-family: var(--mono); color: var(--lamp); margin: 0; font-size: 15px; letter-spacing: .12em; }
.intro-lead { font-family: var(--mincho); font-size: clamp(14px, 3.8vw, 17px); line-height: 2.1; margin: 22px 0 24px; }
.intro-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.intro-btns .btn { min-width: 200px; }
.intro-how { list-style: none; padding: 0; margin: 26px auto 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 12px; color: var(--ink-dim); line-height: 1.6; max-width: 520px; }
.intro-how li { border-top: 1px solid var(--line); padding-top: 10px; }
.intro-how b { display: block; font-family: var(--hand); font-weight: 400; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.intro-skip { font-size: 13px; color: var(--ink-dim); }
@media (max-width: 520px) {
  .intro-lead br { display: none; }
  .intro-how { grid-template-columns: 1fr; gap: 0; text-align: left; font-size: 12px; margin: 20px auto 14px; }
  .intro-how li { display: flex; gap: 12px; align-items: baseline; padding: 7px 2px; }
  .intro-how b { display: inline; font-size: 14px; flex: none; }
}
body:not(.is-intro) .intro { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-intro .hud { opacity: 0; }
.stage { touch-action: none; }

/* 夜明けの切符 */
.dawn {
  position: relative; z-index: 2;
  background: linear-gradient(#ffc58f 0%, #f6d9bd 30%, #f4ead6 100%); color: #2a2440;
  padding: 80px 20px 60px;
}
.dawn-in { max-width: 560px; margin: 0 auto; text-align: center; }
.dawn-arrive { font-family: var(--mincho); margin: 0; font-size: 17px; }
.dawn-time { font-family: var(--mono); font-size: 30px; font-weight: 500; margin-right: 6px; }
.dawn h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(32px, 8vw, 46px); margin: 6px 0 24px; letter-spacing: .08em; }
.ticket-wrap { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(60, 40, 60, .25); }
.ticket { width: 100%; height: auto; }
.ticket-note { font-size: 13px; color: #6b5a44; margin: 14px 0 22px; }
.ticket-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dawn .btn-main { background: #2a2440; color: #fff4dc; }
.dawn .btn-main:hover { background: #3c3458; }
.dawn .btn-sub { color: #2a2440; border-color: rgba(42, 36, 64, .4); }
.again { margin-top: 22px; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: #6b5a44; font-size: 14px; }
.release { max-width: 560px; margin: 70px auto 0; text-align: center; border-top: 1px solid rgba(42, 36, 64, .2); padding-top: 50px; }
.rel-label { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; margin: 0; }
.rel-title { font-family: var(--hand); font-size: clamp(30px, 8vw, 44px); margin: 4px 0; letter-spacing: .06em; }
.rel-date { font-family: var(--mono); font-size: 18px; margin: 0 0 24px; }
.rel-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; }

/* メモ（拾ったもの・昔の話） */
.note-dlg {
  border: 0; padding: 0; border-radius: 14px; max-width: min(400px, calc(100% - 32px));
  background: var(--paper); color: #2a2440; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.note-dlg::backdrop { background: rgba(5, 10, 30, .6); backdrop-filter: blur(3px); }
.note-dlg form { padding: 26px 26px 22px; text-align: center; }
.note-icon { width: 76px; height: 76px; margin: 0 auto 6px; }
.note-name { font-family: var(--hand); font-size: 22px; margin: 0 0 8px; }
.note-text { font-family: var(--mincho); margin: 0 0 12px; line-height: 2; text-align: left; }
.note-story { font-size: 14px; line-height: 1.9; margin: 0 0 18px; padding: 12px 14px; background: rgba(42, 36, 64, .06); border-radius: 8px; text-align: left; }
.note-story:empty { display: none; }
.note-close { color: #2a2440; border-color: rgba(42, 36, 64, .4); min-height: 42px; }

@media (prefers-reduced-motion: reduce) {
  .place .win, .place .eye, .place .sea-line, .far-svg .red-blink, .place .flick, .place .moths circle, .place .boat, .place .beam, .place .marble, .place .glint, .place .lantern-room { animation: none !important; }
}
.rel-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 22px; }
.dawn .sns a { color: inherit; }

/* おかえりなさい（2回目から） */
.intro-back { margin: 18px auto 0; font-size: 13px; color: var(--lamp); max-width: 30em; }
/* 道のりの点：まだ拾っていないものがある場所 */
.route-dot { position: relative; }
.route-dot.has-item::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--lamp); opacity: .8; }
/* 夜明け：隠しトラックと、つぎに歩く理由 */
.dawn-stamp { display: block; font-size: 13px; letter-spacing: .2em; color: #b8432e; }
.dawn-stamp:empty { display: none; }
.hidden-track { margin: 0 0 34px; padding: 26px 22px 24px; border-radius: 14px; background: #2a2440; color: #f4ead6; opacity: 0; transform: translateY(20px); transition: opacity 1.2s, transform 1.2s; }
.hidden-track.show { opacity: 1; transform: none; }
.ht-label { margin: 0 0 14px; font-size: 12px; letter-spacing: .2em; color: #ffd36b; }
.ht-art { width: 100%; height: auto; border-radius: 8px; margin: 0 0 16px; }
.ht-no { margin: 0; font-size: 12px; letter-spacing: .1em; color: rgba(244, 234, 214, .7); }
.ht-name { margin: 2px 0 10px; font-family: var(--mincho); font-weight: 700; font-size: 24px; letter-spacing: .1em; }
.ht-lyric { margin: 0 0 12px; font-family: var(--mincho); font-size: 18px; line-height: 2; }
.ht-lyric .ln { display: block; }
.ht-lyric .ch { opacity: 0; }
.ht-note { margin: 0; font-size: 12px; color: rgba(244, 234, 214, .7); }
.next-walk { margin: 30px 0 16px; padding: 18px 18px 14px; border: 1px dashed rgba(42, 36, 64, .35); border-radius: 12px; font-size: 14px; }
.next-walk p { margin: 0 0 6px; }
.nw-main { font-family: var(--mincho); font-size: 16px; }
.nw-main b { font-family: var(--mono); font-size: 24px; color: #b8432e; }
.nw-where, .nw-verse { color: #6b5a44; font-size: 13px; }
.again-btn { margin-top: 10px; }
.dawn .again-btn { background: #b8432e; color: #fff4dc; }
.dawn .again-btn:hover { background: #9c3826; }
.again { display: block; margin: 16px auto 0; }

/* 読みこみ中 */
.intro-loading { margin: 0 0 10px; font-size: 13px; color: var(--ink-dim); letter-spacing: .1em; height: 1.6em; transition: opacity .5s; }
.intro-loading::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--lamp); animation: ldot 1s ease-in-out infinite alternate; vertical-align: middle; }
@keyframes ldot { from { opacity: .2; } to { opacity: 1; } }
body:not(.is-loading) .intro-loading { opacity: 0; }
.is-loading .intro-btns .btn { opacity: .35; pointer-events: none; }
.intro-btns .btn { transition: opacity .5s, background .2s, transform .2s; }

/* 横にしたスマホなど、高さの低い画面：歌詞は横書きで右上に、下のボタンは1列に */
@media (max-height: 520px) and (min-width: 560px) {
  .route { width: min(400px, 46%); left: 26%; }
  .place-card { flex-direction: column; align-items: flex-end; gap: 2px; top: calc(var(--head-h) + 6px); max-height: none; max-width: 46%; text-align: right; }
  .pc-track, .pc-lyric { writing-mode: horizontal-tb; }
  .pc-track { gap: 8px; align-items: baseline; }
  .pc-name { font-size: 17px; letter-spacing: .08em; }
  .pc-lyric { font-size: 14px; line-height: 1.8; letter-spacing: .08em; }
  .pc-lyric .ln + .ln { margin-top: 0; }
  .clock { top: calc(var(--head-h) + 44px); }
  .clock-t { font-size: 22px; }
  .controls { grid-template-areas: 'tip tip tip' 'prev bag next'; gap: 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .tip { font-size: 12px; min-height: 1.3em; }
  .step-prev, .step-next { min-height: 44px; }
  .step-prev { width: 44px; }
  .bag-slot { width: 28px; height: 28px; }
  .bag-count { display: none; }
}
/* いちばん小さいスマホ（幅 360px 未満） */
@media (max-width: 359px) {
  .pc-lyric { font-size: 13px; line-height: 2; }
  .pc-name { font-size: 17px; }
  .place-card { gap: 10px; }
}

/* 夜明けの明るい空の上では、歌詞と時刻を濃い色に */
.place-card, .clock-t, .route-now, .tip { transition: color .8s, text-shadow .8s; }
.is-dawn .place-card { color: #241f3c; }
.is-dawn .pc-lyric { text-shadow: 0 0 14px rgba(255, 236, 214, .9); }
.is-dawn .pc-no { color: #a2402c; }
.is-dawn .clock-t { color: #a2402c; text-shadow: none; }
.is-dawn .clock-l { color: rgba(36, 31, 60, .7); }
.is-dawn .route-now { color: #241f3c; text-shadow: 0 0 10px rgba(255, 236, 214, .8); }
.is-dawn .route-no { color: #a2402c; }
