:root { --nav-hs: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }  /* ナビの高さ + ノッチの安全領域（base.css の .nav と合わせる） */
/* AKARI Video — トップページ（LP）v2
 * 構成: 01 汎用小物 / 02 ヒーロー（3D アプリアイコン）/ 03 ヒーローのアプリ画面 / こんな人に / パートナー AI（実ロゴ）
 *       使い方（6 タブ + 画面モック）/ 台本 / プレビューを直接直す / 作例 + ライトボックス / Lab（実サムネイルの操作デモ・残席）
 *       もっと先へ / OSS / なぜ作ったか / コミュニティ / FAQ / 最終 CTA / レスポンシブ / 動きを減らす
 * 単位: 画面モックの中は --u（= 設計幅 1px）で組む。ヒーローは CSS 変数で、それ以外はコンテナクエリ単位で決まる。
 * スクロール連動値は index.js が書く CSS 変数（--e / --q / --wp / --fp）。JS が無ければ 0 / 既定値のまま静止する。
 */

/* ヒーローのスクロール連動値は継承させない（.hero に書くと、画面モックの中の全要素のスタイル再計算が毎フレーム起きていた）
 * index.js が、値を使う要素にだけ直接書く */
@property --e { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --pct { syntax: "<integer>"; inherits: false; initial-value: 0; }

/* ══════════ 01 汎用小物 ══════════ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--orange); color: #140a00; font-weight: 700; transition: top 0.3s var(--ease-out);
}
.skip:focus { top: 12px; }
.br-d { display: none; }
.br-m { display: inline; }
@media (min-width: 900px) { .br-d { display: inline; } }
@media (min-width: 760px) { .br-m { display: none; } }

main h2, main h3, main p, main li, .lb p, .footer p { word-break: auto-phrase; }
.nw { white-space: nowrap; }
main > .section { padding-block: clamp(64px, 8vw, 112px); }
main > .partner { padding-bottom: clamp(24px, 3vw, 48px); }

/* 見出しのマスクリビール（行ごとに下から） */
.ln { display: block; overflow: hidden; padding: 0.08em 0.06em 0.14em; margin: -0.08em -0.06em -0.14em; }
.ln > span { display: inline-block; }
html.js [data-reveal="mask"] { opacity: 1; transform: none; }
html.js [data-reveal="mask"] .ln > span {
  transform: translate3d(0, 115%, 0) rotate(2.5deg); transform-origin: 0 100%;
  transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--lnd, 0ms));
}
html.js [data-reveal="mask"] .ln:nth-child(2) > span { --lnd: 90ms; }
html.js [data-reveal="mask"] .ln:nth-child(3) > span { --lnd: 180ms; }
html.js [data-reveal="mask"].is-in .ln > span { transform: none; }

/* 光る強調（見出しの em） */
.h2 em, .hero__title em, .final__title em, .how__panel h3 em {
  font-style: normal;
  background: linear-gradient(180deg, #ffc98f 0%, #ff9a1f 45%, #ff6a14 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* セクション境界の光の走査 */
.scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; overflow-x: clip; }
html.js .scan[data-reveal] { opacity: 1; transform: none; }
.scan::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent);
  transform-origin: left; transition: transform 1.6s var(--ease-in-out);
}
html.js .scan::before { transform: scaleX(0); }
html.js .scan.is-in::before { transform: scaleX(1); }
.scan::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 26vw; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--orange) 55%, #fff4e2 92%, transparent);
  box-shadow: 0 0 22px 3px rgba(255, 138, 0, 0.45); opacity: 0; transform: translateX(-30vw);
}
.scan.is-in::after { animation: scanRun 1.9s var(--ease-in-out) 0.05s both; }
@keyframes scanRun {
  0% { opacity: 0; transform: translateX(-30vw); }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(104vw); }
}

.hud-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--orange-2); text-transform: uppercase;
}
.hud-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.sec-head { margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head--split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px 64px; align-items: end; }
.sec-head--split .lead { margin-top: 0; }
.sec-head--center { text-align: center; display: grid; justify-items: center; }
.sec-head--center .lead { margin-inline: auto; }

/* ボタン追加 */
.btn--xl { min-height: 62px; padding: 0 26px 0 22px; font-size: 15.5px; gap: 12px; border-radius: 999px; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.btn__stack .btn__sub { margin-top: 3px; }
.btn--ghost { background: rgba(24, 19, 15, 0.78); }
.btn--ghost:hover { background: rgba(255, 236, 214, 0.06); }
.os-ico { display: none; }
html[data-os="win"] .os-ico--win, html[data-os="mac"] .os-ico--mac { display: block; }
.btn .os-ico { width: 20px; height: 20px; }

.play-dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #140a00;
  box-shadow: 0 0 0 6px rgba(255, 138, 0, 0.14), 0 0 26px rgba(255, 138, 0, 0.55);
  transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-spring);
}
.play-dot svg { width: 14px; height: 14px; margin-left: 2px; }
.play-dot--sm { width: 24px; height: 24px; box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.14), 0 0 14px rgba(255, 138, 0, 0.4); }
.play-dot--sm svg { width: 10px; height: 10px; margin-left: 1px; }
.btn--play:hover .play-dot, .textlink:hover .play-dot { transform: scale(1.12); box-shadow: 0 0 0 9px rgba(255, 138, 0, 0.16), 0 0 34px rgba(255, 138, 0, 0.7); }

.textlink {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-weight: 700; font-size: 14.5px; color: var(--text); padding: 6px 2px;
  border-bottom: 1px solid var(--line-2); transition: border-color 0.3s, color 0.3s;
}
.textlink:hover { border-color: var(--orange); color: var(--orange-2); }
.arrowlink {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--text);
  padding: 8px 0; border-bottom: 1px solid var(--line-2); transition: color 0.3s, border-color 0.3s, gap 0.4s var(--ease-out);
}
.arrowlink svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.arrowlink:hover { color: var(--orange-2); border-color: var(--orange); }
.arrowlink:hover svg { transform: translateX(4px); }

/* カーソル追従の光 */

/* 画面左下のタイムコード HUD */
.tc {
  position: fixed; left: 20px; bottom: 18px; z-index: 80; display: none; align-items: center; gap: 10px;
  padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(11, 9, 8, 0.9);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-2);
  opacity: 0; transform: translateY(12px); transition: opacity 0.6s, transform 0.6s var(--ease-out);
}
.tc.is-on { opacity: 1; transform: none; }
.tc.is-on.is-hidden { opacity: 0; transform: translateY(12px); }
.tc__rec { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.tc__time { font-variant-numeric: tabular-nums; color: var(--text); min-width: 8.6em; }
.tc__sep { width: 1px; height: 12px; background: var(--line-2); }
.tc__sec { color: var(--orange-2); }
@keyframes rec { 50% { opacity: 0.25; } }
@media (min-width: 1100px) and (hover: hover) { html.js .tc { display: inline-flex; } }

/* 作例の上で出る「再生」カーソル */
.play-cursor {
  position: fixed; left: 0; top: 0; z-index: 95; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 2px; pointer-events: none;
  background: rgba(255, 138, 0, 0.92); color: #140a00; font-weight: 700; font-size: 11px; letter-spacing: 0.08em;
  box-shadow: 0 0 0 8px rgba(255, 138, 0, 0.18), 0 10px 40px rgba(255, 110, 0, 0.5);
  transform: translate3d(var(--px, -200px), var(--py, -200px), 0) scale(var(--ps, 0));
  transition: transform 0.35s var(--ease-out);
}
.play-cursor svg { width: 18px; height: 18px; margin-left: 3px; }

/* Lenis 推奨設定 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* 画面モック共通の部品 */
.w-dots { display: inline-flex; gap: 6px; }
.w-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a322c; }
.w-dots i:first-child { background: #ff6a3d; }
.w-dots i:nth-child(2) { background: #ffb13d; }
.w-dots i:nth-child(3) { background: #5b534c; }
.m-orb {
  display: inline-block; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffd3a0, #ff8a00 45%, #c8400f 100%);
  box-shadow: 0 0 12px rgba(255, 138, 0, 0.7);
}
.m-eq { display: inline-flex; align-items: flex-end; gap: 12%; width: 60%; height: 50%; }
.m-eq::before, .m-eq::after { content: ""; flex: 1; }
.m-cur { position: absolute; color: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); z-index: 30; pointer-events: none; }

/* ══════════ 03 ヒーローのアプリ画面（3D で傾いた状態から着地） ══════════ */
.hero__device {
  --win-w: min(1180px, 92vw, (100svh - var(--nav-hs) - 84px) * 1.6);
  --u: calc(var(--win-w) / 1200);
  position: absolute; left: 50%; top: calc(50% + var(--nav-hs) / 2); z-index: 3; width: var(--win-w);
  transform:
    translate3d(-50%, -50%, 0)
    translate3d(0, calc((1 - var(--e)) * var(--dy, 57vh)), 0)
    rotateX(calc((1 - var(--e)) * 38deg))
    scale(calc(0.86 + var(--e) * 0.14));
}

/* 上の CTA と二重にならないよう、画面が着地してから現れる */
@keyframes ripple { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }

/* 着地したときの注釈 */
.callouts { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; display: none; opacity: clamp(0, (var(--e) - 0.86) * 8, 1); }
.co { position: absolute; display: grid; gap: 2px; white-space: nowrap; }
.co b { font-size: 13.5px; color: var(--text); font-weight: 700; }
.co span { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.co::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.2), 0 0 12px var(--orange); }
.co::after { content: ""; position: absolute; background: linear-gradient(90deg, rgba(255, 138, 0, 0.1), var(--orange)); }
.co--left { right: calc(100% + 26px); top: 26%; text-align: right; justify-items: end; }
.co--left::after { left: calc(100% + 8px); top: 0.8em; height: 1px; width: 110px; }
.co--left::before { left: calc(100% + 115px); top: calc(0.8em - 3px); }
.co--right { left: calc(100% + 26px); top: 26%; }
.co--right::after { right: calc(100% + 8px); top: 0.8em; height: 1px; width: 110px; background: linear-gradient(270deg, rgba(255, 138, 0, 0.1), var(--orange)); }
.co--right::before { right: calc(100% + 115px); top: calc(0.8em - 3px); }
.co--top { bottom: calc(100% + 14px); left: 42%; display: flex; gap: 12px; align-items: baseline; }
.co--top::after { left: 3px; top: calc(100% + 4px); width: 1px; height: 60px; background: linear-gradient(180deg, rgba(255, 138, 0, 0.1), var(--orange)); }
.co--top::before { left: 0; top: calc(100% + 64px); }
.co--bottom { top: calc(100% + 16px); left: 58%; display: flex; gap: 12px; align-items: baseline; }
.co--bottom::after { left: 3px; bottom: calc(100% + 4px); width: 1px; height: 70px; background: linear-gradient(0deg, rgba(255, 138, 0, 0.1), var(--orange)); }
.co--bottom::before { left: 0; bottom: calc(100% + 74px); }
@media (min-width: 1320px) and (min-height: 760px) { .callouts { display: block; } }

/* ══════════ 04 パートナー AI ══════════ */
.partner { overflow-x: clip; }
.partner__grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.partner__free {
  margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; max-width: 34em;
  font-size: 14.5px; color: var(--text-2); line-height: 1.75;
  padding: 12px 16px; border: 1px dashed rgba(255, 165, 61, 0.35); border-radius: 14px; background: rgba(255, 138, 0, 0.05);
}
.partner__free-tag { flex: none; margin-top: 2px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--orange-2); border: 1px solid rgba(255, 165, 61, 0.45); border-radius: 999px; padding: 1px 9px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

.partner__visual { perspective: 1400px; }
.picker {
  position: relative; max-width: 520px; margin-left: auto; padding: 18px 16px 12px; border-radius: 22px;
  background: linear-gradient(180deg, #1a1511, #110e0b); border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 90px -40px rgba(255, 138, 0, 0.45);
  transform: rotateY(calc(-12deg + var(--ry, 0deg))) rotateX(calc(5deg + var(--rx, 0deg)));
  transition: transform 0.9s var(--ease-out);
}
.picker__head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--text); }
.picker__x { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); position: relative; }
.picker__x::before, .picker__x::after { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 1.5px; background: var(--muted); transform: rotate(45deg); }
.picker__x::after { transform: rotate(-45deg); }
.picker__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.pk {
  display: grid; grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 8px; border-radius: 12px; transition: background 0.3s;
}
.pk + .pk { border-top: 1px solid rgba(255, 236, 214, 0.05); }
.pk__mono {
  grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-style: normal; font-family: var(--font-en); font-weight: 800; font-size: 13px; color: #140a00;
  background: var(--c); box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.15);
}
.pk__name { font-weight: 700; font-size: 14.5px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.pk__name em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #140a00; background: var(--orange); border-radius: 999px; padding: 1px 8px; }
.pk__sub { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.3; }
.pk__st {
  grid-row: 1 / 3; grid-column: 3; font-size: 12px; font-weight: 700; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap;
}
.pk__st svg { width: 13px; height: 13px; flex: none; }
.pk__st--flow { display: inline-grid; }
.pk__st--flow > * { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pk__st--ok { color: var(--ok); border-color: rgba(123, 216, 143, 0.35); background: rgba(123, 216, 143, 0.08); }
.pk--on { background: rgba(255, 138, 0, 0.06); }
.pk--dim { opacity: 0.55; }
.pk__st--flow > * { grid-area: 1 / 1; transition: opacity 0.3s; }
.pk__st--flow .s2, .pk__st--flow .s3 { opacity: 0; }
.pk__st--flow .s3 { color: var(--ok); }
@keyframes pkS1 { 0%, 24% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes pkS2 { 0%, 25% { opacity: 0; } 27%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes pkS3 { 0%, 59% { opacity: 0; } 61%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pkBtn {
  0%, 22% { background: transparent; border-color: var(--line-2); transform: none; }
  24% { transform: scale(0.92); background: rgba(255, 138, 0, 0.2); border-color: var(--orange); }
  27%, 58% { transform: none; background: rgba(255, 138, 0, 0.08); border-color: rgba(255, 138, 0, 0.4); color: var(--orange-2); }
  61%, 96% { background: rgba(123, 216, 143, 0.08); border-color: rgba(123, 216, 143, 0.35); }
  100% { background: transparent; border-color: var(--line-2); }
}
@keyframes pkRow { 0%, 14% { background: transparent; } 18%, 60% { background: rgba(255, 236, 214, 0.04); } 64%, 100% { background: transparent; } }
@keyframes pkCur {
  0% { transform: translate(40px, 180px); opacity: 0; }
  8% { opacity: 1; }
  20% { transform: translate(-28px, -36px); }
  23% { transform: translate(-28px, -36px) scale(0.85); }
  26% { transform: translate(-28px, -36px) scale(1); }
  60% { transform: translate(-40px, 40px); opacity: 1; }
  80%, 100% { transform: translate(30px, 200px); opacity: 0; }
}

/* テープのマーキー */
.tapes { position: relative; margin-top: clamp(64px, 8vw, 110px); height: clamp(190px, 19vw, 280px); overflow-x: clip; }
.tape { position: absolute; left: -6vw; right: -6vw; top: 50%; overflow: hidden; }
.tape--a {
  z-index: 2; top: 40%; background: linear-gradient(90deg, #ff7a00, var(--orange) 30%, #ffa53d 70%, #ff7a00); color: #140a00;
  transform: translateY(-50%) rotate(-3.2deg); box-shadow: 0 24px 60px -20px rgba(255, 120, 0, 0.55), 0 0 0 1px rgba(255, 200, 140, 0.35) inset;
}
.tape--b {
  z-index: 1; top: 64%; background: #16120f; color: var(--text-2); border-block: 1px solid var(--line-2);
  transform: translateY(-50%) rotate(2.6deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  padding-block: 14px;
}
/* 暗いテープはフィルムに見立てる（上下にパーフォレーション） */
.tape--b::before, .tape--b::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7px; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 236, 214, 0.13) 9px 21px, transparent 21px 30px);
  -webkit-mask: linear-gradient(#000, #000); mask: linear-gradient(#000, #000);
  border-radius: 2px;
}
.tape--b::before { top: 5px; }
.tape--b::after { bottom: 5px; }
.tape__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.tape__track--rev { animation-direction: reverse; animation-duration: 54s; }
.tape__set { display: flex; align-items: center; flex: none; }
.tape__set > span {
  display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap;
  font-family: var(--font-en); font-weight: 800; font-size: clamp(22px, 2.8vw, 40px); letter-spacing: -0.015em; padding: 0.42em 0;
}
.tape--b .tape__set > span { font-weight: 700; font-size: clamp(16px, 1.8vw, 24px); padding: 0.62em 0; }
.tape__set > span svg { width: 0.8em; height: 0.8em; color: var(--orange); }
.tape__set sup {
  font-family: var(--font-jp); font-size: 0.34em; font-weight: 700; letter-spacing: 0.04em; vertical-align: super;
  padding: 0.25em 0.7em; border-radius: 999px; background: #140a00; color: var(--orange-2); position: relative; top: -0.4em;
}
.tape__set > i { flex: none; width: 0.38em; height: 0.38em; border-radius: 50%; margin: 0 1.05em; font-size: clamp(22px, 2.8vw, 40px); background: #140a00; }
.tape--b .tape__set > i { background: var(--orange); box-shadow: 0 0 12px var(--orange); font-size: clamp(16px, 1.8vw, 24px); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ══════════ 05 使い方（6 タブ） ══════════ */
.how__tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); position: relative; }
.how__tab {
  position: relative; display: grid; gap: 2px; padding: 18px 10px 16px 2px; text-align: left; color: var(--muted);
  transition: color 0.35s;
}
.how__tab:hover { color: var(--text-2); }
.how__tab-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; transition: color 0.35s; }
.how__tab-t { font-size: clamp(15px, 1.35vw, 18px); font-weight: 700; letter-spacing: 0.04em; }
.how__bar { position: absolute; left: 0; right: 8px; top: -1px; height: 2px; overflow: hidden; }
.how__bar i {
  display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--orange-2));
  transform-origin: left; transform: scaleX(var(--prog, 0)); box-shadow: 0 0 10px var(--orange);
}
.how__tab.is-past .how__bar i { transform: scaleX(1); opacity: 0.28; box-shadow: none; }
.how__tab[aria-selected="true"] { color: var(--text); }
.how__tab[aria-selected="true"] .how__tab-n { color: var(--orange-2); }
.how__tab[aria-selected="true"] .how__bar i { transform: scaleX(var(--prog, 1)); }
.how__ui.is-paused .how__tab[aria-selected="true"] .how__bar i { transform: scaleX(1); opacity: 0.8; }

.how__body { display: grid; grid-template-columns: minmax(250px, 0.8fr) 2.2fr; gap: clamp(28px, 4.5vw, 72px); margin-top: clamp(28px, 3.5vw, 48px); align-items: center; }
.how__panels { display: grid; align-content: center; }
.how__panel { grid-area: 1 / 1; }
.how__panel h3 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.28; margin-top: 16px; letter-spacing: 0.01em; }
.how__panel p:not(.hud-label) { margin-top: 16px; color: var(--text-2); font-size: 15.5px; line-height: 1.9; max-width: 24em; }
html.js .how__panel { opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0); transition: opacity 0.45s, transform 0.7s var(--ease-out), visibility 0s linear 0.45s; }
html.js .how__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s 0.1s, transform 0.8s var(--ease-out) 0.1s, visibility 0s; }
html:not(.js) .how__panel + .how__panel { margin-top: 32px; grid-area: auto; }
.how__auto { grid-area: 2 / 1; margin-top: 30px; }
html:not(.js) .how__auto { display: none; }
.auto-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); transition: border-color 0.3s, color 0.3s;
}
.auto-btn:hover { border-color: var(--orange); color: var(--text); }
.auto-btn__ico { width: 16px; height: 16px; position: relative; }
.auto-btn__ico::before, .auto-btn__ico::after { content: ""; position: absolute; top: 3px; bottom: 3px; width: 3px; border-radius: 1px; background: var(--orange); }
.auto-btn__ico::before { left: 4px; }
.auto-btn__ico::after { right: 4px; }
.auto-btn[aria-pressed="false"] .auto-btn__ico::before { left: 5px; width: 0; height: 0; top: 2px; bottom: auto; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--orange); }
.auto-btn[aria-pressed="false"] .auto-btn__ico::after { display: none; }

