/*
  freehp.jp トップページ v1「夜の看板」
  深い紺〜藍の地に紙白の文字、山吹は一点だけ。ネオン・グロー・パーティクルは使わない。
  このファイルは index.html だけが読む（style.css は他ページ用のため触らない）。
*/

/* ---------- 変数 ---------- */
:root {
  --navy-0: #141F3A;   /* 夜のはじまり（ページ最上部） */
  --navy-1: #0A1122;   /* 夜の中盤 */
  --navy-2: #05060D;   /* 夜がいちばん深いところ（ページ最下部） */
  --bg-color: #0D1526; /* JSが更新する現在の背景色（初期値=中間） */

  --paper: #F5F1E4;
  --paper-dim: rgba(245, 241, 228, .70);
  /* .40だと最も明るい背景(--navy-0)でコントラスト比3.4:1程度でWCAG AA(4.5:1)未達。
     .60で全背景ストップに対して6:1以上を確保する */
  --paper-faint: rgba(245, 241, 228, .60);
  --paper-hair: rgba(245, 241, 228, .16);
  --paper-hair-strong: rgba(245, 241, 228, .30);

  --yamabuki: #F5B517;
  --yamabuki-deep: #D99A00;
  --yamabuki-ink: #241A02;

  --panel: rgba(245, 241, 228, .045);
  --panel-strong: rgba(245, 241, 228, .08);

  /* LIVE PREVIEW内の色の雰囲気（app.jsが参照する変数名。値は元サイトと同一） */
  --preview-warm: #C96F3B;
  --preview-calm: #3E4E3A;
  --preview-fresh: #2E6E8E;
  --preview-fun: #D99A00;
  --preview-moody: #182234;

  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", serif;

  --side: clamp(20px, 7vw, 110px);
  --gap-y: clamp(64px, 12vh, 140px);
  --header-h: 64px;
}

/* ---------- リセット・下地 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* hiddenだと片軸だけ非visibleの場合overflow-yがautoに昇格しbody/htmlがスクロールコンテナ化して
   position:stickyのヘッダーが効かなくなる。clipはスクロールコンテナを作らないため影響しない */
html, body { overflow-x: clip; }

body.page {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yamabuki);
  margin: 0 0 14px;
}

.section-title-lg {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.25;
  color: var(--paper);
  margin: 0 0 8px;
}

.section-title-mid {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.3;
  color: var(--paper);
  margin: 0 0 8px;
}

.section-lead {
  color: var(--paper-dim);
  font-size: 15px;
  margin: 0 0 40px;
}

/* Q0の白背景領域では、旧ダークテーマ用の紙白・山吹を高コントラストの濃色へ置換する。 */
.landing {
  --paper: #121212;
  --paper-dim: rgba(18, 18, 18, .78);
  --paper-faint: rgba(18, 18, 18, .68);
  --paper-hair: rgba(18, 18, 18, .14);
  --paper-hair-strong: rgba(18, 18, 18, .28);
  --yamabuki: #765300;
  --yamabuki-deep: #5c4000;
  --yamabuki-ink: #fff;
  --panel: rgba(18, 18, 18, .035);
  --panel-strong: rgba(18, 18, 18, .07);
}

/* 白背景内でも、この2つは意図したダークUIなので元のパレットを保つ。 */
.landing .mini-browser,
.landing .ztconsole {
  --paper: #F5F1E4;
  --paper-dim: rgba(245, 241, 228, .70);
  --paper-faint: rgba(245, 241, 228, .60);
  --paper-hair: rgba(245, 241, 228, .16);
  --paper-hair-strong: rgba(245, 241, 228, .30);
  --yamabuki: #F5B517;
  --yamabuki-deep: #D99A00;
  --yamabuki-ink: #241A02;
  --panel: rgba(245, 241, 228, .045);
  --panel-strong: rgba(245, 241, 228, .08);
}

.landing #generated-preview { background: #fff; }

/* ---------- 出現アニメーション ---------- */
[data-reveal],
[data-reveal-stagger] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
}
[data-reveal].is-in,
[data-reveal-stagger].is-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  animation: char-rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes char-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(5, 7, 13, .55);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-hair);
}
.site-header-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { text-decoration: none; min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--paper);
  white-space: nowrap;
}
.header-right { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.header-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-dim);
  white-space: nowrap;
}
.header-count-value { color: var(--yamabuki); font-weight: 500; }
.header-count-label { margin-left: 2px; }
.header-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--yamabuki-ink);
  background: var(--yamabuki);
  padding: 8px 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.header-cta:hover { background: var(--yamabuki-deep); }

@media (max-width: 480px) {
  .site-header-inner { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 11px; }
  .header-right { gap: 8px; }
  /* 2026-08-26: header-countが短い数字表示から長文（2026年8月開業。まず1件…）に
     変わり、nowrapのまま表示するとブランド名・申し込むボタンと重なるため、
     狭い画面では非表示にする（フッターに同内容の表記があり情報は欠落しない）。 */
  .header-count { display: none; }
  .header-cta { padding: 7px 12px; font-size: 11px; }
}

/* ---------- ヒーロー ---------- */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--gap-y) var(--side);
  position: relative;
}
.hero-inner { max-width: 980px; }
.hero-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 120px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--paper);
  margin: 0 0 28px;
}
.hero-title .accent {
  position: relative;
  display: inline-block;
}
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .07em;
  background: var(--yamabuki);
  z-index: -1;
}
.hero-lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 0 18px;
}
.hero-price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper-faint);
  letter-spacing: .02em;
  margin: 0;
}
.hero-price-dot { margin: 0 10px; color: var(--yamabuki); }

.hero-scroll-cue {
  position: absolute;
  left: var(--side);
  bottom: clamp(24px, 5vh, 48px);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper-faint);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--paper-hair-strong);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--yamabuki);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
.hero-scroll-word {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
}

/* ---------- ワークスペース（フォーム + LIVE PREVIEW） ---------- */
.workspace { padding: var(--gap-y) var(--side); }
.workspace-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.form-col, .preview-col { min-width: 0; }

/* ---------- 申込フォーム：段階表示 ---------- */
.quick-form { display: flex; flex-direction: column; }

.form-step {
  position: relative;
  padding-left: 44px;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, margin-top .5s ease;
}
.form-step.is-revealed {
  max-height: 2400px;
  opacity: 1;
  margin-top: 40px;
}
.form-step:first-child.is-revealed { margin-top: 0; }
.no-js .form-step { max-height: none; opacity: 1; margin-top: 40px; }
.no-js .form-step:first-child { margin-top: 0; }

.step-index {
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--yamabuki);
}
.step-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  margin: 0 0 12px;
}

.field-giant {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--paper-hair-strong);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 34px);
  padding: 8px 0 14px;
  outline: none;
  transition: border-color .2s ease;
}
.field-giant::placeholder { color: var(--paper-faint); font-weight: 400; }
.field-giant:focus { border-color: var(--yamabuki); }

