/* css/04-henshin.css — AREA 02 へんしん こうぼう（unit=henshin-tower。SPEC §4-04）
   原画の画像は位置・回転・等倍拡縮と ZOO.chara.squash() だけで動かす（フィルタ類は SPEC §0 のとおり使わない）。 */

.sec-henshin {
  --hs-lime: var(--sec-room, #55ff00);
  padding-bottom: var(--sp-9);
}
.hs-inner { position: relative; z-index: 1; }
.hs-h3 {
  font-family: var(--f-pop); font-size: var(--fs-h3); line-height: 1.3;
  margin: 0 0 var(--sp-3);
}

/* ---------- 7-20 ねんど玉のメタボール（背景。画像には触れない） ---------- */
.clay-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob-svg { position: absolute; display: block; overflow: visible; }
.blob-svg--a { width: clamp(220px, 30vw, 420px); top: 3%; right: -6%; opacity: .9; }
.blob-svg--b { width: clamp(180px, 22vw, 320px); top: 58%; left: -5%; opacity: .75; }
.blob { transform-box: fill-box; transform-origin: center; animation: hs-blob 9s ease-in-out infinite alternate; }
.b2 { animation-duration: 7s; animation-name: hs-blob-2; }
.b3 { animation-duration: 8s; animation-name: hs-blob-3; }
.b4 { animation-duration: 6s; animation-name: hs-blob-2; animation-direction: alternate-reverse; }
.b5 { animation-duration: 10s; }
.b6 { animation-duration: 6.5s; animation-name: hs-blob-3; }
.b7 { animation-duration: 7.5s; animation-name: hs-blob-2; }
@keyframes hs-blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18px, -14px) scale(1.06); } 100% { transform: translate(-12px, 16px) scale(.96); } }
@keyframes hs-blob-2 { 0% { transform: translate(0, 0); } 50% { transform: translate(-58px, 34px); } 100% { transform: translate(40px, 60px); } }
@keyframes hs-blob-3 { 0% { transform: translate(0, 0); } 50% { transform: translate(52px, -40px); } 100% { transform: translate(-46px, -22px); } }

/* ---------- 見出しまわり ---------- */
.hs-head { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sp-5); margin-bottom: var(--sp-8); }
.hs-title { grid-column: 1 / -1; margin-bottom: var(--sp-5); font-size: clamp(2.2rem, 7vw, 5.8rem); line-height: 1.12; }
@media (min-width: 900px) {
  .hs-head .goo-word { position: absolute; right: 2%; top: -8px; width: clamp(150px, 15vw, 190px); }
  .hs-head .goo-a, .hs-head .goo-b { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
}
.hs-sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-6); }
.hs-leads { grid-column: 1 / -1; display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 900px) {
  .hs-leads { grid-template-columns: 7fr 5fr; gap: var(--sp-7); }
}

/* 1-17 ルビ時差 */
.hs-ruby {
  margin: 0; display: inline-flex; align-items: flex-end; gap: .35em;
  font-family: var(--f-pop); font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.6;
  padding: .1em .6em .15em; background: var(--paper-hi); border: var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh-step); transform: rotate(-1.5deg);
}
.hs-ruby ruby { ruby-position: over; }
.hs-ruby rt {
  font-family: var(--f-body); font-weight: 900; font-size: .42em; letter-spacing: .12em; color: var(--do);
  opacity: 0; transition: opacity .6s var(--ease-soft) .55s, letter-spacing .7s var(--ease-soft) .55s;
  letter-spacing: .6em;
}
.hs-ruby.is-in rt { opacity: 1; letter-spacing: .12em; }
html[data-reduced] .hs-ruby rt { opacity: 1; letter-spacing: .12em; transition: none; }