.how__screen { perspective: 1800px; }
.frame {
  position: relative; padding: 10px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 236, 214, 0.08), rgba(255, 236, 214, 0.02));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 110px -40px rgba(255, 138, 0, 0.4);
  transform: rotateY(calc(-7deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg)));
  transition: transform 1s var(--ease-out);
}
.frame::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 160, 60, 0.28), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 1px;
}
.frame__corner { position: absolute; width: 16px; height: 16px; border-color: var(--orange-2); border-style: solid; opacity: 0.8; }
.frame__corner--tl { left: -14px; top: -14px; border-width: 1.5px 0 0 1.5px; }
.frame__corner--tr { right: -14px; top: -14px; border-width: 1.5px 1.5px 0 0; }
.frame__corner--bl { left: -14px; bottom: -14px; border-width: 0 0 1.5px 1.5px; }
.frame__corner--br { right: -14px; bottom: -14px; border-width: 0 1.5px 1.5px 0; }
.frame__hud {
  position: absolute; left: 4px; right: 4px; top: -36px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-2);
}
.frame__rec { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }

.frame__screen {
  --u: calc(100cqw / 800);
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #0d0a08; container-type: inline-size;
}
.frame__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 160, 60, 0.0) 40%, rgba(255, 180, 90, 0.35) 50%, rgba(255, 160, 60, 0) 60%, transparent 100%);
  background-size: 100% 300%;
}
.frame__screen.is-switch::after { animation: channel 0.7s var(--ease-in-out); }
@keyframes channel { 0% { opacity: 1; background-position: 0 100%; } 100% { opacity: 1; background-position: 0 -100%; } }

.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s linear 0.5s; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity 0.5s; }
.scene__poster, .scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.scene.has-poster .scene__poster { opacity: 1; }
.scene.is-playing .scene__video { opacity: 1; }

