/* scenes.css — 舞台（キャンバス）の中身。
   横長 1280×720 と 縦長 420×747 の2つの基準キャンバスを持ち、
   [data-mode] で組み直す。拡縮は player.js が transform: scale() で行う。

   動きの仕組み
   ────────────
   すべての動く要素は data-anim="名前" と style="--d:開始秒" を持つ。
   場面の根に --t（その場面の現在秒）が入り、
   animation-delay: calc((--d - --t) * 1s) で位置が決まる。
   シークや章ジャンプのときは player.js が場面を貼り直して
   アニメーションを開始し直すので、飛んだ先の絵が正しく出る。 */

/* ═══════════ 1. 共通 ═══════════════════════════════════ */

.canvas {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  font-size: 16px;
  line-height: 1.6;
}

.scene {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
}

.scene.is-active { visibility: visible; opacity: 1; }

/* ── 背景 ── */
.bg { position: absolute; inset: 0; z-index: 0; }

.bg-ink {
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(14, 125, 115, .30), transparent 62%),
    radial-gradient(700px 460px at 92% 105%, rgba(201, 162, 92, .14), transparent 60%),
    linear-gradient(160deg, #0d1a16 0%, #081210 60%, #060d0b 100%);
}

.bg-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  /* パスは css/ からの相対。HTML の style で渡すと css/ 基準で解決されて迷うのでここに置く */
  background-image: url("../assets/beauty-2.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(.6) brightness(.5);
}

.bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 11, .72), rgba(6, 13, 11, .92));
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}

.aurora-a { width: 520px; height: 520px; left: -120px; top: -180px; background: rgba(23, 162, 119, .5); }
.aurora-b { width: 420px; height: 420px; right: -100px; bottom: -160px; background: rgba(201, 162, 92, .28); }

/* ── 再現図であることの表示 ── */
.mock-tag {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(201, 162, 92, .7);
  border-radius: 999px;
  background: rgba(11, 21, 18, .82);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .14em;
  white-space: nowrap;
}

/* ── ブラウザー／管理画面の枠 ── */
.mock-bar,
.browser-bar,
.admin-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: #16231f;
  border-bottom: 1px solid rgba(246, 241, 231, .09);
  font-size: 12px;
  color: #93a49d;
}

.mock-bar i,
.browser-bar i,
.admin-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(246, 241, 231, .2);
}

.mock-bar b,
.browser-bar b,
.admin-bar b { margin-left: 8px; font-weight: 500; letter-spacing: .04em; }

.mock,
.browser,
.admin,
.after-edit,
.after-site {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0f1a17;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .95), 0 0 0 1px rgba(246, 241, 231, .1);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--emerald);
  vertical-align: -.16em;
  animation: blink 1.05s steps(2, start) infinite;
}

/* ═══════════ 2. アニメーション ═══════════════════════════ */

[data-anim] {
  animation-duration: var(--dur, .7s);
  animation-delay: calc((var(--d, 0) - var(--t, 0)) * 1s);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.22, .9, .24, 1);
  animation-play-state: paused;
}

.shell.is-playing .scene.is-active [data-anim] { animation-play-state: running; }

[data-anim="rise"]     { animation-name: rise; }
[data-anim="riseUp"]   { animation-name: riseUp; }
[data-anim="fade"]     { animation-name: fadeIn; }
[data-anim="fadeOut"]  { animation-name: fadeOut; }
[data-anim="pop"]      { animation-name: pop; }
[data-anim="wipe"]     { animation-name: wipe; }
[data-anim="slideIn"]  { animation-name: slideIn; }
[data-anim="exitUp"]   { animation-name: exitUp; }
[data-anim="exitFade"] { animation-name: exitFade; }
[data-anim="exitPop"]  { animation-name: exitPop; }
[data-anim="typeIn"]   { animation-name: typeIn; animation-timing-function: steps(16, end); }
[data-anim="ring"]     { animation-name: ring; animation-duration: var(--dur, .9s); }
[data-anim="railOn"]   { animation-name: railOn; }
[data-anim="press"]    { animation-name: press; }
[data-anim="track"]    { animation-name: track; animation-timing-function: cubic-bezier(.65, 0, .2, 1); }
[data-anim="pan"]      { animation-name: pan; animation-timing-function: linear; }
[data-anim="glideA"]   { animation-name: glideA; }
[data-anim="glideB"]   { animation-name: glideB; }

