/* ===== 強みの動く図(01 引き伸ばし / 02 本当の中心 / 03 音ハメ)2026-10-11 試作 =====
   3 つで同じ言葉を使う:
   - 色: ピンク = OTOLUME の答え・演者・キック / シアン = 光の筋・スネア / 白 = ハイハット・再生位置 / 灰の点線 = ふつうの動画・真ん中
   - 線: 基準は 1px の点線、演者の線は 2px の実線
   - 速さ: 1 小節 = 2 秒(120 BPM)。01・02 は 4 小節(8 秒)、03 は 2 小節(4 秒)でくり返す
   - 移動は --ease(すっと止まる)、点灯は 3 段・LED が開くのは 8 段(サイトの「キュー」と同じ)
   動かすのは transform と opacity だけ。見えている間だけ動く(strengths-motion.js が .playing を付ける)。
   動きを減らす設定・「動きを止める」・JS なしのときは、アニメーションを外して「説明の終わりの 1 枚」で止まる(下の基本の値がその 1 枚) */
.mo { --mo-ease: cubic-bezier(0.16, 1, 0.3, 1); --mo-dur: 8s; margin: 0; display: grid; gap: 12px; min-width: 0; width: 100%; max-width: 560px; }
.mo figcaption { color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.mo-box { position: relative; width: 100%; }
.mo-box > * { position: absolute; }
.mo-led { left: 0; width: 100%; overflow: hidden; outline: 1px solid var(--edge); background: radial-gradient(circle, rgba(69, 200, 255, 0.16) 0 32%, transparent 40%) 0 0 / 6px 6px, #02040a; }
.mo-led > * { position: absolute; inset: 0; }
.mo-led svg, .mo-src svg, .mo-std svg { width: 100%; height: 100%; display: block; }
.mo-lab { font-family: var(--mono); font-weight: 800; font-size: var(--label); letter-spacing: 0.06em; line-height: 1; white-space: nowrap; color: var(--muted); }
.mo-lab small { font-family: var(--body); font-weight: 400; font-size: var(--small); letter-spacing: 0; color: var(--soft); margin-left: 0.6em; }

/* ---------- 01 画面の形と大きさ(箱 1000 × 911 の目盛りで置く) ---------- */
.mo-stretch .mo-box { aspect-ratio: 1000 / 1000; }
.mo-std { left: 0; top: 0; width: 100%; height: 33.8%; }
.mo-std > * { position: absolute; }
.mo-fr { display: grid; place-items: center; border: 1px dashed var(--muted); background: rgba(7, 8, 15, 0.82); color: var(--muted); }
.mo-fr b { font-family: var(--mono); font-weight: 800; font-size: var(--label); letter-spacing: 0.06em; }
.mo-fr.r169 { left: 0; top: 43.79%; width: 33.8%; height: 56.21%; overflow: hidden; }
.mo-fr.r169 svg { position: absolute; inset: 0; }
.mo-fr.r169 b { position: relative; align-self: start; justify-self: start; margin: 4px 6px; }
.mo-fr.r916 { left: 35.8%; top: 0; width: 19.01%; height: 100%; }
.mo-fr.r11 { left: 56.8%; top: 43.79%; width: 19.01%; height: 56.21%; }
.mo-std .mo-cap { left: 77.8%; right: 0; bottom: 0; font-size: var(--small); color: var(--muted); line-height: 1.4; }
.mo-fr.r169::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--pink); opacity: 0; }
.mo-a { top: 44.8%; height: 21.83%; outline-color: var(--line); }
.mo-b { top: 77.63%; height: 21.83%; }
.mo-lab-b { left: 0; top: 77.63%; transform: translateY(calc(-100% - 9px)); color: var(--ink); }
/* 動く 16:9(引き伸ばされる側)。基本の値 = 引き伸ばし終わり */
.mo-src { left: 33.1%; top: 46.215%; width: 33.8%; height: 19%; border: 1px dashed var(--muted); transform: translate(0, 0) scale(2.9586, 1.1489); transform-origin: 50% 50%; }
.mo-src > * { position: absolute; inset: 0; }
.mo-src .bl { opacity: 1; }
/* その画面のために作った側。基本の値 = 開き終わり */
.mo-b .orb { z-index: 2; }
.mo-b .sh { z-index: 1; width: 50%; background: radial-gradient(circle, rgba(69, 200, 255, 0.16) 0 32%, transparent 40%) 0 0 / 6px 6px, #02040a; }
.mo-b .sh-l { right: auto; transform: translateX(-100%); }
.mo-b .sh-r { left: auto; transform: translateX(100%); background-position: 3px 0; }
.mo-b .tw { opacity: 0.85; }

/* ---------- 02 本当の中心(箱 1000 × 520) ---------- */
.mo-center .mo-box { aspect-ratio: 1000 / 470; }
.mo-center .mo-led { top: 10.64%; height: 46.45%; }
.mo-center .seam { inset: 0 auto 0 auto; width: 0; border-left: 1px solid rgba(31, 78, 102, 0.9); }
.mo-floor { left: 0; right: 0; top: 57.1%; height: 31%; background: linear-gradient(#0a0e1d, rgba(7, 8, 15, 0) 85%); }
.mo-gl { transform: translateX(-11.97%); }
.mo-gl > * { position: absolute; inset: 0; }
.mo-gl .g-mid { opacity: 0; background: radial-gradient(ellipse 20% 62% at 50% 42%, rgba(201, 206, 227, 0.5), transparent 70%); }
.mo-gl .g-act { opacity: 1; }
.mo-gl .g-act::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 22% 70% at 50% 42%, rgba(255, 61, 139, 0.62), transparent 70%); }
.mo-gl .g-act::after { content: ""; position: absolute; left: 30%; right: 30%; top: 42%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, transparent, rgba(69, 200, 255, 0.85), #fff 50%, rgba(69, 200, 255, 0.85), transparent); }
.mo-gl .breath { position: absolute; inset: 0;background: radial-gradient(ellipse 9% 30% at 50% 42%, rgba(255, 220, 236, 0.75), transparent 70%); transform-origin: 50% 42%; }
.mo-calm { background: radial-gradient(ellipse 7% 55% at 38.03% 100%, rgba(2, 4, 10, 0.92), transparent 75%); }
.mo-center .ln { top: 3.5%; bottom: 11%; width: 0; }
.mo-center .ln-mid { left: 50%; border-left: 1px dashed var(--muted); }
.mo-center .ln-act { left: var(--act); width: 2px; margin-left: -1px; background: var(--pink); }
.mo-act { left: var(--act); bottom: 11.5%; width: 10%; height: 42.55%; transform: translateX(-50%); }
.mo-act svg { width: 100%; height: 100%; display: block; }
.mo-center .lb-act { left: auto; right: calc(100% - var(--act)); top: 0; transform: none; padding-right: 8px; color: var(--pink); }
.mo-center .lb-mid { left: 50%; bottom: 0; padding-left: 8px; }
.mo-gap { left: var(--act); width: calc(50% - var(--act)); top: 4.2%; height: 9px; border: 1px solid var(--soft); border-top: 0; opacity: 0; }

/* ---------- 03 音ハメ(箱 1000 × 600) ---------- */
.mo-beat .mo-box { aspect-ratio: 1000 / 600; }
.mo-beat .mo-led { top: 0; height: 36.38%; }
.mo-beat .bk { will-change: transform; }
.mo-beat .bk > * { position: absolute; }
.mo-beat .pl { bottom: 0; width: 1.6%; margin-left: -0.8%; height: 100%; transform-origin: 50% 100%; transform: scaleY(var(--h, 0.5)); background: linear-gradient(to top, var(--pink), rgba(255, 61, 139, 0.5) 45%, rgba(255, 61, 139, 0) 100%); }
.mo-beat .pl.c { width: 2.4%; margin-left: -1.2%; background: linear-gradient(to top, #fff, var(--pink) 18%, rgba(255, 61, 139, 0.5) 50%, rgba(255, 61, 139, 0) 100%); }
.mo-beat .kg { inset: 0; opacity: 0.2; background: radial-gradient(ellipse 30% 90% at var(--act) 100%, rgba(255, 61, 139, 0.55), transparent 70%); }
.mo-beat .sn { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; opacity: 0; background: linear-gradient(90deg, transparent, var(--cyan) 15%, #e6f8ff 50%, var(--cyan) 85%, transparent); }
.mo-beat .ht { top: 10%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #fff; opacity: 0.25; }
.mo-lanes { left: 0; right: 0; top: 43%; bottom: 0; display: grid; grid-template-rows: repeat(3, 1fr); padding: 2% 3%; border: 1px solid var(--line); background: var(--panel); }
.mo-lanes .lane { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); align-items: center; gap: 10px; }
.mo-lanes .hits { position: relative; height: 62%; border-bottom: 1px solid var(--line); overflow: visible; }
.mo-lanes .tk { animation: none; position: absolute; bottom: 0; width: 3px; margin-left: -1px; transform-origin: 50% 100%; opacity: 0.35; }
.mo-lanes [data-lane="kick"] .tk { height: 100%; width: 5px; margin-left: -2px; background: var(--pink); }
.mo-lanes [data-lane="snare"] .tk { height: 72%; background: var(--cyan); }
.mo-lanes [data-lane="hat"] .tk { height: 40%; width: 2px; background: #fff; }
.mo-ph { position: absolute; left: calc(3% + 4.6rem + 10px); right: 3%; top: 2%; bottom: 2%; pointer-events: none; }
.mo-ph i { position: absolute; inset: 0; will-change: transform; }
.mo-ph i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; margin-left: -0.75px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.6); }
.mo-beat .mo-snd { justify-self: start; }

/* ---------- 動き(JS がある・動きを止めていない・見えている時だけ進む) ---------- */
.js .mo-stretch .r169::after { animation: mo1-hl var(--mo-dur) linear infinite paused; }
.js .mo-stretch .mo-src { animation: mo1-src var(--mo-dur) linear infinite paused; }
.js .mo-stretch .mo-src .bl { animation: mo1-blur var(--mo-dur) linear infinite paused; }
.js .mo-stretch .mo-b .orb { animation: mo1-orb var(--mo-dur) linear infinite paused; }
.js .mo-stretch .mo-b .nat { animation: mo1-nat var(--mo-dur) linear infinite paused; }
.js .mo-stretch .mo-b .sh-l { animation: mo1-shl var(--mo-dur) linear infinite paused; }
.js .mo-stretch .mo-b .sh-r { animation: mo1-shr var(--mo-dur) linear infinite paused; }
.js .mo-stretch .mo-b .tw { animation: mo-tw 1s linear infinite alternate paused; }
.js .mo-center .mo-gl { animation: mo2-gl var(--mo-dur) linear infinite paused; }
.js .mo-center .g-mid { animation: mo2-mid var(--mo-dur) linear infinite paused; }
.js .mo-center .g-act, .js .mo-center .mo-calm { animation: mo2-act var(--mo-dur) linear infinite paused; }
.js .mo-center .breath { animation: mo2-breath 2s var(--mo-ease) infinite paused; }
.js .mo-center .ln-act { animation: mo2-lock var(--mo-dur) linear infinite paused; }
.js .mo-center .ln-mid { animation: mo2-midln var(--mo-dur) linear infinite paused; }
.js .mo-center .mo-gap { animation: mo2-gap var(--mo-dur) linear infinite paused; }
.mo.playing *, .mo.playing *::after { animation-play-state: running !important; }

/* 01: 0–0.5 秒 16:9 が光る → 1.4 秒まで LED へ降りる → 2.7 秒まで横に引き伸ばされてぼやける
       → 3.1 秒 下の LED の主役が点く → 3.6 秒 その画面のために作った絵が 8 段で開く → 7 秒まで見せる → 消えて頭へ */
@keyframes mo1-hl { 0% { opacity: 0; } 2% { opacity: 1; } 14% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
@keyframes mo1-src {
  0%, 6% { transform: translate(-97.93%, -165.34%) scale(1, 1); opacity: 1; animation-timing-function: var(--mo-ease); }
  18% { transform: translate(0, 0) scale(1, 1); }
  21% { transform: translate(0, 0) scale(1, 1); animation-timing-function: var(--mo-ease); }
  34% { transform: translate(0, 0) scale(2.9586, 1.1489); opacity: 1; }
  88% { transform: translate(0, 0) scale(2.9586, 1.1489); opacity: 1; }
  94% { transform: translate(0, 0) scale(2.9586, 1.1489); opacity: 0; }
  95% { transform: translate(-97.93%, -165.34%) scale(1, 1); opacity: 0; }
  100% { transform: translate(-97.93%, -165.34%) scale(1, 1); opacity: 1; }
}
@keyframes mo1-blur { 0%, 24% { opacity: 0; } 36% { opacity: 1; } 94% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes mo1-orb { 0%, 36% { opacity: 0; animation-timing-function: steps(3, end); } 39% { opacity: 1; } 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes mo1-nat { 0%, 88% { opacity: 1; } 94% { opacity: 0; } 97% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes mo1-shl { 0%, 39% { transform: translateX(0); animation-timing-function: steps(8, end); } 45% { transform: translateX(-100%); } 96% { transform: translateX(-100%); } 97%, 100% { transform: translateX(0); } }
@keyframes mo1-shr { 0%, 39% { transform: translateX(0); animation-timing-function: steps(8, end); } 45% { transform: translateX(100%); } 96% { transform: translateX(100%); } 97%, 100% { transform: translateX(0); } }
@keyframes mo-tw { from { opacity: 0.55; } to { opacity: 1; } }

/* 02: 光の中心は最初「真ん中 50%」(灰)→ 1.1 秒から 2.4 秒で演者の 38% へ寄り、ピンクに変わる
       → 演者の線が点き、1 小節ごとに中心が息をする → 7 秒で消えて頭へ */
@keyframes mo2-gl { 0%, 14% { transform: translateX(0); animation-timing-function: var(--mo-ease); } 30% { transform: translateX(-11.97%); } 92% { transform: translateX(-11.97%); } 93%, 100% { transform: translateX(0); } }
@keyframes mo2-mid { 0% { opacity: 0; animation-timing-function: steps(3, end); } 3% { opacity: 1; } 15% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes mo2-act { 0%, 15% { opacity: 0; } 26% { opacity: 1; } 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes mo2-breath { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(0.82); opacity: 0.55; } 100% { transform: scale(1); opacity: 1; } }
@keyframes mo2-lock { 0%, 27% { opacity: 0.4; animation-timing-function: steps(3, end); } 30% { opacity: 1; } 92% { opacity: 1; } 96%, 100% { opacity: 0.4; } }
@keyframes mo2-midln { 0%, 15% { opacity: 1; } 30% { opacity: 0.55; } 92% { opacity: 0.55; } 96%, 100% { opacity: 1; } }
@keyframes mo2-gap { 0%, 13% { opacity: 0; animation-timing-function: steps(3, end); } 16% { opacity: 1; } 31% { opacity: 1; } 36%, 100% { opacity: 0; } }

/* 止める: 動きを減らす設定・「動きを止める」ボタン → 説明の終わりの 1 枚 */
.motion-paused .mo *, .motion-paused .mo *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .mo *, .mo *::after { animation: none !important; } }

/* パソコン: 図は文の右(4:7 の右の段)。固定ステージ(cue.js T5)は使わない */
@media (min-width: 900px) { .fit-row .mo { justify-self: end; } }

/* ======================================================================
   今の絵を主役に残して動かす(v2 2026-10-11)
   絵の上に「光だけの層」(今の絵から光の部分だけを抜き出したもの)と「暗い幕」を重ね、
   transform と opacity だけで動かす。止めた 1 枚 = 今の絵そのまま(層は見えない・幕は開いている)。
   下の図と同じ時計: 01・02 は 8 秒(4 小節)、03 は JS の打点の時計(2 小節 4 秒)。
   行(.fit-row)ごとに、見えている間だけ .playing が付き、絵と図がいっしょに動く/止まる。
   ====================================================================== */
.pm { grid-column: 1 / -1; margin-top: 16px; position: relative; }
.pm .fit-pic { margin-top: 0; }
.pm-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pm-fx > *, .pm-fx .clip > * { position: absolute; }
.pm-fx img { display: block; max-width: none; width: 100%; height: 100%; }
.pm-fx .ly { opacity: 0; }
.pm-fx .clip { overflow: hidden; }
.pm-cov { background: radial-gradient(circle, rgba(69, 200, 255, 0.1) 0 30%, transparent 40%) 0 0 / 4px 4px, #05060d; }

/* ---- 01: 2 枚の LED の位置(絵の 1600 × 1067 の目盛りから) ---- */
.pm-stretch .p-arrows { left: 1.25%; top: 20.619%; width: 20.312%; height: 57.17%; }
.pm-stretch .p-a { left: 21.375%; top: 12.934%; width: 76.875%; height: 31.115%; }
.pm-stretch .p-b { left: 21.375%; top: 55.858%; width: 76.875%; height: 30.553%; }
.pm-stretch .pm-cov { top: 0; bottom: 0; width: 50.5%; }
.pm-stretch .cov-l { left: 0; transform: translateX(-101%); }
.pm-stretch .cov-r { right: 0; transform: translateX(101%); }
.pm-stretch .on { inset: 0; }
.pm-stretch .on > * { position: absolute; }
.pm-stretch .glow { inset: 0; opacity: 0; }
/* 光の筋を走らせる窓(幅 20%)。窓が右へ、中の層が左へ同じだけ動くので、絵の位置はずれずに光だけが走る */
.pm-stretch .sw { top: 0; bottom: 0; left: 0; width: 20%; overflow: hidden; opacity: 0; transform: translateX(-100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent); mask-image: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent); }
.pm-stretch .sw > i { position: absolute; top: 0; bottom: 0; left: 0; width: 500%; transform: translateX(20%); }

/* ---- 02 ---- */
.pm-center .p-veil { left: 0; right: 0; top: 15%; height: 52%; background: rgba(2, 3, 10, 0.78); opacity: 0; }
.pm-center .p-rings, .pm-center .p-echo { left: 0; top: 5.623%; width: 100%; height: 59.981%; transform-origin: 37.5% 45.6%; }
.pm-center .p-floor { left: 0; top: 67.948%; width: 100%; height: 9.841%; }
.pm-center .p-rings > i, .pm-center .p-floor > i, .pm-center .p-echo > i { position: absolute; inset: 0; }
.pm-center .p-echo > i { opacity: 0.45; }

/* ---- 03(JS が毎コマ transform と opacity を入れる) ---- */
.pm-beat .pm-in { inset: 0; transform: scale(1.02); }
.pm-beat .pm-in > * { position: absolute; }
.pm-beat .p-veil { left: 0; right: 0; top: 2%; height: 70%; background: linear-gradient(rgba(2, 3, 10, 0.5) 80%, rgba(2, 3, 10, 0)); opacity: 0; }
.pm-beat { overflow: hidden; outline: 1px solid var(--line); }
.pm-beat .fit-pic img { transform: scale(1.02); outline: 0; }
.pm-beat .p-burst { left: 0; top: 4.686%; width: 100%; height: 37.02%; }
.pm-beat .p-cstar { left: 0; top: 26.242%; width: 100%; height: 13.121%; }
.pm-beat .p-thread { left: 0; top: 40.3%; width: 100%; height: 27.179%; }
.pm-beat .p-wave { left: 0; top: 64.667%; width: 100%; height: 25.773%; overflow: hidden; }
.pm-beat .p-wave .sw { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; overflow: hidden; transform: translateX(-100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 60%, #000 85%, transparent); }
.pm-beat .p-wave .sw > i { position: absolute; top: 0; bottom: 0; left: 0; width: 500%; }
.pm-beat .p-wave .sw > i img { position: absolute; inset: 0; } /* 同じ層を 2 枚重ねて、窓の中だけ強く光らせる */

/* ---- 動き(01・02 は CSS。行に .playing が付いた時だけ進む) ---- */
.js .pm-stretch .p-arrows { animation: pm1-arrows 8s linear infinite paused; }
.js .pm-stretch .p-a .cov-l { animation: pm1-al 8s linear infinite paused; }
.js .pm-stretch .p-a .cov-r { animation: pm1-ar 8s linear infinite paused; }
.js .pm-stretch .p-b .cov-l { animation: mo1-shl 8s linear infinite paused; }
.js .pm-stretch .p-b .cov-r { animation: mo1-shr 8s linear infinite paused; }
.js .pm-stretch .on { animation: pm1-on 8s linear infinite paused; }
.js .pm-stretch .glow { animation: pm-bar 2s linear infinite paused; }
.js .pm-stretch .sw { animation: pm1-sw 2s linear infinite paused; }
.js .pm-stretch .sw > i { animation: pm1-swi 2s linear infinite paused; }
.js .pm-center .p-veil { animation: pm2-veil 8s linear infinite paused; }
.js .pm-center .p-rings, .js .pm-center .p-floor { animation: pm2-on 8s linear infinite paused; }
.js .pm-center .p-rings > i, .js .pm-center .p-floor > i { animation: pm-bar 2s linear infinite paused; }
.js .pm-center .p-echo { animation: pm2-echo 2s cubic-bezier(0.16, 1, 0.3, 1) infinite paused; }
.js .pm-center .p-echo > i { animation: pm2-echo-o 2s cubic-bezier(0.16, 1, 0.3, 1) infinite paused; }
.js .pm-center .p-echo-on { animation: pm2-on 8s linear infinite paused; }
.fit-row.playing .pm *, .fit-row.playing .mo *, .fit-row.playing .mo *::after { animation-play-state: running !important; }

/* 01: 0–1.4 秒 左の小さな絵と矢印が光る → 1.4–2.7 秒 上の LED の幕が左右へ開く(引き伸ばされた絵が出る。図の「引き伸ばし」と同時)
       → 3.1–3.6 秒 下の LED が 8 段で開く(図と同時)→ 1 小節ごとに光が脈打ち、光の筋が左から右へ走る */
@keyframes pm1-arrows { 0% { opacity: 0; animation-timing-function: steps(3, end); } 3% { opacity: 1; } 16% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes pm1-al { 0%, 18% { transform: translateX(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 34% { transform: translateX(-101%); } 96% { transform: translateX(-101%); } 97%, 100% { transform: translateX(0); } }
@keyframes pm1-ar { 0%, 18% { transform: translateX(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 34% { transform: translateX(101%); } 96% { transform: translateX(101%); } 97%, 100% { transform: translateX(0); } }
@keyframes pm1-on { 0%, 45% { opacity: 0; } 46% { opacity: 1; } 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes pm-bar { 0% { opacity: 0.9; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 40% { opacity: 0.15; } 50% { opacity: 0.5; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 90%, 100% { opacity: 0.1; } }
@keyframes pm1-sw { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(500%); } }
@keyframes pm1-swi { 0% { transform: translateX(20%); } 100% { transform: translateX(-100%); } }
/* 02: 0–1.1 秒 LED は暗い → 2.4 秒 演者の上で光が点く(図の中心が 38% に寄り切るのと同時)→ 1 小節ごとに光が息をし、輪が外へ広がる */
@keyframes pm2-veil { 0%, 14% { opacity: 1; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 30% { opacity: 0; } 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes pm2-on { 0%, 27% { opacity: 0; animation-timing-function: steps(3, end); } 30% { opacity: 1; } 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes pm2-echo { 0% { transform: scale(1); } 100% { transform: scale(1.22); } }
@keyframes pm2-echo-o { 0% { opacity: 0.45; } 100% { opacity: 0; } }

/* 止める: 動きを減らす設定・「動きを止める」→ 層は消え、幕は開き、今の絵そのものが出る */
.motion-paused .pm *, .motion-paused .pm *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .pm *, .pm *::after { animation: none !important; } }
.pm-center .p-echo-on { inset: 0; opacity: 0; }
.pm-center .p-echo-on > * { position: absolute; }

/* ===== 強み v3(2026-10-11): 「悪い例 ×/良い例 ○」を、記号・文字・見た目の 3 つで示す =====
   - 記号: 悪い例 = ×(英語は ✕)、良い例 = ○(英語は ✓)。色に頼らず形で分かる
   - 文字: 「引き伸ばすと → ぼやける」「最初から〜用に作ると → くっきり」のように、原因 → 結果を短く
   - 見た目: 悪い例は灰の点線の札・少し暗く、良い例はピンクの実線の札・明るく
   札は不透明の地に乗せるので、絵の上でも読める(文字のコントラスト 4.5:1 以上)。
   動かすのは記号の「押印」(transform)と、02 の札の入れ替え(opacity)だけ */
.vd { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--body); font-weight: 700; font-size: 0.75rem; line-height: 1.25; letter-spacing: 0; white-space: nowrap; }
.vd .mk { display: inline-grid; place-items: center; flex: 0 0 auto; width: 1.45em; height: 1.45em; font-family: var(--body); font-weight: 800; font-size: 0.8rem; line-height: 1; }
.vd.ng { color: var(--soft); }
.vd.ng .mk { background: #3b4058; color: #fff; }
.vd.ok { color: var(--ink); }
.vd.ok .mk { background: var(--pink); color: var(--on-pink); }
.vd .ar { color: var(--muted); font-weight: 400; }
.vd.ok .res { color: #ff7fb0; }

/* 絵の上の札(不透明の地) */
.pm-tags { position: absolute; inset: 0; pointer-events: none; }
.pm-tags > * { position: absolute; }
.pm-tags .vd { padding: 3px 9px 3px 3px; background: rgba(7, 8, 15, 0.94); }
.pm-tags .vd.ng { border: 1px dashed var(--muted); }
.pm-tags .vd.ok { border: 1px solid var(--pink); }
/* 01 の絵: 上の LED(悪い例)と下の LED(良い例)の、それぞれ左上の角の中に置く(どちらの札か迷わない)。絵の 1600 × 1067 の目盛り */
.pm-stretch .t-ng { left: calc(21.375% + 4px); top: calc(12.934% + 4px); }
.pm-stretch .t-ok { left: calc(21.375% + 4px); top: calc(55.858% + 4px); }
.pm-stretch .dim-a { left: 21.375%; top: 12.934%; width: 76.875%; height: 31.115%; background: rgba(7, 8, 15, 0.3); } /* 悪い例は少し暗く(止まった飾り) */
/* 02 の絵: 良い例だけの絵なので ○ の札を 1 つ */
.pm-center .t-ok { left: 2%; top: 3%; }

/* 01 の図: 上に見出し、ふつうの動画の札は見出しへ移す */
.mo-head { margin: 0 0 4px; font-family: var(--body); font-weight: 700; font-size: 0.75rem; color: var(--soft); }
.mo-head small { font-size: inherit; font-weight: 400; color: var(--muted); margin-left: 0.3em; }
.mo-stretch .mo-cap { display: none; }
.mo-stretch .mo-lab-a, .mo-stretch .mo-lab-b { left: 0; transform: translateY(calc(-100% - 7px)); }
.mo-stretch .mo-lab-a { top: 44.8%; }
.mo-stretch .mo-lab-b { top: 77.63%; }
.mo-stretch .mo-a { opacity: 0.85; } /* 悪い例は少し暗く */

/* 02 の図: 上に「いまどちらの例か」の札。× → ○ に入れ替わる(図の光が 38% に寄るのと同時) */
.mo-vds { display: grid; margin-bottom: 2px; }
.mo-vds > .vd { grid-area: 1 / 1; white-space: normal; align-items: flex-start; } /* 狭い画面(320px)では 2 行に折り返す */
.mo-vds .ng { opacity: 0; }

/* 動き */
.js .mo-stretch .mo-lab-a .mk, .js .pm-stretch .t-ng .mk { animation: vd-stamp-a 8s linear infinite paused; }
.js .mo-stretch .mo-lab-b .mk, .js .pm-stretch .t-ok .mk { animation: vd-stamp-b 8s linear infinite paused; }
.js .mo-vds .ng { animation: vd-ng 8s linear infinite paused; }
.js .mo-vds .ok { animation: vd-ok 8s linear infinite paused; }
.fit-row.playing .mo-head *, .fit-row.playing .mo-vds * , .fit-row.playing .mo-vds > * { animation-play-state: running !important; }
@keyframes vd-stamp-a { 0%, 33% { transform: scale(1); } 34.5% { transform: scale(1.5); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 40%, 100% { transform: scale(1); } }
@keyframes vd-stamp-b { 0%, 44% { transform: scale(1); } 45.5% { transform: scale(1.5); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 51%, 100% { transform: scale(1); } }
@keyframes vd-ng { 0%, 24% { opacity: 1; } 28% { opacity: 0; } 95% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes vd-ok { 0%, 26% { opacity: 0; } 30% { opacity: 1; } 95% { opacity: 1; } 97%, 100% { opacity: 0; } }
.motion-paused .vd *, .motion-paused .mo-vds > * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .vd *, .mo-vds > * { animation: none !important; } }