.group-note { color: var(--paper-faint); font-size: 13px; margin: 0 0 16px; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.choice span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--paper-hair-strong);
  color: var(--paper-dim);
  font-size: 14px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.choice input:checked + span {
  background: var(--yamabuki);
  border-color: var(--yamabuki);
  color: var(--yamabuki-ink);
  font-weight: 500;
}
.choice input:focus-visible + span {
  outline: 2px solid var(--yamabuki);
  outline-offset: 2px;
}

.optional-field { margin-bottom: 22px; }
.optional-field label,
.optional-field .field-label {
  display: block;
  font-size: 13px;
  color: var(--paper-dim);
  margin-bottom: 8px;
}
.optional-field small { color: var(--paper-faint); font-weight: 400; margin-left: 4px; }

input[type="text"], input[type="tel"], input[type="url"], input[type="email"],
textarea, #description, #shop-name, #phone, #address, #reserve-url, #instagram,
#line-official, #menu-text, #catchcopy, #hours {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--paper-hair);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
#shop-name.field-giant { background: transparent; border: none; border-bottom: 2px solid var(--paper-hair-strong); padding: 8px 0 14px; }
textarea { resize: vertical; min-height: 88px; }
input:focus, textarea:focus {
  border-color: var(--yamabuki);
  background: var(--panel-strong);
}
input::placeholder, textarea::placeholder { color: var(--paper-faint); }

.menu-note { color: var(--paper-faint); font-size: 12px; margin: 8px 0 0; }

.form-step-block { margin-bottom: 8px; }

/* details: くわしく入れる／FAQ 共通の見た目 */
details { border-top: 1px solid var(--paper-hair); }
.extra-options { margin: 28px 0 24px; }
.extra-options summary,
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--paper);
}
.extra-options summary small,
.faq-item summary small { color: var(--paper-faint); margin-left: 6px; }
summary::-webkit-details-marker { display: none; }
.extra-options summary::after,
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--mono);
  color: var(--yamabuki);
  font-size: 16px;
  transition: transform .2s ease;
}
details[open] > summary::after { content: "–"; }
.extra-options-body { padding: 8px 0 8px; }

.mood-field legend { font-size: 13px; color: var(--paper-dim); margin: 0 0 10px; padding: 0; }

.file-picker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-button {
  border: 1px solid var(--paper-hair-strong);
  color: var(--paper);
  font-size: 13px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.file-button:hover { border-color: var(--yamabuki); }
/* #photoはsr-onlyで視覚的に隠れているため、フォーカスの可視化は隣接するボタン側で行う */
#photo:focus-visible + .file-picker .file-button {
  outline: 2px solid var(--yamabuki);
  outline-offset: 2px;
}
.file-name { color: var(--paper-faint); font-size: 13px; }
.photo-status { color: var(--paper-faint); font-size: 12px; margin: 10px 0 0; }

.signin-area { margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--paper-hair); }
.signin-step-num { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--yamabuki); margin: 0 0 8px; }
.signin-note { font-size: 13px; color: var(--paper-dim); margin: 0 0 12px; }
.signin-status { font-size: 12px; color: var(--paper-faint); margin: 10px 0 0; }
/* Googleログインの読み込み失敗時だけhome.jsが表示する再読み込みリンク */
.signin-reload {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  color: var(--yamabuki);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.signin-reload:focus-visible { outline: 2px solid var(--yamabuki); outline-offset: 2px; }

/* 未ログインで送信しようとした時、ここへスクロールさせた上で2秒ハイライトする（home.js） */
.signin-area.needs-signin { animation: signin-highlight 2s ease; }
@keyframes signin-highlight {
  0%, 100% { box-shadow: none; background-color: transparent; }
  15%, 70% { box-shadow: 0 0 0 2px var(--yamabuki); background-color: rgba(245, 181, 23, .08); }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 26px;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.primary-action {
  width: 100%;
  justify-content: center;
  background: var(--yamabuki);
  color: var(--yamabuki-ink);
  margin-top: 28px;
}
.primary-action:hover { background: var(--yamabuki-deep); }
.primary-action[aria-busy="true"] { opacity: .7; cursor: progress; }
.primary-action:disabled { opacity: .5; cursor: not-allowed; }
.no-js-notice {
  color: var(--paper-dim);
  font-size: 13px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--paper-hair-strong);
}
.no-js-notice a { color: var(--yamabuki); }
.secondary-action {
  background: transparent;
  border: 1px solid var(--paper-hair-strong);
  color: var(--paper);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 16px;
}
.secondary-action:hover { border-color: var(--yamabuki); }

.stripe-note {
  margin: 20px 0 10px;
  font-size: 12px;
  color: var(--paper-dim);
  text-align: center;
}
.stripe-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stripe-links .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}
@media (min-width: 900px) {
  .stripe-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stripe-links .button {
    width: auto;
    flex: 1 1 200px;
  }
}

.privacy-note { color: var(--paper-faint); font-size: 12px; margin: 14px 0 0; text-align: center; }

.manual-contact-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--paper-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 生成結果パネル ---------- */
.generation-result { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--paper-hair); }
.generation-result h2 { font-family: var(--mincho); font-size: 22px; margin: 0 0 20px; color: var(--paper); }
.generation-panel p { color: var(--paper-dim); font-size: 14px; }
.loading-mark {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--paper-hair-strong);
  border-top-color: var(--yamabuki);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.generated-link-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }
.generated-link { color: var(--yamabuki); word-break: break-all; }
.copy-status { font-size: 12px; color: var(--paper-faint); }
.generated-preview-wrap { margin: 20px 0; }
.generated-preview-label { font-size: 12px; color: var(--paper-faint); margin: 0 0 8px; }
#generated-preview { width: 100%; height: 420px; border: 1px solid var(--paper-hair); background: var(--paper); }
.expiry-notice { font-size: 13px; color: var(--paper-dim); }
.expiry-notice a { color: var(--yamabuki); }
.generation-error p { color: #F2A7A7; }

/* ---------- ztconsole v3「NEURAL BUILD」（生成中のライブ演出。ビジュアルのみ・実データなし） ----------
   構成: ニューラルネット canvas（背景）→ HUD（工程ラベル・リングゲージ・数値）→ agentレーン
         → 文章タイプ + コード流し → ログ → 波形 → 日時/LIVE → ステータスバー
   その上に、工程切替のフラッシュ＋大ラベル、グリッチ、光の掃引を重ねる。
   色は黄土(--zt-ochre)・緑(--zt-green)・赤(--zt-red)にシアン(--zt-cyan)を1色だけ追加。
   中身のDOMはすべて assets/zt-console.js が組み立てる。通常時のサイトには一切影響しない（生成中のみ表示）。 */
.ztconsole {
  --zt-ochre: #C9A227;
  --zt-green: #4ADE80;
  --zt-red: #E2645C;
  --zt-cyan: #4FD1E8;
  --zt-cyan-rgb: 79, 209, 232;
  --zt-ink-rgb: 245, 241, 228;
  --zt-ink: rgba(245, 241, 228, .55);
  --zt-ink-dim: rgba(245, 241, 228, .32);
  --zt-bg: #04060B;
  --zt-lane-label-w: 38px;
  position: relative;
  margin-top: 18px;
  padding: 14px 16px 0;
  background: var(--zt-bg);
  border: 1px solid rgba(var(--zt-cyan-rgb), .28);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(var(--zt-cyan-rgb), .06),
    0 0 40px rgba(var(--zt-cyan-rgb), .08),
    0 18px 50px rgba(0, 0, 0, .5);
  overflow: hidden;
  font-family: var(--mono);
  color: var(--zt-ink);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.ztconsole > * { position: relative; z-index: 1; }

/* ---- 背景レイヤー: ニューラルネット canvas / ドット格子 / 光の掃引 / CRT走査線 ---- */
.zt-net { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.zt-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(var(--zt-ink-rgb), .18) 1px, transparent 1.2px);
  background-size: 12px 12px;
  background-position: 6px 6px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .35) 60%, transparent);
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .35) 60%, transparent);
}
.zt-sweep {
  position: absolute;
  inset: -40% -60%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 44%, rgba(var(--zt-cyan-rgb), .07) 50%, transparent 56%);
  animation: zt-sweep 5.5s linear infinite;
}
@keyframes zt-sweep { from { transform: translateX(-35%); } to { transform: translateX(35%); } }
.zt-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(var(--zt-ink-rgb), .03) 0, transparent 30%, transparent 70%, rgba(0, 0, 0, .4) 100%);
}
/* 工程切替のフラッシュ（一瞬だけ画面全体が光る） */
.zt-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(var(--zt-cyan-rgb), .55), rgba(var(--zt-cyan-rgb), .12) 60%, transparent);
  mix-blend-mode: screen;
}
.zt-flash.is-on { animation: zt-flash .6s ease-out; }
@keyframes zt-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ---- 工程切替バナー（PHASE 02 / 05 COMPOSING 文章を書いています） ---- */
.zt-banner {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(4, 6, 11, .9), rgba(4, 6, 11, .55) 70%);
}
.zt-banner.is-on { animation: zt-banner 1.5s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes zt-banner {
  0% { opacity: 0; transform: scale(1.12); filter: blur(8px); }
  12% { opacity: 1; transform: scale(1); filter: blur(0); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: scale(.985); }
}
.zt-banner-code { font-size: 10px; letter-spacing: .32em; color: var(--zt-cyan); }
.zt-banner-en {
  position: relative;
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 500;
  letter-spacing: .32em;
  padding-left: .32em;
  color: var(--paper);
  text-shadow: 0 0 22px rgba(var(--zt-cyan-rgb), .55);
}
.zt-banner-en::before, .zt-banner-en::after,
.ztconsole.is-glitch .zt-hud-phase-en::before, .ztconsole.is-glitch .zt-hud-phase-en::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding-left: inherit;
  pointer-events: none;
}
.zt-banner-en::before, .ztconsole.is-glitch .zt-hud-phase-en::before {
  color: var(--zt-cyan);
  clip-path: inset(0 0 60% 0);
  animation: zt-glitch-a .5s steps(2) 3;
}
.zt-banner-en::after, .ztconsole.is-glitch .zt-hud-phase-en::after {
  color: var(--zt-red);
  clip-path: inset(55% 0 0 0);
  animation: zt-glitch-b .5s steps(2) 3;
}
@keyframes zt-glitch-a {
  0% { transform: translate(-3px, -1px); opacity: .9; }
  50% { transform: translate(2px, 1px); opacity: .6; }
  100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes zt-glitch-b {
  0% { transform: translate(3px, 1px); opacity: .9; }
  50% { transform: translate(-2px, -1px); opacity: .6; }
  100% { transform: translate(0, 0); opacity: 0; }
}
.zt-banner-ja {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--paper-dim);
  padding: 4px 12px;
  background: rgba(4, 6, 11, .75);
  border: 1px solid rgba(var(--zt-cyan-rgb), .25);
}
/* グリッチ中は全体が一瞬ズレる */
.ztconsole.is-glitch .zt-hud, .ztconsole.is-glitch .zt-mid { animation: zt-jitter .42s steps(3) 1; }
@keyframes zt-jitter {
  0% { transform: translate(1px, 0) skewX(.6deg); }
  40% { transform: translate(-1px, 0) skewX(-.4deg); }
  100% { transform: none; }
}

/* ---- HUD ヘッダー ---- */
.zt-hud {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--zt-ink-rgb), .1);
}
.zt-hud-left { min-width: 0; }
.zt-hud-brand { font-size: 10px; letter-spacing: .14em; color: var(--zt-ink-dim); text-transform: uppercase; white-space: nowrap; }
.zt-hud-brand b { font-weight: 500; color: var(--zt-cyan); margin-left: 4px; }
.zt-hud-dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--zt-cyan);
  box-shadow: 0 0 8px rgba(var(--zt-cyan-rgb), .9);
  animation: ztconsole-blink 1.1s ease-in-out infinite;
}
.zt-hud-phase { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.zt-hud-phase-code { font-size: 11px; color: var(--zt-ochre); letter-spacing: .1em; }
.zt-hud-phase-en {
  position: relative;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.1;
  color: var(--paper);
  text-shadow: 0 0 14px rgba(var(--zt-cyan-rgb), .35);
}
.zt-hud-phase-ja { font-family: var(--sans); font-size: 12px; color: var(--paper-dim); }
.zt-hud-steps { display: flex; gap: 4px; margin-top: 8px; }
.zt-hud-steps i { display: block; width: 26px; height: 3px; background: rgba(var(--zt-ink-rgb), .14); }
.zt-hud-steps i.is-done { background: var(--zt-green); }
.zt-hud-steps i.is-current {
  background: var(--zt-cyan);
  box-shadow: 0 0 8px rgba(var(--zt-cyan-rgb), .9);
  animation: ztconsole-blink 1.1s ease-in-out infinite;
}
.zt-hud-right { display: flex; align-items: center; gap: 14px; flex: none; }
.zt-ring {
  --p: 0;
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--zt-cyan) calc(var(--p) * 1%), rgba(var(--zt-ink-rgb), .1) 0);
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(var(--zt-cyan-rgb), .18);
}
.zt-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--zt-bg); }
.zt-ring-track {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--zt-ink-rgb), .22);
  animation: zt-spin 14s linear infinite;
}
@keyframes zt-spin { to { transform: rotate(360deg); } }
.zt-ring-val { position: relative; font-size: 15px; font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.zt-ring-val i { font-style: normal; font-size: 9px; color: var(--zt-ink-dim); margin-left: 1px; }
.zt-metrics { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 16px; }
.zt-metrics div { display: flex; flex-direction: column; min-width: 52px; }
.zt-metrics dt { font-size: 9px; letter-spacing: .12em; color: var(--zt-ink-dim); text-transform: uppercase; }
.zt-metrics dd { margin: 0; font-size: 13px; line-height: 1.3; color: var(--paper); font-variant-numeric: tabular-nums; }

/* ---- agentレーン（横向きタイムライン。バーが左→右に伸び、実行中の先頭だけ緑） ---- */
.ztconsole-lanes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(var(--zt-ink-rgb), .08);
}
.ztconsole-lane { display: flex; align-items: center; height: 26px; }
.ztconsole-lane-label {
  flex: 0 0 var(--zt-lane-label-w);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--zt-ink-dim);
  text-transform: lowercase;
}
.ztconsole-lane.is-main .ztconsole-lane-label { color: var(--zt-ochre); }
.ztconsole-lane-track {
  position: relative;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(74, 222, 128, .38) 0 3px, transparent 3px 7px) center / 100% 1px no-repeat;
}
.ztconsole-lane.is-idle .ztconsole-lane-track { background-image: repeating-linear-gradient(90deg, rgba(var(--zt-ink-rgb), .14) 0 3px, transparent 3px 7px); }
.ztconsole-lane-strip { position: absolute; inset: 0; will-change: transform; }
.ztconsole-lane-bar {
  position: absolute;
  top: 8px;
  height: 10px;
  background: var(--zt-ochre);
  opacity: .82;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(0, 0, 0, .5);
}
.ztconsole-lane.is-main .ztconsole-lane-bar { top: 6px; height: 14px; }
.ztconsole-lane-bar.is-active {
  background: var(--zt-green);
  opacity: 1;
  box-shadow: 0 0 6px rgba(74, 222, 128, .55), 0 0 14px rgba(74, 222, 128, .22);
}
.ztconsole-lane-bar.is-active::after {
  content: "";
  position: absolute;
  top: -5px; bottom: -5px; right: -1px;
  width: 2px;
  background: var(--zt-green);
  box-shadow: 0 0 6px rgba(74, 222, 128, .8);
}
.ztconsole-lane-mark {
  position: absolute;
  top: -7px;
  width: 0; height: 0;
  margin-left: -3px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid rgba(74, 222, 128, .85);
}
.ztconsole-lane-bar:not(.is-active) .ztconsole-lane-mark { border-top-color: rgba(201, 162, 39, .9); }