/* 1-42 gooey の「げんが」→「ねんど」（フィルタは文字の要素だけ） */
.goo-word {
  position: relative; margin: 0; display: inline-grid; place-items: center;
  width: clamp(112px, 12vw, 148px); aspect-ratio: 1; border-radius: 50%;
  background: var(--clay); border: var(--line); box-shadow: 0 6px 0 var(--clay-deep), 0 6px 0 3px var(--ink);
  transform: rotate(6deg);
}
.goo-word::after {
  content: ''; position: absolute; inset: 9px; border-radius: 50%;
  border: 2px dashed rgba(28, 27, 51, .35); pointer-events: none;
}
.goo-track { display: grid; place-items: center; padding: 8px; }
.goo-track.is-goo { filter: url(#hs-goo-text); }
.goo-a, .goo-b {
  grid-area: 1 / 1; font-family: var(--f-pop); font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--paper-hi); line-height: 1;
  will-change: filter, opacity, transform;
}
.goo-b { opacity: 0; }
.goo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html[data-reduced] .goo-track { filter: none; display: flex; flex-direction: column; gap: 2px; }
html[data-reduced] .goo-a, html[data-reduced] .goo-b { opacity: 1; font-size: 1rem; }
html[data-reduced] .goo-a::after { content: ' ↓'; }

.hs-lead { margin: 0; max-width: 30em; font-weight: 700; }
.hs-standard {
  position: relative; margin: 0; padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: var(--paper-hi); border: var(--line); border-radius: var(--r-s);
  box-shadow: var(--sh-step); transform: rotate(1.2deg); font-weight: 700;
}
.hs-standard::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 88px; height: 22px; margin-left: -44px;
  background: color-mix(in oklab, var(--mi) 85%, transparent); border: 2px solid rgba(28, 27, 51, .25); transform: rotate(-3deg);
}
.boil--line {
  display: block; width: 72px; height: 14px; margin-bottom: var(--sp-2);
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 14'%3E%3Cpath d='M2 8c8-6 14 5 22 0s14-6 22 0 16 4 24-2' fill='none' stroke='%23FF4B2B' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 1-39 ボイル（線と文字だけ。steps で数コマ） */
.boil { animation: hs-boil .6s steps(1) infinite; }
@keyframes hs-boil {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(1px, -1px) rotate(.6deg); }
  50% { transform: translate(-1px, 1px) rotate(-.5deg); }
  75% { transform: translate(1px, 1px) rotate(.3deg); }
}

/* ---------- 2-16 / 3-41 たなの 6ぴき（pin しない時） ---------- */
.scrub-stage { position: relative; margin-bottom: var(--sp-9); }
.shelf-title { display: flex; align-items: center; gap: var(--sp-3); }
.shelf-title::after { content: ''; flex: 1; height: 3px; background: var(--ink); border-radius: 2px; opacity: .8; }
.shelf {
  list-style: none; margin: 0; padding: var(--sp-5) 0 var(--sp-4);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-4);
  position: relative;
}
.shelf::after {
  /* 棚板（木ではなくねんど色の帯） */
  content: ''; position: absolute; left: -8px; right: -8px; bottom: 0; height: 14px;
  background: var(--clay); border: var(--line); border-radius: 8px; box-shadow: 0 5px 0 var(--ink);
}
@media (min-width: 600px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); } }
.swap { position: relative; }
.swap:nth-child(odd) { --tilt: -1.6deg; }
.swap:nth-child(even) { --tilt: 1.4deg; }
.swap-btn {
  display: grid; gap: var(--sp-2); width: 100%; padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  touch-action: manipulation;
}
.swap-frame {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg); border: var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh-step-lg);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .45s var(--ease-spring), box-shadow .3s;
}
.swap-frame img.chara { position: absolute; inset: 0; width: 100%; height: 100%; }
.swap-a { object-fit: contain; }
.swap-b { object-fit: cover; opacity: 0; transition: opacity .55s var(--ease-soft); }
.swap-btn[aria-pressed="true"] .swap-b { opacity: 1; }
.swap-btn:active .swap-frame { transform: rotate(var(--tilt, 0deg)) translateY(4px); box-shadow: 0 2px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .swap-btn:hover .swap-b, .swap-btn:focus-visible .swap-b { opacity: 1; }
  .swap-btn:hover .swap-frame { transform: rotate(0deg) translateY(-4px); }
  .swap-btn:hover .st-a, .swap-btn:focus-visible .st-a { opacity: .35; }
  .swap-btn:hover .st-b, .swap-btn:focus-visible .st-b { background: var(--ink); color: var(--paper-hi); }
}
.swap-state {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; display: flex; gap: 4px;
  font-size: .75rem; font-weight: 900; line-height: 1;
}
.swap-state span { padding: 5px 8px; border-radius: var(--r-pill); background: var(--paper-hi); border: 2px solid var(--ink); transition: background-color .3s, color .3s, opacity .3s; }
.swap-btn[aria-pressed="true"] .st-a { opacity: .35; }
.swap-btn[aria-pressed="true"] .st-b { background: var(--ink); color: var(--paper-hi); }
.swap-meta { display: grid; gap: 0; padding-left: 4px; }
.swap-no { color: var(--ink-soft); font-size: .75rem; }
.swap-name { font-family: var(--f-pop); font-size: 1.15rem; line-height: 1.3; }

