/* ===== コードで描く映像ヒーロー（.mh・2026-11-11・比較用） =====
   動画ファイルは使わない。1本の時間から、図面 → 分解図 → 完成 → スマホ → 更新 を、その場で描く。
   動きの値は motion-hero.js が .mh-stage に CSS 変数で渡す（--w 線 / --x 分解 / --f 仕上げ / --d 端末 / --sc スクロール ほか）
   色はサイトと同じ：紙（--bg）・墨（--ink）・エンジ（--enji）。v2（2026-11-11 夜） */
.mh { --mh-line: rgba(21, 23, 26, .78); --mh-dim: rgba(21, 23, 26, .38); --mh-pen: var(--enji);
  position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate;
  background: #F1EFEA; color: var(--ink); }

/* ---------- 舞台 ---------- */
.mh-stage { --cx: 70%; --cy: 51%; --s: 1; --gap: 96px; --rx: 0deg; --ry: 0deg; --rz: 0deg;
  --w: 0; --dim: 0; --x: 0; --f: 0; --d: 0; --sheen: 0; --tap: 0; --sh: 0; --p1: 0; --p2: 0; --sent: 0; --g: 0; --ph: 0; --sc: 0; --o: 1;
  --scp: clamp(0, calc(var(--sc) / 70), 1);            /* スクロールすると、上のバーが白くなる */
  --inkp: max(var(--scp), var(--x));                   /* 写真の上の白い文字 → 墨の文字 */
  position: absolute; inset: 0; z-index: 0; perspective: 1700px; perspective-origin: var(--cx) var(--cy); opacity: var(--o); }
.mh-glow { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(44% 56% at var(--cx) var(--cy), rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .5) 42%, rgba(255, 255, 255, 0) 74%),
  radial-gradient(34% 40% at 92% 6%, rgba(121, 50, 63, .09) 0%, rgba(121, 50, 63, 0) 70%),
  radial-gradient(40% 46% at 44% 104%, rgba(44, 74, 98, .08) 0%, rgba(44, 74, 98, 0) 70%); }
.mh-cam { position: absolute; left: var(--cx); top: var(--cy); width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }

/* 方眼の床（製図の紙）：カメラが正面に回ると、そのまま背景の壁になる */
.mh-floor { position: absolute; left: -1500px; top: -1500px; width: 3000px; height: 3000px; transform: translateZ(-2px); pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 23, 26, .085) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .085) 1px, transparent 1px),
    linear-gradient(rgba(21, 23, 26, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px; background-position: 20px 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .6) 42%, transparent 82%);
          mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .6) 42%, transparent 82%); }
/* 模型が床に落とす影 */
.mh-shadow { position: absolute; left: -200px; top: -340px; width: 400px; height: 720px; transform: translateZ(-1px) translate(calc(var(--x) * 60px), calc(40px + var(--x) * 90px)); pointer-events: none;
  background: radial-gradient(closest-side, rgba(21, 23, 26, .26), rgba(21, 23, 26, 0)); opacity: calc(var(--f) * (1 - var(--d))); filter: blur(6px); }

/* 模型：320×640 の画面。層を重ねてある。層の中身（.in）は一緒にスクロールする */
.mh-model { position: absolute; left: -160px; top: -320px; width: 320px; height: 640px; transform-style: preserve-3d; }
.mh-layer { position: absolute; inset: 0; --k: 0; --a: clamp(0, calc(var(--f) * 5 - var(--k)), 1); overflow: hidden;
  opacity: var(--a);
  transform: translateZ(calc((var(--k) + 1) * var(--gap) * var(--x) + (var(--k) + 1) * .6px + (1 - var(--a)) * 70px));
  border-radius: calc(var(--d) * 30px); will-change: transform, opacity; backface-visibility: hidden; }
.mh-layer .in { position: absolute; left: 0; top: 0; width: 320px; height: 1080px; transform: translateY(calc(var(--sc) * -1px)); will-change: transform; }
.mh-layer > *, .mh-layer .in > * { position: absolute; display: block; margin: 0; }
/* 写真と文字は、上のバーと下の帯の下にもぐる（帯は「面と色」の層にあるので、その分を切り抜く） */
.mh-l-photo .in, .mh-l-text .in { clip-path: inset(calc(var(--sc) * 1px + var(--scp) * 72px) 0 calc(508px - var(--sc) * 1px) 0); }