/* ---- 文章タイプ（AIが書いた文をトークン単位で打つ）＋ コード流し ---- */
.zt-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(var(--zt-ink-rgb), .08);
}
.zt-composer {
  min-width: 0;
  padding: 8px 10px 10px;
  border: 1px solid rgba(var(--zt-cyan-rgb), .3);
  background: rgba(4, 6, 11, .62);
  box-shadow: inset 0 0 28px rgba(var(--zt-cyan-rgb), .05), 0 0 12px rgba(var(--zt-cyan-rgb), .06);
}
.zt-composer-head { display: flex; gap: 8px; align-items: baseline; font-size: 10px; letter-spacing: .08em; color: var(--zt-ink-dim); white-space: nowrap; }
.zt-composer-pen { color: var(--zt-cyan); }
.zt-composer-field { color: var(--zt-ochre); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.zt-composer-state { margin-left: auto; color: var(--zt-cyan); }
.zt-composer-body {
  margin-top: 6px;
  min-height: 46px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-all;
}
.zt-caret {
  display: inline-block;
  width: 7px; height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--zt-cyan);
  box-shadow: 0 0 8px rgba(var(--zt-cyan-rgb), .9);
  animation: ztconsole-blink .8s steps(1) infinite;
}
.zt-composer-body.is-committed .zt-caret { background: var(--zt-green); box-shadow: 0 0 8px rgba(74, 222, 128, .9); animation: none; }
.zt-composer-body.is-committed .zt-composer-text { color: var(--paper-dim); }
.zt-composer-body.is-committed + .zt-composer-head .zt-composer-state,
.zt-composer:has(.is-committed) .zt-composer-state { color: var(--zt-green); }
.zt-stream {
  position: relative;
  min-width: 0;
  height: 112px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 10px;
  line-height: 1.55;
  color: var(--zt-ink);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}
.zt-stream-line { flex: 0 0 auto; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zt-stream-line.is-dim { color: var(--zt-ink-dim); }
.zt-stream-line.is-hi { color: var(--zt-cyan); }

/* ---- ログ行（下から追加され、古い行は上へ流れる） ---- */
.ztconsole-log {
  height: 116px;
  padding-top: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--zt-ink);
  -webkit-mask-image: linear-gradient(180deg, transparent 6px, #000 34px);
  mask-image: linear-gradient(180deg, transparent 6px, #000 34px);
}
.ztconsole-log-line {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  animation: ztconsole-log-in .22s ease forwards;
}
.ztconsole-log-line:last-child { color: rgba(var(--zt-ink-rgb), .85); }
.ztconsole-log-line:last-child::after {
  content: "▌";
  margin-left: 2px;
  color: var(--zt-green);
  animation: ztconsole-blink .9s steps(1) infinite;
}
.ztconsole-log-time { color: var(--zt-ink-dim); margin-right: 8px; }
.ztconsole-log-mark { display: inline-block; width: 12px; font-size: .78em; }
.ztconsole-log-mark.is-ok { color: var(--zt-green); }
.ztconsole-log-mark.is-write { color: var(--zt-ochre); }
.ztconsole-log-mark.is-fail { color: var(--zt-red); }
.ztconsole-log-line.is-fail .ztconsole-log-text { color: rgba(226, 100, 92, .9); }
.ztconsole-log-cmd { color: var(--zt-ink-dim); }
@keyframes ztconsole-log-in { to { opacity: 1; transform: translateY(0); } }

/* ---- アクティビティ波形 ---- */
.ztconsole-wave {
  position: relative;
  margin-top: 8px;
  padding: 2px 0 0;
  height: 46px;
  border-top: 1px solid rgba(var(--zt-ink-rgb), .08);
}
.ztconsole-wave-glyphs { display: flex; height: 12px; font-size: 9px; line-height: 12px; color: var(--zt-ink-dim); }
.ztconsole-wave-glyphs span { flex: 1 1 0; text-align: center; overflow: hidden; }
.ztconsole-wave-glyphs span.is-hot { color: var(--zt-green); }
.ztconsole-wave-glyphs span.is-warn { color: var(--zt-ochre); }
.ztconsole-wave-glyphs span.is-fail { color: var(--zt-red); }
.ztconsole-wave-bars { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.ztconsole-wave-bar { flex: 1 1 0; min-width: 2px; height: 20%; background: rgba(var(--zt-ink-rgb), .28); transition: height .18s linear; }
.ztconsole-wave-bar.is-hot { background: rgba(74, 222, 128, .75); }
.ztconsole-wave-bar.is-warm { background: rgba(201, 162, 39, .7); }
.ztconsole-wave-cursor {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: var(--zt-green);
  box-shadow: 0 0 6px rgba(74, 222, 128, .9);
  animation: ztconsole-blink 1.1s ease-in-out infinite;
}

/* ---- 日時 / LIVE ---- */
.ztconsole-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 6px 0 8px;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--zt-ink-dim);
}
.ztconsole-live { display: inline-flex; align-items: center; gap: 5px; color: var(--zt-green); font-weight: 500; }
.ztconsole-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--zt-green);
  box-shadow: 0 0 6px rgba(74, 222, 128, .9);
  animation: ztconsole-blink 1.1s ease-in-out infinite;
}
@keyframes ztconsole-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