/* reduced: 変身は2枚並べて静止 */
html[data-reduced] .shelf { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { html[data-reduced] .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { html[data-reduced] .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html[data-reduced] .swap-frame { aspect-ratio: 8 / 5; display: grid; grid-template-columns: 1fr 1fr; transform: none; transition: none; }
html[data-reduced] .swap-frame img.chara { position: relative; inset: auto; opacity: 1; transition: none; }
html[data-reduced] .swap-b { border-left: 3px solid var(--ink); }
html[data-reduced] .swap-state { display: none; }

/* ---------- 2-16 pin した時の舞台（JS が .scrub-view を作る） ---------- */
.scrub-stage.is-pin { height: 100vh; margin-bottom: 0; display: grid; align-items: center; }
.scrub-stage.is-pin .shelf, .scrub-stage.is-pin .shelf-title { display: none; }
.scrub-view {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7); align-items: center;
  height: 100%; padding: calc(var(--header-h) + var(--sp-4)) 0 var(--sp-6);
}
.sv-board { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; }
.sv-disc {
  position: absolute; width: min(64vh, 92%); aspect-ratio: 1; border-radius: 50%;
  background: var(--clay); border: var(--line); box-shadow: 0 10px 0 var(--clay-deep), 0 10px 0 3px var(--ink);
}
.sv-disc::after { content: ''; position: absolute; inset: 7%; border-radius: 50%; border: 3px dashed rgba(28, 27, 51, .3); }
.sv-cards { position: relative; height: min(70vh, 640px); aspect-ratio: 4 / 5; }
.sv-card {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--bg); border: 4px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 12px 0 var(--ink), 0 30px 40px -24px var(--shadow);
}
.sv-card img.chara { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv-card .sv-a { object-fit: contain; }
.sv-card .sv-b { object-fit: cover; opacity: 0; }
.sv-tape {
  position: absolute; z-index: 3; top: calc(50% - min(35vh, 320px) - 10px); left: 50%; width: 120px; height: 30px; margin-left: -60px;
  background: color-mix(in oklab, var(--so) 70%, transparent); border: 2px solid rgba(28, 27, 51, .25); transform: rotate(-4deg);
}
.sv-info { display: grid; gap: var(--sp-5); align-content: center; }
.sv-fig { margin: 0; font-size: var(--fs-mono); letter-spacing: .08em; color: var(--ink-soft); }
.sv-count { font-family: var(--f-mono); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.02em; -webkit-text-stroke: 2px var(--ink); color: transparent; }
.sv-count b { color: var(--ink); -webkit-text-stroke: 0; font-weight: 500; }
.sv-names { position: relative; height: 1.3em; font-size: clamp(2.4rem, 4.6vw, 4rem); }
.sv-name { position: absolute; left: 0; top: 0; margin: 0; font-family: var(--f-pop); line-height: 1.2; white-space: nowrap; opacity: 0; }
.sv-meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3); font-weight: 900; }
.sv-lab { padding: 6px 14px; border: var(--line); border-radius: var(--r-pill); background: var(--paper-hi); transition: background-color .25s, color .25s; }
.sv-lab.is-on { background: var(--ink); color: var(--paper-hi); }
.sv-track { position: relative; height: 16px; border: var(--line); border-radius: var(--r-pill); background: var(--paper-hi); overflow: hidden; }
.sv-fill { position: absolute; inset: 0; background: var(--clay); transform-origin: 0 50%; transform: scaleX(0); }
.sv-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-2); }
.sv-dot { width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--bg); opacity: .45; transition: opacity .3s, transform .3s var(--ease-spring); }
.sv-dot img.chara { width: 100%; height: 100%; object-fit: contain; display: block; }
.sv-dot.is-on { opacity: 1; transform: translateY(-6px); box-shadow: 0 6px 0 var(--ink); }