@keyframes rise     { from { opacity: 0; transform: translateY(34px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes riseUp   { from { opacity: 0; transform: translateY(56px); }            to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; }                                          to { opacity: 1; } }
@keyframes fadeOut  { from { opacity: 1; }                                          to { opacity: 0; } }
@keyframes pop      { from { opacity: 0; transform: translateY(14px) scale(.9); }   to { opacity: 1; transform: none; } }
@keyframes wipe     { from { opacity: 0; clip-path: inset(0 100% 0 0); }            to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(46px); }             to { opacity: 1; transform: none; } }
@keyframes exitUp   { from { opacity: 1; transform: none; }  to { opacity: 0; transform: translateY(-46px) scale(.96); } }
@keyframes exitFade { from { opacity: 1; transform: none; }  to { opacity: 0; transform: translateY(-12px); } }
@keyframes exitPop  { from { opacity: 1; transform: none; }  to { opacity: 0; transform: scale(1.06); } }
@keyframes typeIn   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink    { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes ring {
  0%   { opacity: 0; transform: scale(.55); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes railOn {
  from { opacity: .35; }
  to   { opacity: 1; }
}

@keyframes press {
  0%   { transform: none; filter: brightness(1); }
  38%  { transform: scale(.93); filter: brightness(1.45); }
  100% { transform: none; filter: brightness(1); }
}

/* 料金 → よくある質問 → お問い合わせ（8.15秒のうち 0 / 2.95 / 5.60 で送る） */
@keyframes track {
  0%, 33%    { transform: translateY(0); }
  38%, 66%   { transform: translateY(calc(-1 * var(--step))); }
  71%, 100%  { transform: translateY(calc(-2 * var(--step))); }
}

@keyframes pan {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--panTo, -34%)); }
}

/* ポインターの移動（場面3） */
@keyframes glideA {
  0%   { opacity: 0; transform: translate(150px, 126px); }
  12%  { opacity: 1; }
  82%  { opacity: 1; transform: translate(0, 0); }
  92%  { opacity: 1; transform: translate(0, 0) scale(.78); }
  100% { opacity: 0; transform: translate(0, 0) scale(1); }
}

@keyframes glideB {
  0%   { opacity: 0; transform: translate(-130px, -104px); }
  14%  { opacity: 1; }
  80%  { opacity: 1; transform: translate(0, 0); }
  91%  { opacity: 1; transform: translate(0, 0) scale(.78); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* ═══════════ 3. 場面1 業種の実例 ═══════════════════════ */

.hook-wrap {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 34px 48px;
}

.hook-kicker {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .1em;
  color: #e6ddcb;
}

.hook-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 26px;
}

.pcard {
  width: 236px;
  margin: 0;
  text-align: center;
}

.pcard-shot {
  display: block;
  height: 296px;
  overflow: hidden;
  border-radius: 10px;
  background: #0a1310;
  box-shadow: 0 26px 52px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(246, 241, 231, .12);
}

.pcard-lead .pcard-shot {
  height: 344px;
  box-shadow: 0 32px 60px -20px rgba(0, 0, 0, .95), 0 0 0 2px rgba(23, 162, 119, .55);
}

.pcard img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.pcard figcaption { margin-top: 12px; line-height: 1.45; }
.pcard figcaption b { display: block; font-size: 16px; letter-spacing: .06em; }
.pcard figcaption small { display: block; font-size: 11px; color: #8fa79c; letter-spacing: .04em; }
.pcard-lead figcaption b { color: #8fe3c1; }

.lockup {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: .1em;
}

.lockup span {
  margin-left: .55em;
  padding: 4px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .24em;
  vertical-align: 6px;
}

/* ═══════════ 4. 場面2 止まっている所 ═══════════════════ */

.stuck-stack { position: absolute; inset: 0; z-index: 1; }

.stuck-blank,
.stuck-gallery {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 60px;
}

.mock-blank { width: 620px; }

.mock-page { padding: 36px 34px 46px; background: #f6f4ee; color: #2a3531; }

.blank-title { margin: 0 0 26px; font-size: 26px; color: #9aa39e; }

.blank-line {
  height: 11px;
  margin: 0 0 12px;
  border-radius: 3px;
  background: #e4e1d8;
}

.blank-line.short { width: 46%; }

.stuck-think {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .08em;
  color: #d7cfbe;
  text-align: center;
}

.gallery-label {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .09em;
  color: #e6ddcb;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 190px);
  gap: 14px;
  justify-content: center;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 136px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(246, 241, 231, .14);
}

.gallery-grid img:nth-child(5) { grid-column: 2; }

/* ═══════════ 5. 場面3 選んで挿入 ═══════════════════════ */

.admin {
  position: absolute;
  z-index: 1;
  left: 96px;
  right: 96px;
  top: 56px;
  height: 556px;
}

.admin-body { position: relative; height: calc(100% - 34px); background: #eef0ea; }

.ins-page { position: absolute; inset: 0; padding: 26px 40px; color: #26322e; }

.ins-title { margin: 0 0 16px; font-family: var(--serif); font-size: 25px; color: #1d2b26; }

.ins-block {
  height: 58px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #dfe3da;
}

.ins-hero { height: 196px; overflow: hidden; background: #223b34; }
.ins-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.ins-text { height: 58px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 18px; }
.ins-text i { display: block; height: 9px; border-radius: 3px; background: #cbd2c8; }
.ins-text i:last-child { width: 58%; }

.ins-cols { display: flex; gap: 12px; background: none; height: 110px; }
.ins-cols i { flex: 1; border-radius: 6px; background: #dfe3da; }

.ins-toast {
  position: absolute;
  left: 40px;
  bottom: 22px;
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: #17a277;
  color: #04120d;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 28px -12px rgba(23, 162, 119, .9);
}

.popup {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 760px;
  margin-left: -380px;
  padding: 26px 30px 30px;
  border-radius: 12px;
  background: #fbfaf6;
  color: #26322e;
  box-shadow: 0 34px 70px -20px rgba(0, 0, 0, .55);
}

.popup-head { margin: 0 0 16px; font-size: 19px; font-weight: 700; color: #1d2b26; }

.popup-fields { display: flex; gap: 16px; margin-bottom: 20px; }

.popup-fields label {
  flex: 1;
  font-size: 11px;
  color: #7a857f;
  letter-spacing: .06em;
}

.popup-fields i {
  display: block;
  margin-top: 5px;
  padding: 9px 12px;
  border: 1px solid #d8d9d1;
  border-radius: 6px;
  background: #fff;
  color: #26322e;
  font-size: 14px;
  font-style: normal;
}

/* 3択と一覧を同じマスに重ねる。切り替わってもダイアログの高さが動かない */
.popup-swap { display: grid; }
.popup-swap > * { grid-area: 1 / 1; align-self: start; }

.popup-choices { display: flex; gap: 14px; }

.popup-choices span {
  flex: 1;
  padding: 26px 10px;
  border: 1px solid #dcded5;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-size: 14px;
  color: #3a4742;
}

.popup-choices .is-target { border-color: #17a277; box-shadow: 0 0 0 2px rgba(23, 162, 119, .3); color: #0d6d50; font-weight: 700; }

.pick-chips { display: flex; gap: 7px; margin: 0 0 12px; }

.pick-chips i {
  padding: 5px 11px;
  border: 1px solid #dcded5;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  color: #6d7873;
}

.pick-chips .on { border-color: #17a277; background: #e6f5ef; color: #0d6d50; font-weight: 700; }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }

.pick-grid span {
  position: relative;
  display: block;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #e0e2da;
  background: #fff;
}

.pick-grid img { display: block; width: 100%; height: 92px; object-fit: cover; object-position: top; }

.pick-target { box-shadow: 0 0 0 2px rgba(23, 162, 119, .55); }

.pick-ring,
.ep-pick i {
  position: absolute;
  inset: -6px;
  border: 2px solid #17a277;
  border-radius: 10px;
  pointer-events: none;
}

.cursor {
  position: absolute;
  z-index: 9;
  width: 17px;
  height: 24px;
  background: #f6f1e7;
  clip-path: polygon(0 0, 0 74%, 27% 57%, 45% 100%, 66% 89%, 48% 48%, 100% 44%);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
}

/* 位置は tools/ で実測して合わせてある（矢印の先端が対象の中心に来る） */
.cur-a { left: 593px; top: 210px; }
.cur-b { left: 380px; top: 255px; }

.fineprint {
  position: absolute;
  z-index: 2;
  left: 96px;
  right: 96px;
  bottom: 26px;
  margin: 0;
  font-size: 13px;
  color: #93a49d;
  letter-spacing: .03em;
}

/* ═══════════ 6. 場面4 写真と文章を変える ═══════════════ */

.edit-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  gap: 24px;
  align-items: stretch;
  padding: 48px 60px 52px;
}

.browser { flex: 1 1 auto; display: flex; flex-direction: column; }

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  background: #12232b;
  overflow: hidden;
}

.hero-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 58%; }

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 46%);
          mask-image: linear-gradient(90deg, transparent 2%, #000 46%);
}

/* 見出しと説明文は差し替え前後を重ねる（絶対配置）ので、親に幅を明示しないと
   フレックス項目が「あなたらしさ、輝く。」の幅まで縮んでしまう */
.hero-copy { position: relative; z-index: 2; flex: 0 0 56%; width: 56%; padding: 0 34px; }

.hero-sup { margin: 0 0 8px; font-size: 15px; letter-spacing: .1em; color: #e8e3d7; }

.hero-title {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: .01em;
  min-height: 1.1em;
}

.hero-title .t-a,
.hero-title .t-b { position: absolute; left: 0; top: 0; white-space: nowrap; }

.hero-sub {
  position: relative;
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #c9cfcd;
  min-height: 3.5em;
}

.hero-sub .t-a,
.hero-sub .t-b { position: absolute; left: 0; top: 0; }

.browser-note {
  margin: 0;
  padding: 8px 14px;
  background: #16231f;
  border-top: 1px solid rgba(246, 241, 231, .09);
  font-size: 11px;
  color: #8fa79c;
  letter-spacing: .03em;
}

.editpanel {
  flex: 0 0 268px;
  padding: 20px 20px 22px;
  border-radius: 12px;
  background: #131f1c;
  box-shadow: 0 0 0 1px rgba(246, 241, 231, .1);
}

.ep-head {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(246, 241, 231, .12);
  font-size: 13px;
  letter-spacing: .18em;
  color: #9fb3aa;
}

.ep-label { margin: 0 0 7px; font-size: 11px; letter-spacing: .1em; color: #7f948b; }

.ep-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 18px; }

.ep-swatches span { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.ep-swatches img { display: block; width: 100%; height: 42px; object-fit: cover; }

/* 入力欄も、差し替え前の値と後の値を同じ位置に重ねる */
.ep-field {
  position: relative;
  height: 2.6em;
  margin: 0 0 18px;
  border: 1px solid rgba(246, 241, 231, .18);
  border-radius: 6px;
  background: rgba(246, 241, 231, .05);
  font-size: 14px;
  overflow: hidden;
}

.ep-field .t-a,
.ep-field .t-b {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 8px;
  white-space: nowrap;
}

.ep-field-multi { height: 4.2em; font-size: 12px; line-height: 1.6; color: #c6cfca; }
.ep-field-multi .t-a,
.ep-field-multi .t-b { white-space: normal; }

.ep-done {
  margin: 0;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(23, 162, 119, .18);
  color: #8fe3c1;
  font-size: 12px;
  text-align: center;
}

/* ═══════════ 7. 場面5 料金・FAQ・問い合わせ ════════════ */

.sect-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 44px 70px;
}

.rail { flex: 0 0 176px; margin: 0; padding: 0; list-style: none; counter-reset: rail; }

.rail li {
  counter-increment: rail;
  position: relative;
  padding: 0 0 30px 44px;
  font-size: 16px;
  letter-spacing: .06em;
  color: #e6ddcb;
}

.rail li::before {
  content: counter(rail);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  background: rgba(23, 162, 119, .2);
  color: #8fe3c1;
  font-size: 13px;
}

.rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  width: 1px;
  height: 24px;
  background: rgba(246, 241, 231, .2);
}

.browser-tall { flex: 1 1 auto; display: flex; flex-direction: column; align-self: stretch; margin: 10px 0; }

.sect-view { flex: 1 1 auto; min-height: 0; overflow: hidden; background: #f6f4ee; }

.sect-track { --step: 100%; height: 300%; }

.sect-card {
  height: 33.3333%;
  padding: 26px 34px;
  color: #2a3531;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sect-h {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 24px;
  color: #1d2b26;
  letter-spacing: .06em;
}

.sect-lead { margin: -8px 0 18px; font-size: 13px; color: #5d6a65; letter-spacing: .02em; }

.pricelist,
.faqlist { margin: 0; padding: 0; list-style: none; }

.pricelist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 2px;
  border-bottom: 1px solid #e2e0d6;
  font-size: 16px;
}

.pricelist span { font-family: var(--serif); font-size: 19px; color: #0d6d50; }

.faqlist li {
  padding: 11px 2px 11px 26px;
  border-bottom: 1px solid #e2e0d6;
  position: relative;
  font-size: 15px;
}

.faqlist li::before { content: "Q"; position: absolute; left: 2px; top: 11px; color: #0d6d50; font-weight: 700; font-size: 13px; }
.faqlist li b { font-weight: 600; }
.faqlist li span { display: block; margin-top: 7px; font-size: 13px; color: #5d6a65; line-height: 1.7; }

.formmock { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }

.formmock label { font-size: 11px; color: #7a857f; letter-spacing: .06em; }
.formmock .wide { grid-column: 1 / -1; }

.formmock i {
  display: block;
  margin-top: 5px;
  padding: 9px 12px;
  border: 1px solid #d8d9d1;
  border-radius: 6px;
  background: #fff;
  color: #26322e;
  font-size: 13px;
  font-style: normal;
}

.formmock .submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 2px 0 0;
  padding: 10px 30px;
  border-radius: 6px;
  background: #17a277;
  color: #04120d;
  font-size: 14px;
  font-weight: 700;
}

/* ═══════════ 8. 場面6 公開後も直せる ═══════════════════ */

.after-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 22px;
  padding: 44px 64px 40px;
}

.after-edit { display: flex; flex-direction: column; }

.after-body { position: relative; flex: 1 1 auto; padding: 26px 28px; background: #f6f4ee; color: #2a3531; }

.after-line { position: relative; margin: 0 0 14px; font-size: 19px; }
.after-line.dim { color: #7a857f; font-size: 16px; }

.after-line .t-a,
.after-line .t-b { position: absolute; left: 5.4em; top: 0; white-space: nowrap; }

.after-line .caret { vertical-align: -.16em; }

.after-filler { margin: 20px 0 0; }
.after-filler i { display: block; height: 9px; margin-bottom: 11px; border-radius: 3px; background: #e4e1d8; }
.after-filler i:last-child { width: 52%; }

.update-btn {
  display: inline-block;
  margin: 14px 0 0;
  padding: 10px 28px;
  border-radius: 6px;
  background: #17a277;
  color: #04120d;
  font-size: 14px;
  font-weight: 700;
}

.after-chip {
  position: absolute;
  left: 28px;
  bottom: 20px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(23, 162, 119, .16);
  color: #0d6d50;
  font-size: 12px;
  font-weight: 700;
}

.after-site { display: flex; flex-direction: column; }

.after-shot { flex: 1 1 auto; min-height: 0; overflow: hidden; background: #fff; }
.after-shot img { display: block; width: 100%; }

.after-real {
  margin: 0;
  padding: 8px 14px;
  background: #16231f;
  border-top: 1px solid rgba(246, 241, 231, .09);
  font-size: 11px;
  color: #8fa79c;
}

.support { grid-column: 1 / -1; display: flex; gap: 16px; }

.sup-card {
  flex: 1;
  margin: 0;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid rgba(246, 241, 231, .14);
  background: rgba(246, 241, 231, .05);
}

.sup-card b { display: block; font-size: 15px; letter-spacing: .04em; }
.sup-card small { display: block; margin-top: 3px; font-size: 12px; color: #93a49d; }

/* ═══════════ 9. 場面7 料金と無料版 ════════════════════ */

.price-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-content: center;
  gap: 26px 30px;
  padding: 52px 80px 44px;
}

.plan {
  padding: 26px 30px 28px;
  border-radius: 14px;
  border: 1px solid rgba(246, 241, 231, .14);
  background: rgba(246, 241, 231, .05);
}

.plan-premium {
  border-color: rgba(201, 162, 92, .55);
  background: linear-gradient(150deg, rgba(23, 162, 119, .16), rgba(246, 241, 231, .04));
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .9);
}

.plan-badge { margin: 0 0 14px; font-size: 15px; letter-spacing: .12em; color: var(--gold); }
.plan-free .plan-badge { color: #9fb3aa; }

.plan-price { margin: 0; font-family: var(--serif); line-height: 1; }
.plan-price b { font-size: 62px; letter-spacing: .01em; }
.plan-price em { font-size: 19px; font-style: normal; letter-spacing: .06em; }
.plan-price em:first-child { margin-right: .35em; }
.plan-price em:last-child { margin-left: .25em; }
.plan-free .plan-price b { font-size: 46px; color: #cfd6d2; }

.plan-cycle { margin: 14px 0 0; font-size: 15px; color: #e6ddcb; letter-spacing: .04em; }

.plan-list { margin: 18px 0 0; padding: 0; list-style: none; }

.plan-list li {
  position: relative;
  padding: 0 0 9px 22px;
  font-size: 14px;
  color: #d6ded9;
}

.plan-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.plan-free .plan-list li::before { background: #6c7d76; }

.price-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 15px;
  color: #e6ddcb;
  letter-spacing: .03em;
}

.price-src { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #8fa79c; }

/* ═══════════ 10. 場面8 サイト例を見る ═════════════════ */

.cta-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 60px;
  text-align: center;
}

.cta-row { display: flex; gap: 14px; }

.cta-row img {
  width: 152px;
  height: 108px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(246, 241, 231, .14);
}

/* 幅が狭いときは読点で折り返す（「一ページ／から。」で切らない） */
.cta-head span { display: inline-block; }

.cta-head {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: .07em;
}

.cta-main {
  padding: 17px 44px;
  border-radius: 999px;
  background: var(--emerald);
  color: #04120d;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 20px 44px -16px rgba(23, 162, 119, .9);
}

.scene.is-active .cta-main:hover { background: #1cb686; }

.cta-sub { color: #b9c6c0; font-size: 14px; letter-spacing: .04em; }

.lockup-sm { font-size: 22px; opacity: .9; }
.lockup-sm span { font-size: 10px; padding: 3px 10px; vertical-align: 4px; }

/* 再生が終わったらCTAを残したまま少し強める */
.shell.is-ended .sc-cta .cta-main { animation: none; box-shadow: 0 0 0 4px rgba(23, 162, 119, .22), 0 20px 44px -16px rgba(23, 162, 119, .9); }

/* ═══════════ 11. 縦長キャンバス（420×747） ════════════ */

.stage[data-mode="tall"] .canvas { font-size: 15px; }

.stage[data-mode="tall"] .mock-tag { font-size: 9px; padding: 3px 7px; top: 7px; right: 7px; }

.stage[data-mode="tall"] .mock-bar,
.stage[data-mode="tall"] .browser-bar,
.stage[data-mode="tall"] .admin-bar { height: 26px; padding: 0 10px; font-size: 10px; }

/* 1 */
.stage[data-mode="tall"] .hook-wrap { padding: 26px 20px; gap: 18px; }
.stage[data-mode="tall"] .hook-kicker { font-size: 19px; text-align: center; }
.stage[data-mode="tall"] .hook-row { gap: 9px; }
.stage[data-mode="tall"] .pcard { width: 116px; }
.stage[data-mode="tall"] .pcard-shot { height: 208px; }
.stage[data-mode="tall"] .pcard-lead .pcard-shot { height: 248px; }
.stage[data-mode="tall"] .pcard figcaption b { font-size: 12px; }
.stage[data-mode="tall"] .pcard figcaption small { font-size: 9px; }
.stage[data-mode="tall"] .lockup { font-size: 22px; }
.stage[data-mode="tall"] .lockup span { font-size: 9px; padding: 3px 9px; vertical-align: 4px; }

/* 2 */
.stage[data-mode="tall"] .stuck-blank,
.stage[data-mode="tall"] .stuck-gallery { padding: 24px 20px; gap: 14px; }
.stage[data-mode="tall"] .mock-blank { width: 100%; }
.stage[data-mode="tall"] .mock-page { padding: 22px 18px 28px; }
.stage[data-mode="tall"] .blank-title { font-size: 18px; margin-bottom: 18px; }
.stage[data-mode="tall"] .stuck-think { font-size: 17px; }
.stage[data-mode="tall"] .gallery-label { font-size: 16px; text-align: center; }
.stage[data-mode="tall"] .gallery-grid { grid-template-columns: repeat(2, 172px); gap: 10px; }
.stage[data-mode="tall"] .gallery-grid img { height: 110px; }
.stage[data-mode="tall"] .gallery-grid img:nth-child(5) { grid-column: auto; }
.stage[data-mode="tall"] .gallery-grid img:nth-child(7) { grid-column: 1 / -1; width: 172px; justify-self: center; }

/* 3 */
.stage[data-mode="tall"] .admin { left: 16px; right: 16px; top: 78px; height: 500px; }
.stage[data-mode="tall"] .ins-page { padding: 16px 18px; }
.stage[data-mode="tall"] .ins-title { font-size: 18px; margin-bottom: 12px; }
.stage[data-mode="tall"] .ins-hero { height: 140px; }
.stage[data-mode="tall"] .ins-block { height: 44px; }
.stage[data-mode="tall"] .ins-cols { height: 84px; }
.stage[data-mode="tall"] .ins-toast { left: 18px; bottom: 16px; font-size: 12px; padding: 7px 14px; }
.stage[data-mode="tall"] .popup { left: 8px; right: 8px; top: 14px; width: auto; margin-left: 0; padding: 16px 16px 20px; }
.stage[data-mode="tall"] .popup-head { font-size: 15px; margin-bottom: 12px; }
.stage[data-mode="tall"] .popup-fields { flex-direction: column; gap: 9px; margin-bottom: 14px; }
.stage[data-mode="tall"] .popup-fields i { padding: 7px 10px; font-size: 12px; }
.stage[data-mode="tall"] .popup-choices { flex-direction: column; gap: 8px; }
.stage[data-mode="tall"] .popup-choices span { padding: 12px 8px; font-size: 12px; }
.stage[data-mode="tall"] .pick-chips { flex-wrap: wrap; gap: 5px; }
.stage[data-mode="tall"] .pick-chips i { font-size: 9px; padding: 4px 8px; }
.stage[data-mode="tall"] .pick-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stage[data-mode="tall"] .pick-grid img { height: 76px; }
.stage[data-mode="tall"] .pick-grid span:nth-child(n+5) { display: none; }
.stage[data-mode="tall"] .cur-a { left: 186px; top: 322px; }
.stage[data-mode="tall"] .cur-b { left: 265px; top: 273px; }
.stage[data-mode="tall"] .fineprint { left: 18px; right: 18px; bottom: 16px; font-size: 10px; }

/* 4 */
.stage[data-mode="tall"] .edit-wrap { flex-direction: column; padding: 26px 18px 24px; gap: 14px; }
/* 場面5の .browser-tall まで巻き込まないよう、場面4だけに効かせる */
.stage[data-mode="tall"] .sc-edit .browser { flex: 0 0 300px; }
.stage[data-mode="tall"] .hero-photo { width: 100%; }
.stage[data-mode="tall"] .hero-photo img {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 46%);
          mask-image: linear-gradient(180deg, transparent, #000 46%);
  object-position: 62% center;
}
.stage[data-mode="tall"] .hero { align-items: flex-end; }
.stage[data-mode="tall"] .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 28, 34, 0) 34%, rgba(9, 22, 27, .62) 62%, rgba(9, 22, 27, .9) 100%);
}
.stage[data-mode="tall"] .hero-copy { flex: 0 0 100%; width: 100%; padding: 0 18px 18px; }
.stage[data-mode="tall"] .hero-sup { font-size: 11px; }
.stage[data-mode="tall"] .hero-title { font-size: 27px; margin-bottom: 10px; }
.stage[data-mode="tall"] .hero-sub { font-size: 11px; min-height: 3.6em; }
.stage[data-mode="tall"] .browser-note { font-size: 9px; padding: 6px 10px; }
.stage[data-mode="tall"] .editpanel { flex: 1 1 auto; display: flex; flex-direction: column; padding: 13px 14px; }
.stage[data-mode="tall"] .ep-done { margin-top: auto; }
.stage[data-mode="tall"] .ep-head { margin-bottom: 10px; padding-bottom: 7px; font-size: 11px; }
.stage[data-mode="tall"] .ep-label { font-size: 9px; margin-bottom: 5px; }
.stage[data-mode="tall"] .ep-swatches { margin-bottom: 11px; gap: 6px; }
.stage[data-mode="tall"] .ep-swatches img { height: 34px; }
.stage[data-mode="tall"] .ep-field { margin-bottom: 11px; padding: 7px 9px; font-size: 12px; }
.stage[data-mode="tall"] .ep-field-multi { font-size: 10px; }
.stage[data-mode="tall"] .ep-done { font-size: 10px; padding: 7px 9px; }

/* 5 */
.stage[data-mode="tall"] .sect-wrap { flex-direction: column; gap: 14px; padding: 26px 18px 24px; align-items: stretch; }
.stage[data-mode="tall"] .rail { flex: 0 0 auto; display: flex; gap: 10px; }
.stage[data-mode="tall"] .rail li { padding: 0 0 0 30px; font-size: 11px; flex: 1; }
.stage[data-mode="tall"] .rail li::before { width: 22px; height: 22px; font-size: 11px; top: -3px; }
.stage[data-mode="tall"] .rail li:not(:last-child)::after { display: none; }
.stage[data-mode="tall"] .sc-sections .browser-tall { flex: 1 1 auto; margin: 0; }
/* 縦長では中央寄せだと上に白が余るので、実際のページらしく上から積む */
.stage[data-mode="tall"] .sect-card { justify-content: flex-start; padding: 30px 18px 16px; }
.stage[data-mode="tall"] .sect-lead { margin: -6px 0 14px; font-size: 11px; }
.stage[data-mode="tall"] .sect-h { font-size: 18px; margin-bottom: 11px; }
.stage[data-mode="tall"] .pricelist li { font-size: 13px; padding: 8px 2px; }
.stage[data-mode="tall"] .pricelist span { font-size: 15px; }
.stage[data-mode="tall"] .faqlist li { font-size: 12px; padding: 8px 2px 8px 20px; }
.stage[data-mode="tall"] .faqlist li span { font-size: 11px; }
.stage[data-mode="tall"] .faqlist li:last-child { display: none; }
.stage[data-mode="tall"] .formmock { grid-template-columns: 1fr; gap: 8px; }
.stage[data-mode="tall"] .formmock i { padding: 7px 10px; font-size: 11px; }
.stage[data-mode="tall"] .formmock .submit { padding: 8px 22px; font-size: 12px; }

/* 6 */
.stage[data-mode="tall"] .after-wrap { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr auto; padding: 24px 18px 22px; gap: 12px; }
.stage[data-mode="tall"] .after-body { padding: 16px 16px 30px; }
.stage[data-mode="tall"] .after-line { font-size: 14px; margin-bottom: 10px; }
.stage[data-mode="tall"] .after-line.dim { font-size: 12px; }
.stage[data-mode="tall"] .update-btn { margin-top: 8px; padding: 7px 20px; font-size: 12px; }
.stage[data-mode="tall"] .after-chip { left: 16px; bottom: 10px; font-size: 10px; padding: 5px 10px; }
.stage[data-mode="tall"] .after-real { font-size: 9px; padding: 6px 10px; }
.stage[data-mode="tall"] .support { flex-direction: column; gap: 8px; }
.stage[data-mode="tall"] .sup-card { padding: 9px 13px; }
.stage[data-mode="tall"] .sup-card b { font-size: 12px; }
.stage[data-mode="tall"] .sup-card small { font-size: 10px; }

/* 7 */
.stage[data-mode="tall"] .price-wrap { grid-template-columns: 1fr; align-content: center; gap: 12px; padding: 28px 20px; }
.stage[data-mode="tall"] .plan { padding: 16px 18px 18px; }
.stage[data-mode="tall"] .plan-badge { font-size: 12px; margin-bottom: 9px; }
.stage[data-mode="tall"] .plan-price b { font-size: 44px; }
.stage[data-mode="tall"] .plan-price em { font-size: 14px; }
.stage[data-mode="tall"] .plan-free .plan-price b { font-size: 32px; }
.stage[data-mode="tall"] .plan-cycle { font-size: 12px; margin-top: 9px; }
.stage[data-mode="tall"] .plan-list { margin-top: 11px; }
.stage[data-mode="tall"] .plan-list li { font-size: 11px; padding-bottom: 6px; padding-left: 18px; }
.stage[data-mode="tall"] .price-note { font-size: 11px; }
.stage[data-mode="tall"] .price-src { font-size: 10px; }

/* 8 */
.stage[data-mode="tall"] .cta-wrap { padding: 30px 20px; gap: 14px; }
.stage[data-mode="tall"] .cta-row { gap: 8px; }
.stage[data-mode="tall"] .cta-row img { width: 108px; height: 78px; }
.stage[data-mode="tall"] .cta-head { font-size: 22px; }
.stage[data-mode="tall"] .cta-main { font-size: 15px; padding: 14px 24px; }
.stage[data-mode="tall"] .cta-sub { font-size: 11px; }
.stage[data-mode="tall"] .lockup-sm { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { animation-duration: .01ms !important; }
  .caret { animation: none; }
}