/* ---- 最下段ステータスバー ---- */
.ztconsole-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: auto -16px 0;
  padding: 6px 16px;
  background: rgba(var(--zt-ink-rgb), .06);
  border-top: 1px solid rgba(var(--zt-ink-rgb), .1);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--zt-ink-dim);
  white-space: nowrap;
}
.ztconsole-brand { color: var(--zt-ochre); font-weight: 500; letter-spacing: .1em; }
.ztconsole-session b { font-weight: 400; color: var(--zt-ink); }
.ztconsole-count { color: var(--zt-ink); font-variant-numeric: tabular-nums; }
.ztconsole-phase { color: var(--zt-green); }
.ztconsole-phase::before { content: "▸ "; }
.ztconsole-hint { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--zt-ink-dim); }

/* ---- 右カラム: 見本の骨組みが順に組み上がるオーバーレイ（.mini-browser 内） ---- */
.zt-phud {
  position: absolute;
  inset: 42px 0 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  overflow: hidden;
  background: rgba(4, 6, 11, .982);
  color: var(--zt-ink);
  font-family: var(--mono);
  --zt-cyan: #4FD1E8;
  --zt-cyan-rgb: 79, 209, 232;
  --zt-ink-rgb: 245, 241, 228;
  --zt-ink: rgba(245, 241, 228, .55);
  --zt-ink-dim: rgba(245, 241, 228, .32);
  --zt-ochre: #C9A227;
  --zt-green: #4ADE80;
  transition: opacity .7s ease, transform .7s ease;
}
.zt-phud.is-done { opacity: 0; transform: scale(1.015); pointer-events: none; }
.zt-phud-scan {
  position: absolute;
  left: 0; right: 0;
  top: -44px;
  height: 40px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--zt-cyan-rgb), .16) 70%, rgba(var(--zt-cyan-rgb), .65));
  animation: zt-phud-scan 2.6s linear infinite;
}
.zt-phud[data-phase="deploying"] .zt-phud-scan { animation-duration: 1.1s; }
@keyframes zt-phud-scan { to { top: 100%; } }
.zt-phud-corner { position: absolute; width: 12px; height: 12px; border: 1px solid var(--zt-cyan); opacity: .75; }
.zt-phud-corner.is-tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.zt-phud-corner.is-tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.zt-phud-corner.is-bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.zt-phud-corner.is-br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.zt-phud-head { display: flex; gap: 8px; align-items: baseline; font-size: 10px; letter-spacing: .12em; }
.zt-phud-title { color: var(--zt-cyan); white-space: nowrap; }
.zt-phud-status { font-family: var(--sans); letter-spacing: 0; color: var(--paper-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-phud-pct { margin-left: auto; font-size: 12px; color: var(--paper); font-variant-numeric: tabular-nums; }
.zt-phud-blocks { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.zt-phud[data-phase="deploying"] .zt-phud-blocks { animation: zt-publish 1.4s ease-in-out infinite; }
@keyframes zt-publish { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.zt-phud-block {
  position: relative;
  padding: 9px 10px 8px;
  border: 1px dashed rgba(var(--zt-ink-rgb), .22);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.zt-phud-tag {
  position: absolute;
  top: -7px; left: 8px;
  padding: 0 4px;
  background: #04060B;
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--zt-ink-dim);
  transition: color .3s ease;
}
.zt-phud-check {
  position: absolute;
  top: -8px; right: 8px;
  padding: 0 4px;
  background: #04060B;
  font-size: 10px;
  color: var(--zt-green);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s ease, transform .25s ease;
}
.zt-phud-block.is-scan { border-color: rgba(201, 162, 39, .75); background: rgba(201, 162, 39, .05); }
.zt-phud-block[data-state="building"] {
  border-style: solid;
  border-color: rgba(var(--zt-cyan-rgb), .85);
  background: rgba(var(--zt-cyan-rgb), .04);
  box-shadow: 0 0 0 1px rgba(var(--zt-cyan-rgb), .15), 0 0 18px rgba(var(--zt-cyan-rgb), .2), inset 0 0 20px rgba(var(--zt-cyan-rgb), .06);
}
.zt-phud-block[data-state="building"] .zt-phud-tag { color: var(--zt-cyan); }
.zt-phud-block[data-state="building"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--zt-cyan-rgb), .14), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: zt-shimmer 1s linear infinite;
}
@keyframes zt-shimmer { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.zt-phud-block[data-state="done"] { border-style: solid; border-color: rgba(var(--zt-ink-rgb), .3); }
.zt-phud-block[data-state="done"] .zt-phud-tag { color: var(--zt-ink); }
.zt-phud-block.is-verified { border-color: rgba(74, 222, 128, .7); animation: zt-verify .6s ease; }
.zt-phud-block.is-verified .zt-phud-check { opacity: 1; transform: scale(1); }
@keyframes zt-verify { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
.zt-phud-row { position: relative; margin: 3px 0; min-height: 10px; }
/* 未生成の行はスケルトン（破線の帯）。文字が入ったら消す */
.zt-phud-row::before {
  content: "";
  display: block;
  height: 7px;
  width: var(--w, 60%);
  max-width: 100%;
  background: repeating-linear-gradient(90deg, rgba(var(--zt-ink-rgb), .16) 0 6px, transparent 6px 9px);
}
.zt-phud-row.has-text::before { display: none; }
.zt-phud-text { display: none; }
.zt-phud-row.has-text .zt-phud-text { display: inline; }
.zt-phud-row.is-title .zt-phud-text { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--paper); }
.zt-phud-row.is-kicker .zt-phud-text { display: inline-block; font-size: 9px; letter-spacing: .06em; padding: 2px 6px; background: var(--zt-ochre); color: #0B0D06; }
.zt-phud-row.is-h .zt-phud-text { font-family: var(--mincho); font-size: 15px; line-height: 1.4; color: var(--paper); }
.zt-phud-row.is-p .zt-phud-text { font-family: var(--sans); font-size: 11px; line-height: 1.6; color: var(--paper-dim); }
.zt-phud-row.is-label .zt-phud-text { font-size: 9px; letter-spacing: .06em; color: var(--zt-ochre); }
.zt-phud-row.is-strong .zt-phud-text { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--paper); }
.zt-phud-row.is-menu { display: flex; justify-content: space-between; gap: 8px; font-family: var(--sans); font-size: 11px; color: var(--paper-dim); }
.zt-phud-row.is-menu::before { flex: 0 0 var(--w, 60%); }
.zt-phud-row.is-menu .zt-phud-price { display: none; font-family: var(--mono); color: var(--paper-faint); }
.zt-phud-row.is-menu.has-text .zt-phud-price { display: inline; }
.zt-phud-row.is-small .zt-phud-text { font-family: var(--sans); font-size: 10px; color: var(--paper-faint); }
.zt-phud-row.is-photo { width: 52px; height: 40px; margin-top: 6px; border: 1px dashed rgba(var(--zt-ink-rgb), .3); transition: border-color .3s ease; }
.zt-phud-row.is-photo::before { display: none; }
.zt-phud-row.is-photo.has-text {
  border-style: solid;
  border-color: rgba(var(--zt-cyan-rgb), .6);
  background: repeating-linear-gradient(135deg, rgba(var(--zt-cyan-rgb), .28) 0 2px, transparent 2px 6px);
}
.zt-phud-foot { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .08em; color: var(--zt-ink-dim); }
.zt-phud-foot-live { color: var(--zt-cyan); animation: ztconsole-blink 1.1s ease-in-out infinite; }
.mini-browser.is-building .browser-address::after { content: " · building"; color: #4FD1E8; }

@media (max-width: 560px) {
  .ztconsole { padding: 12px 12px 0; --zt-lane-label-w: 30px; }
  .zt-hud { flex-direction: column; gap: 10px; }
  .zt-hud-phase-en { font-size: 18px; }
  .zt-hud-right { width: 100%; justify-content: space-between; }
  .zt-ring { width: 52px; height: 52px; }
  .zt-ring-val { font-size: 13px; }
  .zt-metrics { grid-template-columns: repeat(4, auto); gap: 4px 10px; }
  .zt-metrics div { min-width: 0; }
  .zt-metrics div:nth-child(3) { display: none; } /* context は省く */
  .zt-metrics dd { font-size: 12px; }
  .ztconsole-lane { height: 22px; }
  .ztconsole-lane-bar { top: 7px; height: 8px; }
  .ztconsole-lane.is-main .ztconsole-lane-bar { top: 5px; height: 12px; }
  .zt-mid { grid-template-columns: 1fr; gap: 8px; }
  .zt-composer-body { font-size: 13px; min-height: 40px; }
  .zt-stream { height: 64px; }
  .ztconsole-log { height: 92px; font-size: 10px; }
  .ztconsole-wave { height: 40px; }
  .ztconsole-wave-bars { height: 24px; }
  .ztconsole-footer { margin: auto -12px 0; padding: 6px 12px; gap: 10px; }
  .ztconsole-hint, .ztconsole-session { display: none; }
  .zt-phud { padding: 12px 12px 10px; gap: 8px; }
  .zt-phud-blocks { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  /* 動きは止め、状態表示だけ残す（canvasはJS側で静止画1枚を描く） */
  .zt-sweep, .zt-phud-scan, .zt-flash, .zt-banner { display: none; }
  .ztconsole-wave-bar, .zt-phud-block, .zt-phud { transition: none; }
  .ztconsole-log-line { animation: none; opacity: 1; transform: none; }
  .ztconsole-lane-bar.is-active, .zt-ring, .zt-composer { box-shadow: none; }
}

/* ---------- LIVE PREVIEW（sample-site） ---------- */
.preview-col { position: relative; }
.mini-browser {
  position: relative;
  border: 1px solid var(--paper-hair-strong);
  max-width: 420px;
  margin: 0 auto;
  background: #0F1729;
}
.browser-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--paper-hair);
}
.window-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper-hair-strong);
}
.browser-address {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper-faint);
}
.preview-placeholder {
  position: absolute;
  inset: 42px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  font-size: 13px;
  color: var(--paper-faint);
  font-family: var(--mono);
  background: #0F1729;
  opacity: 1;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 1;
}
.preview-col.has-content .preview-placeholder { opacity: 0; }