/* モック共通 */
.mock {
  position: absolute; inset: 0; overflow: hidden; font-size: calc(13 * var(--u)); line-height: 1.45; color: var(--text-2);
  background: radial-gradient(120% 90% at 50% 0%, #1b1612, #0e0b09 70%);
}
.mock .m-cur { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.m-toast {
  position: absolute; left: 50%; bottom: calc(22 * var(--u)); transform: translateX(-50%); z-index: 25;
  display: inline-flex; align-items: center; gap: calc(8 * var(--u)); white-space: nowrap;
  padding: calc(9 * var(--u)) calc(16 * var(--u)); border-radius: 999px; background: #221c17; border: 1px solid rgba(255, 138, 0, 0.35);
  color: var(--text); font-size: calc(13 * var(--u)); box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.5);
}
.m-toast svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: var(--orange); }
.m-thumb { display: block; aspect-ratio: 16 / 9; border-radius: calc(7 * var(--u)); background: #2a221c; }
.m-thumb--a { background: linear-gradient(135deg, #6a5140, #2b221b); }
.m-thumb--b { background: linear-gradient(135deg, #cfb89a, #5a4a3a); }
.m-thumb--c { background: linear-gradient(135deg, #25324a, #111726); }
.m-thumb--d { background: linear-gradient(135deg, #5a4636, #2c231c); }
.m-thumb--e { background: linear-gradient(135deg, #a8672e, #3a2416); }
.m-thumb--new { background: radial-gradient(circle at 70% 40%, rgba(255, 138, 0, 0.5), transparent 45%), linear-gradient(135deg, #3b2c20, #1a1410); }
.m-wv { display: block; width: calc(30 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(5 * var(--u)); background: repeating-linear-gradient(90deg, var(--orange-2) 0 2px, transparent 2px 5px); -webkit-mask: radial-gradient(ellipse 60% 50%, #000 50%, transparent 100%); mask: radial-gradient(ellipse 60% 50%, #000 50%, transparent 100%); }

/* 01 いれる */
.sc1 .m-rail { position: absolute; left: 0; top: 0; bottom: 0; width: calc(56 * var(--u)); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: calc(16 * var(--u)); padding-top: calc(22 * var(--u)); }
.sc1 .m-rail i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(7 * var(--u)); background: rgba(255, 236, 214, 0.08); }
.sc1 .m-rail i.on { background: var(--orange); box-shadow: 0 0 14px rgba(255, 138, 0, 0.6); }
.sc1 .m-home { position: absolute; left: calc(56 * var(--u)); right: 0; top: 0; padding: calc(34 * var(--u)) calc(40 * var(--u)); }
.m-h { font-size: calc(26 * var(--u)); font-weight: 900; color: var(--text); }
.m-new {
  margin-top: calc(16 * var(--u)); display: inline-flex; align-items: center; gap: calc(12 * var(--u)); height: calc(54 * var(--u)); padding: 0 calc(24 * var(--u)) 0 calc(12 * var(--u));
  border-radius: calc(16 * var(--u)); border: 1.5px dashed rgba(255, 165, 61, 0.7); color: var(--orange-2); font-size: calc(16 * var(--u)); font-weight: 700; background: rgba(255, 138, 0, 0.06);
}
.m-new i { width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--orange); color: #140a00; font-size: calc(18 * var(--u)); }
.m-sub { margin-top: calc(34 * var(--u)); font-family: var(--font-mono); font-size: calc(11 * var(--u)); letter-spacing: 0.1em; color: var(--muted); }
.m-projects { margin-top: calc(12 * var(--u)); display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(14 * var(--u)); }
.m-proj { position: relative; display: grid; gap: calc(3 * var(--u)); padding: calc(8 * var(--u)); border-radius: calc(12 * var(--u)); background: #16120f; border: 1px solid var(--line); }
.m-proj b { font-size: calc(12.5 * var(--u)); color: var(--text); font-weight: 700; margin-top: calc(4 * var(--u)); }
.m-proj em { font-style: normal; font-size: calc(11 * var(--u)); color: var(--muted); }
.m-proj--slot { border-style: dashed; min-height: calc(120 * var(--u)); }
.m-proj--new { position: absolute; inset: -1px; display: grid; align-content: start; gap: calc(3 * var(--u)); padding: calc(8 * var(--u)); border-radius: calc(12 * var(--u)); background: #1d1813; border: 1px solid rgba(255, 138, 0, 0.55); box-shadow: 0 0 30px -8px rgba(255, 138, 0, 0.5); }
.m-prog { display: block; height: calc(4 * var(--u)); border-radius: 4px; background: rgba(255, 236, 214, 0.08); overflow: hidden; margin-top: calc(6 * var(--u)); }
.m-prog i { display: block; height: 100%; background: var(--orange); }
.sc1 .m-drop {
  position: absolute; left: calc(74 * var(--u)); right: calc(18 * var(--u)); top: calc(18 * var(--u)); bottom: calc(18 * var(--u)); z-index: 5;
  border: 2px dashed var(--orange-2); border-radius: calc(20 * var(--u)); background: rgba(255, 138, 0, 0.08); display: grid; place-items: end center;
  padding-bottom: calc(34 * var(--u)); font-size: calc(18 * var(--u)); font-weight: 700; color: var(--orange-2); opacity: 0;
}
.sc1 .m-drop span { padding: calc(6 * var(--u)) calc(16 * var(--u)); border-radius: 999px; background: rgba(11, 9, 8, 0.7); }
.sc1 .m-files { position: absolute; left: calc(360 * var(--u)); top: calc(210 * var(--u)); z-index: 6; opacity: 0; }
.m-file {
  position: absolute; left: 0; top: 0; width: calc(200 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u));
  padding: calc(7 * var(--u)); border-radius: calc(11 * var(--u)); background: #221c17; border: 1px solid var(--line-2);
  font-size: calc(12 * var(--u)); color: var(--text); box-shadow: 0 calc(12 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.5);
}
.m-file .m-thumb { width: calc(46 * var(--u)); }
.m-file .m-wv { width: calc(46 * var(--u)); }
.m-file--1 { transform: rotate(-5deg); }
.m-file--2 { transform: translate(calc(14 * var(--u)), calc(16 * var(--u))) rotate(3deg); }
.m-file--3 { transform: translate(calc(26 * var(--u)), calc(32 * var(--u))) rotate(-1deg); }
.sc1 .m-files .m-cur { left: calc(150 * var(--u)); top: calc(36 * var(--u)); }
.sc1 .m-toast { opacity: 1; }

.scene.is-run .sc1 .m-files { animation: sc1Files 7s var(--ease-out) both; }
.scene.is-run .sc1 .m-drop { animation: sc1Drop 7s ease both; }
.scene.is-run .sc1 .m-proj--new { animation: sc1New 7s var(--ease-out) both; }
.scene.is-run .sc1 .m-prog i { animation: sc1Prog 7s linear both; }
.scene.is-run .sc1 .m-toast { animation: toast 7s var(--ease-out) both; --t0: 70%; }
.scene.is-run .sc1 .m-new { animation: sc1Btn 7s ease both; }
.scene.is-run .sc1 .m-files .m-cur { animation: sc1Cur 7s ease both; }
@keyframes sc1Files {
  0%, 6% { opacity: 1; transform: translate(calc(620 * var(--u)), calc(260 * var(--u))) rotate(8deg); }
  32% { opacity: 1; transform: translate(0, 0) rotate(0); }
  38% { opacity: 1; transform: translate(0, calc(8 * var(--u))) scale(0.97); }
  46% { opacity: 0; transform: translate(calc(-140 * var(--u)), calc(-40 * var(--u))) scale(0.35); }
  100% { opacity: 0; transform: translate(calc(-140 * var(--u)), calc(-40 * var(--u))) scale(0.35); }
}
@keyframes sc1Cur { 0%, 34% { transform: none; } 37% { transform: scale(0.8); } 40%, 100% { transform: none; } }
@keyframes sc1Drop {
  0%, 18% { opacity: 0; transform: scale(1.02); }
  24% { opacity: 1; transform: none; }
  37% { opacity: 1; background: rgba(255, 138, 0, 0.08); }
  39% { background: rgba(255, 138, 0, 0.28); }
  46%, 100% { opacity: 0; background: rgba(255, 138, 0, 0.08); }
}
@keyframes sc1New { 0%, 44% { opacity: 0; transform: scale(0.7); } 52% { opacity: 1; transform: scale(1.04); } 56%, 100% { opacity: 1; transform: none; } }
@keyframes sc1Prog { 0%, 50% { width: 0; } 80%, 100% { width: 100%; } }
@keyframes sc1Btn { 0%, 4% { box-shadow: none; } 10% { box-shadow: 0 0 0 calc(6 * var(--u)) rgba(255, 138, 0, 0.18), 0 0 30px rgba(255, 138, 0, 0.35); } 18%, 100% { box-shadow: none; } }
@keyframes toast {
  0%, 68% { opacity: 0; transform: translate(-50%, calc(14 * var(--u))); }
  74%, 95% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* 02 たのむ */
.sc2 .m-ghost { position: absolute; left: calc(24 * var(--u)); top: calc(24 * var(--u)); width: calc(360 * var(--u)); bottom: calc(24 * var(--u)); display: grid; grid-template-rows: auto 1fr; gap: calc(14 * var(--u)); opacity: 0.55; }
.m-ghost__pv { aspect-ratio: 16 / 9; border-radius: calc(12 * var(--u)); background: radial-gradient(50% 60% at 70% 35%, rgba(255, 138, 0, 0.3), transparent 70%), linear-gradient(135deg, #2a2019, #120e0b); border: 1px solid var(--line); }
.m-ghost__tl { border-radius: calc(12 * var(--u)); border: 1px solid var(--line); padding: calc(12 * var(--u)); display: grid; gap: calc(8 * var(--u)); align-content: start; }
.m-ghost__tl i { height: calc(18 * var(--u)); border-radius: calc(5 * var(--u)); background: rgba(255, 236, 214, 0.07); }
.m-ghost__tl i:nth-child(2) { width: 70%; background: rgba(255, 138, 0, 0.14); }
.m-ghost__tl i:nth-child(3) { width: 88%; }
.sc2 .m-chat {
  position: absolute; left: calc(404 * var(--u)); right: calc(22 * var(--u)); top: calc(22 * var(--u)); bottom: calc(22 * var(--u));
  display: flex; flex-direction: column; border-radius: calc(16 * var(--u)); background: #16120f; border: 1px solid var(--line-2); padding: calc(14 * var(--u));
  box-shadow: 0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(0, 0, 0, 0.45);
}
.m-chat__head { display: flex; align-items: center; gap: calc(8 * var(--u)); padding-bottom: calc(10 * var(--u)); border-bottom: 1px solid var(--line); font-size: calc(13 * var(--u)); color: var(--text); }
.m-chat__head .m-orb { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.m-chat__head span { font-size: calc(11 * var(--u)); color: var(--muted); padding: 0 calc(8 * var(--u)); border: 1px solid var(--line); border-radius: 999px; }
.m-chat__log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) 0; }
.m-msg { max-width: 90%; padding: calc(9 * var(--u)) calc(12 * var(--u)); border-radius: calc(12 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: 1.6; }
.m-msg--me { align-self: flex-end; background: rgba(255, 138, 0, 0.16); border: 1px solid rgba(255, 138, 0, 0.35); color: var(--text); border-bottom-right-radius: calc(4 * var(--u)); }
.m-msg--ai { align-self: flex-start; background: rgba(255, 236, 214, 0.05); border: 1px solid var(--line); border-bottom-left-radius: calc(4 * var(--u)); }
.m-typing { display: none; align-self: flex-start; gap: calc(4 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(12 * var(--u)); background: rgba(255, 236, 214, 0.05); }
.m-typing i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--text-2); animation: dot 1s ease-in-out infinite; }
.m-typing i:nth-child(2) { animation-delay: 0.15s; }
.m-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { transform: translateY(calc(-3 * var(--u))); opacity: 0.4; } }
.m-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.m-plan li { font-size: calc(11 * var(--u)); padding: calc(3 * var(--u)) calc(10 * var(--u)); border-radius: 999px; border: 1px solid rgba(255, 138, 0, 0.35); color: var(--orange-2); }
.m-chips { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.m-chips span { font-size: calc(10.5 * var(--u)); padding: calc(3 * var(--u)) calc(9 * var(--u)); border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.m-chips span.on { border-color: rgba(255, 138, 0, 0.45); color: var(--orange-2); background: rgba(255, 138, 0, 0.08); }
.m-input {
  display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(46 * var(--u)); padding: 0 calc(7 * var(--u)) 0 calc(14 * var(--u));
  border-radius: calc(12 * var(--u)); border: 1px solid rgba(255, 138, 0, 0.45); background: #100d0b; box-shadow: 0 0 0 calc(3 * var(--u)) rgba(255, 138, 0, 0.08);
}
.m-type { flex: 1; min-width: 0; overflow: hidden; font-size: calc(12.5 * var(--u)); color: var(--text); font-feature-settings: normal; letter-spacing: 0; }
.m-type > span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: middle; width: 0; border-right: 1.5px solid var(--orange); }
.m-send { flex: none; width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(9 * var(--u)); display: grid; place-items: center; background: var(--orange); color: #140a00; }
.m-send svg { width: 55%; height: 55%; }
.scene.is-run .sc2 .m-type > span { animation: sc2Type 7s steps(21, end) both, caret 0.8s steps(2) 8; }
.scene.is-run .sc2 .m-send { animation: sc2Send 7s ease both; }
.scene.is-run .sc2 .m-msg--me { animation: sc2Me 7s var(--ease-out) both; }
.scene.is-run .sc2 .m-typing { animation: sc2Typing 7s both; }
.scene.is-run .sc2 .m-msg--ai { animation: sc2Ai 7s var(--ease-out) both; }
.scene.is-run .sc2 .m-plan li { animation: sc2Plan 7s var(--ease-out) both; }
.scene.is-run .sc2 .m-plan li:nth-child(2) { animation-name: sc2Plan2; }
.scene.is-run .sc2 .m-plan li:nth-child(3) { animation-name: sc2Plan3; }
.scene.is-run .sc2 .m-plan li:nth-child(4) { animation-name: sc2Plan4; }
@keyframes sc2Type { 0%, 5% { width: 0; } 38% { width: 21em; } 42% { width: 21em; } 43%, 100% { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes sc2Send { 0%, 39% { transform: none; } 41% { transform: scale(0.82); box-shadow: 0 0 20px var(--orange); } 44%, 100% { transform: none; } }
@keyframes sc2Me { 0%, 42% { opacity: 0; transform: translateY(calc(16 * var(--u))) scale(0.96); } 48%, 100% { opacity: 1; transform: none; } }
@keyframes sc2Typing { 0%, 49% { display: none; } 50%, 62% { display: inline-flex; } 63%, 100% { display: none; } }
@keyframes sc2Ai { 0%, 62% { opacity: 0; transform: translateY(calc(16 * var(--u))); max-height: 0; padding-block: 0; border-width: 0; } 63% { max-height: 20em; padding-block: calc(9 * var(--u)); border-width: 1px; } 68%, 100% { opacity: 1; transform: none; max-height: 20em; } }
@keyframes sc2Plan { 0%, 72% { opacity: 0; transform: scale(0.8); } 76%, 100% { opacity: 1; transform: none; } }
@keyframes sc2Plan2 { 0%, 75% { opacity: 0; transform: scale(0.8); } 79%, 100% { opacity: 1; transform: none; } }
@keyframes sc2Plan3 { 0%, 78% { opacity: 0; transform: scale(0.8); } 82%, 100% { opacity: 1; transform: none; } }
@keyframes sc2Plan4 { 0%, 81% { opacity: 0; transform: scale(0.8); } 85%, 100% { opacity: 1; transform: none; } }
.sc2 .m-type > span { width: 21em; }
html.js .scene:not(.is-run) .sc2 .m-type > span { width: 0; }

/* 03 まつ */
.sc3 .m-wait { position: absolute; left: calc(60 * var(--u)); right: calc(60 * var(--u)); top: calc(46 * var(--u)); display: flex; align-items: center; gap: calc(40 * var(--u)); }
.m-ring { position: relative; width: calc(170 * var(--u)); height: calc(170 * var(--u)); flex: none; }
.m-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.m-ring circle { fill: none; stroke-width: 5; }
.m-ring__bg { stroke: rgba(255, 236, 214, 0.08); }
.m-ring__fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(255, 138, 0, 0.8)); }
.m-orb--lg { position: absolute; inset: 26%; width: auto; height: auto; box-shadow: 0 0 40px rgba(255, 138, 0, 0.7), 0 0 90px rgba(255, 90, 20, 0.35); animation: none; }
.scene.is-run .m-ring__icon { animation: breathe 2.4s ease-in-out 3; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.m-wait__t { font-size: calc(18 * var(--u)); font-weight: 700; color: var(--text); }
.m-steps { list-style: none; margin: calc(14 * var(--u)) 0 0; padding: 0; display: grid; gap: calc(9 * var(--u)); }
.m-steps li { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(13.5 * var(--u)); color: var(--text-2); }
.m-steps li::before {
  content: "✓"; width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: calc(11 * var(--u)); font-weight: 700; color: #140a00; background: var(--orange); box-shadow: 0 0 10px rgba(255, 138, 0, 0.6);
}
.sc3 .m-free {
  position: absolute; left: calc(60 * var(--u)); top: calc(250 * var(--u)); display: inline-flex; align-items: center; gap: calc(8 * var(--u));
  font-size: calc(12.5 * var(--u)); color: var(--text-2); padding: calc(7 * var(--u)) calc(14 * var(--u)); border-radius: 999px; border: 1px dashed var(--line-2);
}
.sc3 .m-free svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: var(--orange-2); }
.m-build { position: absolute; left: calc(24 * var(--u)); right: calc(24 * var(--u)); bottom: calc(76 * var(--u)); display: grid; gap: calc(6 * var(--u)); padding: calc(12 * var(--u)); border-radius: calc(14 * var(--u)); border: 1px solid var(--line); background: rgba(255, 236, 214, 0.02); }
.m-build__row { position: relative; height: calc(22 * var(--u)); border-radius: calc(5 * var(--u)); background: rgba(255, 236, 214, 0.03); }
.m-build__row i { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: calc(var(--w) * 1%); border-radius: calc(5 * var(--u)); background: linear-gradient(180deg, #4a3a2e, #33281f); box-shadow: inset 0 0 0 1px rgba(255, 236, 214, 0.1); }
.m-build__row--t i { background: rgba(255, 138, 0, 0.24); box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.6); }
.m-build__row--a i { background: rgba(255, 165, 61, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 165, 61, 0.35); }
.sc3 .m-toast--done { bottom: calc(22 * var(--u)); }
.scene.is-run .sc3 .m-ring__fg { animation: sc3Ring 7s linear both; }
.scene.is-run .sc3 .m-steps li::before { animation: sc3Tick 7s var(--ease-spring) both; animation-delay: calc(var(--i) * 0.95s - 0s); }
.scene.is-run .sc3 .m-steps li { animation: sc3Li 7s ease both; animation-delay: calc(var(--i) * 0.95s); }
.scene.is-run .sc3 .m-build__row i { animation: sc3Clip 7s var(--ease-out) both; animation-delay: calc(0.3s + var(--i) * 0.36s); }
.scene.is-run .sc3 .m-toast--done { animation: toast 7s var(--ease-out) both; }
@keyframes sc3Ring { 0% { stroke-dashoffset: 327; } 80%, 100% { stroke-dashoffset: 0; } }
@keyframes sc3Tick { 0%, 14% { transform: scale(0); background: transparent; } 18%, 100% { transform: none; } }
@keyframes sc3Li { 0%, 14% { color: var(--muted); } 18%, 100% { color: var(--text-2); } }
@keyframes sc3Clip { 0% { transform: scaleX(0); transform-origin: left; opacity: 0; } 8%, 100% { transform: none; opacity: 1; } }

/* 04 なおす */
.sc4 .m-pv { position: absolute; left: calc(26 * var(--u)); top: calc(30 * var(--u)); width: calc(520 * var(--u)); aspect-ratio: 16 / 9; border-radius: calc(12 * var(--u)); overflow: hidden; border: 1px solid var(--line-2); }
.m-pv__bg { position: absolute; inset: 0; background: linear-gradient(180deg, #3b2c22 0%, #1b1410 70%); }
.m-pv__sun { position: absolute; left: 8%; top: 12%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 110, 0.5), transparent 70%); }
.m-pv__person { position: absolute; left: 14%; bottom: 0; width: 30%; height: 62%; border-radius: 45% 45% 0 0; background: linear-gradient(180deg, #5c4636, #2a1f18); }
.m-pv__person::before { content: ""; position: absolute; left: 50%; top: -34%; width: 44%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #6d5242; }
.m-pv__desk { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #120d0a; }
.m-pv__chart {
  position: absolute; left: 60%; top: 14%; width: 30%; height: 44%; display: flex; align-items: flex-end; gap: 8%; padding: 5% 6% 0;
  border-radius: calc(8 * var(--u)); background: rgba(11, 9, 8, 0.72); border: 1px solid rgba(255, 138, 0, 0.35);
}
.m-pv__chart i { flex: 1; height: calc(var(--h) * 0.8%); border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; background: linear-gradient(180deg, var(--orange-2), var(--ember)); transform-origin: bottom; }
.m-pv__chart span { position: absolute; left: 8%; top: 6%; font-family: var(--font-mono); font-size: calc(9 * var(--u)); color: var(--orange-2); letter-spacing: 0.1em; }
.m-circle { position: absolute; left: 55%; top: 4%; width: 42%; overflow: visible; }
.m-circle path { fill: none; stroke: var(--orange); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 720; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(255, 138, 0, 0.8)); }
.m-note {
  position: absolute; left: 50%; top: 55%; transform: translateX(-4%); z-index: 3; display: flex; align-items: center; gap: calc(8 * var(--u));
  padding: calc(7 * var(--u)) calc(7 * var(--u)) calc(7 * var(--u)) calc(11 * var(--u)); border-radius: calc(10 * var(--u)); background: #1f1a16; border: 1px solid rgba(255, 138, 0, 0.55);
  font-size: calc(12.5 * var(--u)); color: var(--text); box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, 0.5);
}
.m-note > svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--orange-2); flex: none; }
.m-note__t { font-feature-settings: normal; letter-spacing: 0; }
.m-note__t > span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: middle; width: 9em; }
.m-note b { font-size: calc(11 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: calc(7 * var(--u)); background: var(--orange); color: #140a00; }
.m-telop { position: absolute; left: 0; right: 0; bottom: 20%; text-align: center; }
.m-telop span {
  display: inline-block; font-weight: 900; font-size: calc(19 * var(--u)); padding: calc(3 * var(--u)) calc(12 * var(--u)); border-radius: calc(6 * var(--u));
  color: #140a00; background: var(--orange-2); box-shadow: 0 calc(4 * var(--u)) 0 rgba(0, 0, 0, 0.35);
}
.sc4 .m-anno { position: absolute; left: calc(570 * var(--u)); right: calc(22 * var(--u)); top: calc(30 * var(--u)); bottom: calc(30 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: #16120f; border: 1px solid var(--line-2); }
.m-anno__h { font-family: var(--font-mono); font-size: calc(10.5 * var(--u)); letter-spacing: 0.12em; color: var(--muted); }
.m-anno__h--2 { margin-top: calc(22 * var(--u)); }
.m-anno__item { margin-top: calc(10 * var(--u)); display: grid; grid-template-columns: auto 1fr; gap: calc(4 * var(--u)) calc(8 * var(--u)); align-items: center; font-size: calc(12 * var(--u)); color: var(--text); padding: calc(8 * var(--u)); border-radius: calc(10 * var(--u)); background: rgba(255, 138, 0, 0.07); border: 1px solid rgba(255, 138, 0, 0.3); }
.m-anno__item i { font-style: normal; width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #140a00; font-size: calc(10.5 * var(--u)); font-weight: 700; }
.m-anno__item em { grid-column: 2; font-style: normal; font-size: calc(10.5 * var(--u)); color: var(--ok); display: inline-flex; align-items: center; gap: calc(4 * var(--u)); }
.m-anno__item em svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.m-anno__item--dim { background: transparent; border-color: var(--line); color: var(--muted); }
.m-anno__item--dim i { background: rgba(255, 236, 214, 0.1); color: var(--text-2); }
.m-styles { margin-top: calc(10 * var(--u)); display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(6 * var(--u)); }
.st { aspect-ratio: 1; border-radius: calc(8 * var(--u)); display: grid; place-items: center; font-size: calc(15 * var(--u)); font-weight: 900; border: 1px solid var(--line-2); background: #0f0c0a; }
.st--1 { color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.st--2 { color: #fff; -webkit-text-stroke: calc(1.4 * var(--u)) #ff5a1f; paint-order: stroke fill; }
.st--3 { color: #140a00; background: var(--orange-2); border-color: var(--orange); box-shadow: 0 0 0 calc(2 * var(--u)) rgba(255, 138, 0, 0.35); }
.st--4 { color: var(--text); font-weight: 500; }
.sc4 .m-cur--4 { left: calc(420 * var(--u)); top: calc(160 * var(--u)); opacity: 0; }
.scene.is-run .sc4 .m-circle path { animation: sc4Draw 7s ease-in-out both; }
.scene.is-run .sc4 .m-note { animation: sc4Note 7s var(--ease-out) both; }
.scene.is-run .sc4 .m-note__t > span { animation: sc4Type 7s steps(9, end) both; }
.scene.is-run .sc4 .m-note b { animation: sc4Send 7s ease both; }
.scene.is-run .sc4 .m-pv__chart { animation: sc4Chart 7s var(--ease-out) both; }
.scene.is-run .sc4 .m-pv__chart i { animation: sc4Bar 7s var(--ease-out) both; }
.scene.is-run .sc4 .m-anno__item:not(.m-anno__item--dim) em { animation: sc4Done 7s ease both; }
.scene.is-run .sc4 .m-telop span { animation: sc4Telop 7s ease both; }
.scene.is-run .sc4 .st--3 { animation: sc4St 7s ease both; }
.scene.is-run .sc4 .m-cur--4 { animation: sc4Cur 7s var(--ease-in-out) both; }
@keyframes sc4Draw { 0%, 6% { stroke-dashoffset: 720; } 22%, 100% { stroke-dashoffset: 0; } }
@keyframes sc4Note { 0%, 22% { opacity: 0; transform: translateX(-4%) translateY(calc(8 * var(--u))); } 26%, 52% { opacity: 1; transform: translateX(-4%); } 58%, 100% { opacity: 0; transform: translateX(-4%) translateY(calc(-6 * var(--u))); } }
@keyframes sc4Type { 0%, 26% { width: 0; } 40%, 100% { width: 9em; } }
@keyframes sc4Send { 0%, 44% { transform: none; } 46% { transform: scale(0.85); } 49%, 100% { transform: none; } }
@keyframes sc4Chart { 0%, 56% { opacity: 0; } 60%, 100% { opacity: 1; } }
@keyframes sc4Bar { 0%, 57% { transform: scaleY(0); } 68%, 100% { transform: none; } }
@keyframes sc4Done { 0%, 62% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes sc4Telop {
  0%, 79% { color: #fff; background: transparent; box-shadow: none; text-shadow: 0 0 4px #000, 0 0 4px #000; }
  81%, 100% { color: #140a00; background: var(--orange-2); text-shadow: none; }
}
@keyframes sc4St { 0%, 76% { background: #0f0c0a; color: #fff; box-shadow: none; border-color: var(--line-2); } 78% { transform: scale(0.88); } 80%, 100% { transform: none; } }
@keyframes sc4Cur {
  0% { opacity: 0; transform: translate(calc(200 * var(--u)), calc(200 * var(--u))); }
  5% { opacity: 1; transform: translate(0, calc(-120 * var(--u))); }
  10% { transform: translate(calc(90 * var(--u)), calc(-110 * var(--u))); }
  15% { transform: translate(calc(100 * var(--u)), calc(-40 * var(--u))); }
  19% { transform: translate(calc(20 * var(--u)), calc(-10 * var(--u))); }
  22% { transform: translate(calc(-20 * var(--u)), calc(-80 * var(--u))); }
  30% { transform: translate(calc(-10 * var(--u)), calc(30 * var(--u))); }
  44% { transform: translate(calc(52 * var(--u)), calc(44 * var(--u))); }
  46% { transform: translate(calc(52 * var(--u)), calc(44 * var(--u))) scale(0.85); }
  50% { transform: translate(calc(52 * var(--u)), calc(44 * var(--u))); }
  74% { transform: translate(calc(318 * var(--u)), calc(170 * var(--u))); }
  78% { transform: translate(calc(318 * var(--u)), calc(170 * var(--u))) scale(0.85); }
  82% { transform: translate(calc(318 * var(--u)), calc(170 * var(--u))); opacity: 1; }
  100% { transform: translate(calc(360 * var(--u)), calc(240 * var(--u))); opacity: 0; }
}

/* 05 そざい */
.sc5 .m-lib { position: absolute; left: calc(22 * var(--u)); top: calc(22 * var(--u)); bottom: calc(22 * var(--u)); width: calc(390 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(16 * var(--u)); background: #16120f; border: 1px solid var(--line-2); }
.m-lib__tabs { display: flex; gap: calc(4 * var(--u)); }
.m-lib__tabs > * { padding: calc(4 * var(--u)) calc(12 * var(--u)); border-radius: calc(8 * var(--u)); font-size: calc(12 * var(--u)); color: var(--muted); }
.m-lib__tabs b { background: rgba(255, 236, 214, 0.08); color: var(--text); }
.m-lib__filter { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-top: calc(12 * var(--u)); font-size: calc(11 * var(--u)); color: var(--muted); }
.m-lib__filter b { padding: calc(2 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: var(--orange); color: #140a00; }
.m-lib__filter span + b + span { padding: calc(2 * var(--u)) calc(10 * var(--u)); border-radius: 999px; border: 1px solid var(--line-2); }
.m-lib__cats { display: flex; gap: calc(5 * var(--u)); margin-top: calc(10 * var(--u)); }
.m-lib__cats > * { font-size: calc(10.5 * var(--u)); padding: calc(2 * var(--u)) calc(9 * var(--u)); border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.m-lib__cats b { border-color: rgba(255, 138, 0, 0.6); color: var(--orange-2); background: rgba(255, 138, 0, 0.1); }
.m-lib__cards { margin-top: calc(12 * var(--u)); display: grid; grid-template-columns: 1fr 1fr; gap: calc(10 * var(--u)); }
.m-card { position: relative; display: grid; gap: calc(3 * var(--u)); padding: calc(8 * var(--u)); border-radius: calc(12 * var(--u)); background: #1c1713; border: 1px solid var(--line); }
.m-card__art { aspect-ratio: 16 / 8; border-radius: calc(8 * var(--u)); display: grid; place-items: center; background: linear-gradient(135deg, #ff9a2a, #b8421a); }
.m-card__art--2 { background: linear-gradient(135deg, #6b3a5c, #26152a); }
.m-card__art--3 { background: linear-gradient(135deg, #3d4b5b, #151b22); }
.m-card__art--4 { background: linear-gradient(135deg, #1e5b56, #d9913c); }
.m-card b { font-size: calc(12.5 * var(--u)); color: var(--text); margin-top: calc(3 * var(--u)); }
.m-card em { font-style: normal; font-size: calc(10.5 * var(--u)); color: var(--muted); display: inline-flex; align-items: center; gap: calc(4 * var(--u)); }
.m-card em svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.m-card em.ok { color: var(--ok); }
.m-card em.yen { color: var(--orange-2); }
.m-use { position: absolute; right: calc(8 * var(--u)); bottom: calc(8 * var(--u)); font-size: calc(11 * var(--u)); font-weight: 700; padding: calc(3 * var(--u)) calc(11 * var(--u)); border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.m-card--hot { border-color: rgba(255, 138, 0, 0.55); box-shadow: 0 0 24px -8px rgba(255, 138, 0, 0.6); }
.m-card--hot .m-use { background: var(--orange); color: #140a00; border-color: var(--orange); }
.m-eq {
  display: inline-flex; align-items: flex-end; justify-content: space-between; width: 30%; height: 44%;
  background: linear-gradient(rgba(255, 244, 230, 0.95), rgba(255, 244, 230, 0.95)) center bottom / 20% 100% no-repeat;
}
.m-eq::before, .m-eq::after { content: ""; flex: 0 0 20%; height: 58%; background: rgba(255, 244, 230, 0.95); border-radius: 1px; }
.m-eq::after { height: 38%; }
.sc5 .m-edit { position: absolute; left: calc(430 * var(--u)); right: calc(22 * var(--u)); top: calc(22 * var(--u)); bottom: calc(22 * var(--u)); display: grid; grid-template-rows: auto 1fr; gap: calc(12 * var(--u)); }
.m-edit__pv { aspect-ratio: 16 / 9; border-radius: calc(12 * var(--u)); border: 1px solid var(--line); background: radial-gradient(50% 60% at 30% 40%, rgba(255, 138, 0, 0.22), transparent 70%), linear-gradient(135deg, #2a2019, #120e0b); }
.m-edit__tl { border-radius: calc(12 * var(--u)); border: 1px solid var(--line); padding: calc(10 * var(--u)); display: grid; gap: calc(6 * var(--u)); align-content: start; background: rgba(255, 236, 214, 0.02); }
.m-edit__row { position: relative; height: calc(22 * var(--u)); border-radius: calc(5 * var(--u)); background: rgba(255, 236, 214, 0.03); }
.m-edit__row i { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: calc(var(--w) * 1%); border-radius: calc(5 * var(--u)); background: linear-gradient(180deg, #4a3a2e, #33281f); }
.m-edit__row--t i { background: rgba(255, 138, 0, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.55); }
.m-edit__row--a { outline: 1px dashed rgba(255, 138, 0, 0.0); }
.m-edit__row .m-edit__drop { left: 0; width: 78%; background: linear-gradient(90deg, rgba(255, 165, 61, 0.35), rgba(255, 165, 61, 0.15)); box-shadow: inset 0 0 0 1px rgba(255, 165, 61, 0.6), 0 0 16px rgba(255, 138, 0, 0.35); }
.sc5 .m-fly {
  position: absolute; left: calc(300 * var(--u)); top: calc(214 * var(--u)); z-index: 12; display: inline-flex; align-items: center; gap: calc(6 * var(--u));
  padding: calc(5 * var(--u)) calc(12 * var(--u)) calc(5 * var(--u)) calc(8 * var(--u)); border-radius: 999px; background: var(--orange); color: #140a00; font-size: calc(12 * var(--u)); font-weight: 700;
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(255, 110, 0, 0.5); opacity: 0;
}
.sc5 .m-fly .m-eq { width: calc(16 * var(--u)); height: calc(12 * var(--u)); background: linear-gradient(#140a00, #140a00) center bottom / 22% 100% no-repeat; }
.sc5 .m-fly .m-eq::before, .sc5 .m-fly .m-eq::after { background: #140a00; }
.sc5 .m-cur--5 { left: calc(170 * var(--u)); top: calc(160 * var(--u)); opacity: 0; }
.sc5 .m-toast { left: auto; right: calc(40 * var(--u)); transform: none; bottom: calc(40 * var(--u)); }
.scene.is-run .sc5 .m-card--hot .m-use { animation: sc5Use 7s ease both; }
.scene.is-run .sc5 .m-fly { animation: sc5FlyX 7s linear both; }
.scene.is-run .sc5 .m-edit__drop { animation: sc5Drop 7s var(--ease-out) both; }
.scene.is-run .sc5 .m-cur--5 { animation: sc5Cur 7s var(--ease-in-out) both; }
.scene.is-run .sc5 .m-toast { animation: toast5 7s var(--ease-out) both; }

@keyframes sc5Use { 0%, 40% { transform: none; } 42% { transform: scale(0.84); } 45%, 100% { transform: none; } }
@keyframes sc5FlyX {
  0%, 43% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  45% { opacity: 1; transform: translate(calc(30 * var(--u)), calc(-40 * var(--u))) scale(1.05); }
  52% { transform: translate(calc(120 * var(--u)), calc(-30 * var(--u))) scale(1); }
  60% { opacity: 1; transform: translate(calc(170 * var(--u)), calc(186 * var(--u))) scale(0.9); }
  63%, 100% { opacity: 0; transform: translate(calc(170 * var(--u)), calc(196 * var(--u))) scale(0.6); }
}
@keyframes sc5Drop { 0%, 60% { transform: scaleX(0); transform-origin: left; opacity: 0; } 62% { opacity: 1; } 72%, 100% { transform: none; opacity: 1; } }
@keyframes sc5Cur {
  0% { opacity: 0; transform: translate(calc(300 * var(--u)), calc(200 * var(--u))); }
  8% { opacity: 1; transform: translate(0, 0); }
  12% { transform: scale(0.85); }
  16% { transform: none; }
  38% { transform: translate(calc(130 * var(--u)), calc(62 * var(--u))); }
  42% { transform: translate(calc(130 * var(--u)), calc(62 * var(--u))) scale(0.85); }
  46% { transform: translate(calc(130 * var(--u)), calc(62 * var(--u))); opacity: 1; }
  70%, 100% { transform: translate(calc(190 * var(--u)), calc(160 * var(--u))); opacity: 0; }
}
@keyframes toast5 { 0%, 66% { opacity: 0; transform: translateY(calc(12 * var(--u))); } 72%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 06 かきだす */
.sc6 .m-dialog {
  position: absolute; left: 50%; top: 50%; width: calc(470 * var(--u)); transform: translate(-50%, -50%); padding: calc(22 * var(--u));
  border-radius: calc(18 * var(--u)); background: #17130f; border: 1px solid var(--line-2); box-shadow: 0 calc(30 * var(--u)) calc(80 * var(--u)) rgba(0, 0, 0, 0.6), 0 0 calc(80 * var(--u)) rgba(255, 120, 0, 0.12);
}
.m-dialog__t { font-size: calc(19 * var(--u)); font-weight: 900; color: var(--text); }
.m-row { margin-top: calc(14 * var(--u)); display: grid; grid-template-columns: calc(96 * var(--u)) 1fr; align-items: center; font-size: calc(12 * var(--u)); color: var(--muted); }
.m-seg { display: flex; gap: calc(4 * var(--u)); flex-wrap: wrap; }
.m-seg > * { font-size: calc(11 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: calc(8 * var(--u)); border: 1px solid var(--line-2); color: var(--text-2); }
.m-seg b { background: var(--orange); color: #140a00; border-color: var(--orange); }
.m-select { justify-self: start; font-size: calc(12 * var(--u)); color: var(--text); padding: calc(5 * var(--u)) calc(12 * var(--u)); border-radius: calc(8 * var(--u)); border: 1px solid var(--line-2); background: #100d0b; }
.m-toggle { justify-self: start; width: calc(38 * var(--u)); height: calc(22 * var(--u)); border-radius: 999px; background: var(--orange); position: relative; }
.m-toggle::after { content: ""; position: absolute; right: calc(3 * var(--u)); top: calc(3 * var(--u)); width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: #fff; }
.m-go-wrap { margin-top: calc(20 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); position: relative; }
.m-progress { flex: 1; height: calc(8 * var(--u)); border-radius: 99px; background: rgba(255, 236, 214, 0.08); overflow: hidden; }
.m-progress i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--orange-2)); box-shadow: 0 0 12px var(--orange); }
.m-pct { --pct: 100; counter-reset: pct var(--pct); font-family: var(--font-mono); font-size: calc(12 * var(--u)); color: var(--orange-2); min-width: 3.4em; text-align: right; }
.m-pct::after { content: counter(pct) "%"; }
.m-go { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: calc(13 * var(--u)); font-weight: 700; padding: calc(8 * var(--u)) calc(20 * var(--u)); border-radius: 999px; background: var(--orange); color: #140a00; opacity: 0; box-shadow: 0 0 20px rgba(255, 138, 0, 0.5); }
.m-done { margin-top: calc(18 * var(--u)); padding-top: calc(14 * var(--u)); border-top: 1px solid var(--line); }
.m-done__t { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 700; color: var(--text); }
.m-done__t svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); padding: calc(3 * var(--u)); border-radius: 50%; background: var(--ok); color: #0b1a0e; }
.m-share { display: flex; gap: calc(6 * var(--u)); margin-top: calc(10 * var(--u)); }
.m-share b { font-family: var(--font-en); font-size: calc(11.5 * var(--u)); padding: calc(5 * var(--u)) calc(12 * var(--u)); border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.sc6 .m-cur--6 { left: calc(560 * var(--u)); top: calc(300 * var(--u)); opacity: 0; }
.scene.is-run .sc6 .m-go { animation: sc6Go 7s ease both; }
.scene.is-run .sc6 .m-progress i { animation: sc6Prog 7s linear both; }
.scene.is-run .sc6 .m-pct { animation: sc6Pct 7s linear both; }
.scene.is-run .sc6 .m-done { animation: sc6Done 7s var(--ease-out) both; }
.scene.is-run .sc6 .m-share b { animation: sc6Share 7s var(--ease-spring) both; }
.scene.is-run .sc6 .m-share b:nth-child(2) { animation-name: sc6Share2; }
.scene.is-run .sc6 .m-share b:nth-child(3) { animation-name: sc6Share3; }
.scene.is-run .sc6 .m-share b:nth-child(4) { animation-name: sc6Share4; }
.scene.is-run .sc6 .m-cur--6 { animation: sc6Cur 7s var(--ease-in-out) both; }
@keyframes sc6Go { 0% { opacity: 1; transform: translateY(-50%); } 16% { opacity: 1; transform: translateY(-50%) scale(0.88); } 19% { opacity: 1; transform: translateY(-50%); } 22%, 100% { opacity: 0; transform: translateY(-50%) scale(0.9); } }
@keyframes sc6Prog { 0%, 20% { width: 0; } 62%, 100% { width: 100%; } }
@keyframes sc6Pct { 0%, 20% { --pct: 0; opacity: 0; } 21% { opacity: 1; } 62%, 100% { --pct: 100; opacity: 1; } }
@keyframes sc6Done { 0%, 64% { opacity: 0; transform: translateY(calc(10 * var(--u))); } 70%, 100% { opacity: 1; transform: none; } }
@keyframes sc6Share { 0%, 70% { opacity: 0; transform: scale(0.6); } 75%, 100% { opacity: 1; transform: none; } }
@keyframes sc6Share2 { 0%, 73% { opacity: 0; transform: scale(0.6); } 78%, 100% { opacity: 1; transform: none; } }
@keyframes sc6Share3 { 0%, 76% { opacity: 0; transform: scale(0.6); } 81%, 100% { opacity: 1; transform: none; } }
@keyframes sc6Share4 { 0%, 79% { opacity: 0; transform: scale(0.6); } 84%, 100% { opacity: 1; transform: none; } }
@keyframes sc6Cur {
  0% { opacity: 0; transform: translate(calc(80 * var(--u)), calc(120 * var(--u))); }
  6% { opacity: 1; }
  14% { transform: translate(0, 0); }
  16% { transform: scale(0.85); }
  20% { transform: none; opacity: 1; }
  36%, 100% { transform: translate(calc(60 * var(--u)), calc(140 * var(--u))); opacity: 0; }
}

/* ══════════ 07 作例 ══════════ */
.works__hint { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.works__grid {
  --wp: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "pv pv addness" "pv pv yt" "motion kitsune deepseek";
  gap: clamp(12px, 1.5vw, 20px);
}
.work { position: relative; translate: 0 calc(var(--wp) * var(--sp, 0) * 1px); }
.work--pv { grid-area: pv; --sp: 16; }
.work--addness { grid-area: addness; --sp: 40; }
.work--yt { grid-area: yt; --sp: 40; }
.work--motion { grid-area: motion; --sp: 16; }
.work--scoby { grid-area: scoby; --sp: -46; }
.work--kitsune { grid-area: kitsune; --sp: 16; }
.work--radio { grid-area: radio; --sp: 24; }
.work--deepseek { grid-area: deepseek; --sp: 40; }
.work--radio2 { grid-area: radio2; --sp: 40; }
.work__btn {
  position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; text-align: left;
  background: #120f0c; border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--ts, 1));
  transition: transform 0.7s var(--ease-out), border-color 0.4s, box-shadow 0.6s var(--ease-out);
  cursor: pointer;
}
.work--scoby .work__btn { aspect-ratio: auto; min-height: 100%; }
.work__btn:hover { border-color: rgba(255, 165, 61, 0.5); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(255, 138, 0, 0.45); --ts: 1.012; }
.work__media { position: absolute; inset: 0; }
.work__media img, .work__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity 0.8s; }
.work__media video { opacity: 0; }
.work.is-playing .work__media video { opacity: 1; }
.work__btn:hover .work__media img, .work__btn:hover .work__media video { transform: scale(1.06); }
/* ラブカンラジオは上端に章タイトルが焼き込まれているので、下寄せで拡大して HUD バッジと重ならない位置まで押し出す */
.work--radio .work__media :is(img, video), .work--radio2 .work__media :is(img, video) { scale: 1.2; transform-origin: 50% 88%; }
.work__fb {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(60% 70% at 70% 20%, rgba(255, 138, 0, 0.16), transparent 70%), linear-gradient(160deg, #1b1612, #0e0b09);
}
.work__fb b { font-family: var(--font-en); font-weight: 800; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: 0.2em; color: rgba(255, 236, 214, 0.1); }
.work__btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  /* 上下を強めに落とす: 作例動画には章タイトルや字幕が焼き込まれており、HUD バッジと見出しに重なるため */
  background: linear-gradient(180deg, rgba(8, 6, 5, 0.78) 0%, rgba(8, 6, 5, 0.42) 14%, transparent 30%, transparent 38%, rgba(8, 6, 5, 0.62) 56%, rgba(8, 6, 5, 0.9) 74%, rgba(8, 6, 5, 0.98) 100%);
  transition: opacity 0.5s;
}
.work--scoby .work__btn::after { background: linear-gradient(180deg, rgba(8, 6, 5, 0.92) 0%, rgba(8, 6, 5, 0.55) 26%, transparent 44%, transparent 80%, rgba(8, 6, 5, 0.45) 100%); }
.work__btn::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 150, 50, 0.22), transparent 45%);
}
.work__btn:hover::before { opacity: 1; }
.work__hud { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: rgba(255, 244, 230, 0.9); }
.work__hud > * { padding: 4px 9px; border-radius: 999px; background: rgba(11, 9, 8, 0.66); border: 1px solid rgba(255, 236, 214, 0.12); line-height: 1.3; }
.work__hud b { font-weight: 500; color: var(--orange-2); }
.work__vert { position: absolute; z-index: 3; right: 16px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.4em; color: rgba(255, 244, 230, 0.55); }
.work__info { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 3px; }
.work__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--orange-2); }
.work__title { font-weight: 800; font-size: clamp(15px, 1.25vw, 19px); color: #fff; line-height: 1.35; }
.work__desc, .work__credit { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out), opacity 0.5s, margin 0.6s var(--ease-out); }
.work__desc { font-size: 13px; color: rgba(244, 237, 228, 0.85); line-height: 1.65; }
.work__credit { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.work--scoby .work__info { top: 58px; bottom: auto; }
.work--scoby .work__desc, .work--scoby .work__credit { max-height: 6em; opacity: 1; margin-top: 4px; }
@media (hover: hover) {
  .work__btn:hover .work__desc, .work__btn:focus-visible .work__desc { max-height: 4.5em; opacity: 1; margin-top: 4px; }
  .work__btn:hover .work__credit, .work__btn:focus-visible .work__credit { max-height: 2em; opacity: 1; }
  .has-pointer .work__btn { cursor: none; }
}
.work--scoby .work__title { font-size: clamp(20px, 2vw, 28px); letter-spacing: 0.06em; }

/* ライトボックス */
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text); overflow: hidden;
}
.lb::backdrop { background: rgba(8, 6, 5, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.lb[open] { animation: lbIn 0.55s var(--ease-out); }
.lb[open]::backdrop { animation: lbFade 0.5s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbFade { from { opacity: 0; } }
.lb__inner { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px; padding: 18px clamp(16px, 5vw, 96px) 26px; }
.lb__top { display: flex; justify-content: space-between; align-items: center; }
.lb__count { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.lb__count b { font-family: var(--font-en); font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lb.is-single .lb__count, .lb.is-single .lb__nav { display: none; }
.lb__close { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color 0.3s, transform 0.5s var(--ease-out); }
.lb__close:hover { border-color: var(--orange); transform: rotate(90deg); }
.lb__close svg { width: 20px; height: 20px; }
.lb__stage { container-type: size; display: grid; place-items: center; min-height: 0; }
.lb__frame {
  --ar: 1.7778; position: relative; width: min(100cqw, 100cqh * var(--ar)); aspect-ratio: var(--ar); border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-2), 0 0 120px -40px rgba(255, 138, 0, 0.5);
  transform-origin: center; transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.lb__frame.is-swap { opacity: 0; transform: scale(0.97); }
.lb__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lb__fb { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: radial-gradient(60% 60% at 50% 40%, rgba(255, 138, 0, 0.15), transparent 70%), #0b0908; }
.lb__fb svg { width: 72px; filter: drop-shadow(0 0 24px rgba(255, 120, 0, 0.6)); animation: breathe 2.4s ease-in-out 3; border-radius: 50%; }
.lb__fb p { font-size: 14px; color: var(--text-2); }
.lb__frame.is-ready .lb__fb { display: none; }
.lb__meta { display: grid; justify-items: center; text-align: center; gap: 6px; max-width: 46em; margin: 0 auto; }
.lb__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--orange-2); }
.lb__title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; }
.lb__desc { font-size: 14.5px; color: var(--text-2); }
.lb__credit { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.lb__nav {
  position: absolute; top: 50%; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  background: rgba(11, 9, 8, 0.85); transform: translateY(-50%); transition: border-color 0.3s, background 0.3s;
}
.lb__nav:hover { border-color: var(--orange); background: rgba(255, 138, 0, 0.12); }
.lb__nav svg { width: 22px; height: 22px; }
.lb__nav--prev { left: clamp(10px, 1.5vw, 24px); }
.lb__nav--next { right: clamp(10px, 1.5vw, 24px); }

/* ══════════ 09 もっと先へ（控えめ） ══════════ */
.beyond { padding-block: clamp(56px, 8vw, 110px); }
.beyond__grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 56px); border-radius: 26px; border: 1px solid var(--line); background: rgba(255, 236, 214, 0.015);
}
.eyebrow--dim { color: var(--muted); }
.beyond__title { margin-top: 16px; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.35; color: var(--text); }
.beyond__lead { margin-top: 16px; font-size: 14.5px; color: var(--text-2); line-height: 1.9; }
.beyond__facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.beyond__facts li { padding-left: 16px; position: relative; }
.beyond__facts li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 1px; background: var(--orange-2); }
.beyond__facts code { font-size: 12px; color: var(--text-2); }
.beyond__links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.term { border-radius: 18px; overflow: hidden; background: #0a0807; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); font-family: var(--font-mono); }
.term__bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 236, 214, 0.03); }
.term__tabs { display: flex; gap: 4px; overflow-x: auto; }
.term__tabs button { font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: 8px; color: var(--muted); white-space: nowrap; transition: color 0.3s, background 0.3s; }
.term__tabs button[aria-selected="true"] { color: var(--text); background: rgba(255, 236, 214, 0.08); }
.term__body { position: relative; padding: 18px 18px 20px; }
.term__cap { font-size: 12px; color: var(--muted); }
.term__cap--2 { margin-top: 22px; }
.term__cmd { margin-top: 8px; display: flex; gap: 10px; align-items: baseline; font-size: 13px; line-height: 1.7; color: var(--text); padding-right: 92px; }
.term__cmd--sub { padding-right: 0; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.term__cmd code { word-break: break-all; white-space: pre-wrap; }
.term__ps { color: var(--orange); flex: none; }
.term__note { margin-left: 8px; color: var(--muted); font-size: 11.5px; }
.term__copy {
  position: absolute; right: 16px; top: 38px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); font-family: var(--font-jp); font-size: 12px; color: var(--text-2); transition: border-color 0.3s, color 0.3s;
}
.term__copy:hover { border-color: var(--orange); color: var(--text); }
.term__copy svg { width: 14px; height: 14px; }
.term__copy.is-done { color: var(--ok); border-color: rgba(123, 216, 143, 0.5); }

/* ══════════ 10 オープンソース ══════════ */
.oss { overflow: hidden; }

.oss__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.oss__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.oss__chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.oss__chips li { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--font-en); }

/* ══════════ 11 コミュニティ ══════════ */
.comm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.comm__item { perspective: 1200px; }
.comm__card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; min-height: 280px; padding: 28px; border-radius: 22px;
  border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(255, 236, 214, 0.04), rgba(255, 236, 214, 0.01));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.7s var(--ease-out), border-color 0.4s;
}
.comm__card:hover { border-color: rgba(255, 165, 61, 0.45); }
.comm__item--main .comm__card { background: radial-gradient(90% 90% at 100% 0%, rgba(255, 138, 0, 0.22), transparent 60%), linear-gradient(160deg, #1d1611, #120e0b); border-color: rgba(255, 138, 0, 0.35); }
.comm__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 236, 214, 0.06); color: var(--text); }
.comm__item--main .comm__ico { background: var(--orange); color: #140a00; box-shadow: 0 0 30px rgba(255, 138, 0, 0.5); }
.comm__ico svg { width: 26px; height: 26px; }
.comm__tag { position: absolute; top: 28px; right: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--orange-2); border: 1px solid rgba(255, 138, 0, 0.4); border-radius: 999px; padding: 2px 10px; }
.comm__name { margin-top: auto; padding-top: 40px; font-size: clamp(20px, 2vw, 28px); font-weight: 900; }
.comm__item--main .comm__name { font-size: clamp(28px, 3vw, 40px); font-family: var(--font-en); }
.comm__desc { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.75; }
.comm__go { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--orange-2); }
.comm__go svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.comm__card:hover .comm__go svg { transform: translateX(5px); }

/* ══════════ 12 FAQ ══════════ */
.faq { interpolate-size: allow-keywords; }
.faq__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-hs) + 40px); }
.faq__more { margin-top: 20px; font-size: 14.5px; color: var(--text-2); }
.faq__more a { color: var(--orange-2); border-bottom: 1px solid rgba(255, 138, 0, 0.4); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; display: grid; grid-template-columns: 52px 1fr 30px; align-items: center; gap: 10px; padding: 22px 4px; cursor: pointer;
  font-weight: 700; font-size: clamp(15.5px, 1.3vw, 17.5px); transition: color 0.3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__q { word-break: auto-phrase; text-wrap: balance; line-height: 1.5; }
.qa summary:hover { color: var(--orange-2); }
.qa__n { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); transition: color 0.3s; }
.qa[open] .qa__n { color: var(--orange-2); }
.qa__i { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color 0.3s, background 0.3s, transform 0.5s var(--ease-out); }
.qa__i::before, .qa__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform 0.5s var(--ease-out); }
.qa__i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__i { background: var(--orange); border-color: var(--orange); transform: rotate(180deg); }
.qa[open] .qa__i::before, .qa[open] .qa__i::after { background: #140a00; }
.qa[open] .qa__i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { padding: 0 44px 24px 66px; color: var(--text-2); font-size: 15px; line-height: 1.95; }
.qa__a a { color: var(--orange-2); border-bottom: 1px solid rgba(255, 138, 0, 0.4); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size 0.55s var(--ease-out), content-visibility 0.55s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* ══════════ 02 ヒーロー（v2: 3D のアプリアイコン） ══════════ */
.hero { position: relative; }
html.js .hero { height: 250vh; }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  perspective: 1500px; perspective-origin: 50% 42%;
}
html.js .hero__stage { position: sticky; top: 0; }
.hero__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__ambient {
  position: absolute; inset: 0;
  background:
    radial-gradient(34% 42% at 80% 32%, rgba(255, 138, 0, 0.12), transparent 70%),
    radial-gradient(60% 46% at 50% 104%, rgba(255, 110, 20, 0.1), transparent 70%),
    radial-gradient(46% 40% at 10% 0%, rgba(255, 236, 214, 0.04), transparent 70%);
}
.hero__floor {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 62%;
  background-image: linear-gradient(rgba(255, 236, 214, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 236, 214, 0.07) 1px, transparent 1px);
  background-size: 72px 72px; transform: perspective(700px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask: radial-gradient(56% 80% at 50% 100%, #000 18%, transparent 72%); mask: radial-gradient(56% 80% at 50% 100%, #000 18%, transparent 72%);
  opacity: calc(0.85 - var(--e) * 0.5);
}
.hero__vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 9, 8, 0.3) 0%, transparent 18%, transparent 66%, rgba(11, 9, 8, 0.85) 90%, var(--ink) 100%); }

.hero__icon {
  --ic: clamp(150px, 16vw, 250px);
  position: absolute; z-index: 2; right: 9vw; top: 19vh; width: var(--ic);
  transform: translate3d(0, calc(var(--e) * -22vh), 0) scale(calc(1 - var(--e) * 0.2));
  opacity: calc(1 - var(--e) * 2.2);
}
html.js .hero__icon > .icon3d { animation: iconIn 1.9s var(--ease-out) 0.1s backwards; }
@keyframes iconIn { from { transform: translate3d(26vw, 34vh, 0) rotate(20deg) scale(0.6); opacity: 0; } 55% { opacity: 1; } }

/* コピー */
.hero__copy {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-hs) + clamp(20px, 7vh, 96px)); z-index: 4;
  transform: translate3d(0, calc(var(--e) * -14vh), 0); opacity: calc(1 - var(--e) * 2.3);
}
.hero.is-past .hero__copy { pointer-events: none; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--free { color: var(--text); font-weight: 700; border-color: rgba(255, 138, 0, 0.55); background: rgba(255, 138, 0, 0.12); }
.hero__title { margin-top: 22px; font-size: clamp(2.1rem, 5.4vw, 5.2rem); line-height: 1.14; letter-spacing: -0.02em; font-weight: 900; }
.hero__title .ln { padding-bottom: 0.1em; }
.hero__title em {
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 248, 232, 0.95) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #ffc98f 0%, #ff9a1f 45%, #ff6a14 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.js .hero__title em { animation: shine 1.8s var(--ease-in-out) 1.7s both; }
@keyframes shine { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
.hero__lead { margin-top: 24px; font-size: var(--fs-lead); color: var(--text-2); max-width: 36em; line-height: 1.85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.hero__facts li { display: inline-flex; align-items: center; }
.hero__facts li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); margin: 0 12px; opacity: 0.8; }
.hero__facts li:first-child { color: var(--orange-2); font-weight: 700; }
.hero__minor { display: inline-flex; align-items: center; gap: 14px; }
.gh-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: border-color 0.3s, color 0.3s;
}
.gh-pill > svg { width: 16px; height: 16px; }
.gh-pill__n { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 236, 214, 0.06); color: var(--text); }
.gh-pill__n svg { width: 12px; height: 12px; color: var(--orange); }
.gh-pill__n:has([data-gh-count][hidden]) { display: none; }
.gh-pill:hover { border-color: var(--orange); color: var(--text); }
.alt-os { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color 0.3s, border-color 0.3s; }
.alt-os:hover { color: var(--text); border-color: var(--orange); }
html.js .hero__title .ln > span { animation: lnUp 1.3s var(--ease-out) both; }
html.js .hero__title .ln:nth-child(1) > span { animation-delay: 0.3s; }
html.js .hero__title .ln:nth-child(2) > span { animation-delay: 0.42s; }
html.js .hero__kicker { animation: fadeUp 1s var(--ease-out) 0.15s both; }
html.js .hero__lead { animation: fadeUp 1.1s var(--ease-out) 0.7s both; }
html.js .hero__actions { animation: fadeUp 1.1s var(--ease-out) 0.85s both; }
html.js .hero__meta { animation: fadeUp 1.1s var(--ease-out) 1s both; }
@keyframes lnUp { from { transform: translate3d(0, 118%, 0) rotate(3deg); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }

/* ヒーローの画面モック（v2 の差分） */

/* ══════════ 01 こんな人に ══════════ */

/* ══════════ 02 パートナー（v2: 実ロゴ） ══════════ */
.pk { grid-template-columns: 38px 1fr auto; }
.pk__logo {
  grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; overflow: hidden;
  font-style: normal; background: #221b16; border: 1px solid var(--line-2);
}
.pk__logo img { width: 20px; height: 20px; object-fit: contain; }
.pk__logo--fill img { width: 100%; height: 100%; object-fit: cover; }
.pk__logo--text { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.partner__free { align-items: center; }
.partner__free a { margin-left: 8px; color: var(--orange-2); border-bottom: 1px solid rgba(255, 138, 0, 0.45); white-space: nowrap; }
.tape__set > span { gap: 0.42em; }
.tl { display: inline-grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; border-radius: 0.34em; overflow: hidden; background: #140a00; }
.tl img { width: 62%; height: 62%; object-fit: contain; }
.tl--fill img { width: 100%; height: 100%; object-fit: cover; }
.tape__set small { align-self: center; font-family: var(--font-jp); font-size: 0.4em; font-weight: 700; padding: 0.2em 0.65em; border-radius: 999px; background: rgba(20, 10, 0, 0.14); }

/* ══════════ 03 使い方（v2: 実画像） ══════════ */
img.m-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.m-file img.m-thumb { width: calc(46 * var(--u)); }
.m-ghost__pv { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(12 * var(--u)); border: 1px solid var(--line); display: block; }
.m-plogo { width: calc(18 * var(--u)); height: calc(18 * var(--u)); flex: none; }
.m-ring__icon { position: absolute; left: 25%; top: 25%; width: 50%; height: 50%; border-radius: 23%; box-shadow: 0 0 40px rgba(255, 138, 0, 0.55); animation: breathe 2.4s ease-in-out 3; }
.sc4 .m-pv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-card__art { position: relative; overflow: hidden; background: #0d0a08; }
.m-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-card__art .m-eq { position: relative; z-index: 1; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); }
.sc5 .m-edit__pv { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(12 * var(--u)); border: 1px solid var(--line); display: block; }
.sc2 .m-type > span { width: 19em; }
.scene.is-run .sc2 .m-type > span { animation: sc2Type19 7s steps(19, end) both, caret 0.8s steps(2) 8; }
@keyframes sc2Type19 { 0%, 5% { width: 0; } 38% { width: 19em; } 42% { width: 19em; } 43%, 100% { width: 0; } }
.lb__fb img { width: 72px; height: 72px; border-radius: 23%; animation: breathe 2.4s ease-in-out 3; }

/* 共有: カードのスポットライト */
.feat::before, .comm__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 150, 50, 0.13), transparent 45%);
}
.feat:hover::before, .comm__card:hover::before { opacity: 1; }

/* 共有: 自動デモのカーソル・ボタン */

/* 押した瞬間に並びがずれてクリックが外れないよう、隠すときも場所は確保しておく */

/* ══════════ 04 台本 ══════════ */

.points { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.points li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 236, 214, 0.02); }
.points svg { width: 26px; height: 26px; color: var(--orange); flex: none; }
.points b { font-size: 15px; line-height: 1.55; }

/* ══════════ 05 プレビューを直接直す ══════════ */

.feats { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { position: relative; padding: 24px 22px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 236, 214, 0.02); transition: border-color 0.4s; overflow: hidden; }
.feat:hover { border-color: var(--line-2); }
.feat svg { width: 26px; height: 26px; color: var(--orange); }
.feat h3 { font-size: 16px; margin-top: 16px; font-weight: 700; line-height: 1.5; }
.feat p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.both {
  margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px 40px; align-items: center;
  padding: clamp(24px, 3.5vw, 44px); border-radius: 26px; border: 1px solid var(--line-2);
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 138, 0, 0.12), transparent 60%), #120e0b;
}
.both__title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; }
.both__head p { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.both__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.both__col { display: grid; gap: 6px; padding: 20px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255, 236, 214, 0.03); }
.both__col svg { width: 26px; height: 26px; color: var(--text-2); margin-bottom: 4px; }
.both__col b { font-size: 17px; }
.both__col span { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.both__col--ai { border-color: rgba(255, 138, 0, 0.45); background: rgba(255, 138, 0, 0.08); }
.both__col--ai svg { color: var(--orange); }

/* ══════════ 07 Lab（v2: 実サムネイル・操作デモ・Lifetime パス） ══════════ */
.lab { overflow-x: clip; }
.wall {
  position: relative; margin-top: clamp(4px, 1.5vw, 20px); height: clamp(280px, 34vw, 460px); overflow: hidden; perspective: 1400px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, transparent, var(--ink)); pointer-events: none; }
.wall__plane { position: absolute; left: -8%; right: -8%; top: 50%; display: grid; gap: 12px; transform: translateY(-50%) rotateX(16deg) rotateZ(-4deg); transform-origin: 50% 50%; }
.wall__row { display: flex; gap: 12px; width: max-content; animation: marquee var(--dur, 90s) linear infinite; }
.wall__row--rev { animation-direction: reverse; }
.wall__item { position: relative; flex: none; height: var(--h, 128px); width: calc(var(--h, 128px) * var(--ar, 1.7778)); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 236, 214, 0.1); background: #15110e; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.8); }
.wall__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall__item--contain img { object-fit: contain; }
.wall__item b { position: absolute; left: 8px; top: 8px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(11, 9, 8, 0.82); color: var(--text); border: 1px solid rgba(255, 138, 0, 0.5); }

.labdemo { margin-top: clamp(12px, 2vw, 28px); }
.labdemo__head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; align-items: end; margin-bottom: 22px; }
.labdemo__head h3 { font-size: clamp(1.35rem, 2.3vw, 1.95rem); line-height: 1.4; }
.labdemo__head p { color: var(--text-2); font-size: 14.5px; line-height: 1.85; }

.lab__cta { margin-top: clamp(28px, 3vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.lab__cta p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.lab__cta .btn svg { width: 16px; height: 16px; }

/* コミュニティ（v2 の差分） */
.comm__tag--dim { color: #7fd99a; border-color: rgba(123, 216, 143, 0.4); }

/* ══════════ 10 なぜ作ったか ══════════ */
.why__grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.why { padding-bottom: clamp(48px, 6vw, 88px); }
.community { padding-top: clamp(48px, 6vw, 88px); }
.why__fig { position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 1; }
.why__halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 138, 0, 0.3), rgba(255, 138, 0, 0.07) 62%, transparent); }
.why__fig::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgba(255, 165, 61, 0.3); }
.why__fig img { position: relative; width: 100%; height: auto; -webkit-mask: linear-gradient(180deg, #000 76%, transparent 98%); mask: linear-gradient(180deg, #000 76%, transparent 98%); }
.why__text { margin-top: 22px; display: grid; gap: 16px; max-width: 34em; font-size: clamp(15px, 1.2vw, 17px); color: var(--text-2); line-height: 2; }
.why__sign { margin-top: 26px; display: flex; align-items: baseline; gap: 14px; }
.why__sign b { font-size: 19px; }
.why__sign span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); }

/* ══════════ 13 最終 CTA（v2） ══════════ */
.final { position: relative; overflow: hidden; padding-block: clamp(96px, 11vw, 160px) clamp(110px, 12vw, 170px); text-align: center; }
.final__sky { position: absolute; inset: 0; pointer-events: none; }
.final__glow { position: absolute; left: 50%; top: 0; width: min(1000px, 96vw); aspect-ratio: 1.5; transform: translate(-50%, -8%); background: radial-gradient(closest-side, rgba(255, 138, 0, 0.14), transparent 72%); }
.final__horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 190, 120, 0.5), transparent); }
.final__inner { position: relative; display: grid; justify-items: center; }
.final__icon { width: clamp(104px, 11vw, 160px); margin-bottom: clamp(30px, 4vw, 48px); }
.final__eyebrow { justify-self: center; }
.final__title { margin-top: 22px; font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 900; }
.final__lead { margin-top: 24px; font-size: clamp(1.02rem, 1.5vw, 1.3rem); color: var(--text-2); line-height: 1.85; }
.final__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final__meta { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; font-size: 13px; color: var(--muted); }
.final__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); margin: 0 12px; }
.final__meta a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.final__meta a:hover { color: var(--orange-2); border-color: var(--orange); }

.wall__plane.is-paused .wall__row { animation-play-state: paused; }

/* hidden 属性は、display を指定したクラスより必ず優先する（ターミナルの OS 切り替えやデモのボタン） */
main [hidden], .lb [hidden] { display: none !important; }

/* ══════════ 14 レスポンシブ ══════════ */
@media (max-width: 1100px) {
  .how__body { grid-template-columns: 1fr; }
  .how__panels { order: 2; }
  .how__panel p:not(.hud-label) { max-width: 40em; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  
}
@media (max-width: 900px) {
  .sec-head--split { grid-template-columns: 1fr; }
  .partner__grid, .oss__grid, .beyond__grid, .faq__grid, .why__grid { grid-template-columns: 1fr; }
  .picker { margin: 0 auto; transform: rotateY(calc(-4deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))); }
  .faq__head { position: static; }
  .comm { grid-template-columns: 1fr 1fr; }
  .comm__item--main { grid-column: 1 / -1; }
  .oss__stat { order: -1; }
  .answer { grid-template-columns: 1fr; }
  
  
  
  .points { grid-template-columns: 1fr; }
  
  
  
  
  
  .labdemo__head { grid-template-columns: 1fr; }
  
  
  
  
  .both { grid-template-columns: 1fr; }
  .why__fig { max-width: 300px; }
}
@media (max-width: 760px) {
  html.js .hero { height: 200vh; }
  .hero__stage { min-height: 600px; perspective: 900px; }
  .hero__icon { --ic: 84px; right: auto; left: var(--gutter); top: calc(var(--nav-hs) + 18px); }
  .hero__copy { top: calc(var(--nav-hs) + 18px); }
  .hero__kicker { min-height: 84px; padding-left: 104px; align-content: center; }
  .hero__kicker .chip { font-size: 12px; height: 28px; }
  .hero__title { font-size: 9.4vw; margin-top: 18px; line-height: 1.18; }
  .hero__lead { margin-top: 14px; font-size: 14.5px; line-height: 1.8; }
  .hero__actions { margin-top: 20px; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { justify-content: flex-start; min-height: 56px; }
  .hero__meta { margin-top: 14px; gap: 10px 16px; }
  .hero__facts { font-size: 12px; }
  .hero__facts li:nth-child(2) { display: none; }
  .hero__device { --win-w: 94vw; --dy: 36vh; top: calc(50% + var(--nav-hs) / 2 + 2vh); }
  .callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; inset: auto 2px auto 2px; top: calc(100% + 24px); }
  .co, .co--top, .co--bottom { position: relative; inset: auto; display: grid; gap: 1px; padding-left: 14px; text-align: left; justify-items: start; }
  .co::after { display: none; }
  .co::before { left: 0; right: auto; top: 0.5em; bottom: auto; width: 6px; height: 6px; }
  .co b { font-size: 13px; }
  .co span { font-size: 10px; }
  .tapes { height: 150px; margin-top: 64px; }
  .how__tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .how__tabs::-webkit-scrollbar { display: none; }
  .how__tab { flex: none; min-width: 92px; scroll-snap-align: start; }
  .frame { padding: 6px; border-radius: 14px; transform: none; }
  .frame__corner { display: none; }
  .frame__hud { top: -28px; }
  .how__screen { margin-top: 26px; }
  .how__auto { margin-top: 20px; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .feats { grid-template-columns: 1fr; gap: 10px; }
  .feat { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding: 18px; }
  .feat svg { grid-row: 1 / 3; margin-top: 2px; }
  .feat h3 { margin-top: 0; }
  .both__cols { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "pv pv" "addness yt" "motion kitsune" "deepseek deepseek"; gap: 10px; }
  .work { translate: none; }
  .work__btn { border-radius: 12px; }
  .work__hud { top: 8px; left: 10px; right: 10px; font-size: 9.5px; }
  .work__hud span { display: none; }
  .work--pv .work__hud span { display: inline; }
  .work__info { left: 10px; right: 10px; bottom: 8px; }
  .work__tag, .work__credit { display: none; }
  .work--pv .work__tag { display: block; }
  .work__title { font-size: 12.5px; }
  .work--pv .work__title { font-size: 16px; }
  .work--scoby .work__info { top: 36px; }
  .work--scoby .work__title { font-size: 17px; }
  .work--scoby .work__desc { font-size: 11.5px; }
  .work--scoby .work__credit { display: none; }
  .work__vert { display: none; }
  .wall { height: 240px; }
  
  
  
  .comm { grid-template-columns: 1fr; }
  .comm__card { min-height: 0; padding: 22px; }
  .comm__name { padding-top: 26px; }
  .qa summary { grid-template-columns: 40px 1fr 28px; padding: 18px 2px; }
  .qa__a { padding: 0 8px 20px 50px; font-size: 14.5px; }
  .final__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .final__actions .btn { justify-content: center; }
  .final__meta { gap: 6px 14px; }
  .final__meta i { display: none; }
  .lb__nav { top: auto; bottom: 20px; transform: none; width: 46px; height: 46px; }
  .lb__inner { padding-bottom: 84px; }
  .term__cmd { padding-right: 0; }
  .term__copy { position: static; margin-top: 12px; }
  .beyond__grid { padding: 22px 18px; }
  .lab__cta { flex-direction: column; align-items: stretch; }
  .lab__cta .btn { justify-content: center; }
}
@media (max-width: 760px) {
  
  
  
  
  
  
  
  .why__fig { max-width: 240px; }
}
@media (max-width: 420px) {
  .how__tab { min-width: 84px; }
}

/* ══════════ v3: 軽くする工夫 ══════════
 * 画面外のセクションは、ループ演出（CSS アニメーション）を止める（index.js が .is-off を付ける）
 * ヒーローはスクロール中だけラスタライズの倍率を固定して、毎フレームの描き直しを避ける（.is-scrolling） */
section.is-off *, section.is-off *::before, section.is-off *::after { animation-play-state: paused !important; }
/* 点滅する REC の点は合成レイヤーに載せて、点滅のたびのスタイル再計算を避ける */

.only-m { display: none; }

/* ヒーロー: 動いている PV そのものを押すと大きく音つきで見られる */

/* ══════════ 01 こんな人に（v3: 映画のシーンとチャプター） ══════════ */
.cine { position: relative; }
.cine__frame {
  position: relative; aspect-ratio: 2.2; border-radius: 18px; overflow: hidden; background: #050403;
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 236, 214, 0.08);
}
.cine__scene { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease-out), visibility 0s linear 1s; }
.cine__scene.is-on { opacity: 1; visibility: visible; transition: opacity 1s var(--ease-out); }
.cine__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.06); }
.cine.is-in .cine__scene.is-on img { animation: kenburns-cine 9s ease-out both; }
@keyframes kenburns-cine { from { transform: scale(1.12) translate3d(-1.2%, 0.8%, 0); } to { transform: scale(1.04) translate3d(0.6%, 0, 0); } }
.cine__scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 38%, rgba(5, 4, 3, 0.62) 72%, rgba(5, 4, 3, 0.8)), linear-gradient(180deg, transparent 58%, rgba(5, 4, 3, 0.72));
}
.cine__scene figcaption { position: absolute; inset: 0; z-index: 2; }
.cine__sub {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); width: max-content; max-width: 88%; text-align: center;
  font-weight: 700; font-size: clamp(17px, 2vw, 28px); line-height: 1.55; letter-spacing: 0.04em; color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.6);
}
.cine__ans {
  position: absolute; right: 5%; top: 50%; transform: translateY(-62%); max-width: 34%; padding-left: 18px; border-left: 2px solid var(--orange);
  font-size: clamp(14px, 1.2vw, 17px); line-height: 1.85; color: var(--text); font-weight: 500;
}
.cine__ans-k { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--orange-2); }
html.js .cine__scene .cine__sub, html.js .cine__scene .cine__ans { opacity: 0; }
html.js .cine__scene.is-on .cine__sub { animation: cineIn 0.9s var(--ease-out) 0.35s both; }
html.js .cine__scene.is-on .cine__ans { animation: cineInR 1s var(--ease-out) 0.9s both; }
@keyframes cineIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes cineInR { from { opacity: 0; transform: translate(14px, -62%); } to { opacity: 1; transform: translate(0, -62%); } }
.cine__hud {
  position: absolute; z-index: 3; left: 18px; right: 18px; top: 14px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(244, 237, 228, 0.78);
}
.cine__hud b { font-weight: 500; color: var(--orange-2); }
.cine__rec { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }

.cine__bars { position: absolute; inset: 0; z-index: 4; pointer-events: none; box-shadow: inset 0 22px 0 rgba(0, 0, 0, 0.55), inset 0 -22px 0 rgba(0, 0, 0, 0.55); }
.cine__chapters { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cine__ch {
  position: relative; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left;
  padding: 10px 12px 14px 10px; border-radius: 14px; color: var(--muted); transition: color 0.3s, background 0.3s;
}
.cine__ch:hover { background: rgba(255, 236, 214, 0.03); color: var(--text-2); }
.cine__ch img { grid-row: 1 / 3; width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; opacity: 0.55; filter: saturate(0.7); transition: opacity 0.4s, filter 0.4s; }
.cine__ch-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; }
.cine__ch-t { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.cine__ch-bar { position: absolute; left: 10px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255, 236, 214, 0.08); overflow: hidden; }
.cine__ch-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--orange-2)); transform-origin: left; transform: scaleX(var(--prog, 0)); }
.cine__ch[aria-selected="true"] { color: var(--text); }
.cine__ch[aria-selected="true"] .cine__ch-n { color: var(--orange-2); }
.cine__ch[aria-selected="true"] img { opacity: 1; filter: none; }
.cine.is-paused .cine__ch[aria-selected="true"] .cine__ch-bar i { transform: scaleX(1); }
html:not(.js) .cine__frame { aspect-ratio: auto; display: grid; gap: 12px; background: none; box-shadow: none; }
html:not(.js) .cine__scene { position: relative; opacity: 1; visibility: visible; aspect-ratio: 2.2; border-radius: 14px; overflow: hidden; }
html:not(.js) .cine__hud, html:not(.js) .cine__bars, html:not(.js) .cine__chapters { display: none; }
.answer { margin-top: clamp(40px, 5vw, 72px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.answer__big { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 900; line-height: 1.3; letter-spacing: 0.01em; }
.answer__big em { font-style: normal; background: linear-gradient(180deg, #ffc98f 0%, #ff9a1f 45%, #ff6a14 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.answer__note { font-size: clamp(14.5px, 1.2vw, 16.5px); color: var(--text-2); line-height: 1.9; }

/* パートナーの帯（v3: 作り手の社名を小さく添える） */
.tp { display: inline-flex; align-items: center; gap: 0.42em; white-space: nowrap; padding: 0.34em 0; font-family: var(--font-en); font-weight: 800; font-size: clamp(22px, 2.8vw, 40px); letter-spacing: -0.015em; }
.tp__t { display: grid; line-height: 1; }
.tp__t b { font-weight: 800; }
.tape__set .tp__t small { align-self: start; margin-top: 0.34em; padding: 0; border-radius: 0; background: none; font-family: var(--font-en); font-size: 0.36em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.62; }
.tape--a .tape__set > i.tape__dot { font-size: clamp(22px, 2.8vw, 40px); }

/* ══════════ テロップのステージ（v3: 透過画像を大きく 1 つずつ） ══════════ */
.telops { margin-top: clamp(24px, 3vw, 44px); }
.telops__head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; align-items: end; margin-bottom: 22px; }
.telops__head h3 { font-size: clamp(1.35rem, 2.3vw, 1.95rem); line-height: 1.4; }
.telops__head p { color: var(--text-2); font-size: 14.5px; line-height: 1.85; }
.telops__stage {
  position: relative; height: clamp(260px, 30vw, 420px); border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 42%, rgba(255, 138, 0, 0.14), transparent 70%),
    repeating-conic-gradient(rgba(255, 236, 214, 0.035) 0 25%, transparent 0 50%) 0 0 / 22px 22px,
    #0e0b09;
  border: 1px solid var(--line-2);
}
.telops__show { position: absolute; inset: 8% 6% 22%; display: grid; place-items: center; }
.telops__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}
.telops__img.is-in { animation: telopIn 0.8s var(--ease-spring) both; }
@keyframes telopIn { from { opacity: 0; transform: scale(0.8) translateY(12px); } to { opacity: 1; transform: none; } }
.telops__name { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; justify-content: center; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-2); }
.telops__name b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--orange-2); }
.telops__floor { position: absolute; left: 10%; right: 10%; bottom: 16%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 190, 120, 0.4), transparent); }
.telops__strip { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: #3a322c transparent; scroll-snap-type: x proximity; }
.telops__chip {
  flex: none; height: 64px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 236, 214, 0.02);
  display: grid; place-items: center; scroll-snap-align: start; transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
}
.telops__chip img { height: 44px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.telops__chip:hover { border-color: var(--line-2); transform: translateY(-2px); }
.telops__chip[aria-selected="true"] { border-color: rgba(255, 138, 0, 0.7); background: rgba(255, 138, 0, 0.08); }

/* ライブラリ: スマホは動画、PC は触れるデモ */

/* ══════════ 連携（v3: 横一列に詰める） ══════════ */
.connect {
  margin-top: clamp(28px, 3.5vw, 48px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px 40px; align-items: center;
  padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--line-2); background: rgba(255, 236, 214, 0.02);
}
.connect__head h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.connect__head p { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.8; }
.connect__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.connect__steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; line-height: 1.35; }
.connect__steps li span { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-en); font-size: 11.5px; background: rgba(255, 138, 0, 0.14); color: var(--orange-2); }
.connect__steps li:last-child { border-color: rgba(255, 138, 0, 0.5); background: rgba(255, 138, 0, 0.06); }

/* ══════════ Lifetime パス（v3: カードは共通部品 .pass-card） ══════════ */
.pass {
  position: relative; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3.4vw, 48px); border-radius: 26px; border: 1px solid rgba(255, 138, 0, 0.3);
  background: radial-gradient(70% 120% at 0% 50%, rgba(255, 138, 0, 0.1), transparent 60%), #110d0a;
}
.pass h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.35; }
.pass__points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.pass__points li { display: flex; gap: 10px; }
.pass__points svg { width: 16px; height: 16px; color: var(--orange); flex: none; margin-top: 0.3em; }
.pass__seats { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.pass__left { font-size: 15px; color: var(--text-2); }
.pass__left b { font-family: var(--font-en); font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--text); margin: 0 0.12em; font-variant-numeric: tabular-nums; }
.pass__at { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); }
.pass__meter { position: relative; margin: 14px 0 30px; height: 12px; border-radius: 99px; background: rgba(255, 236, 214, 0.08); }
.pass__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--taken, 0.302) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--orange-2)); box-shadow: 0 0 16px var(--orange); transform-origin: left; transition: transform 1.4s var(--ease-out); }
html.js .pass[data-reveal]:not(.is-in) .pass__fill { transform: scaleX(0); }
.pass__tick { position: absolute; top: -4px; bottom: -4px; left: calc(var(--at) * 1%); width: 2px; margin-left: -1px; background: #110d0a; }
.pass__tick em, .pass__end em { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.pass__end { position: absolute; right: 0; top: 0; bottom: 0; }
.pass__end em { left: auto; right: 0; transform: none; }
.pass__tick.is-cur em { color: var(--orange-2); }
.pass__legend { font-size: 13px; color: var(--muted); line-height: 1.85; }

/* 共通部品のカード（.pass-card）を置く場所と「次に買う人は No. 152」 */
.pass__visual { display: grid; justify-items: center; gap: 22px; padding: 12px 0; }
.pass__next { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.pass__next b { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; color: var(--orange-2); }
.pass__serial { margin-top: 14px; font-size: 15px; line-height: 1.8; color: var(--text-2); }
.pass__serial b { color: var(--text); font-weight: 700; }

/* ══════════ OSS（v3: 丸いバッジをやめて 3D アイコンに） ══════════ */
.oss__stat { display: grid; justify-items: center; gap: 18px; }
.oss__icon { width: clamp(150px, 16vw, 220px); }
.oss__stars { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.oss__stars > svg { width: 22px; height: 22px; color: var(--orange); align-self: center; filter: drop-shadow(0 0 10px rgba(255, 138, 0, 0.7)); }
.oss__num { font-family: var(--font-en); font-weight: 800; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.oss__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.oss__stars:has([data-gh-count][hidden]) .oss__label { display: none; }
.oss__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.oss__chips li { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--font-en); }
.why__text { gap: 14px; max-width: 36em; }

/* ══════════ v3: レスポンシブ ══════════ */
@media (max-width: 900px) {
  .telops__head, .connect { grid-template-columns: 1fr; }
  .pass { grid-template-columns: 1fr; }
  .pass__visual { padding: 6px 0 18px; }
  .cine__ans { max-width: 40%; }
}
/* スマホは縦に長くしない（横スワイプにまとめる・モックを詰める・並びを減らす） */
@media (max-width: 760px) {
  main > .section { padding-block: 52px; }
  html.js .hero { height: 175vh; }
  .only-d { display: none; }
  .only-m { display: inline; }
  .swipe-m {
    display: flex !important; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
  }
  .swipe-m::-webkit-scrollbar { display: none; }
  .swipe-m > * { flex: 0 0 80%; scroll-snap-align: start; }
  /* こんな人に */
  .cine__frame { aspect-ratio: auto; display: grid; border-radius: 14px; }
  .cine__scene { position: relative; grid-area: 1 / 1; display: grid; }
  .cine__scene picture { position: relative; aspect-ratio: 1.5; overflow: hidden; }
  .cine__scene img { position: absolute; }
  .cine__scene::after { bottom: auto; height: 0; }
  .cine__scene picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 4, 3, 0.8)); }
  .cine__scene figcaption { position: static; display: contents; }
  .cine__scene > picture { grid-area: 1 / 1; }
  .cine__sub { position: relative; grid-area: 1 / 1; align-self: end; justify-self: center; left: auto; bottom: auto; transform: none; margin-bottom: 12px; font-size: 15.5px; max-width: 94%; }
  html.js .cine__scene.is-on .cine__sub { animation-name: fadeUp; }
  .cine__ans { grid-area: 2 / 1; }
  .cine__ans { position: static; transform: none; max-width: none; margin: 0; padding: 14px 16px 16px 18px; border-left: 0; border-top: 2px solid var(--orange); font-size: 14px; line-height: 1.8; background: #0d0a08; }
  html.js .cine__scene.is-on .cine__ans { animation: fadeUp 0.8s var(--ease-out) 0.5s both; }
  .cine__bars { display: none; }
  .cine__hud { top: 10px; left: 12px; right: 12px; font-size: 10px; }
  .cine__chapters { gap: 6px; margin-top: 10px; }
  .cine__ch { grid-template-columns: 1fr; padding: 6px 4px 12px; row-gap: 4px; }
  .cine__ch img { grid-row: auto; width: 100%; }
  .cine__ch-t { font-size: 12px; }
  .cine__ch-n { display: none; }
  .answer { margin-top: 36px; gap: 10px; }
  .answer__big { font-size: 1.6rem; }
  /* パートナー */
  .picker { padding: 14px 12px 8px; }
  .tapes { height: 130px; margin-top: 48px; }
  /* 台本・手で直す */
  .points { margin-top: 16px; }
  .points li { padding: 14px 16px; }
  
  
  
  
  
  
  .feats { margin-top: 16px; }
  .feat { padding: 16px; }
  .both { margin-top: 16px; padding: 20px 18px; gap: 14px; }
  .both__cols { grid-template-columns: 1fr 1fr; gap: 8px; }
  .both__col { padding: 14px; }
  .both__col svg { width: 20px; height: 20px; }
  .both__col span { font-size: 12px; }
  /* Lab */
  .wall { height: 200px; }
  .telops__head { margin-bottom: 14px; }
  .telops__stage { height: 190px; border-radius: 16px; }
  .telops__show { inset: 10% 5% 26%; }
  .telops__name { bottom: 6%; font-size: 12.5px; }
  .telops__chip { height: 52px; padding: 6px 10px; }
  .telops__chip img { height: 36px; max-width: 150px; }
  
  
  .connect { padding: 18px 16px; gap: 12px; }
  .connect__steps { grid-template-columns: 1fr 1fr; gap: 6px; }
  .connect__steps li { padding: 10px; font-size: 13px; }
  .pass { padding: 20px 16px 22px; gap: 8px; }
  .pass__points { font-size: 13.5px; }
  /* さらに詰める（スマホだけ。同じことを 2 回言っている所は片方にする） */
  html.js .hero { height: 150vh; }
  .points.swipe-m { display: none !important; }
  .term__cap--2, .term__cmd--sub { display: none; }
  .wall { height: 170px; }
  .ticks { display: none; }
  .pk { padding: 8px 6px; }
  
  .both { display: none; }
  .beyond__facts { display: none; }
  .telops__strip { display: none; }
  .telops__head p { display: none; }
  .labdemo__head { margin-bottom: 12px; }
  .connect__head p { display: none; }
  .connect__steps { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px; gap: 6px; }
  .connect__steps::-webkit-scrollbar { display: none; }
  .connect__steps li { flex: none; padding: 8px 10px; white-space: nowrap; }
  .lab__cta p { display: none; }
  .work--scoby .work__desc { display: none; }
  .work--scoby .work__btn::after { background: linear-gradient(180deg, rgba(8, 6, 5, 0.9) 0%, rgba(8, 6, 5, 0.3) 22%, transparent 34%); }
  .final__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .final__actions .btn:first-child { grid-column: 1 / -1; }
  .final__actions .btn--ghost { min-height: 52px; padding: 0 12px; font-size: 14px; }
  .final__icon { width: 84px; margin-bottom: 20px; }
  .why__fig { max-width: 150px; }
  /* OSS・なぜ作ったか・コミュニティ */
  .oss__icon { width: 118px; }
  .oss__stat { gap: 12px; }
  .why__fig { max-width: 200px; }
  .why__text { font-size: 14.5px; line-height: 1.95; }
  .comm__card { min-height: 0; }
}

/* ══════════ v4: 軽量化とヒーローの動画化 ══════════ */
/* 描画は画面に近いセクションだけ（ヒーローは常に描く） */
main > section:not(.hero) { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
/* 共有の見た目のうち LP で重いものを止める（全ページに効かせるならメインが base.css で） */
body::after { animation: none; }
.nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 9, 8, 0.94); }
@media (max-width: 900px) { .nav__links { backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ヒーロー: アプリ画面はまるごと 1 本の動画。板 1 枚の transform だけで「傾いた状態から着地」する */
.win {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: calc(18 * var(--u)); overflow: hidden; background: #120e0b;
  box-shadow: 0 calc(40 * var(--u)) calc(90 * var(--u)) calc(-20 * var(--u)) rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 236, 214, 0.13);
}
.win__poster, .win__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.win__vid { opacity: 0; transition: opacity 0.6s; }
.win.is-playing .win__vid { opacity: 1; }
/* 動画の中のプレビューの位置を押すと、紹介 PV を大きく音つきで再生（位置は hero-app.html で測った値） */
.win__pv { position: absolute; left: 20.9%; top: 12.11%; width: 52.5%; height: 47.25%; border-radius: calc(8 * var(--u)); cursor: zoom-in; transition: box-shadow 0.35s, background-color 0.35s; }
.win__pv:hover, .win__pv:focus-visible { background-color: rgba(255, 138, 0, 0.05); box-shadow: 0 0 0 2px rgba(255, 165, 61, 0.75), 0 0 30px rgba(255, 138, 0, 0.25); }
.win__zoom {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px;
  background: rgba(11, 9, 8, 0.78); border: 1px solid rgba(255, 236, 214, 0.18); font-size: max(10.5px, calc(12 * var(--u))); font-weight: 700; color: var(--text);
  opacity: 0.8; transition: opacity 0.3s, border-color 0.3s;
}
.win__zoom svg { width: 13px; height: 13px; color: var(--orange-2); }
.win__pv:hover .win__zoom, .win__pv:focus-visible .win__zoom { opacity: 1; border-color: rgba(255, 138, 0, 0.6); }
.hero:not(.is-landed) .win__zoom { opacity: 0; }
html.js .win { animation: winIn 1.4s var(--ease-out) 0.35s backwards; }
@keyframes winIn { from { opacity: 0; transform: translate3d(0, 22vh, 0) scale(0.9); } }

/* 進捗バーは CSS のアニメーション（JS は毎フレーム書かない） */
.how__tab.is-run .how__bar i { animation: barRun var(--dur, 7000ms) linear both; }
.cine__ch.is-run .cine__ch-bar i { animation: barRun 6500ms linear both; }
@keyframes barRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 作例の上の「再生」カーソル */
.play-cursor.is-on { --ps: 1; }

/* デモ動画（台本・手で直す・Lab）: ポスター → 画面に入ったら無音ループ。右下に「音を出す」（data-has-audio が付いたら表示） */
.dv { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #120e0b; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.dv__poster, .dv__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dv__vid { opacity: 0; transition: opacity 0.5s; }
.dv.is-playing .dv__vid { opacity: 1; }
.snd {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  background: rgba(11, 9, 8, 0.8); border: 1px solid rgba(255, 236, 214, 0.2); color: var(--text); font-size: 12px; font-weight: 700; transition: border-color 0.3s;
}
.snd[hidden] { display: none !important; }
.snd svg { width: 15px; height: 15px; color: var(--orange-2); }
.snd:hover, .snd[aria-pressed="true"] { border-color: rgba(255, 138, 0, 0.6); }
.scene .snd { z-index: 12; }
.labdemo .dv { margin-top: 4px; }
@media (max-width: 760px) { .win__zoom { right: 6px; bottom: 6px; padding: 2px 8px 2px 6px; font-size: 9.5px; gap: 4px; } .win__zoom svg { width: 10px; height: 10px; } .dv { border-radius: 14px; } .snd { right: 8px; bottom: 8px; height: 28px; font-size: 11px; } }

/* 3D の傾きはポインタが乗っている間だけ（普段は平面のまま＝合成レイヤーを作らない） */
.work__btn, .comm__card { transform: none; }
.has-pointer .work__btn:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--ts, 1)); }
.has-pointer .comm__card:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hero { content-visibility: auto; contain-intrinsic-size: auto 2250px; }
/* 画面に入る前の「下から入る」位置は 2D の移動にする（3D にすると入る前から合成レイヤーになる） */
html.js [data-reveal="up"], html.js [data-reveal=""] { transform: translateY(36px); }
html.js [data-reveal="scale"] { transform: scale(0.94); filter: none; }


/* ヒーローの「PV を再生」: プレビューの真ん中に大きな丸い再生ボタン（リングがゆっくり広がる） */
.win__zoom { display: none; }
.win__pv { display: grid; place-items: center; cursor: pointer; }
.win__play { display: inline-flex; align-items: center; gap: max(10px, calc(16 * var(--u))); padding: max(6px, calc(9 * var(--u))) max(14px, calc(24 * var(--u))) max(6px, calc(9 * var(--u))) max(6px, calc(9 * var(--u))); border-radius: 999px; background: rgba(11, 9, 8, 0.72); border: 1px solid rgba(255, 165, 61, 0.45); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8); transition: transform 0.35s var(--ease-out), border-color 0.3s, opacity 0.5s; }
.win__ring { position: relative; flex: none; display: grid; place-items: center; width: max(44px, calc(76 * var(--u))); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #ffb458, var(--orange, #ff8a00)); color: #1a0f05; box-shadow: 0 0 0 1px rgba(255, 200, 140, 0.5) inset, 0 8px 28px -6px rgba(255, 138, 0, 0.7); }
.win__ring svg { width: 40%; height: 40%; margin-left: 8%; }
.win__ring::before, .win__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 150, 40, 0.8); opacity: 0; pointer-events: none; }
.hero.is-landed .win__ring::before { animation: pvPulse 2.6s ease-out infinite; }
.hero.is-landed .win__ring::after { animation: pvPulse 2.6s ease-out 1.3s infinite; }
@keyframes pvPulse { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(1.9); opacity: 0; } }
.win__label { display: grid; gap: 2px; text-align: left; line-height: 1.2; }
.win__label b { font-size: max(15px, calc(26 * var(--u))); font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.win__label small { font-size: max(10.5px, calc(13 * var(--u))); color: var(--orange-2); font-family: var(--font-mono); letter-spacing: 0.04em; }
.win__pv:hover .win__play, .win__pv:focus-visible .win__play { transform: scale(1.05); border-color: rgba(255, 165, 61, 0.9); }
.hero:not(.is-landed) .win__play { opacity: 0; }
@media (max-width: 760px) { .win__play { gap: 9px; padding: 5px 13px 5px 5px; } .win__ring { width: 42px; } .win__label b { font-size: 14px; } .win__label small { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .win__ring::before, .win__ring::after { animation: none !important; opacity: 0.5; transform: scale(1.25); } .win__ring::after { display: none; } }
html.reduced .win__ring::before, html.reduced .win__ring::after { animation: none !important; opacity: 0.5; transform: scale(1.25); }
html.reduced .win__ring::after { display: none; }

/* 横スワイプの列: 縦スクロールとの取り合いで縦に飛ばない（はみ出しは列の中で止める・吸着はゆるめ） */
.swipe-m, .how__tabs, .telops__strip { overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
@media (max-width: 760px) { .swipe-m, .how__tabs { scroll-snap-type: x proximity; } }


/* パートナー: 主役の 3 つ（Claude Code・Codex・Antigravity）を大きく 残りは「ほかのパートナーも見る」で開く */
.pk--main { grid-template-columns: 46px 1fr auto; padding: 13px 10px; }
.pk--main .pk__logo { width: 46px; height: 46px; border-radius: 13px; }
.pk--main .pk__logo img { width: 25px; height: 25px; }
.pk--main .pk__logo--fill img { width: 100%; height: 100%; }
.pk--main .pk__name { font-size: 16.5px; }
.pk--main .pk__sub { font-size: 12.5px; }
/* 接続の流れの表示は止めたので 見えない 2 段目と 3 段目の幅で「追加」が広がらないようにする */
.pk__st--flow .s2, .pk__st--flow .s3 { display: none; }
.pk-more { margin-top: 4px; border-top: 1px solid var(--line); }
.pk-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px; font-size: 13px; font-weight: 700; color: var(--text-2); border-radius: 10px; transition: color 0.3s; }
.pk-more > summary::-webkit-details-marker { display: none; }
.pk-more > summary:hover, .pk-more > summary:focus-visible { color: var(--text); }
.pk-more > summary small { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 7px; line-height: 1.6; }
.pk-more > summary svg { width: 14px; height: 14px; margin-left: auto; color: var(--orange-2); transform: rotate(90deg); transition: transform 0.3s var(--ease-out); }
.pk-more[open] > summary svg { transform: rotate(-90deg); }
.picker__list--more { margin-top: 0; }
.picker__list--more .pk { grid-template-columns: 32px 1fr auto; padding: 7px 8px; }
.picker__list--more .pk__logo { width: 32px; height: 32px; border-radius: 9px; }
.picker__list--more .pk__logo img { width: 17px; height: 17px; }
.picker__list--more .pk__logo--fill img { width: 100%; height: 100%; }
.picker__list--more .pk__name { font-size: 13.5px; }
.picker__list--more .pk__st { height: 26px; padding: 0 10px; font-size: 11.5px; }
@media (max-width: 760px) { .pk--main { padding: 10px 6px; grid-template-columns: 40px 1fr auto; } .pk--main .pk__logo { width: 40px; height: 40px; } .pk--main .pk__name { font-size: 15px; } }


/* スマホ: 触れて左右に動かすとカードが傾き 光沢が指を追う（index.js が --rx --ry --gx --go を書く。パスのカードは共通部品の --mx --my --hx） */
.work__btn.is-tt, .comm__card.is-tt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: none; }
.tt-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: var(--go, 0); mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 190, 120, 0.42) 40%, rgba(170, 225, 255, 0.36) 49%, rgba(255, 170, 225, 0.36) 57%, rgba(255, 240, 170, 0.3) 63%, transparent 76%);
  background-size: 260% 100%; background-position: var(--gx, 50%) 0;
}

/* 作例 5 本: 広い画面は PV を大きく + 4 本 狭い画面は PV の下に 2 列 */
.work--pv .work__title { font-size: clamp(17px, 1.7vw, 24px); }
@media (max-width: 1100px) and (min-width: 761px) { .works__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "pv pv" "addness yt" "motion kitsune" "deepseek deepseek"; } }
/* YouTube の作例: 動画は持たず静止画のまま ホバーで再生アイコンだけ強調 */
.work__play { position: absolute; z-index: 3; left: 50%; top: 42%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 9, 8, 0.6); border: 1px solid rgba(255, 165, 61, 0.55); color: var(--orange-2); transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s; }
.work__play svg { width: 40%; height: 40%; margin-left: 8%; }
.work__btn:hover .work__play, .work__btn:focus-visible .work__play { transform: scale(1.15); background: var(--orange); color: #1a0f05; }
.work--yt .work__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 760px) { .work__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; } }
.lb__yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.lb__yt--fb { display: grid; place-items: center; }
.lb__yt--fb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.lb__yt--fb span { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 14px; border-radius: 999px; background: var(--orange); color: #1a0f05; font-weight: 800; font-size: 16px; }
.lb__yt--fb svg { width: 22px; height: 22px; }

.work:not(.work--pv) .work__title { font-size: clamp(14px, 1.1vw, 17px); }
/* 元の投稿へのリンク（カードの右上 HUD の長さ表示の代わり・ライトボックスの下） */
.work__src {
  position: absolute; z-index: 5; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--text); background: rgba(11, 9, 8, 0.72); border: 1px solid rgba(255, 165, 61, 0.45); transition: border-color 0.3s, background 0.3s;
}
.work__src svg { width: 12px; height: 12px; color: var(--orange-2); transform: rotate(-45deg); }
.work__src:hover, .work__src:focus-visible { border-color: var(--orange); background: rgba(40, 24, 10, 0.9); }
.work.has-src .work__hud > span { display: none; }
.lb__src { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--orange-2); }
.lb__src[hidden] { display: none; }
.lb__src svg { width: 13px; height: 13px; transform: rotate(-45deg); }
.lb__src:hover { color: var(--text); }
@media (max-width: 760px) { .work__src { top: 8px; right: 8px; padding: 3px 8px; font-size: 10px; } }