/* ---------- 3-18 くらべて みよう と 5-15 こねこね スクラッチ ---------- */
.compare-wrap { display: grid; gap: var(--sp-8); margin-bottom: var(--sp-9); align-items: start; }
@media (min-width: 1024px) {
  .compare-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7); }
  .scratch { margin-top: var(--sp-9); }
}
.cmp-head, .sc-head { margin-bottom: var(--sp-5); }
.cmp-tabs, .sc-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cmp-tab, .sc-tab {
  position: relative; min-height: 44px; padding: 6px 12px 6px 31px;
  border: var(--line); border-radius: var(--r-pill); background: var(--paper-hi);
  font-family: var(--f-body); font-weight: 900; font-size: .9rem; line-height: 1.2; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .2s var(--ease-spring), box-shadow .2s, background-color .2s;
  touch-action: manipulation;
}
.cmp-tab::before, .sc-tab::before {
  content: ''; position: absolute; left: 9px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--ink);
}
.cmp-tab[aria-selected="true"], .sc-tab[aria-selected="true"] { background: var(--ink); color: var(--paper-hi); transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.cmp-tab--ep { padding-left: 12px; background: var(--clay); }
.cmp-tabs { gap: 6px; }
.cmp-tab--ep::before { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cmp-tab:not([aria-selected="true"]):hover, .sc-tab:not([aria-selected="true"]):hover { background: var(--mi); }
}

.cmp-body { position: relative; }
.cmp-frame {
  position: relative; width: min(100%, 540px, 62vh); aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg); border: 4px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 10px 0 var(--ink); touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: aspect-ratio .01s;
}
.cmp-frame[data-kind="ep01"] { aspect-ratio: 896 / 512; width: min(100%, 720px); }
.cmp-layer { position: absolute; inset: 0; }
.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp-frame img.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.cmp-frame img.cmp-img--over.chara--tile { object-fit: contain; }
.cmp-frame img.cmp-img--under { object-fit: cover; }
.cmp-frame[data-kind="ep01"] .cmp-img { object-fit: cover; }
.cmp-over { will-change: clip-path; }
.cmp-label {
  position: absolute; top: 12px; z-index: 3; padding: 4px 12px;
  background: var(--paper-hi); border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 900; line-height: 1.4; pointer-events: none;
}
.cmp-label--l { left: 12px; }
.cmp-label--r { right: 12px; background: var(--ink); color: var(--paper-hi); }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; z-index: 4; width: 44px; margin-left: -22px;
  display: grid; place-items: center; cursor: ew-resize; touch-action: pan-y; outline-offset: -4px;
}
.cmp-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: var(--paper-hi); box-shadow: 0 0 0 2px var(--ink); }
.cmp-knob {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  background: var(--mi); border: var(--line); box-shadow: 0 4px 0 var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .25s var(--ease-spring);
}
.cmp-handle.is-drag .cmp-knob { transform: scale(1.12); }
.cmp-arrow { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cmp-arrow--l { border-right: 9px solid var(--ink); }
.cmp-arrow--r { border-left: 9px solid var(--ink); }
.cmp-handle:focus-visible { box-shadow: none; outline: none; }
.cmp-handle:focus-visible .cmp-knob { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 9px var(--mi), 0 4px 0 var(--ink); }
.cmp-ep01 {
  margin: var(--sp-4) 0 0; max-width: 34em; padding: var(--sp-3) var(--sp-4);
  background: var(--paper-hi); border-left: 6px solid var(--clay); border-radius: 0 var(--r-s) var(--r-s) 0; font-weight: 700;
}
.cmp-note {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin: var(--sp-4) 0 0 var(--sp-5);
  font-family: var(--f-pop); font-size: 1.1rem; color: var(--do); transform-origin: left center;
}
.boil-arrow {
  display: inline-block; width: 46px; height: 30px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 30'%3E%3Cpath d='M42 4C30 2 12 6 6 22' fill='none' stroke='%23FF4B2B' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M2 14l4 9 8-4' fill='none' stroke='%23FF4B2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* スクラッチ */
.sc-hint { margin: 0 0 var(--sp-4); font-weight: 700; color: var(--ink-soft); }
.sc-stage { position: relative; }
.sc-frame {
  position: relative; width: min(100%, 440px); aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg); border: 4px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 10px 0 var(--ink); transform: rotate(-1deg);
}
.sc-frame img.sc-under { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.sc-canvas.is-playing { touch-action: none; }
.sc-meter {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 6px; background: var(--paper-hi); border: 2px solid var(--ink); border-radius: var(--r-pill); pointer-events: none;
}
.sc-meter-bar { position: relative; width: 56px; height: 10px; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--paper); }
.sc-meter-bar::after { content: ''; position: absolute; inset: 0; background: var(--clay); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .25s; }
.sc-meter-bar::before { content: ''; position: absolute; top: 0; bottom: 0; left: 40%; width: 2px; background: var(--ink); z-index: 1; }
.sc-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.sc-play { display: none; }
@media (pointer: coarse) { .sc-play { display: inline-flex; } }
.sc-stage.is-done .sc-frame { box-shadow: 0 10px 0 var(--ink), 0 0 0 6px var(--mi); }

/* ---------- 2-21 ズームスルー ---------- */
.zoomthru { position: relative; margin-bottom: var(--sp-9); }
.zt-stage { position: relative; display: grid; justify-items: center; gap: var(--sp-4); }
.zt-wall {
  position: relative; width: 100%; max-width: 900px; padding: clamp(28px, 6vw, 72px) clamp(16px, 6vw, 88px) clamp(40px, 7vw, 88px);
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(28, 27, 51, .08) 38px 41px),
    var(--paper-deep);
  border: 4px solid var(--ink); border-radius: var(--r-l) var(--r-l) var(--r-m) var(--r-m);
  box-shadow: 0 10px 0 var(--ink);
  display: grid; justify-items: center; transform-origin: 50% 45%;
}
.zt-window {
  position: relative; display: block; width: 100%; aspect-ratio: 896 / 512; padding: 0; cursor: pointer;
  border: 8px solid var(--ink); border-radius: 46% 46% 14px 14px / 34% 34% 14px 14px; overflow: hidden;
  background: var(--ink); box-shadow: inset 0 0 0 4px var(--clay);
}
.zt-pane { position: absolute; inset: 0; transition: opacity .7s var(--ease-soft); }
.zt-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zt-window[aria-pressed="true"] .zt-pane--orig { opacity: 0; }
.zt-sill { display: none; }
.zt-wall::after {
  /* 窓のした の ねんど色の 窓台 */
  content: ''; display: block; width: calc(100% + 28px); height: 18px; margin-top: -4px;
  background: var(--clay); border: var(--line); border-radius: 8px; box-shadow: 0 5px 0 var(--ink);
}
.zt-wall::before {
  /* 窓の上の まるい ひさし */
  content: ''; position: absolute; left: 50%; top: clamp(10px, 2.4vw, 30px); width: 26%; height: 12px; margin-left: -13%;
  background: var(--do); border: var(--line); border-radius: 999px;
}
.zt-tag {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--paper-hi); border: var(--line); border-radius: var(--r-m); box-shadow: var(--sh-step);
  font-weight: 900; font-size: .95rem;
}
.zt-tag .mono { padding: 2px 6px; background: var(--ink); color: var(--paper-hi); border-radius: 6px; }
.zt-tag--orig { left: clamp(8px, 2vw, 24px); top: clamp(8px, 2vw, 20px); transform: rotate(-4deg); }
.zt-tag--clay { right: clamp(8px, 2vw, 24px); top: clamp(8px, 2vw, 20px); transform: rotate(3deg); background: var(--clay); }
.zt-hint { margin: 0; font-family: var(--f-pop); font-size: var(--fs-h3); }