.sample-site { padding: 20px; font-size: 13px; color: var(--paper); position: relative; }
.sample-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sample-shop-name { font-weight: 700; font-size: 14px; }
.sample-menu { display: flex; flex-direction: column; gap: 3px; }
.sample-menu i { width: 14px; height: 1px; background: var(--paper-faint); display: block; }
.sample-hero { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.sample-hero-copy { flex: 1; min-width: 0; }
.sample-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 3px 8px;
  background: var(--preview-accent, var(--preview-warm));
  color: #0B0D06;
  margin-bottom: 8px;
}
.sample-hero-copy h3 { font-family: var(--mincho); font-size: 17px; margin: 0; line-height: 1.4; }
.sample-photo {
  width: 76px; height: 76px;
  flex: none;
  position: relative;
  overflow: hidden;
  background: rgba(245, 241, 228, .05);
  border: 1px solid var(--paper-hair);
}
.sample-photo::before, .sample-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: var(--paper-faint);
}
.sample-photo::before { left: -6px; width: 46px; height: 30px; clip-path: polygon(0 100%, 40% 20%, 100% 100%); }
.sample-photo::after { right: -10px; width: 52px; height: 40px; clip-path: polygon(0 100%, 55% 0, 100% 100%); }
.sample-photo.has-photo::before, .sample-photo.has-photo::after { display: none; }
.sample-description { color: var(--paper-dim); font-size: 12.5px; line-height: 1.75; margin: 0 0 16px; }
.sample-type-block {
  border-top: 1px solid var(--paper-hair);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sample-block-label { font-family: var(--mono); font-size: 10px; color: var(--yamabuki); letter-spacing: .06em; }
.sample-type-block strong { font-size: 13.5px; font-weight: 700; }
.sample-type-block span:not(.sample-block-label) { font-size: 12px; color: var(--paper-faint); }
.sample-button {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--yamabuki);
  color: var(--yamabuki-ink);
  border: none;
  font-size: 11px;
  padding: 6px 12px;
  cursor: default;
}
.sample-menu-preview { border-top: 1px solid var(--paper-hair); padding: 14px 0; }
.sample-menu-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sample-menu-item { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--paper-dim); }
.sample-menu-item-price { color: var(--paper-faint); font-family: var(--mono); }
.sample-actions { border-top: 1px solid var(--paper-hair); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sample-action-chip {
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid var(--paper-hair-strong);
  color: var(--paper-dim);
}
.sample-footer {
  border-top: 1px solid var(--paper-hair);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--paper-faint);
}
.made-with-badge { margin-top: 14px; text-align: center; }
.made-with-badge a { font-size: 10px; color: var(--paper-faint); text-decoration: none; }

/* ---------- 実例ギャラリー ---------- */
/* 見本5件。PC(1180px〜)は5枚を1列、タブレットは3枚＋2枚を中央寄せ、スマホは横にめくる列にする
   （5件を2列・3列の格子に入れると、最後の1枚だけが浮いて見えるため）。
   サムネはスマホで開いた最初の画面をそのまま縦長で見せる。 */