/* 横スクロールの列は縦には動かさない（overflow-x: auto だと overflow-y も auto になり 影や傾きやリビールの移動で中身が少しでも縦にはみ出すと 列の中で上下にスクロールできてしまう）
   列の中のリビールは縦に動かさず フェードだけにする */
[data-hscroll], .swipe-m, .how__tabs, .telops__strip, .connect__steps, .term__tabs { overflow-y: hidden; }
@media (max-width: 760px) {
  html.js [data-hscroll] [data-reveal], html.js .swipe-m [data-reveal] { transform: none; }
  /* 傾いたカードの上下が切れないよう 列の上下に余白を持たせて外側の余白で相殺する */
  .swipe-m { padding-top: 12px; padding-bottom: 14px; margin-top: -10px; margin-bottom: -4px; }
}

/* コミュニティのアイコンは各サービスのブランド色の地に白のロゴ（X の黒は暗い背景に沈まないよう細い枠線） */
.comm__ico, .comm__item--main .comm__ico { color: #fff; }
.comm__item--main .comm__ico { background: #5865f2; box-shadow: 0 0 30px rgba(88, 101, 242, 0.45); }
.comm__ico--line { background: #06c755; }
.comm__ico--x { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }

/* ══════════ 15 動きを減らす ══════════ */
html.reduced .mock *, html.reduced .mock *::before, html.reduced .mock *::after, html.reduced .picker * { animation: none !important; }
html.reduced .sc1 .m-files, html.reduced .sc1 .m-drop { opacity: 0; }
html.reduced .hero__icon > .icon3d, html.reduced .hero__title .ln > span, html.reduced .hero__kicker, html.reduced .hero__lead, html.reduced .hero__actions, html.reduced .hero__meta, html.reduced .hero__title em { animation: none !important; }
html.reduced .tape__track, html.reduced .wall__row, html.reduced .win { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero__icon > .icon3d, .hero__title .ln > span, .hero__kicker, .hero__lead, .hero__actions, .hero__meta, .tape__track, .wall__row, .scan::after, .hero__title em, .win { animation: none !important; }
  .hero, html.js .hero { height: auto; }
  .hero__stage, html.js .hero__stage { position: relative; height: auto; min-height: 0; padding-bottom: clamp(56px, 8vw, 110px); }
  .hero__copy { position: relative; top: auto; padding-top: calc(var(--nav-hs) + clamp(20px, 6.5vh, 88px)); transform: none; opacity: 1; }
  .hero__device { position: relative; left: auto; top: auto; margin: clamp(48px, 7vw, 96px) auto 0; transform: none; }
  .hero__icon { transform: none; opacity: 1; }
  .callouts { display: none !important; }
  .work { translate: none; }
}

/* スマホ: 描画を飛ばしている節の見積もり高さを実寸（390px 幅で測った値）に寄せる。画面に入った瞬間に高さが変わってページが縦に跳ぶのを防ぐ */
@media (max-width: 760px) {
  #for { contain-intrinsic-size: auto 1000px; } #partner { contain-intrinsic-size: auto 1020px; } #how { contain-intrinsic-size: auto 1030px; }
  #script { contain-intrinsic-size: auto 610px; } #edit { contain-intrinsic-size: auto 720px; } #works { contain-intrinsic-size: auto 900px; }
  #lab { contain-intrinsic-size: auto 2290px; } #beyond { contain-intrinsic-size: auto 815px; } #oss { contain-intrinsic-size: auto 770px; }
  #why { contain-intrinsic-size: auto 925px; } #community { contain-intrinsic-size: auto 605px; } #faq { contain-intrinsic-size: auto 1200px; }
  /* もっと先へのターミナル: 長いコマンドで枠が画面より広がらない・タブは同時に 1 つだけ */
  .beyond__grid > *, .term, .term__bar, .term__tabs, .term__body, .term__cmd { min-width: 0; }
  .term__cmd code { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
  .term__bar { gap: 10px; padding: 10px 12px; }
  .term__tabs button { padding: 5px 8px; font-size: 11.5px; }
}
.term__cmd[hidden] { display: none; }

/* 2026-10-02 オーナー指示: ヒーローはアプリ画面ではなく紹介 PV そのもの。板は PV と同じ 16:9、押せる範囲は板全体 */
.win--pv { aspect-ratio: 16 / 9; }
.win--pv .win__pv { inset: 0; left: 0; top: 0; width: 100%; height: 100%; border-radius: inherit; }
