/* FV の試し版 2 (2026-11-13): 街の絵は 1000px の枠 (運行卓の前のモニター)、卓の人たちは画面の幅いっぱい。
   スクロールで枠が画面いっぱいへ広がり、卓は下へ沈む。index.html・cinematic.css は触らない */
.wrap{width:min(1000px,calc(100% - 100px))}

.fv-pin{position:relative;height:165svh;background:#080c09}
.fv{--e:0;--p:0;--u:0px;--q:0;--t:0px;--gap:6svh;--lift:calc(var(--t) + var(--gap) * (1 - var(--e)));position:sticky;top:0;height:100svh;min-height:540px;overflow-x:clip;overflow-y:visible;background:
  radial-gradient(60% 50% at 50% 42%,#12301c 0%,#0a120c 55%,#070a08 100%);isolation:isolate}

/* 枠 = モニター。--e が 0 → 1 で、1000px の枠から画面いっぱいへ */
.fv-frame{--w0:min(1000px,calc(100% - 100px));position:absolute;z-index:1;left:50%;transform:translateX(-50%);
  top:calc(8% * (1 - var(--e)));
  width:calc(var(--w0) + (100% - var(--w0)) * var(--e));
  bottom:var(--lift);
  border-radius:calc(8px * (1 - var(--e))) calc(8px * (1 - var(--e))) 0 0;overflow:hidden;background:#0b120d;
  box-shadow:0 0 0 1px #2c4a33,0 0 56px 6px #1d6b3a50;will-change:width,top,bottom;contain:layout paint style}
.fv-city{position:absolute;inset:0;animation:fv-on 1.1s cubic-bezier(.2,.8,.2,1) both}
.fv-city>img,.fv-city>canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.fv-city>img{object-fit:cover;object-position:64% 50%}
.fv-city>canvas{opacity:0;transition:opacity .5s ease}
.fv-city.live>canvas{opacity:1}
.fv-shade{position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(90deg,#060a07ee 0%,#060a07b8 24%,#060a0740 46%,transparent 62%),
  linear-gradient(0deg,#060a07b0 0%,transparent 30%)}
/* 走査線: モニターらしさを少しだけ */
.fv-frame:after{content:'';position:absolute;inset:0;pointer-events:none;opacity:calc(.22 * (1 - var(--e)));
  background:repeating-linear-gradient(0deg,#0000 0 2px,#0003 2px 3px)}

.fv-copy{position:absolute;z-index:2;left:clamp(22px,4.2%,46px);top:13%;max-width:min(520px,78%);text-align:left;
  opacity:calc(1 - var(--e) * 2.2);transform:translateY(calc(var(--e) * -50px));will-change:transform,opacity}
.fv-copy .eyebrow{font-size:10px;color:#a9bd96;letter-spacing:.14em;margin-bottom:18px;animation:fv-up .7s .75s ease-out both}
.fv-copy h1{font-size:clamp(26px,2.9vw,44px);font-weight:400;line-height:1.5;letter-spacing:.015em;color:#f1f6ea}
.fv-copy h1>span{display:block;white-space:nowrap;animation:fv-up .8s ease-out both}
.fv-copy h1>span:nth-child(1){animation-delay:.9s}
.fv-copy h1>span:nth-child(2){animation-delay:1.08s}
.fv-copy h1 .accent{color:#cfe58a}
.fv-copy .fv-lead{font-size:15px;color:#cdd8c0;margin-top:20px;letter-spacing:.045em;animation:fv-up .8s 1.3s ease-out both}

/* 卓の人たち: 画面の幅いっぱい。スクロールで沈みながら少し大きくなる */
.fv-desk{position:absolute;z-index:3;left:50%;bottom:calc(var(--lift) - 2px);width:max(100%,1180px);pointer-events:none;
  transform:translate3d(-50%,calc(var(--u) * -.75),0) scale(calc(1 + var(--e) * .07));transform-origin:50% 100%;opacity:calc(1 - var(--q) * 1.1);will-change:transform,opacity}
.fv-desk>img{display:block;width:100%;height:auto;filter:drop-shadow(0 -14px 34px #000b);animation:fv-rise 1s .35s cubic-bezier(.2,.8,.2,1) both}
.fv .visual-scroll{z-index:4;bottom:20px;opacity:calc(1 - var(--p) * 4)}
.overview{padding-top:80px}

@keyframes fv-on{0%{opacity:0;transform:scaleY(.012) scaleX(.6);filter:brightness(3)}
  45%{opacity:1;transform:scaleY(.012) scaleX(1);filter:brightness(3)}
  100%{opacity:1;transform:none;filter:none}}
@keyframes fv-rise{from{opacity:0;transform:translateY(38%)}to{opacity:1;transform:none}}
@keyframes fv-up{from{opacity:0;transform:translateY(.9em)}to{opacity:1;transform:none}}

/* 音量と休止時間の章: 模式図の代わりに、スケジュールの画面の写し */
/* 写しの字が読めるように、写しを幅いっぱい・説明はその下に */
.sound .sound-composition{grid-template-columns:1fr;gap:38px}
.sound .sound-copy{max-width:640px}
.sound-shot{margin:0}
.sound-shot>img{display:block;width:100%;height:auto;border:1px solid #526345;border-radius:4px;box-shadow:0 25px 80px #0004;background:#0d120f}
.sound-shot>figcaption{font-size:10px;color:#66765c;margin-top:12px;letter-spacing:.04em}

/* 遠隔監視の章: デバイスの状況 (1 台ごとの画面) */
.device-status{margin-top:70px;display:grid;gap:26px}
.device-status-copy{max-width:640px}
.device-status-copy .eyebrow{font-size:10px;letter-spacing:.14em;color:#9cae8a;margin-bottom:12px}
.device-status-copy h3{font-size:clamp(22px,2.2vw,30px);font-weight:500;line-height:1.5;margin-bottom:12px}
.device-status-copy p{line-height:1.9}

/* 章の大きな文字 (CONTROL・LIVE): 画面に入ると左から現れ、スクロールに合わせてゆっくり横へ流れる */
.sound:before,.live-photo:before{transform:translate3d(calc(-7% + var(--wx,0) * 9%),0,0);clip-path:inset(0 100% 0 0);opacity:0;
  transition:clip-path 1.3s cubic-bezier(.2,.7,.2,1),opacity .5s ease;will-change:transform,clip-path}
.sound.word-in:before,.live-photo.word-in:before{clip-path:inset(0 -5% 0 0);opacity:1}

/* 下の本文: 画面に入ったら、下からふわっと出る (JS が .rv を付けたものだけ。JS が無ければそのまま見える) */
.rv{opacity:0;transform:translateY(34px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1);transition-delay:var(--rv-d,0s);will-change:opacity,transform}
.rv.rv-img{transform:translateY(48px) scale(.975)}
.rv.rv-in{opacity:1;transform:none}

@media(max-width:700px){
  .wrap{width:calc(100% - 40px)}
  .fv-pin{height:230svh}
  .fv-frame{--w0:calc(100% - 28px);top:calc(7% * (1 - var(--e)))}
  .fv-city>img{object-position:72% 46%}
  .fv-shade{background:linear-gradient(180deg,#060a07e0 0%,#060a0790 34%,transparent 58%)}
  .fv-copy{top:8%;max-width:none;right:18px}
  .fv-copy h1{font-size:clamp(22px,6.6vw,30px)}
  .fv-copy h1>span{white-space:normal}
  .fv-copy .fv-lead{font-size:13px}
  .fv-desk{width:max(100%,860px)}
}
/* スマホ・タッチの画面: スクロールに合わせて動かす演出はやめる (指のスクロールに遅れて揺れるため)。
   最初の画面は止めた形で見せ、ビジョンの中の動きと、下の文字が出てくる動きだけ残す */
@media(max-width:700px),(pointer:coarse){
  .fv-pin{height:auto}
  .fv{position:relative;height:min(100svh,780px);--e:0!important;--p:0!important;--u:0px!important;--q:0!important;--t:0px!important;--gap:0px!important}
  .sound:before,.live-photo:before{--wx:.6!important}
}
/* スマホ・タッチの画面のスクロールの演出: ブラウザーの「スクロールに結びつけたアニメーション」で動かす。
   JS を通さず、動かすのも位置と濃さだけなので、指のスクロールに遅れない (対応していないブラウザーでは止めた形のまま) */
@supports (animation-timeline: view()){
  @media(max-width:700px),(pointer:coarse){
    .fv{view-timeline:--fv block}
    .fv-desk{animation:fv-m-desk linear both;animation-timeline:--fv;animation-range:exit 0% exit 85%}
    .fv-city{animation:fv-on 1.1s cubic-bezier(.2,.8,.2,1) both,fv-m-city linear both;animation-timeline:auto,--fv;animation-range:normal,exit 0% exit 100%}
    .fv-copy{animation:fv-m-copy linear both;animation-timeline:--fv;animation-range:exit 0% exit 45%}
    .sound:before,.live-photo:before{--wx:0!important;animation:fv-m-word linear both;animation-timeline:view();animation-range:entry 0% cover 60%}
  }
}
@keyframes fv-m-desk{from{transform:translate3d(-50%,0,0)}to{transform:translate3d(-50%,-58%,0) scale(1.06);opacity:0}}
@keyframes fv-m-city{from{translate:0 0}to{translate:0 14%}}
@keyframes fv-m-copy{from{opacity:1;translate:0 0}to{opacity:0;translate:0 -40px}}
@keyframes fv-m-word{from{translate:-12% 0}to{translate:4% 0}}

/* スマホ・タッチの画面: 重い飾りを外して、スクロールを軽くする */
@media(max-width:700px),(pointer:coarse){
  .fv-desk>img{filter:none}
  .fv-frame{box-shadow:0 0 0 1px #2c4a33}
  .fv-frame:after{display:none}
  .fv-desk,.fv-city,.fv-copy{will-change:transform,opacity}
}

/* スマホ: Inter BEE の案内を小さく 2 行に */
@media(max-width:700px){
  .event-band{padding:8px 0}
  .event-band .wrap{gap:2px 10px;font-size:12px;line-height:1.55;align-items:baseline}
  .event-band strong{font-size:13px}
  .event-band a{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .fv-pin{height:auto}
  .fv{position:relative;--e:0!important;--p:0!important;--u:0px!important;--q:0!important;--t:0px!important;--gap:0px!important}
  .fv-city,.fv-desk>img,.fv-copy *{animation:none!important}
  .fv-city>canvas{display:none}
  .rv{opacity:1!important;transform:none!important;transition:none!important}
  .sound:before,.live-photo:before{transform:none!important;clip-path:none!important;opacity:1!important;transition:none!important}
}
@media print{.fv-pin{display:none!important}}