.gallery { padding: var(--gap-y) var(--side); max-width: 1320px; margin: 0 auto; }
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.gallery-item { flex: 0 0 calc((100% - 40px) / 3); margin: 0; border: 1px solid var(--paper-hair); overflow: hidden; }
@media (min-width: 1180px) {
  .gallery-item { flex-basis: calc((100% - 80px) / 5); }
}
@media (max-width: 640px) {
  .gallery-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--side) * -1);
    padding: 0 var(--side) 14px;
    scroll-padding-inline: var(--side);
  }
  .gallery-item { flex: 0 0 min(64%, 260px); scroll-snap-align: start; }
}
.gallery-link { display: block; color: inherit; text-decoration: none; }
.gallery-link:focus-visible { outline: 2px solid var(--yamabuki); outline-offset: -2px; }
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  object-fit: cover;
  object-position: top;
}
.gallery-caption { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.gallery-name { font-weight: 700; font-size: 14px; }
.gallery-meta { font-family: var(--mono); font-size: 12px; color: var(--paper-faint); letter-spacing: .02em; }

/* ---------- 3ステップ ---------- */
.steps { padding: var(--gap-y) var(--side); max-width: 1000px; margin: 0 auto; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--paper-hair);
}
.steps-item:last-child { border-bottom: 1px solid var(--paper-hair); }
.steps-num { font-family: var(--mono); font-size: clamp(22px, 3vw, 32px); color: var(--yamabuki); flex: none; width: 2.4ch; }
.steps-text { font-size: clamp(20px, 3vw, 30px); font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.steps-text small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--paper-faint); letter-spacing: .04em; }

/* ---------- 料金 ---------- */
.pricing { padding: var(--gap-y) var(--side); max-width: 1320px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pricing-card { border: 1px solid var(--paper-hair); padding: 28px 24px; }
.pricing-card.is-accent { border-color: var(--yamabuki); }
.pricing-name { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--paper-dim); margin: 0 0 16px; }
.pricing-figure { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin: 0 0 6px; }
.pricing-sub { color: var(--paper-dim); font-size: 14px; margin: 0 0 12px; }
.pricing-note { color: var(--paper-faint); font-size: 12.5px; margin: 0; }
.pricing-footnote { margin: 28px 0 0; color: var(--paper-dim); font-size: 13px; }

/* ---------- 訪問者ダッシュボード ---------- */
.watcher { padding: var(--gap-y) var(--side); max-width: 1320px; margin: 0 auto; }
.watcher-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.watcher-text { max-width: 56ch; }
.watcher-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.watcher-list li {
  position: relative;
  padding-left: 20px;
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.75;
}
.watcher-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--yamabuki);
}
.watcher-visual { display: flex; justify-content: center; }
.watcher-browser { width: 100%; }
.watcher-dashboard { padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; }
.watcher-live { display: flex; align-items: baseline; gap: 10px; }
.watcher-live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3DDC84;
  flex: none;
  align-self: center;
}
.watcher-live-num { font-family: var(--mono); font-size: clamp(38px, 8vw, 52px); font-weight: 700; color: var(--paper); line-height: 1; }
.watcher-live-label { font-size: 12px; color: var(--paper-faint); }
.watcher-cards { display: flex; gap: 12px; }
.watcher-card {
  flex: 1;
  border: 1px solid var(--paper-hair);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.watcher-card-label { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--paper-faint); }
.watcher-card-value { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--yamabuki); }

/* ---------- 採用装置プラン ---------- */
.hiring { padding: var(--gap-y) var(--side); max-width: 900px; margin: 0 auto; }
.hiring-card { border: 1px solid var(--yamabuki); padding: clamp(24px, 4vw, 40px); }
.hiring-copy { color: var(--paper-dim); font-size: 15px; max-width: 56ch; margin: 0 0 20px; }
.hiring-price { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; color: var(--paper); margin: 0 0 24px; }
.hiring-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hiring-list li {
  position: relative;
  padding-left: 20px;
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.75;
}
.hiring-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--yamabuki);
}
.hiring-target { color: var(--paper-dim); font-size: 13.5px; line-height: 1.8; margin: 0 0 16px; }
.hiring-target strong { color: var(--paper); }
.hiring-honest {
  color: var(--paper-dim);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--paper-hair-strong);
}
.hiring-exclude { color: var(--paper-faint); font-size: 13px; margin: 0 0 4px; }
.hiring-cta { margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { padding: var(--gap-y) var(--side); max-width: 900px; margin: 0 auto; }
.faq-list { border-bottom: 1px solid var(--paper-hair); }
.faq-item { border-top: 1px solid var(--paper-hair); }
.faq-item p { margin: 0 0 20px; color: var(--paper-dim); font-size: 14px; line-height: 1.9; }
.faq-item a { color: var(--yamabuki); }

/* ---------- 業種別ガイド ---------- */
.guide-links { padding: 0 var(--side) var(--gap-y); max-width: 1320px; margin: 0 auto; }
.guide-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-chip {
  font-size: 12px;
  color: var(--paper-dim);
  border: 1px solid var(--paper-hair);
  padding: 8px 14px;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.guide-chip:hover { border-color: var(--yamabuki); color: var(--paper); }

/* ---------- フッター ---------- */
.site-footer {
  padding: 40px var(--side) 60px;
  border-top: 1px solid var(--paper-hair);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 13px; }
.footer-row a { color: var(--paper-dim); text-decoration: none; }
.footer-row a:hover { color: var(--yamabuki); }
.footer-brand { font-weight: 700; color: var(--paper); }
.footer-tagline { color: var(--paper-faint); font-size: 12px; margin: 0; }

/* ---------- レイアウト：デスクトップ ---------- */
@media (min-width: 900px) {
  .workspace-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    align-items: start;
  }
  .preview-col { position: sticky; top: calc(var(--header-h) + 32px); }

  .watcher-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  }
}

/*
  ---------- モバイル1画面目の圧縮 ----------
  100svhフルのヒーローだと #shop-name（名前入力欄）が1000px超まで沈み、
  1画面目に h1 と名前入力欄が両方入らない。モバイルだけヒーローの縦幅と
  フォーム冒頭の余白を詰める（このブロックは .hero 等の基本スタイルより
  後ろに置いてカスケードで確実に上書きする。PC=900px以上は対象外・無変更）。
*/
@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 16px;
  }
  .hero-scroll-cue { display: none; }
  .hero-title { margin-bottom: 14px; }
  .hero-lead { margin-bottom: 8px; }
  .hero-price { margin-bottom: 0; }
  .kicker { margin-bottom: 8px; }

  .workspace { padding-top: 16px; }
  .form-col > .kicker { margin-bottom: 6px; }
  .section-title-mid { margin-bottom: 4px; }
  .section-lead { margin-bottom: 20px; }
}

/* ---------- モーション低減 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-stagger] { opacity: 1; transform: none; }
  .hero-title .char { opacity: 1; transform: none; }
  .form-step { max-height: none; opacity: 1; margin-top: 40px; }
  .form-step:first-child { margin-top: 0; }
  .hero-scroll-line::after { display: none; }
}

/* ---------- 常時稼働演出（zt-ambient）。DOMは index.html と assets/zt-ambient.js が用意する ----------
   生成していない時も「裏でAIが動いている」密度を出す層。色は本番演出（.ztconsole）と同じ
   シアン #4FD1E8・緑 #4ADE80・黄土 #C9A227 を使い、文字の可読性（ヒーロー左側）を最優先にする。 */

/* ページ全体の薄いドット格子（固定・静止。右上寄りの楕円で減衰） */
body.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(245, 241, 228, .13) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 68% 35%, #000 0, rgba(0, 0, 0, .35) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 68% 35%, #000 0, rgba(0, 0, 0, .35) 55%, transparent 100%);
}