/* 0 骨組み（線の図面） */
.mh-wire { position: absolute; inset: 0; width: 320px; height: 640px; overflow: visible; }
.mh-wire .w { fill: none; stroke: var(--mh-line); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc((var(--w) * 20 - var(--i)) / 4), 1)); }
.mh-wire .w--thin { stroke: var(--mh-dim); stroke-width: .8; }
.mh-wire .w--frame { stroke: var(--ink); stroke-width: 1.5; }
.mh-wire .w--key { stroke: var(--mh-pen); stroke-width: 1.5; }
.mh-wire .paper { fill: rgba(255, 255, 255, .7); opacity: var(--w); }
.mh-wire .dim { opacity: calc(var(--dim) * (1 - var(--d))); }
.mh-wire .dim line { stroke: var(--mh-dim); stroke-width: .8; vector-effect: non-scaling-stroke; }
.mh-wire .dim text { fill: var(--sub); font: 500 10px/1 var(--font-mono); letter-spacing: .12em; }

/* 1 面と色 */
.mh-l-face { --k: 0; background: #FBFAF7; box-shadow: 0 0 0 1px rgba(21, 23, 26, .08); opacity: calc(var(--a) * (1 - var(--x) * .08)); }
.mh-l-face .f-hero { left: 0; top: 0; width: 320px; height: 360px; background: #E9E4DA; }
.mh-l-face .f-pill { left: 16px; top: 376px; width: 112px; height: 24px; border-radius: 12px; background: #E9F1E6; }
.mh-l-face .f-card { top: 504px; width: 132px; height: 124px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #ECE9E2, 0 14px 24px -18px rgba(21, 23, 26, .45); }
.mh-l-face .f-map { left: 16px; top: 892px; width: 288px; height: 116px; border-radius: 10px; background: #ECE9E2; overflow: hidden; }
.mh-l-face .f-map path { fill: none; stroke: #fff; stroke-linecap: round; }
.mh-l-face .f-map circle { fill: var(--enji); stroke: #fff; stroke-width: 2.5; }
.mh-l-face .f-foot { left: 0; top: 1040px; width: 320px; height: 40px; background: #15171A; }
.mh-l-face .f-bar { left: 0; top: 0; width: 320px; height: 72px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 #E7E4DD; opacity: var(--scp); }
.mh-l-face .f-dock { left: 0; top: 572px; width: 320px; height: 68px; background: rgba(255, 255, 255, .96); box-shadow: 0 -1px 0 #E7E4DD, 0 -14px 24px -18px rgba(21, 23, 26, .3); }
.mh-l-face .f-cta { left: 16px; top: 584px; width: 228px; height: 44px; border-radius: 22px; background: var(--enji); box-shadow: 0 10px 18px -10px rgba(121, 50, 63, .75); }
.mh-l-face .f-tel { left: 256px; top: 584px; width: 48px; height: 44px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px #DEDCD6; }
/* 仕上がった瞬間の、光のひとなで */
.mh-l-face::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%);
  transform: translateX(calc(-120% + var(--sheen) * 240%)); opacity: calc(var(--sheen) * (1 - var(--sheen)) * 4); }

/* 2 写真 */
.mh-l-photo { --k: 1; }
.mh-l-photo, .mh-l-text, .mh-l-func { box-shadow: 0 0 0 1px rgba(21, 23, 26, calc(var(--x) * .3)); }
.mh-l-photo i { background: url("img/photo/ind-cafe2-800.jpg") center / cover no-repeat; }
.mh-l-photo .p-hero { left: 0; top: 0; width: 320px; height: 360px; background-position: 30% 50%; transform: scale(calc(1.08 - var(--d) * .08)); transform-origin: 40% 50%; }
.mh-l-photo .p-hero--b { background-size: 420%; background-position: 15% 80%; opacity: var(--ph); transform: scale(calc(1.07 - var(--ph) * .07)); }
.mh-l-photo .p-shade { left: 0; top: 0; width: 320px; height: 360px; background: linear-gradient(180deg, rgba(24, 16, 10, .38) 0%, rgba(24, 16, 10, 0) 26%, rgba(24, 16, 10, 0) 48%, rgba(24, 16, 10, .72) 100%); opacity: calc(1 - var(--x) * .7); }
.mh-l-photo .p-card { top: 504px; width: 132px; height: 80px; border-radius: 10px 10px 0 0; background-size: 300%; }
.mh-l-photo .p-card--1 { left: 16px; background-position: 37% 24%; }
.mh-l-photo .p-card--2 { left: 160px; background-position: 13% 80%; }
.mh-l-photo .p-card--3 { left: 304px; background-position: 4% 2%; }
.mh-l-photo .p-logo { left: 16px; top: 38px; width: 22px; height: 22px; border-radius: 50%; background: var(--enji); box-shadow: 0 0 0 2px #fff; }

/* 3 文字 */
.mh-l-text { --k: 2; background: rgba(255, 255, 255, calc(var(--x) * .5)); color: #15171A; font-family: var(--font-jp); letter-spacing: .02em; }
.mh-l-text p, .mh-l-text span { white-space: nowrap; line-height: 1.3; }
.mh-l-text .on-photo { color: color-mix(in srgb, #15171A calc(var(--inkp) * 100%), #fff); }
.mh-l-text .t-kicker { left: 16px; top: 234px; font-size: 9px; font-weight: 500; letter-spacing: .16em; color: color-mix(in srgb, #15171A calc(var(--x) * 100%), #fff); opacity: .9; }
.mh-l-text .t-h { left: 16px; top: 254px; font: 600 25px/1.38 "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; letter-spacing: .03em; color: color-mix(in srgb, #15171A calc(var(--x) * 100%), #fff); }
.mh-l-text .t-open { left: 26px; top: 381px; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: #2F6B3F; }
.mh-l-text .t-open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3E8A52; }
.mh-l-text .t-hours { left: 138px; top: 381px; font-size: 10px; color: #4E535A; }
.mh-l-text .t-p { left: 16px; top: 412px; width: 288px; font-size: 10.5px; line-height: 1.85; color: #4E535A; white-space: normal; }
.mh-l-text .t-sec { left: 16px; display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; }
.mh-l-text .t-sec b { font: 500 8.5px/1 var(--font-mono); letter-spacing: .16em; color: var(--enji); }
.mh-l-text .t-more { right: 16px; top: 477px; font-size: 9.5px; color: #4E535A; }
.mh-l-text .t-c { top: 592px; font-size: 11px; font-weight: 700; }
.mh-l-text .t-cs { top: 609px; font-size: 8.5px; color: #4E535A; }
.mh-l-text .t-rows { left: 16px; top: 684px; width: 288px; }
.mh-l-text .t-row { position: relative; display: flex; gap: 10px; align-items: center; height: 44px; margin: 0; overflow: hidden; font-size: 10.5px; font-weight: 500; border-bottom: 1px solid #E7E4DD; }
.mh-l-text .t-row b { flex: none; padding: 2px 7px; border-radius: 3px; background: #F4E9EA; color: var(--enji); font-size: 8.5px; font-weight: 700; }
.mh-l-text .t-row::after { content: "›"; margin-left: auto; color: #B9B5AC; font-size: 14px; }
.mh-l-text .t-row--new { height: calc(var(--g) * 44px); border-bottom-width: calc(var(--g) * 1px); opacity: var(--g); background: linear-gradient(90deg, rgba(244, 233, 234, calc(1 - var(--ph))), rgba(244, 233, 234, 0) 70%); }
.mh-l-text .t-row--new b { background: var(--enji); color: #fff; }
.mh-l-text .t-addr { left: 16px; top: 1016px; font-size: 9.5px; color: #4E535A; }
.mh-l-text .t-copy { left: 0; top: 1053px; width: 320px; text-align: center; font: 500 8px/1 var(--font-mono); letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.mh-l-text .t-name { left: 46px; top: 41px; font-size: 12px; font-weight: 700; }
.mh-l-text .t-sample { left: 120px; top: 40px; padding: 2px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 8.5px; opacity: .8; }
.mh-l-text .t-burger { right: 16px; top: 43px; width: 20px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.mh-l-text .t-cta { left: 16px; top: 584px; width: 228px; height: 44px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.mh-l-text .t-tel { left: 256px; top: 584px; width: 48px; height: 44px; display: grid; place-items: center; }
.mh-l-text .t-tel svg { width: 16px; height: 16px; fill: none; stroke: #15171A; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 4 仕組み（押すと動くところ） */
.mh-l-func { --k: 3; background: rgba(121, 50, 63, calc(var(--x) * .035)); }
.mh-l-func > * { position: absolute; }
.mh-ring { left: 12px; top: 580px; width: 236px; height: 52px; border-radius: 26px; border: 1.5px dashed var(--enji); opacity: var(--x); }
.mh-ripple { left: 130px; top: 606px; width: 0; height: 0; }
.mh-ripple::after { content: ""; position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .55);
  transform: scale(var(--tap)); opacity: calc((1 - var(--tap)) * min(1, var(--tap) * 8)); }
.mh-dimmer { inset: 0; background: rgba(21, 23, 26, .34); opacity: var(--sh); }
.mh-sheet { left: 0; top: 356px; width: 320px; height: 284px; border-radius: 22px 22px 0 0; background: #fff; color: #15171A; font-family: var(--font-jp); isolation: isolate;
  box-shadow: 0 -18px 40px -18px rgba(21, 23, 26, .5);
  transform: translateY(calc((1 - var(--sh)) * 290px)); }
.mh-sheet::before { content: ""; position: absolute; left: 50%; top: 8px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #DEDCD6; }
.mh-sheet p { position: absolute; margin: 0; left: 20px; top: 26px; font-size: 14px; font-weight: 700; }
.mh-sheet p small { margin-left: 8px; font-size: 9.5px; font-weight: 400; color: #4E535A; }
.mh-sheet .s-form { position: absolute; inset: 0; opacity: calc(1 - var(--sent)); }
.mh-sheet .s-lab { position: absolute; left: 20px; font: 500 8.5px/1 var(--font-mono); letter-spacing: .14em; color: #8A8780; }
.mh-sheet .s-chip { position: absolute; width: 86px; height: 34px; display: grid; place-items: center; border: 1px solid #DEDCD6; border-radius: 9px; font-size: 11px; font-weight: 500; }
.mh-sheet .s-chip::before { content: ""; position: absolute; inset: -1px; border-radius: 9px; background: var(--enji); opacity: 0; z-index: -1; }
.mh-sheet .s-chip.is-a { color: color-mix(in srgb, #fff calc(var(--p1) * 100%), #15171A); }
.mh-sheet .s-chip.is-a::before { opacity: var(--p1); }
.mh-sheet .s-chip.is-b { color: color-mix(in srgb, #fff calc(var(--p2) * 100%), #15171A); }
.mh-sheet .s-chip.is-b::before { opacity: var(--p2); }
.mh-sheet .s-send { position: absolute; left: 20px; top: 200px; width: 280px; height: 46px; display: grid; place-items: center; border-radius: 23px; background: #15171A; color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; opacity: calc(.3 + var(--p2) * .7); }
.mh-sheet .s-note { position: absolute; left: 0; right: 0; top: 256px; text-align: center; font-size: 9px; color: #4E535A; }
.mh-sheet .s-done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; opacity: var(--sent); transform: scale(calc(.9 + var(--sent) * .1)); font-size: 14px; font-weight: 700; }
.mh-sheet .s-done small { font-size: 10px; font-weight: 400; color: #4E535A; }
.mh-sheet .s-done svg { width: 54px; height: 54px; }
.mh-sheet .s-done circle { fill: var(--enji); }
.mh-sheet .s-done path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sent)); }
/* 指（タップの位置） */
.mh-touch { left: 0; top: 0; width: 0; height: 0; opacity: 0; }
.mh-touch::after { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(21, 23, 26, .26); border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transform: scale(var(--press, 1)); }

/* スマホの枠 */
.mh-phone { position: absolute; inset: -11px; border: 11px solid #15171A; border-radius: 42px; opacity: var(--d);
  transform: translateZ(calc(3px + (1 - var(--d)) * 90px)); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(21, 23, 26, .5), 0 60px 80px -36px rgba(21, 23, 26, .55), 0 24px 30px -18px rgba(21, 23, 26, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.mh-phone::before { content: ""; position: absolute; left: 50%; top: 9px; width: 74px; height: 19px; margin-left: -37px; border-radius: 10px; background: #15171A; }
.mh-phone::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 96px; height: 4px; margin-left: -48px; border-radius: 2px; background: rgba(21, 23, 26, .82); }

/* 札（層の名前・相談のことば）：いつもカメラの正面を向く */
.mh-tag, .mh-chip { position: absolute; left: 0; top: 0; margin: 0; transform-style: preserve-3d; white-space: nowrap; font-family: var(--font-jp); }
/* 透明度は中の span に付ける（親に付けると立体が平らにつぶれるため） */
.mh-tag > span, .mh-chip > span { display: block; font-size: calc(var(--fs, 12.5px) / var(--s)); transform: rotateZ(calc(var(--rz) * -1)) rotateY(calc(var(--ry) * -1)) rotateX(calc(var(--rx) * -1)); transform-origin: 0 50%; }
.mh-tag { --k: 0; --on: calc(var(--x) * clamp(0, calc(var(--f) * 5 - var(--k) + 1), 1)); color: var(--ink);
  transform: translate3d(344px, 610px, calc(var(--k) * var(--gap) * var(--x))); }
.mh-tag > span { opacity: var(--on); display: flex; align-items: center; gap: .7em; font-weight: 700; letter-spacing: .06em; }
.mh-tag > span::before { content: ""; width: 2.6em; height: 1px; background: var(--mh-dim); }
.mh-tag b { font: 500 .8em/1 var(--font-mono); color: var(--enji); letter-spacing: .1em; }
.mh-tag--wire { --on: var(--x); }
.mh-tag--note { --fs: 12px; --on: 0; transform: translate3d(var(--nx, 346px), var(--y), 12px); }
.mh-tag--note > span { padding: .55em 1em .55em .8em; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 24px -12px rgba(21, 23, 26, .35); font-weight: 500;
  transform: rotateZ(calc(var(--rz) * -1)) rotateY(calc(var(--ry) * -1)) rotateX(calc(var(--rx) * -1)) translateX(calc((1 - var(--on)) * -10px)); }
.mh-tag--note > span::before { width: .5em; height: .5em; border-radius: 50%; background: var(--enji); }
.mh-chip { --fs: 13px; }
.mh-chip > span { opacity: 0; padding: .62em 1em; border-radius: .9em .9em .9em .2em; background: var(--ink); color: #fff; font-weight: 500; letter-spacing: .03em;
  box-shadow: 0 16px 28px -14px rgba(21, 23, 26, .55); min-height: 2.5em; }
.mh-chip > span::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: #F0A6B0; opacity: var(--caret, 0); }

/* ---------- 文字が読めるように（紙の色でぼかす） ---------- */
.mh-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(90deg, rgba(241, 239, 234, .94) 0%, rgba(241, 239, 234, .7) 30%, rgba(241, 239, 234, 0) 54%),
  linear-gradient(0deg, rgba(241, 239, 234, .9) 0%, rgba(241, 239, 234, 0) 24%),
  linear-gradient(180deg, rgba(241, 239, 234, .8) 0%, rgba(241, 239, 234, 0) 14%); }

/* ---------- 見出し ---------- */
.mh-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(104px, 16vh, 156px); max-width: none; pointer-events: none; }
.mh-eye { margin: 0 0 clamp(14px, 2.2vh, 24px); font-size: .8125rem; letter-spacing: .12em; color: var(--sub); }
.mh-title { margin: 0; font-size: clamp(2.4rem, min(5.2vw, 9vh), 6rem); line-height: 1.14; font-weight: 700; letter-spacing: -.01em; font-feature-settings: "palt"; color: var(--ink); }
.mh-title .ln { display: block; white-space: nowrap; min-height: 1.14em; }
.mh-title .ln:first-child { font-weight: 600; }
.mh-title em { font-style: normal; }
.mh-word { color: var(--enji); }
.mh-lead { margin: clamp(14px, 2.2vh, 22px) 0 0; font-size: clamp(.95rem, 1.15vw, 1.1rem); color: var(--sub); opacity: 0; transition: opacity .8s; }
.mh.is-typed .mh-lead { opacity: 1; }
.mh-title .c { position: relative; opacity: 0; }
.mh-title .c.on { opacity: 1; }
.mh-title em { transition: opacity .3s; }
.mh-caret { position: absolute; left: 100%; top: .14em; width: .06em; height: .9em; margin-left: .04em; background: var(--enji); animation: mhBlink .8s steps(1) infinite; }
@keyframes mhBlink { 50% { opacity: 0; } }
.sp-web { font-family: var(--font-en); font-weight: 700; letter-spacing: -.035em; margin-right: .03em; }

/* ---------- 右上：これは動画ファイルではない、という表示 ---------- */
.mh-live { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--head-h) + 18px); display: flex; align-items: center; gap: 10px; margin: 0;
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .08em; color: var(--sub); }
.mh-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--enji); box-shadow: 0 0 0 4px rgba(121, 50, 63, .14); animation: mhBlink 1.6s steps(1) infinite; }
.mh-live span { font-family: var(--font-jp); letter-spacing: .04em; }
.mh-live b { font-weight: 500; color: var(--ink); min-width: 4.2em; text-align: right; }
.mh.is-paused .mh-live::before { animation: none; background: var(--line-strong); box-shadow: none; }

/* ---------- 下：章立て（押すと、その場面へ） ---------- */
.mh-foot { position: absolute; z-index: 3; left: var(--gutter); bottom: 28px; display: flex; align-items: flex-end; gap: 16px; }
.mh-chapters { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mh-chapters button { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: clamp(76px, 7.4vw, 112px); padding: 6px 0 0; border: 0; background: none; color: var(--ink); font: 500 .8125rem/1 var(--font-jp); cursor: pointer; opacity: .5; transition: opacity .3s; }
.mh-chapters .mono { font-size: 10px; letter-spacing: .1em; margin-bottom: -3px; }
.mh-chapters li.is-on button, .mh-chapters button:hover, .mh-chapters button:focus-visible { opacity: 1; }
.mh-chapters i { position: relative; display: block; width: 100%; height: 2px; background: rgba(21, 23, 26, .16); }
.mh-chapters b { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--pp, 0)); }
.mh-chapters li.is-on b { background: var(--enji); }
.mh-time { margin: 0 0 -3px 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--sub); }
.mh-pause { position: relative; flex: none; width: 30px; height: 30px; margin-bottom: -8px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255, 255, 255, .6); color: var(--ink); cursor: pointer; }
.mh-pause i { position: absolute; left: 50%; top: 50%; width: 8px; height: 10px; transform: translate(-50%, -50%); border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.mh.is-paused .mh-pause i { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 1px; }
.mh-scroll { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: .8125rem; }
.mh-scroll i { position: relative; width: 1px; height: 42px; background: var(--line-strong); overflow: hidden; }
.mh-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--enji); animation: mhDrop 2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes mhDrop { to { top: 100%; } }

/* ヘッダー：映像の上では透明（文字はサイトの墨色のまま） */
body[data-mh] .head:not(.is-scrolled):not(.is-menu .head) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 900px) {
  .mh-stage { --cx: 50%; --cy: 35%; perspective: 1100px; }
  .mh-scrim { background:
    linear-gradient(0deg, rgba(241, 239, 234, .98) 0%, rgba(241, 239, 234, .9) 30%, rgba(241, 239, 234, 0) 52%),
    linear-gradient(180deg, rgba(241, 239, 234, .8) 0%, rgba(241, 239, 234, 0) 12%); }
  .mh-copy { bottom: 150px; }
  .mh-title { font-size: clamp(1.9rem, 8.4vw, 2.9rem); }
  .mh-eye { font-size: .75rem; margin-bottom: 10px; }
  .mh-lead { font-size: .875rem; margin-top: 10px; }
  .mh-live { right: auto; left: var(--gutter); top: calc(var(--head-h) + 6px); font-size: 9.5px; gap: 7px; }
  .mh-live b { display: none; }
  .mh-foot { left: var(--gutter); right: var(--gutter); bottom: 78px; gap: 10px; }
  .mh-chapters { flex: 1; gap: 4px; }
  .mh-chapters li { flex: 1; }
  .mh-chapters button { width: 100%; font-size: .6875rem; }
  .mh-chapters .mono { display: none; }
  .mh-time { display: none; }
  .mh-scroll { display: none; }
  .mh-tag { --fs: 10px; }
  .mh-tag > span { gap: .4em; }
  .mh-tag > span::before { width: .8em; }
  .mh-tag--note { --fs: 10px; --nx: 214px; }
  .mh-chip { --fs: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-caret, .mh-live::before, .mh-scroll i::after { animation: none; }
}

/* ===== 制作実績の欄も、サイトの色（紙・墨・エンジ）に（2026-11-11・この比較用ページだけ） =====
   style.css の暗い面用の変数を、この欄の中だけ明るい色に読み替える */
body[data-mh] .works { --dark-sub: var(--sub); --dark-line: var(--line); --dark-2: var(--surface);
  background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
body[data-mh] .works :is(.wfeat, .wmini__card) { color: var(--ink); }
body[data-mh] .works :is(.sec-num, .wmini__no, .wfeat__go i, .wmini__go i) { color: var(--enji); }
body[data-mh] .works .wfeat__img > img { box-shadow: 0 0 0 1px var(--line), 0 34px 60px -34px rgba(21, 23, 26, .4); }
body[data-mh] .works .wfeat__sp { background: var(--ink); box-shadow: 0 22px 40px -18px rgba(21, 23, 26, .5); }
body[data-mh] .works .wmini__card { box-shadow: 0 16px 30px -24px rgba(21, 23, 26, .35); }
body[data-mh] .works a.wmini__card:hover { border-color: var(--line-strong); }
body[data-mh] .works .wmini__img { background: #ECE9E2; }
body[data-mh] .works .btn--case { background: var(--ink); color: #fff; border-color: var(--ink); }
body[data-mh] .works .btn--case:hover { background: var(--enji-deep); border-color: var(--enji-deep); }

/* ===== 制作実績の入口（.wgate・2026-11-11）：2件を並べず、ひとつの大きな入口に =====
   画面を層のように重ねて「いくつもある」と見せる（ヒーローの分解図と同じ見せ方） */
body[data-mh] .works--gate { padding-block: clamp(40px, 6vw, 88px); }
.wgate { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: clamp(16px, 3vw, 48px);
  min-height: clamp(380px, 38vw, 520px); padding: clamp(28px, 4.4vw, 64px); overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -44px rgba(21, 23, 26, .4);
  transition: border-color .4s, box-shadow .6s var(--ease), transform .6s var(--ease); }
.wgate::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(21, 23, 26, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .045) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.wgate:hover, .wgate:focus-visible { border-color: var(--line-strong); box-shadow: 0 40px 70px -44px rgba(21, 23, 26, .5); transform: translateY(-3px); }
.wgate__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 1.6vw, 20px); }
.wgate__body p { margin: 0; }
.wgate__title { margin: 0; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.wgate__title span { display: block; color: var(--enji); }
.wgate__line { color: var(--sub); font-size: clamp(.9rem, 1.1vw, 1.05rem); }
.wgate__names { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.wgate__names span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.wgate__go { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(6px, 1vw, 14px) !important; padding: 16px 28px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .06em; transition: background .3s; }
.wgate__go i { font-style: normal; transition: transform .4s var(--ease); }
.wgate:hover .wgate__go { background: var(--enji); }
.wgate:hover .wgate__go i { transform: translateX(6px); }
/* 重ねた画面 */
.wgate__stage { position: relative; align-self: stretch; min-height: 300px; perspective: 1600px; perspective-origin: 50% 40%; }
.wgate__stack { position: absolute; left: 50%; top: 56%; width: min(86%, 560px); aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-30deg); transition: transform 1s var(--ease); }
.wgate__shot { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(21, 23, 26, .14), -18px 26px 40px -20px rgba(21, 23, 26, .45);
  transform: translateZ(calc(var(--n) * 70px)); transition: transform 1s var(--ease); }
.wgate__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wgate:hover .wgate__stack, .wgate:focus-visible .wgate__stack { transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-24deg); }
.wgate:hover .wgate__shot, .wgate:focus-visible .wgate__shot { transform: translateZ(calc(var(--n) * 116px)); }
@media (max-width: 760px) {
  .wgate { grid-template-columns: 1fr; padding: 24px 20px 28px; min-height: 0; }
  .wgate__stage { order: -1; min-height: 250px; }
  .wgate__stack { width: 76%; top: 60%; }
  .wgate__shot { transform: translateZ(calc(var(--n) * 54px)); }
  .wgate__go { width: 100%; justify-content: center; }
  .wgate::before { -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
}
@media (prefers-reduced-motion: reduce) { .wgate, .wgate__stack, .wgate__shot { transition: none; } }

/* つかんで回せる（PC） */
@media (hover: hover) { .mh { cursor: grab; } .mh.is-grab { cursor: grabbing; user-select: none; } }

/* ===== 小さい画面・横向きのスマホ（2026-11-13）：映像が見出しに重ならないように =====
   映像そのものの動きは変えず、置く場所と大きさだけを合わせる */
@media (max-width: 900px) {
  .mh-chapters button { white-space: nowrap; }
}
/* たての短いスマホ（iPhone SE など） */
@media (max-width: 900px) and (max-height: 700px) and (orientation: portrait) {
  .mh-stage { --cy: 31%; scale: .8; transform-origin: 50% 24%; }
  .mh-copy { bottom: 132px; }
  .mh-title { font-size: clamp(1.6rem, 7.6vw, 2.3rem); }
  .mh-foot { bottom: 70px; }
}
@media (max-width: 900px) and (max-height: 600px) and (orientation: portrait) {
  .mh-stage { --cy: 28%; scale: .74; transform-origin: 50% 18%; }
  .mh-lead { display: none; }
  .mh-copy { bottom: 118px; }
}
@media (max-width: 350px) {
  .mh-chapters button { font-size: .625rem; letter-spacing: 0; }
  .mh-foot { gap: 6px; }
}
/* 横向きのスマホ：PC と同じ「左に見出し、右に映像」に */
@media (max-height: 480px) and (orientation: landscape) {
  .mh { min-height: 320px; }
  .mh-stage { --cx: 74%; --cy: 56%; scale: .92; transform-origin: 74% 56%; }
  .mh-scrim { background:
    linear-gradient(90deg, rgba(241, 239, 234, .94) 0%, rgba(241, 239, 234, .7) 34%, rgba(241, 239, 234, 0) 58%),
    linear-gradient(180deg, rgba(241, 239, 234, .8) 0%, rgba(241, 239, 234, 0) 18%); }
  .mh-copy { bottom: 76px; }
  .mh-eye { margin-bottom: 6px; font-size: .6875rem; }
  .mh-title { font-size: clamp(1.5rem, 9.5vh, 2.3rem); }
  .mh-lead { display: none; }
  .mh-foot { left: var(--gutter); right: auto; bottom: 16px; width: 48%; }
}

/* ===== iPhone の重さ・揺れ対策（2026-11-15） =====
   スマホの幅では、メモリを多く使う所をやめる（iPhone は画面の約3倍の細かさで描くので、大きな立体の面がこたえる）
   ・方眼の床（3000×3000px を立体で描く）→ 平らな方眼を、背景に描く。大きさは床と同じ（160px・32px × 映像の倍率）
   ・模型の影のぼかし（filter）→ やめる（もともと、ぼかした丸なので見た目はほぼ同じ）
   ・層の中身の will-change → やめる（1枚ごとに、別の大きな下書きを持たせていた） */
@media (max-width: 900px) {
  .mh-floor { display: none; }
  .mh-glow::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(21, 23, 26, .085) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .085) 1px, transparent 1px),
      linear-gradient(rgba(21, 23, 26, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 26, .035) 1px, transparent 1px);
    background-size: calc(160px * var(--s)) calc(160px * var(--s)), calc(160px * var(--s)) calc(160px * var(--s)), calc(32px * var(--s)) calc(32px * var(--s)), calc(32px * var(--s)) calc(32px * var(--s));
    background-position: var(--cx) var(--cy);
    -webkit-mask-image: radial-gradient(85% 60% at var(--cx) var(--cy), #000 0%, rgba(0, 0, 0, .6) 42%, transparent 100%);
            mask-image: radial-gradient(85% 60% at var(--cx) var(--cy), #000 0%, rgba(0, 0, 0, .6) 42%, transparent 100%); }
  .mh-shadow { filter: none; }
  .mh-layer .in { will-change: auto; }
}

/* 「動きを止める」を押したら、下へうながす線の動きも止める（2026-11-15） */
.mh.is-paused .mh-scroll i::after { animation-play-state: paused; }