.zoomthru.is-pin { margin-bottom: 0; }
.zoomthru.is-pin .zt-stage { height: 100vh; align-content: center; overflow: visible; padding-top: var(--header-h); }
.zoomthru.is-pin .zt-wall { will-change: transform; }
.zoomthru.is-pin .zt-window { cursor: default; }
.zoomthru.is-pin .zt-pane { transition: none; }

/* reduced: 2枚を並べる */
html[data-reduced] .zt-window { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 14px; cursor: default; }
html[data-reduced] .zt-pane { position: relative; opacity: 1 !important; aspect-ratio: 896 / 512; }
html[data-reduced] .zt-pane--orig { order: -1; }

/* ---------- 1-15 / 2-34 / 1-9 なぜか・宣言文・へんてこ ---------- */
.hs-about-wrap {
  position: relative; margin: 0 calc(-1 * var(--sp-2)) var(--sp-9);
  padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 56px);
  background: var(--paper-hi); border: 4px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 10px 0 var(--ink); overflow: hidden; isolation: isolate;
}
.kinetic {
  position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-pop); font-size: clamp(5rem, 24vw, 21rem); line-height: 1; letter-spacing: -.02em;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.k-ch { display: inline-block; opacity: .15; -webkit-text-stroke: .03em var(--ink); paint-order: stroke fill; will-change: transform; }