/* 時々ページを走る光（縦1本・横1本。ほとんどの時間は透明で、compositorだけが動く） */
.zt-beam { position: fixed; z-index: 0; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.zt-beam.is-v {
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(79, 209, 232, .6) 35%, rgba(79, 209, 232, .6) 65%, transparent);
  animation: zt-beam-v 13s linear infinite;
}
.zt-beam.is-h {
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .55) 30%, rgba(79, 209, 232, .6) 70%, transparent);
  animation: zt-beam-h 19s linear 4s infinite;
}
@keyframes zt-beam-v {
  0%, 86% { opacity: 0; transform: translateX(0); }
  87% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(100vw); }
}
@keyframes zt-beam-h {
  0%, 90% { opacity: 0; transform: translateY(0); }
  91% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(100vh); }
}

/* ---- ヘッダー右上 LIVE ---- */
.header-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #4ADE80;
  white-space: nowrap;
}
.header-live b { font-weight: 400; color: var(--paper-dim); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.header-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, .9);
  animation: ztconsole-blink 1.1s ease-in-out infinite;
}

/* ---- ヒーロー：背景レイヤー ---- */
.hero-net { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 31, 58, .94) 0%, rgba(20, 31, 58, .82) 28%, rgba(20, 31, 58, .4) 55%, rgba(20, 31, 58, 0) 80%),
    linear-gradient(180deg, rgba(20, 31, 58, .55), transparent 22%, transparent 78%, rgba(20, 31, 58, .55));
}
.hero-inner, .hero-scroll-cue { position: relative; z-index: 1; }
.hero-inner { margin-bottom: auto; }

/* ---- セクションのスキャン出現（横一線が上から下へ走り、見出しがデコードされる） ---- */
.zt-scan { position: relative; }
.zt-scan::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(79, 209, 232, .9) 25%, rgba(79, 209, 232, .9) 75%, transparent);
  box-shadow: 0 0 18px rgba(79, 209, 232, .6);
}
.zt-scan.is-scanned::before { animation: zt-section-scan 1.1s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes zt-section-scan {
  0% { top: 0; opacity: 1; }
  80% { opacity: .8; }
  100% { top: 100%; opacity: 0; }
}
.zt-decode-char { display: inline-block; white-space: pre; animation: zt-decode .5s steps(4) both; }
@keyframes zt-decode {
  0% { opacity: 0; transform: translateY(.15em); color: #4FD1E8; }
  45% { opacity: 1; transform: translateX(-.04em); color: #4FD1E8; }
  100% { opacity: 1; transform: none; color: var(--paper); }
}

/* ---- ギャラリー：hoverでHUDコーナー＋薄いグリッド＋SAMPLE番号 ---- */
.gallery-grid { counter-reset: gal; }
.gallery-item { position: relative; transition: border-color .25s ease, transform .25s ease, opacity .6s cubic-bezier(.2, .7, .2, 1); }
.gallery-item::before {
  counter-increment: gal;
  content: "SAMPLE 0" counter(gal) " · SCAN";
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: #4FD1E8;
  background: rgba(4, 6, 11, .8);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background:
    radial-gradient(rgba(79, 209, 232, .32) 1px, transparent 1.3px) 0 0 / 14px 14px,
    linear-gradient(#4FD1E8, #4FD1E8) top left / 16px 1px no-repeat,
    linear-gradient(#4FD1E8, #4FD1E8) top left / 1px 16px no-repeat,
    linear-gradient(#4FD1E8, #4FD1E8) top right / 16px 1px no-repeat,
    linear-gradient(#4FD1E8, #4FD1E8) top right / 1px 16px no-repeat,
    linear-gradient(#4FD1E8, #4FD1E8) bottom left / 16px 1px no-repeat,
    linear-gradient(#4FD1E8, #4FD1E8) bottom left / 1px 16px no-repeat,
    linear-gradient(#4FD1E8, #4FD1E8) bottom right / 16px 1px no-repeat,
    linear-gradient(#4FD1E8, #4FD1E8) bottom right / 1px 16px no-repeat;
}
.gallery-item:hover { border-color: rgba(79, 209, 232, .7); transform: translateY(-3px); }
.gallery-item:hover::before, .gallery-item:hover::after { opacity: 1; transform: none; }

/* ---- 料金の数字（カウントアップ） ---- */
.zt-num { font-variant-numeric: tabular-nums; }

/* ---- ダッシュボード：数字の微動とスパークライン ---- */
.watcher-live-num.is-bump, .watcher-card-value.is-bump { animation: zt-bump .5s ease; }
@keyframes zt-bump {
  0% { color: #4FD1E8; transform: translateY(-2px); }
  100% { transform: none; }
}
.watcher-spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--paper-hair);
}
.watcher-spark i { display: block; flex: 1 1 0; min-width: 2px; background: rgba(79, 209, 232, .45); transition: height .5s ease; }

/* ---- 「いまの見本」デモリール（.zt-phud の見た目を流用し、完成スタンプと注記を足す） ---- */
.zt-phud-demo-note { font-family: var(--sans); letter-spacing: 0; color: rgba(245, 241, 228, .32); }
/* デモは本番より1ブロック多く、枠（sample-site の高さ）に収まりきらないことがある。詰めて、下端は暗く溶かす */
.zt-phud.is-demo { gap: 8px; }
.zt-phud.is-demo .zt-phud-blocks {
  gap: 8px;
  padding-top: 8px; /* overflow:hidden で上端の tag（top:-7px）が切れないぶん */
  margin-top: -8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}
.zt-phud.is-demo .zt-phud-block { padding: 8px 10px 7px; }
.zt-phud.is-demo .zt-phud-foot { position: relative; z-index: 1; }
.zt-phud-stamp {
  position: absolute;
  left: 50%; top: 46%;
  z-index: 3;
  padding: 6px 16px;
  border: 2px solid #4ADE80;
  color: #4ADE80;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .2em;
  background: rgba(4, 6, 11, .85);
  text-shadow: 0 0 14px rgba(74, 222, 128, .6);
  box-shadow: 0 0 0 1px rgba(4, 6, 11, .8), 0 0 24px rgba(74, 222, 128, .25);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.6);
  pointer-events: none;
}
.zt-phud.is-complete .zt-phud-stamp { animation: zt-stamp .45s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes zt-stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
}
.zt-phud.is-complete .zt-phud-scan { display: none; }
.zt-phud.is-complete .zt-phud-foot-live { color: #4ADE80; animation: none; }
.zt-phud[data-phase="done"] .zt-phud-blocks { animation: none; }
/* 店の切替: 枠自体（不透明な背景）は消さず、中身だけ一瞬フェードして裏のプレースホルダーが見えないようにする */
.zt-phud.is-swap .zt-phud-head,
.zt-phud.is-swap .zt-phud-blocks,
.zt-phud.is-swap .zt-phud-stamp,
.zt-phud.is-swap .zt-phud-foot {
  opacity: 0;
  transition: opacity .35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .zt-beam, .zt-scan::before { display: none; }
  .zt-decode-char, .header-live-dot { animation: none; }
  .zt-phud-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg); }
}
