:root{font-family:Arial,Helvetica,sans-serif;color:#fffac7;background:#aab8ae;font-synthesis:none}*{box-sizing:border-box}body{margin:0}body.waiting{overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #fffac7;outline-offset:7px}a{color:inherit}#stage,.paper{position:fixed;inset:0;pointer-events:none}#stage canvas{width:100%;height:100%;display:block}.paper{z-index:2;opacity:.09;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='white' filter='url(%23n)' opacity='.4' d='M0 0h180v180H0z'/%3E%3C/svg%3E");mix-blend-mode:multiply}header{position:fixed;top:30px;left:38px;right:38px;display:flex;justify-content:space-between;align-items:center;z-index:12}.wordmark{text-decoration:none;font-weight:900;font-size:32px;letter-spacing:-5px}.wordmark span{display:inline-block;transform:rotate(-55deg);padding-left:3px}#sound{font-size:12px;font-weight:bold;letter-spacing:.09em;display:flex;gap:12px;align-items:center;padding:12px}.wave{font-size:20px;letter-spacing:2px}#opening{position:fixed;inset:0;z-index:8;text-align:center;transition:opacity .65s,visibility .65s}.eyebrow{position:absolute;top:19%;width:100%;font-size:12px;letter-spacing:.3em;color:#324963}#spark{position:absolute;inset:30% 20% 15%;display:flex;flex-direction:column;align-items:center;justify-content:center;width:60%}.spark-target{display:block;width:150px;height:150px;border-radius:50%;margin-bottom:7vh}.spark-copy{font-weight:900;letter-spacing:-.045em;font-size:clamp(25px,3.5vw,52px);color:#fffac7}.spark-copy small{display:block;font-size:14px;font-weight:400;letter-spacing:.1em;margin-top:15px;color:#34465a}#loading{position:absolute;bottom:7%;width:100%;color:#34465a;font-size:12px;letter-spacing:.1em}body.started #opening{opacity:0;visibility:hidden}#journey{visibility:hidden}body.started #journey{visibility:visible}.chapter{height:150svh;position:relative}.chapter:last-child{height:100svh}.caption{position:absolute;top:40svh;left:7vw;max-width:520px;pointer-events:none;opacity:0;transition:opacity .7s,transform .7s;transform:translateY(15px)}.chapter.active .caption{opacity:1;transform:translateY(0)}.caption.right{left:auto;right:7vw}.caption p{font-size:12px;font-weight:bold;letter-spacing:.13em}.caption h1,.caption h2{font-size:clamp(38px,5.6vw,84px);line-height:.94;letter-spacing:-.065em;margin:25px 0;font-weight:900;text-wrap:balance}.caption span{font-size:14px;letter-spacing:.05em;text-shadow:0 1px 10px #32496366}.finale{top:32svh}.finale button{pointer-events:auto;border-bottom:1px solid;padding:15px 0;font-size:14px}#hud{position:fixed;bottom:25px;left:30px;right:30px;display:flex;justify-content:space-between;align-items:center;gap:20px;z-index:10;font-size:12px;font-weight:bold;letter-spacing:.04em;opacity:0;transition:opacity .7s}body.started #hud{opacity:1}#fullscreen{font-size:26px;padding:8px}#credits-open{padding:12px}.chapter-nav{display:flex;gap:18px;align-items:center}.chapter-nav nav{display:flex;gap:4px}.chapter-nav nav button{padding:15px 2px;width:35px;position:relative}.chapter-nav nav button:after{content:'';display:block;height:2px;background:currentColor;opacity:.3}.chapter-nav nav button[aria-current=true]:after{opacity:1;height:3px}#scroll-hint{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:.13em;opacity:0;pointer-events:none;transition:opacity .4s;z-index:9;white-space:nowrap}body.started #scroll-hint{opacity:1}#scroll-hint span{display:block;text-align:center;font-size:23px;margin-top:10px}#touch{position:fixed;right:42px;top:50%;z-index:9;writing-mode:vertical-rl;font-size:12px;letter-spacing:.1em;opacity:0;touch-action:none;user-select:none;padding:16px}body.started #touch{opacity:.85}#touch span{width:2px;height:70px;background:linear-gradient(to bottom,#fffac7 var(--hold,0%),#fffac744 var(--hold,0%));display:block;margin-top:14px}dialog{border:1px solid #546c85;color:#263c53;background:#dfebdb;width:min(610px,90vw);padding:35px;max-height:85svh}dialog::backdrop{background:#19293caa;backdrop-filter:blur(12px)}dialog img{width:100%;aspect-ratio:2.3;object-fit:cover;margin-top:20px}dialog h2{font-size:clamp(32px,7vw,65px);letter-spacing:-.07em;margin:15px 0}dialog p{font-size:16px;line-height:1.7}dialog>p:first-of-type{font-size:12px;letter-spacing:.1em}dialog a{display:inline-block;padding:12px 0}#credits-close{display:block;margin-left:auto;font-size:12px}.credit-small{font-size:12px;opacity:.75}#fallback{position:fixed;inset:0;z-index:20;background:#acc9ad}#fallback img{width:100%;height:100%;object-fit:cover}#fallback p{position:absolute;bottom:12%;left:10%;right:10%;background:#25394bdd;padding:24px;color:white;font-size:16px;line-height:1.8}noscript{position:fixed;inset:40%;z-index:30;color:#263c53}@media(max-width:700px){header{top:15px;left:20px;right:12px}.eyebrow{top:18%}#spark{inset:30% 5% 10%;width:90%}.caption,.caption.right{left:7vw;right:15vw;top:49svh}.caption h1,.caption h2{font-size:45px}.caption span{font-size:14px}.chapter{height:140svh}#hud{bottom:15px;left:14px;right:14px;gap:6px}.chapter-nav{gap:0;flex-direction:column;align-items:center}.chapter-nav nav button{width:22px;padding:10px 2px}#chapter-name{font-size:10px}#credits-open{font-size:10px}#touch{right:4px;padding:10px;font-size:10px;top:37%}#scroll-hint{bottom:100px;font-size:10px}dialog{padding:24px}.finale{top:38svh}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.paper{opacity:.04}}

/* Full-length edition */
.header-controls{display:flex;align-items:center;gap:18px}.header-controls>button{font-size:12px;letter-spacing:.08em;padding:12px 4px}#index-open span{margin-left:12px}#auto[aria-pressed=true]{border-bottom:1px solid}.chapter{height:190svh}.chapter:last-child{height:100svh}.caption{position:fixed;top:auto;bottom:19vh;left:6vw;max-width:410px;z-index:4;visibility:hidden;transform:translateY(12px)}.caption.right{right:6vw;left:auto}.chapter.active .caption{visibility:visible}.caption h1,.caption h2{font-size:clamp(35px,4.8vw,72px);line-height:1.02;letter-spacing:-.055em;margin:20px 0}.caption span{display:block;max-width:320px;line-height:1.8;font-size:14px}.caption p{letter-spacing:.15em}.finale button{display:block;margin-top:16px}.chapter-nav nav button{width:23px}#scene-index{width:min(760px,94vw);background:#dce5d7}#scene-list{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}#scene-list button{display:flex;text-align:left;justify-content:space-between;gap:12px;padding:17px 0;border-bottom:1px solid #738b8b55;font-size:12px;letter-spacing:.035em}#scene-list button span:first-child{opacity:.5}#scene-list button:hover{color:#ba4057}#index-close{display:block;margin-left:auto;font-size:12px}#scene-index h2{font-size:44px;line-height:1.05}#scene-index>p{font-size:12px;letter-spacing:.1em}.chapter-nav{gap:14px}#chapter-name{min-width:145px}.finale{top:auto}.spark-target{transition:transform .6s}#spark:hover .spark-target{transform:scale(1.1)}
@media(max-width:700px){.header-controls{gap:8px}.header-controls>button{font-size:10px}#sound{gap:4px}#sound .wave{display:none}.chapter{height:170svh}.chapter:last-child{height:100svh}.caption,.caption.right{bottom:19vh;top:auto;left:7vw;right:14vw;max-width:330px}.caption h1,.caption h2{font-size:38px}.caption p{font-size:10px}.caption span{font-size:13px}#scene-list{grid-template-columns:1fr}#scene-list button{font-size:14px}#chapter-name{min-width:0}.chapter-nav{gap:0}.chapter-nav nav button{width:14px}#fullscreen{font-size:22px}#credits-open{padding:8px 0}.wordmark{font-size:27px}}

/* ★2026-09-21 直し：旅が始まる前に、章の文字が開始画面と重なって出ていた。
   #journey は visibility:hidden だが、.chapter.active .caption{visibility:visible}
   が子側で打ち消していたため。body.started が付くまでは出さない。 */
body:not(.started) .chapter .caption{visibility:hidden}