.k-ch[data-c="1"] { color: var(--pop-1); } .k-ch[data-c="2"] { color: var(--pop-2); } .k-ch[data-c="3"] { color: var(--pop-3); } .k-ch[data-c="4"] { color: var(--pop-4); }
.kicker { margin: 0 0 var(--sp-4); font-family: var(--f-pop); font-size: clamp(1.4rem, 3vw, 2.2rem); }
.marker {
  color: var(--ink); padding: 0 .2em; background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M3 12C40 5 110 9 197 6l-2 26c-60 5-130-1-190 4z' fill='%23FFE14A'/%3E%3Cpath d='M8 30c60-4 120 0 184-3' fill='none' stroke='%23FF9A1F' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 60%; background-size: 0% 90%;
  transition: background-size .9s cubic-bezier(.65, 0, .35, 1) .15s;
}
.marker.is-in, html[data-reduced] .marker { background-size: 100% 90%; }
html[data-reduced] .marker { transition: none; }
.hs-about { position: relative; }
.hs-about .mp-body-block {
  margin: 0; font-family: var(--f-pop); font-size: clamp(2rem, 7.2vw, 5.6rem); line-height: 1.22; letter-spacing: .01em; color: var(--ink);
}
.hs-about .mp-body-block + .mp-body-block { margin-top: .12em; }
.hs-about .mp-body-block:nth-child(2) { padding-left: 1.2em; }
.hs-about .mp-body-block:nth-child(3) { padding-left: .4em; }

/* ---------- 9-44 やくそくカード / 9-6 台座 / 8-52 steps ---------- */
.promise { display: grid; gap: var(--sp-6); margin-bottom: var(--sp-9); }
@media (min-width: 900px) { .promise { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.promise-head .hs-h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.promise-howto { margin: 0; font-weight: 700; color: var(--ink-soft); }
.promise-howto::before { content: '← → '; font-family: var(--f-mono); color: var(--do); }
.promise-body { display: grid; justify-items: center; gap: var(--sp-6); }
@media (min-width: 900px) { .promise-body { grid-template-columns: auto auto; align-items: end; justify-content: start; } }
.promise-stack {
  list-style: none; margin: 0; padding: 0 0 40px; display: grid; outline-offset: 10px;
  width: min(86vw, 380px); touch-action: pan-y;
}
.promise-card {
  grid-area: 1 / 1; position: relative; aspect-ratio: 4 / 5; min-height: 0;
  background: var(--paper-hi); border: 4px solid var(--ink); border-radius: var(--r-l);
  box-shadow: 0 8px 0 var(--ink); overflow: hidden; user-select: none; -webkit-user-select: none;
  transform-origin: 50% 90%;
}
.promise-card.is-top { cursor: grab; }
.promise-card.is-drag { cursor: grabbing; }
.pc-back { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr; padding: 20px 20px 18px; gap: 6px; }
.pc-back::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--bg); border-bottom: 3px solid var(--ink); }
.pc-back-word { margin: 8px 0 0; font-family: var(--f-pop); font-size: 1.5rem; line-height: 1.3; color: var(--do); -webkit-text-stroke: .06em var(--ink); paint-order: stroke fill; }
.pc-back-text { margin: 0; font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.8; font-weight: 700; }
.pc-art { position: relative; display: grid; justify-items: center; align-content: end; min-height: 0; }
.pc-tile {
  position: relative; z-index: 1; display: block; width: clamp(104px, 40%, 150px); aspect-ratio: 1;
  border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--bg); transform-origin: 50% 100%;
}
.pc-tile img.chara { display: block; width: 100%; height: 100%; object-fit: contain; }
.pc-pedestal { width: clamp(120px, 42%, 168px); height: 24px; margin-top: -10px; position: relative; z-index: 0; filter: url(#hs-jelly); }
.pc-ground { width: clamp(120px, 44%, 170px); margin-top: -2px; }
.pc-front {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px;
  background: var(--bg); border-radius: calc(var(--r-l) - 4px);
  background-image: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .35) 0 18%, transparent 19%), radial-gradient(circle at 84% 80%, rgba(28, 27, 51, .10) 0 22%, transparent 23%);
  clip-path: inset(0 0 0 0);
}
.pc-no { position: absolute; left: 16px; top: 14px; padding: 2px 8px; background: var(--paper-hi); border: 2px solid var(--ink); border-radius: 6px; }
.pc-word { font-family: var(--f-pop); font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.pc-word .ch { -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--ink); }
.pc-tape { position: absolute; top: -6px; right: 22px; width: 70px; height: 26px; background: color-mix(in oklab, var(--paper-hi) 75%, transparent); border: 2px solid rgba(28, 27, 51, .3); transform: rotate(8deg); }
.promise-card.is-open .pc-front { clip-path: inset(0 0 100% 0); }
.promise-ctl { display: grid; justify-items: center; gap: var(--sp-3); }
.promise-count { margin: 0; font-size: 1.1rem; }
.promise-count .pc-seen { font-size: 2rem; color: var(--do); }
.promise-next { min-width: 160px; }
/* reduced: めくりは即時（カードは使える） */
html[data-reduced] .promise-card { transition: none; }

