/* 立体版（walk.html）。site.css の上に重ねる。
   まず「3Dが動かないとき」の静止版を書き、3Dが動いたとき（html.walk-on）の見た目は下にまとめる */

/* ===== 静止版：絵と文章が縦に並ぶ ===== */
.journey { background: #171a3d; color: #f7ebda; }
.journey-canvas, .journey-fade { display: none; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 84px) max(6%, calc((100% - 1160px) / 2)); border-bottom: 1px solid #2f3566; }
.panel:nth-of-type(even) .cut { order: 2; }
.panel .cut { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #4a5182; border-radius: 12px; }
.panel .eyebrow { color: #b9c9e8; }
.panel h1 { font-size: clamp(2rem, 4.2vw, 4.4rem); }
.panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.7rem); }
.panel-body > p:not(.eyebrow) { color: #dcd6e3; }
.panel .button { background: #f4b7b4; color: #211936; border-radius: 40px; }
.scroll-hint { display: none; }
.stages, .flow { list-style: none; margin: 18px 0 0; padding: 0; }
.stages li { padding: 10px 0 10px 14px; border-top: 1px solid #3b4274; border-left: 3px solid transparent; }
.stages h3 { margin: 0 0 2px; font-size: 1rem; }
.stages p { margin: 0; color: #cfc9da; font-size: .88rem; }
.flow { counter-reset: step; margin-bottom: 22px; }
.flow li { position: relative; padding: 7px 0 7px 34px; font-weight: 700; counter-increment: step; }
.flow li::before { content: counter(step); position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: #9fd0bd; color: #14213d; font: 700 .78rem/22px Consolas, monospace; text-align: center; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 29px; bottom: -7px; width: 2px; background: #5d6699; }
.panel-radio .eyebrow i { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #ff6a70; box-shadow: 0 0 12px #ff6a70; vertical-align: middle; }
.panel-radio h2 { font-family: "Geist", Arial, sans-serif; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; }
.panel .monitor { margin-top: 16px; padding: 10px 16px 12px; border: 1px solid #4a5182; border-radius: 10px; background: #10142f; }
.panel .monitor strong { font-size: clamp(1.8rem, 3.2vw, 3rem); }
.panel .wave { height: clamp(28px, 3.4vw, 44px); }

@media (max-width: 760px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel:nth-of-type(even) .cut { order: 0; }
}

/* ===== 歩く区間のあと：RadioVoice の紹介と、詳細ページへの入口 ===== */
.rv-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(56px, 8vw, 110px) max(6%, calc((100% - 1160px) / 2)); background: #12163a; color: #f7ebda; }
.rv-feature .eyebrow { color: #b9c9e8; }
.rv-feature .eyebrow i { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #ff6a70; box-shadow: 0 0 12px #ff6a70; vertical-align: middle; }
.rv-feature h2 { font-family: "Geist", Arial, sans-serif; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; }
.rv-copy > p:not(.eyebrow) { color: #dcd6e3; }
.rv-feature .stages { margin-bottom: 26px; }
.rv-feature .button { background: #f4b7b4; color: #211936; border-radius: 40px; }
.rv-visual { margin: 0; overflow: hidden; border: 1px solid #4a5182; border-radius: 14px; }
.rv-visual img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.rv-visual .monitor { padding: 12px 20px 16px; background: #0d1130; }
@media (max-width: 760px) {
  .rv-feature { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 3Dが動いたとき ===== */
/* 区間全体を縦に長くし、その間だけ画面を留めて、スクロール量でカメラを進める */
.walk-on .journey { height: 900vh; }
.walk-on .journey-view { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.walk-on .journey-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
/* 場面を切り替えるときの暗転（JavaScript が --fade を 0〜1 で入れる） */
.walk-on .journey-fade { display: block; position: absolute; inset: 0; background: #0d0f26; opacity: var(--fade, 0); pointer-events: none; }
/* 紙の粒子を全体に薄く重ねる */
.walk-on .journey-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay; background-image: 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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 文章は3Dとは別の層。左に固定して、場面ごとに入れ替える */
.walk-on .panel { position: absolute; z-index: 1; left: clamp(20px, 6vw, 96px); top: 50%; display: block; width: min(430px, 40vw); padding: 0; border: 0; translate: 0 -50%; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.walk-on .panel.is-shown { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.walk-on .panel .cut { display: none; }
.walk-on .panel-body { padding: 22px 24px 24px; border: 1px solid rgba(160, 172, 230, .35); border-radius: 14px; background: rgba(17, 19, 48, .78); backdrop-filter: blur(6px); }
.walk-on .panel h2 { font-size: clamp(1.3rem, 1.9vw, 1.9rem); }
.walk-on .panel-radio h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.walk-on .panel-hero { width: min(560px, 46vw); }
.walk-on .panel-hero .panel-body { padding: 0; border: 0; background: none; backdrop-filter: none; text-shadow: 0 2px 18px #0d0f26, 0 0 4px #0d0f26; }
.walk-on .panel-hero .button { text-shadow: none; }
.walk-on .scroll-hint { display: block; margin: 22px 0 0; color: #c9d3f2; font-size: .82rem; letter-spacing: .08em; }
.walk-on .journey .stages li { opacity: .45; transition: opacity .25s ease, border-color .25s ease; }
.walk-on .journey .stages li.is-on { opacity: 1; border-left-color: #ff858c; }
.walk-on .journey .wave i { transform: scaleY(0); transition: transform .2s ease; }
.walk-on .journey .wave.is-shown i { transform: scaleY(1); }

@media (max-width: 760px) {
  /* スマホは短くし、文章は下に寄せる */
  .walk-on .journey { height: 700vh; }
  .walk-on .panel, .walk-on .panel-hero { left: 12px; right: 12px; top: auto; bottom: 14px; width: auto; translate: none; }
  .walk-on .panel-body { padding: 14px 16px 16px; }
  .walk-on .panel-hero .panel-body { padding: 14px 16px 16px; border-radius: 14px; background: rgba(17, 19, 48, .6); }
  .walk-on .panel h1 { font-size: 1.9rem; margin-bottom: 10px; }
  .walk-on .panel h2 { font-size: 1.35rem; margin-bottom: 8px; }
  .walk-on .panel-radio h2 { font-size: 2rem; }
  .walk-on .panel-body > p:not(.eyebrow) { font-size: .88rem; margin-bottom: 10px; }
  .walk-on .journey .stages { margin-top: 8px; }
  .walk-on .journey .stages li { padding: 6px 0 6px 10px; }
  .walk-on .journey .stages p { display: none; }
  .walk-on .panel .monitor { margin-top: 8px; padding: 6px 12px 8px; }
  .walk-on .flow li { padding-block: 4px; }
  .walk-on .scroll-hint { margin-top: 10px; }
}