/* ---------- 2-6 / 3-37 スチルの壁（verbatim の枠） ---------- */
.wall { position: relative; }
.wall-caption {
  display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-6);
  font-family: var(--f-pop); font-size: clamp(1.3rem, 3.2vw, 2.2rem); line-height: 1.35;
}
.boil--star {
  flex: none; width: 38px; height: 38px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l4 12 13 1-10 8 4 13-11-8-11 8 4-13L3 16l13-1z' fill='%23FFE14A' stroke='%231C1B33' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.wall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-4); align-items: start; }
@media (min-width: 900px) {
  .wall-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); }
  .wall-item--1 { grid-column: 1 / span 7; }
  .wall-item--2 { grid-column: 8 / span 5; margin-top: var(--sp-9); }
  .wall-item--3 { grid-column: 2 / span 5; }
  .wall-item--4 { grid-column: 7 / span 6; margin-top: calc(-1 * var(--sp-7)); }
}
.wall-item {
  position: relative; margin: 0; padding: 10px; background: var(--paper-hi);
  border: var(--line); border-radius: var(--r-s); box-shadow: var(--sh-step-lg);
  transform: rotate(var(--rot, 0deg));
}
.wall-item .mp-image-frame { aspect-ratio: 16 / 9; border-radius: 6px; background: var(--ink); }
.wall-item .mp-image-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-tape {
  position: absolute; z-index: 2; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
  background: color-mix(in oklab, var(--mi) 80%, transparent); border: 2px solid rgba(28, 27, 51, .25); transform: rotate(-5deg);
}
.wall-item:nth-child(even) .wall-tape { background: color-mix(in oklab, var(--so) 65%, transparent); transform: rotate(4deg); }

/* ---------- 停止（reduced / うごき オフ） ---------- */
html[data-reduced] .blob, html[data-reduced] .boil { animation: none; }
@media (prefers-reduced-motion: reduce) { .blob, .boil { animation: none; } }

/* ---------- スマホ ---------- */
@media (max-width: 599px) {
  .hs-head { margin-bottom: var(--sp-7); }
  .hs-title { font-size: 1.95rem; }
  .swap-no-rest { display: none; }
  .blob-svg { opacity: .55; }
  .goo-word { width: 96px; }
  .cmp-frame, .sc-frame { width: min(92vw, 420px, 100%); aspect-ratio: 1; }
  .cmp-frame[data-kind="ep01"] { aspect-ratio: 896 / 512; }
  .cmp-note { margin-left: var(--sp-2); }
  .hs-about-wrap { margin-inline: 0; }
  .zt-tag { font-size: .8rem; padding: 4px 10px; }
  .wall-item { padding: 6px; }
  .wall-grid .wall-item:nth-child(even) { margin-top: var(--sp-6); }
}
