/* AKARI Video Store — ライトベース + オレンジ。余白と文字組で見せる */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --edge: #e9e4dd;
  --panel: #f4f1ec;
  --text: #1c1917;
  --muted: #7d766e;
  --accent: #ea580c;
  --accent-soft: #fff3ec;
  --free: #15803d;
  --free-soft: #f0fdf4;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", system-ui, sans-serif;
  line-height: 1.75;
  font-size: 15px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
video { display: block; background: #111; }

/* ---- topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand-link { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.brand-name em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
.nav a:hover { color: var(--text); }

.badge {
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.badge-free { background: var(--free-soft); color: var(--free); }
.badge-license { background: var(--panel); color: var(--muted); font-weight: 600; }
.badge-soon, .badge-soon-inline { background: var(--panel); color: var(--muted); }
.badge-soon-inline { vertical-align: 3px; margin-left: 8px; }

/* ---- hero ---- */
.hero { padding: 72px 0 48px; text-align: center; }
.hero-compact { padding: 56px 0 8px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; letter-spacing: .01em; }
.hero-sub { max-width: 540px; margin: 12px auto 0; color: var(--muted); font-size: 15px; }

/* ---- hero-home: 実素材サムネイルが横に流れるファーストビュー ---- */
.hero-home { padding: 52px 0 0; overflow: hidden; }
.hero-cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--edge); background: var(--card); color: var(--text);
  transition: border-color .15s, background .15s;
}
.hero-btn:hover { border-color: var(--accent); }
.hero-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-btn-primary:hover { background: #c2410c; border-color: #c2410c; }
.hero-marquee {
  margin-top: 40px; padding-bottom: 48px; display: grid; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hero-marquee-row { overflow: hidden; }
.hero-marquee-track {
  display: flex; width: max-content;
  animation: hero-marquee 56s linear infinite;
}
.hero-marquee-row.reverse .hero-marquee-track { animation-direction: reverse; animation-duration: 72s; }
.hero-marquee-row:hover .hero-marquee-track { animation-play-state: paused; }
@keyframes hero-marquee { to { transform: translateX(-50%); } }
.hero-tile {
  /* 幅は inline の aspect-ratio × 高さで確定 — 画像未ロードでもタイルが縦棒に潰れない */
  position: relative; flex: none; height: 124px; margin-right: 14px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--edge); background: #17140f;
  box-shadow: 0 2px 10px rgba(28, 25, 23, .06);
}
.hero-tile img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-tile figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .03em;
  padding: 2px 9px; border-radius: 999px;
  background: rgba(17, 15, 13, .6); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  .hero-marquee { margin-top: 30px; padding-bottom: 36px; gap: 10px; }
  .hero-tile { height: 92px; margin-right: 10px; border-radius: 10px; }
  .hero-tile figcaption { font-size: 10px; left: 6px; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

/* ---- sections ---- */
.section { padding: 48px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 20px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }

/* ---- filter bar ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chip {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--card); color: var(--muted);
  border: 1px solid var(--edge); border-radius: 999px; padding: 6px 16px;
  transition: all .15s;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- catalog grid ---- */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.asset-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.asset-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-preview {
  height: 200px; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.card-preview video { width: 100%; height: 100%; object-fit: cover; }
.card-preview video.portrait { object-fit: contain; background: #14120f; width: 100%; }
.card-preview-frame { padding: 14px; }
.card-body { padding: 13px 16px 16px; }
.card-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.card-genre { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.card-price { font-size: 13.5px; font-weight: 800; }
.card-price em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.45; }
.card-body p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.bundled-note { margin-top: 22px; font-size: 12px; color: #a8a29e; max-width: 760px; }

/* ---- packs strip ---- */
.packs-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pack-mini {
  background: var(--card); border: 1px solid var(--edge); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.pack-mini h3 { font-size: 15px; font-weight: 700; }
.pack-mini p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pack-mini-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* ---- buttons ---- */
.buy-btn {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px; padding: 10px 28px;
  transition: background .15s;
}
.buy-btn:hover { background: #c2410c; }
.buy-btn.done { background: var(--accent-soft); color: var(--accent); }
.notify-btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: none; color: var(--muted);
  border: 1px solid var(--edge); border-radius: 999px; padding: 8px 18px;
  transition: color .15s, border-color .15s;
}
.notify-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---- lifetime（全部入りパス。ラダー全公開表示 — 契約 §15-4） ---- */
.lifetime {
  border: 1px solid var(--edge); border-radius: 16px; padding: 20px 22px;
  background: var(--card);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px 20px; align-items: start;
}
.lifetime h2 { font-size: 20px; font-weight: 800; }
.lifetime .note { color: var(--muted); font-size: 13px; margin-top: 6px; }
.lifetime-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px;
}
.lifetime-tile {
  position: relative; height: 68px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--edge); background: #14120f;
}
.lifetime-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.lifetime-tile img.is-on { opacity: 1; }
.lifetime-tile::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(10, 8, 5, 0.38); pointer-events: none;
}
.lifetime-tile-label {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.lifetime-price { text-align: center; align-self: center; }
.lifetime-price .now { font-size: 34px; font-weight: 900; color: var(--accent); }
.lifetime-seats { font-size: 12px; color: var(--muted); margin-top: 6px; }
.lifetime-seats-total { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lifetime-price .buy-btn { margin-top: 10px; }
.lifetime-buy-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.lifetime-soldout { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.lifetime-ladder {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  font-size: 12px; color: var(--muted); margin-top: 8px;
}
.lifetime-ladder-step { border: 1px solid var(--edge); border-radius: 999px; padding: 3px 10px; }
.lifetime-hike-note, .lifetime-sunset-note {
  grid-column: 1 / -1;
  font-size: 12px; color: var(--muted); margin-top: 6px;
}
.lifetime-beta-note {
  grid-column: 1 / -1;
  margin-top: 8px; padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft, rgba(234, 88, 12, 0.06));
  border-radius: 0 8px 8px 0;
  font-size: 12.5px; line-height: 1.65;
}
.lifetime-beta-note p + p { margin-top: 5px; }
.lifetime-beta-note a { color: var(--accent); font-weight: 700; }
.lifetime-seat-rule { font-size: 12px; font-weight: 700; color: var(--text); margin-top: 8px; }
.lifetime-cf-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
/* トップカードの副リンク（購入ボタンはそのまま = 摩擦を増やさない。詳細は /lab/lifetime） */
.lifetime-detail-link {
  display: inline-block; margin-top: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--accent);
}
.lifetime-detail-link:hover { text-decoration: underline; }
/* 4 枚タイル下の「これから増える予定」チップ（2026-08-09 オーナー指示）。
   準備中プレビューのため点線 — 価格・合計・比較には一切関与しない */
.lifetime-upcoming { margin-top: 12px; }
.lifetime-upcoming-label {
  font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .03em;
}
.lifetime-upcoming-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin-top: 6px; padding: 0;
}
.lifetime-upcoming-list li {
  font-size: 12px; color: var(--muted);
  border: 1px dashed var(--edge); border-radius: 999px; padding: 3px 10px;
}
.lifetime-upcoming-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.lifetime-sunset-note a { color: var(--accent); font-weight: 700; }
.lifetime-prep .note:last-child { margin-top: 4px; font-weight: 600; }

/* ---- プラン 3 枚（無料 / Lifetime / サブスク Coming Soon。正本: notes 2026-08-09 §9-4） ---- */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch;
}
.plan-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--edge); border-radius: 16px; padding: 18px 18px 16px;
  background: var(--card);
}
/* 真ん中（今買える Lifetime）が推しの定位置 */
.plan-card-featured { border-color: var(--accent); box-shadow: 0 6px 22px rgba(234, 88, 12, .10); }
.plan-head h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-tag {
  font-size: 11px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px;
}
.plan-tag-soon { color: var(--muted); border-color: var(--edge); background: var(--panel); }
.plan-price { font-size: 21px; font-weight: 900; margin-top: 8px; }
.plan-card-featured .plan-price { color: var(--accent); }
.plan-price-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.plan-rows { margin-top: 14px; border-top: 1px solid var(--edge); flex: 1; }
.plan-row {
  display: grid; grid-template-columns: 62px 1fr; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--edge); font-size: 13px;
}
.plan-row dt { color: var(--muted); font-size: 12px; }
.plan-row dd { margin: 0; }
.plan-note { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.plan-foot { margin-top: 14px; }
.plan-link {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 6px 16px;
}
.plan-link-primary { background: var(--accent); color: #fff; }
/* サブスク列は購入導線を持たない（Coming Soon の表示だけ） */
.plan-soon { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); }
.plans-contact { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.plans-contact a { color: var(--accent); font-weight: 700; }
@media (max-width: 780px) {
  .plans-grid { grid-template-columns: 1fr; }
}

/* ---- sound dock（下部固定プレイヤー） ---- */
.snd-dock[hidden] { display: none; }
.snd-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--edge); box-shadow: 0 -4px 18px rgba(0, 0, 0, .06);
}
body.snd-dock-open { padding-bottom: 76px; }
.snd-dock-art { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--panel); }
.snd-dock-main { flex: 1; min-width: 0; }
.snd-dock-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.snd-dock-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snd-dock-seek { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.snd-dock-range { flex: 1; accent-color: var(--accent); }
.snd-dock-time { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.snd-dock-cur { text-align: right; }
.snd-dock-close {
  flex: none; font: inherit; background: none; border: none; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 6px 8px;
}
.snd-dock-close:hover { color: var(--text); }

/* ---- lut library ---- */
.card-preview-rows { display: grid; grid-template-rows: repeat(3, 1fr); width: 100%; height: 100%; gap: 2px; background: var(--edge); }
.card-preview-rows img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 一覧: カードグリッド。Before/After は自動スイープ */
.lut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 8px; }
.lut-card {
  display: block; background: var(--card); border: 1px solid var(--edge); border-radius: 14px;
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.lut-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lut-card .lut-compare { border-radius: 0; }
.lut-card-body { padding: 12px 16px 15px; }
.lut-card-body h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lut-card-body p {
  font-size: 12.5px; color: var(--muted); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 自動スイープ: clip と分割線を同じタイミングで往復させる（split 22% ↔ 82%） */
@keyframes lut-sweep-clip { from { clip-path: inset(0 78% 0 0); } to { clip-path: inset(0 18% 0 0); } }
@keyframes lut-sweep-line { from { left: 22%; } to { left: 82%; } }
.lut-compare-auto .lut-after-clip { animation: lut-sweep-clip 4.5s ease-in-out infinite alternate; }
.lut-compare-auto .lut-divider { animation: lut-sweep-line 4.5s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .lut-compare-auto .lut-after-clip, .lut-compare-auto .lut-divider { animation: none; }
}

.lut-list { display: grid; gap: 22px; margin-top: 8px; }
.lut-row {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px;
  background: var(--card); border: 1px solid var(--edge); border-radius: 14px; padding: 18px;
}
.lut-compare {
  position: relative; overflow: hidden; border-radius: 10px;
  aspect-ratio: 16 / 9; background: var(--panel); --split: 50%;
}
.lut-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lut-after-clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.lut-divider {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); transform: translateX(-1px);
  pointer-events: none;
}
.lut-divider-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #444; letter-spacing: 1px;
}
.lut-divider-grip::before { content: "◂▸"; }
.lut-compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none;
}
.lut-tag {
  position: absolute; top: 10px; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff;
  pointer-events: none;
}
.lut-tag-after { left: 10px; }
.lut-tag-before { right: 10px; }
.lut-info h1 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lut-id {
  font-size: 12px; color: var(--muted); background: var(--panel);
  border: 1px solid var(--edge); border-radius: 6px; padding: 1px 7px; font-weight: 600;
}
.lut-desc { font-size: 13px; color: var(--muted); margin-top: 6px; }
.lut-when { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.lut-knob { margin-top: 14px; display: grid; gap: 4px; }
.lut-knob label { font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; }
.lut-knob output { font-variant-numeric: tabular-nums; color: var(--accent); }
.lut-intensity { width: 100%; accent-color: var(--accent); }
.lut-snippet { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lut-snippet code {
  flex: 1 1 220px; background: var(--panel); border: 1px solid var(--edge); border-radius: 8px;
  padding: 8px 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-x: auto; white-space: nowrap;
}
@media (max-width: 760px) { .lut-row { grid-template-columns: 1fr; } }

/* ---- faq ---- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--edge); border-radius: 12px; }
.faq-item summary {
  padding: 13px 16px; cursor: pointer; font-size: 13.5px; font-weight: 700; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q "; color: var(--accent); font-weight: 800; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { border-bottom: 1px solid var(--edge); }
.faq-body { padding: 12px 16px 14px; display: grid; gap: 8px; }
.faq-body p { color: var(--muted); font-size: 13.5px; }

/* ---- license / footer ---- */
.license h2 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.license p { color: var(--muted); font-size: 13px; }
.license-legend { display: grid; gap: 8px; margin: 14px 0 16px; }
.license-legend li { display: flex; align-items: baseline; gap: 10px; list-style: none; font-size: 13px; color: var(--muted); }
.license-legend .badge { flex: none; }

.footer { border-top: 1px solid var(--edge); background: var(--panel); padding: 36px 0 44px; color: #a8a29e; font-size: 12px; margin-top: 24px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 14px; }
.footer-brand em { font-style: normal; color: var(--accent); }
.footer-desc { flex-basis: 100%; margin-top: 6px; font-weight: 400; font-size: 12px; color: var(--muted); }
.footer-brand-col { max-width: 380px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.footer-links a { color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-note { margin-top: 24px; max-width: 640px; line-height: 1.8; }
.footer-copyright { margin-top: 10px; }

/* ---- detail page ---- */
.back-link { display: inline-block; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.detail-card {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 34px;
  background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 30px;
}
.detail-preview {
  background: var(--panel); border-radius: 12px; padding: 24px;
  display: flex; align-items: center; justify-content: center; min-height: 400px;
}
.detail-preview video { max-width: 100%; max-height: 62vh; border-radius: 10px; }
.detail-preview video.portrait { width: auto; }
.detail-info h1 { font-size: 22px; font-weight: 800; margin: 4px 0 10px; }
.engine-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.badge-engine { background: var(--panel); color: var(--text); border: 1px solid var(--edge); }
.detail-info .desc { font-size: 13.5px; color: var(--muted); }
.detail-license { font-size: 12px; color: #a8a29e; margin-top: 12px; }
.detail-missing { color: var(--muted); }
.detail-missing a { color: var(--accent); }

.knobs { margin-top: 16px; }
.knobs-head { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--edge);
  border-radius: 999px; padding: 2px 10px;
}
.price-row { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; }
.price { font-size: 24px; font-weight: 800; }
.price-note { font-size: 12px; color: var(--muted); }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ツマミ操作 UI */
.knob-controls { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--edge); }
.ctl-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.ctl-label { font-size: 12px; color: var(--muted); min-width: 52px; }
.ctl-chip {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--card); color: var(--muted);
  border: 1px solid var(--edge); border-radius: 999px; padding: 4px 13px;
  transition: all .15s;
}
.ctl-chip:hover { color: var(--text); }
.ctl-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ctl-range { flex: 1; max-width: 220px; accent-color: var(--accent); }

/* ============ 2D フレーム素材（frames.js） ============ */
.f2d-media-ph {
  width: 100%; aspect-ratio: 16/9; border-radius: 8px;
  background: linear-gradient(135deg, #efeae2, #ddd5c8);
}
.f2d-media-ph-tall { aspect-ratio: 4/3; }

/* スマホ（15 Pro 比率） */
.f2d-phone {
  height: 100%; max-height: 100%; aspect-ratio: 70.6 / 146.6;
  background: var(--frame, #8a8578);
  border-radius: 12% / 5.8%;
  padding: 2.6%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 8px 24px rgba(28,25,23,.18);
}
.detail-preview .f2d-phone { height: 460px; }
.f2d-phone-screen {
  width: 100%; height: 100%; border-radius: 10.5% / 5.1%;
  background: #000; overflow: hidden; position: relative;
}
.f2d-phone-screen video { width: 100%; height: 100%; object-fit: cover; }
.f2d-phone-screen .f2d-media-ph { height: 100%; aspect-ratio: auto; border-radius: 0; }
.f2d-island {
  position: absolute; top: 2.6%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.2%; background: #000; border-radius: 999px;
}

/* ノート PC（正面・デッキ見え） */
.f2d-laptop { width: 100%; max-width: 560px; filter: drop-shadow(0 10px 26px rgba(28,25,23,.16)); }
.f2d-laptop-screen {
  background: #0c0c0c; padding: 2.2%;
  border: solid var(--frame, #d7d9dc); border-width: 5px 5px 0;
  border-radius: 14px 14px 0 0;
}
.f2d-laptop-screen video, .f2d-laptop-screen .f2d-media-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.f2d-laptop-deck {
  height: 14px; background: var(--frame, #d7d9dc); position: relative;
  box-shadow: inset 0 2px 3px rgba(255,255,255,.4), inset 0 -2px 3px rgba(0,0,0,.18);
}
.f2d-laptop-groove {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 17%; height: 55%; background: rgba(0,0,0,.16);
  border-radius: 0 0 999px 999px;
}
.f2d-laptop-base {
  height: 5px; width: 104%; margin-left: -2%;
  background: var(--frame, #d7d9dc); border-radius: 0 0 12px 12px;
  box-shadow: inset 0 -3px 4px rgba(0,0,0,.25);
}

/* ブラウザウィンドウ */
.f2d-browser {
  margin: 0 auto; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(28,25,23,.12);
  box-shadow: 0 10px 28px rgba(28,25,23,.14);
}
.f2d-browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; }
.f2d-browser-light .f2d-browser-bar { background: #f1efec; }
.f2d-browser-dark .f2d-browser-bar { background: #2b2926; }
.f2d-dot { width: 10px; height: 10px; border-radius: 50%; }
.f2d-dot:nth-child(1) { background: #ff5f57; }
.f2d-dot:nth-child(2) { background: #febc2e; }
.f2d-dot:nth-child(3) { background: #28c840; }
.f2d-urlbar {
  flex: 1; margin-left: 8px; font-size: 11px; line-height: 20px;
  border-radius: 6px; padding: 0 10px; letter-spacing: .02em;
}
.f2d-browser-light .f2d-urlbar { background: #fff; color: #7d766e; }
.f2d-browser-dark .f2d-urlbar { background: #201e1c; color: #a8a29e; }
.f2d-browser-content { aspect-ratio: var(--aspect, 16/9); background: #000; }
.f2d-browser-content video, .f2d-browser-content .f2d-media-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }

/* 背景 */
.f2d-bg { width: 100%; height: 100%; }
.detail-preview .f2d-bg { aspect-ratio: 16/9; height: auto; border-radius: 10px; }
.card-preview .f2d-bg { position: absolute; inset: 0; }
.f2d-bg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; height: 100%; }
.f2d-bg-grid .f2d-bg { position: static; inset: auto; aspect-ratio: auto; height: 100%; border-radius: 6px; }
.detail-preview .f2d-bg-grid { aspect-ratio: 16/9; height: auto; border-radius: 10px; overflow: hidden; }
.card-preview .f2d-bg-grid { position: absolute; inset: 0; }

/* ロワーサード */
.f2d-lt-stage {
  width: 100%; aspect-ratio: 16/9; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #cfc8bd 0%, #a89f92 60%, #877d6f 100%);
}
.f2d-lt {
  position: absolute; left: 6%; bottom: 10%;
  display: flex; align-items: stretch; gap: 10px;
  background: rgba(255,255,255,.94); border-radius: 6px; padding: 10px 16px 10px 12px;
  box-shadow: 0 4px 14px rgba(28,25,23,.2);
}
.f2d-lt-bar { width: 4px; border-radius: 2px; background: var(--accent); }
.f2d-lt-text { display: flex; flex-direction: column; line-height: 1.4; }
.f2d-lt-text b { font-size: 15px; }
.f2d-lt-text i { font-style: normal; font-size: 11px; color: #7d766e; }

/* 音源（波形） */
.f2d-audio {
  width: 100%; aspect-ratio: 16/9; border-radius: 8px; position: relative;
  background: linear-gradient(160deg, #fff3ec, #ffe3d1);
  display: flex; align-items: center; justify-content: center;
}
.f2d-audio-bars { display: flex; align-items: center; gap: 4px; height: 44%; }
.f2d-audio-bars span {
  width: 5px; border-radius: 3px; background: var(--accent); height: 30%;
  animation: f2d-eq 1.1s ease-in-out infinite alternate;
}
@keyframes f2d-eq {
  from { height: 18%; opacity: .55; }
  to { height: 95%; opacity: 1; }
}
.f2d-audio-label {
  position: absolute; left: 12px; bottom: 9px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #c2410c;
}

/* アバター */
.f2d-avatar {
  width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: linear-gradient(170deg, #fdf9f2, #f1e8da);
  display: flex; align-items: flex-end; justify-content: center;
}
.f2d-avatar-figure { display: flex; flex-direction: column; align-items: center; height: 78%; }
.f2d-avatar-head {
  width: 74px; height: 74px; border-radius: 50%; background: #8b95a5; position: relative;
}
.f2d-avatar-eye {
  position: absolute; top: 42%; width: 7px; height: 10px; border-radius: 50%; background: #2c3440;
}
.f2d-avatar-eye:nth-child(1) { left: 30%; }
.f2d-avatar-eye:nth-child(2) { right: 30%; }
.f2d-avatar-mouth {
  position: absolute; top: 64%; left: 50%; transform: translateX(-50%);
  width: 16px; height: 8px; border-radius: 0 0 10px 10px; background: #2c3440;
  animation: f2d-talk 0.9s steps(2) infinite;
}
@keyframes f2d-talk { 50% { height: 3px; } }
.f2d-avatar-body {
  width: 96px; height: 52px; margin-top: -6px;
  border-radius: 48px 48px 0 0; background: #8b95a5;
}

/* 空状態 */
.empty-state { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; padding: 28px 4px; }

/* ---- サムネ構図モック ---- */
.f2d-thumb {
  width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #1e1b4b 0%, #4a1d6e 60%, #7c1d4f 100%);
  border: 3px solid #ffd34d;
  display: flex; align-items: center;
}
.f2d-thumb-badge {
  position: absolute; top: 6%; left: 5%;
  background: #e11d48; color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 9px; border-radius: 4px; letter-spacing: .06em;
}
.f2d-thumb-text { padding: 0 6%; max-width: 68%; }
.f2d-thumb-text b {
  display: block; font-size: clamp(16px, 2.2vw, 26px); font-weight: 900; line-height: 1.3;
  color: #ffe94a; text-shadow: 0 2px 0 #000;
}
.f2d-thumb-text i {
  display: block; font-style: normal; font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 800; color: #fff; margin-top: 6px;
}
.f2d-thumb-person {
  position: absolute; right: 4%; bottom: 0; width: 26%; height: 82%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.f2d-thumb-head { width: 44%; aspect-ratio: 1; border-radius: 50%; background: #cbb9a4; }
.f2d-thumb-torso { width: 90%; height: 42%; margin-top: -6%; border-radius: 40px 40px 0 0; background: #3b4252; }

/* ---- ブログ（横長カード） ---- */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.see-all { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; padding-bottom: 2px; }
.see-all:hover { text-decoration: underline; }
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: 14px; padding: 18px 22px;
  display: flex; align-items: center; gap: 24px;
  transition: border-color .15s, transform .15s;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.article-card h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.article-card p { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-more { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
@media (max-width: 640px) {
  .article-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.wrap-narrow { max-width: 760px; }
.article h1 { font-size: 26px; font-weight: 800; line-height: 1.5; margin: 10px 0 22px; }
.article-p { font-size: 15px; margin: 0 0 18px; }
.paid-zone { margin-top: 8px; }
.unlocked-note {
  background: var(--free-soft); color: var(--free); font-size: 13px; font-weight: 600;
  border-radius: 10px; padding: 10px 16px; margin-bottom: 20px;
}
.paywall { position: relative; margin-top: 8px; }
.paywall-preview {
  filter: blur(6px); user-select: none; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  max-height: 240px; overflow: hidden;
}
.paywall-gate {
  margin-top: -60px; position: relative; text-align: center;
  background: var(--card); border: 1px solid var(--edge); border-radius: 16px;
  padding: 30px 24px;
}
.paywall-label { font-size: 16px; font-weight: 800; }
.paywall-sub { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.paywall-note { font-size: 11.5px; color: #a8a29e; margin-top: 12px; }
.bundle-box {
  background: var(--panel); border-radius: 12px; padding: 18px 20px; margin-top: 22px;
}
.bundle-box p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.bundle-box .buy-btn[disabled] { opacity: .55; cursor: default; }

/* ---- 導入方法 ---- */
.usage { margin-top: 22px; background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 26px 30px; }
.usage h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.usage ol { margin-left: 1.3em; }
.usage li { font-size: 13.5px; margin: 6px 0; }
.usage-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.usage-note a { color: var(--accent); }
.engine-compare dl { margin-top: 4px; }
.engine-compare dt { font-size: 13.5px; font-weight: 700; margin-top: 10px; }
.engine-compare dt:first-child { margin-top: 0; }
.engine-compare dd { font-size: 12.5px; color: var(--muted); margin: 3px 0 0 0; }

/* ---- 自然言語で作るモーション例 ---- */
.motion-prompt-gallery {
  margin-top: 22px; padding: 26px 30px;
  background: var(--card); border: 1px solid var(--edge); border-radius: 16px;
}
.motion-prompt-gallery h2 { font-size: 16px; font-weight: 800; }
.motion-prompt-lead { max-width: 780px; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.motion-prompt-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px;
}
.motion-prompt-card {
  min-width: 0; overflow: hidden;
  background: var(--bg); border: 1px solid var(--edge); border-radius: 12px;
}
.motion-prompt-body { display: flex; flex-direction: column; align-items: flex-start; min-height: 172px; padding: 18px; }
.motion-prompt-label { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.motion-prompt-quote { margin-top: 7px; font-size: 15px; font-weight: 700; line-height: 1.7; }
.motion-prompt-copy { margin-top: auto; padding: 6px 14px; }
.motion-prompt-card video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-top: 1px solid var(--edge);
}

@media (max-width: 640px) {
  .motion-prompt-gallery { padding: 22px 20px; }
  .motion-prompt-grid { grid-template-columns: 1fr; }
  .motion-prompt-body { min-height: 0; }
  .motion-prompt-copy { margin-top: 14px; }
}

@media (max-width: 760px) {
  .detail-card { grid-template-columns: 1fr; }
  .lifetime { grid-template-columns: 1fr; }
  .nav { display: none; }
  .detail-preview .f2d-phone { height: 380px; }
}

/* 下書き（ビルド時に配信物から除外される。ローカルでのみ見える） */
.badge-draft { background: #fef3c7; color: #92400e; }

/* --- 工房の素材をそのまま描画する舞台（asset-live.js） --------------------- */
/* chrome（比率トグル + セーフエリアガイド）を舞台の外（上）に置くラッパー。.detail-preview の
   背景・余白・中央寄せは引き継ぎつつ縦積みにする（テロップ試用ページと同じ配置。
   2026-08-06 オーナー裁定でコンテナ内オーバーレイから変更）。 */
.asset-stage-wrap {
  flex-direction: column; gap: 10px;
  /* .detail-card は CSS Grid（既定 align-items: stretch）。明示 height を持たないこの要素が
     グリッド行の高さ（右カラムの説明文・ツマミ一覧で決まる、しばしばもっと高い）まで
     引き伸ばされるのを止め、自身のコンテンツの高さに留める（実測で発覚・2026-08-06）。 */
  align-self: start;
}
.asset-stage-wrap .asset-stage-chrome { align-self: stretch; }
.asset-stage {
  /* 大きさは JS が舞台の実寸から決める（.asset-stage-wrap の中で、この要素自体が
     「選択比率の矩形そのもの」になる。2026-08-06 オーナー裁定）。 */
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #101112;
}
.asset-canvas {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  /* clip-path は overflow: hidden の保険（挙動が実装によって割れる場合があるため二重に効かせる）。
     常にフレーム舞台になった2026-08-06以降、素材はフレームへ contain で収めるため通常ははみ出さない
     — これはあくまで保険。根拠・検証環境固有の既知の未解決事象は report.md 参照。 */
  clip-path: inset(0);
  transform: scale(var(--stage-scale, 1));
  transform-origin: top left;
  /* 舞台自体に市松模様を敷き、外側の .asset-stage-wrap（.detail-preview の淡色）と質感を変えて
     枠の輪郭を視認できるようにする（テロップ試用ページの .tlp-stage-frame と同じ見立て。
     常にフレーム舞台になったため常時適用。実機FB 2026-08-06 r1）。 */
  background: repeating-conic-gradient(#242832 0 25%, #2a2f3a 0 50%) 0 0 / 28px 28px;
}
/* 比率トグル + セーフエリアガイド（共通 chrome・2026-08-05 新設。舞台の外・常時表示。
   2026-08-06 オーナー裁定でコンテナ内オーバーレイから変更） */
.asset-stage-chrome {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}

/* セーフエリアガイド帯（telop.html / asset-live.js 共用。aspect-stage.js が描画） */
.aspect-guide-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.aspect-guide-band {
  position: absolute; box-sizing: border-box;
  background: rgba(244, 63, 94, .14); border: 1px dashed rgba(244, 63, 94, .6);
}
.aspect-guide-label {
  position: absolute; top: 4px; left: 4px; max-width: calc(100% - 8px);
  font-size: 10.5px; font-weight: 700; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  background: rgba(17, 24, 39, .72); border-radius: 4px; padding: 2px 6px;
}
.ctl-group { margin: 10px 0 4px; }
.ctl-group-head { margin: 0 0 4px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.ctl-color {
  width: 34px; height: 22px; padding: 0;
  border: 1px solid var(--edge); border-radius: 5px;
  background: none; cursor: pointer;
}
.ctl-actions { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--edge); }

/* ---- 購入者ライブ 3D ビューワー（tasks/2026-08-06-store-live-viewer-v0）----
   未購入: ツマミパネルだけを薄モザイク + ロックで見せる（ビューワー本体 canvas は出さない）。
   購入者: 実ビューワー（canvas）+ 実ツマミ + プリセット + コピーが開通する。 */
.live-panel { scroll-margin-top: 24px; margin-top: 22px; padding: 26px 30px; background: var(--card); border: 1px solid var(--edge); border-radius: 16px; }
.live-panel h2 { font-size: 16px; font-weight: 800; }
.live-panel-lead { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.live-panel-zone { position: relative; margin-top: 16px; }
.live-panel-zone.locked .live-panel-inert {
  filter: blur(2.5px); /* 気持ちモザイク（2〜3px 程度。オーナー裁定 2026-08-06） */
  user-select: none;
  pointer-events: none; /* 操作不可。実際のクリックは重なる .live-panel-lock 側が受ける */
}
.live-panel-lock {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(250, 249, 247, .82); backdrop-filter: blur(2px);
  border: 1px dashed var(--edge); border-radius: 12px;
  font-size: 13px; font-weight: 700; color: var(--text);
  cursor: pointer;
}
.live-lock-icon { font-size: 16px; }
.live-panel-stage { min-height: 260px; }
.live-preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.live-knob-controls { margin: 10px 0; }
.live-copy-btn { margin-top: 10px; }
@media (max-width: 640px) {
  .live-panel { padding: 22px 20px; }
}

/* パックの元値（取り消し線）。単品合計をアンカーとして見せる */
.card-price-list { opacity: .55; font-weight: 400; margin-right: .15em; }

/* ---- カードのジャケットコラージュ（音源など、動画見本を持たない商品） ---- */
.card-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--edge); }
.card-preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.detail-preview .card-preview-grid { width: 100%; }
/* 比率トグル + 画像グリッドを縦積みにする器（LUT 等・2026-08-06 横展開。aspect-stage.js の
   renderToggle を .detail-preview（flex 中央寄せ）へそのまま子として置くと横並びになってしまうため）。 */
.grid-preview-wrap { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.card-preview .card-preview-grid:has(> img:nth-child(5)) { width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card-preview-grid:has(> img:only-child) { grid-template-columns: 1fr; }
.card-preview-grid:has(> img:only-child) img { aspect-ratio: 16/9; }
/* 16:9 見本のコラージュ（サムネ構図など）— 正方形 cover で文字が見切れないよう、
   比率を保った 2×2 ブロックをカード枠（高さ 200px）に切り抜きゼロで収める。
   カードが狭いときは幅 100% に縮み、フレックス中央寄せで上下に薄い余白が出るだけ */
.card-preview .card-preview-grid.wide {
  width: min(100%, calc(200px * 16 / 9)); height: auto;
  aspect-ratio: 16 / 9; grid-template-columns: 1fr 1fr;
}
.card-preview-grid.wide img { aspect-ratio: 16 / 9; }

/* ---- 音源棚（sounds.html） ---- */
.snd-head h1 { font-size: 26px; font-weight: 800; margin-top: 4px; }
.snd-count { font-style: normal; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-left: 10px; white-space: nowrap; }
.snd-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.snd-terms { margin-top: 12px; }
.snd-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.snd-pack {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding: 14px 18px;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px;
}
.snd-pack b { font-size: 14.5px; }
.snd-pack .badge { margin-left: 8px; vertical-align: 1px; }
.snd-pack p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.snd-pack-more { color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.snd-filter { margin: 24px 0 0; align-items: center; }
.snd-search {
  font: inherit; font-size: 13px; flex: 1; min-width: 220px;
  padding: 6px 14px; border: 1px solid var(--edge); border-radius: 999px;
  background: var(--card); color: var(--text);
}
.snd-search:focus { outline: none; border-color: var(--accent); }
.snd-result { margin: 10px 2px 6px; font-size: 12.5px; color: var(--muted); }
.snd-list { display: flex; flex-direction: column; gap: 8px; }
.snd-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--edge); border-radius: 12px;
  padding: 10px 14px;
}
.snd-play {
  flex: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--edge); background: var(--panel); position: relative;
  transition: all .15s;
}
.snd-play::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--text);
}
.snd-play:hover { border-color: var(--accent); }
.snd-play:hover::before { border-left-color: var(--accent); }
.snd-play.playing { background: var(--accent); border-color: var(--accent); }
.snd-play.playing::before {
  transform: translate(-50%, -50%);
  border: none; width: 8px; height: 11px;
  border-left: 3px solid #fff; border-right: 3px solid #fff;
}
.snd-art { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--panel); }
.snd-main { flex: 1; min-width: 0; }
.snd-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.chip-kind { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.snd-prompt { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.snd-prompt summary { cursor: pointer; font-size: 12px; }
.snd-prompt summary:hover { color: var(--accent); }
.snd-prompt p { margin-top: 4px; }
.snd-provenance a { color: var(--accent); }
.snd-dur { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.snd-dl {
  flex: none; font-size: 12px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 3px 12px;
}
.snd-dl:hover { background: var(--accent-soft); }
.snd-takes { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.snd-take { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.snd-play-sm { width: 24px; height: 24px; }
.snd-play-sm::before { border-width: 4px 0 4px 7px; }
.snd-play-sm.playing::before { width: 6px; height: 8px; border-left-width: 2px; border-right-width: 2px; }
.snd-note { margin-top: 28px; font-size: 12.5px; color: var(--muted); }
.snd-note a { color: var(--accent); }
@media (max-width: 640px) {
  .snd-row { flex-wrap: wrap; }
  .snd-art { order: -1; }
  .snd-pack { flex-direction: column; align-items: flex-start; }
}

/* ---- 字幕棚（telops.html） ---- */
.tlp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.tlp-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.tlp-preview {
  aspect-ratio: 16 / 9; position: relative;
  /* アルファ付き見本が分かるよう暗色の市松を敷く */
  background:
    repeating-conic-gradient(#191b1f 0% 25%, #22252b 0% 50%) 0 0 / 28px 28px,
    #191b1f;
}
.tlp-preview video {
  width: 100%; height: 100%; object-fit: cover; background: transparent;
}
.tlp-nopreview {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #6b7280; font-size: 12.5px;
}
.tlp-body { padding: 14px 16px 16px; }
.tlp-body h3 { font-size: 15px; margin-top: 4px; }
.tlp-knobs { margin-top: 10px; }
.tlp-knobs .knobs-head { margin-bottom: 6px; }
.chip-knob { font-size: 11px; padding: 2px 8px; }
.chip-knob-color { background: var(--accent-soft); color: #b45309; border-color: transparent; }
.chip-knob-number { background: #eef4fd; color: #2563eb; border-color: transparent; }
.chip-knob-text { background: var(--free-soft); color: var(--free); border-color: transparent; }
.chip-knob-style { background: #ecfeff; color: #0e7490; border-color: transparent; }
.chip-knob-anim { background: #fdf2f8; color: #be185d; border-color: transparent; }
.tlp-anim-block { margin: 18px 0 8px; padding: 14px 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; }
.tlp-anim-row { display: flex; gap: 10px; align-items: baseline; margin: 8px 0; }
.tlp-anim-cat { flex: 0 0 84px; font-size: 12px; color: #6b7280; font-weight: 600; }
.tlp-card-link { text-decoration: none; color: inherit; display: block; transition: transform .08s; }
.tlp-card-link:hover { transform: translateY(-2px); }
.tlp-try { font-size: 12.5px; color: #2f6feb; margin: 8px 0 2px; font-weight: 600; }
.tlp-play { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .tlp-play { grid-template-columns: 1fr; } }
.tlp-play-preview { position: sticky; top: 16px; min-width: 0; }
/* 比率トグル + セーフエリアガイド（共通 chrome・2026-08-05 新設。aspect-stage.js） */
.tlp-stage-chrome { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.tlp-stage-chrome .ctl-label { min-width: auto; }
/* 比率チップ: 数字ではなく枠の形で比率を示す。ラベルは title / aria-label のみ。 */
.aspect-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 4px 7px; }
.aspect-shape { display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; opacity: 0.85; }
.aspect-chip.active .aspect-shape { opacity: 1; }
/* 中立チップ（「元のまま」）: 破線枠で比率チップと区別する（2026-08-06 横展開・数字/長文は出さない）。 */
.aspect-shape.aspect-shape-neutral { width: 20px; height: 20px; border-style: dashed; }
.tlp-play-stage { min-height: 240px; display: flex; align-items: center; justify-content: center; }
/* 市松模様（透明の見立て）はフレーム側に付ける。縦 9:16 や正方 1:1 のとき
   「動画フレームがどこからどこまでか」が輪郭として見えるようにするため（実機 FB 2026-08-06）。 */
.tlp-stage-frame { position: relative; width: fit-content; max-width: 100%; margin: 0 auto;
  border-radius: 12px; overflow: hidden;
  background: repeating-conic-gradient(#242832 0 25%, #2a2f3a 0 50%) 0 0 / 28px 28px; }
/* 縦 9:16・正方 1:1 でも PC 画面に収まるよう、高さはビューポート基準で頭打ちにする
   （オーナー実機 FB 2026-08-06。横 16:9 は従来どおりほぼ幅いっぱいで表示される）。 */
.tlp-play-stage canvas { width: auto; height: auto; max-width: 100%; max-height: 68vh; display: block; }
.tlp-transport { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto; gap: 10px; align-items: center;
  margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: var(--card); }
.tlp-play-toggle { min-width: 74px; }
.tlp-seek { width: 100%; min-width: 0; }
.tlp-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) {
  .tlp-transport { grid-template-columns: auto 1fr; }
  .tlp-time { grid-column: 1 / -1; text-align: right; }
}
.tlp-play-panel { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 12px 14px;
  max-height: 78vh; overflow-y: auto; }
.tlp-play-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tlp-knob-group { margin: 14px 0 4px; padding-top: 8px; border-top: 1px solid var(--line, #e5e7eb); font-weight: 700; }
.tlp-knob-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 12.5px; }
.tlp-knob-label { flex: 0 0 128px; color: #4b5563; }
.tlp-knob-row input[type="text"], .tlp-knob-row select { flex: 1; min-width: 0; padding: 5px 8px;
  border: 1px solid var(--line, #d1d5db); border-radius: 7px; font-size: 12.5px; }
.tlp-knob-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.tlp-knob-row input[type="color"] { width: 44px; height: 28px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; padding: 1px; }
.tlp-knob-pair { flex: 1; display: flex; gap: 8px; align-items: center; min-width: 0; }
.tlp-knob-pair input[type="range"] { flex: 1; min-width: 0; }
.tlp-knob-pair input[type="number"] { width: 72px; padding: 4px 6px; border: 1px solid var(--line, #d1d5db); border-radius: 7px; font-size: 12px; }
.tlp-font-row { align-items: flex-start; }
.tlp-font-row > .tlp-knob-label { padding-top: 6px; }
.tlp-font-picker { position: relative; flex: 1; min-width: 0; }
.tlp-font-trigger { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 6px 9px; border: 1px solid var(--line, #d1d5db); border-radius: 7px;
  background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.tlp-font-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tlp-font-trigger b { color: var(--muted); font-size: 14px; font-weight: 400; }
.tlp-font-current { height: 50px; margin-top: 5px; padding: 1px 6px; overflow: hidden;
  display: flex; align-items: center; border: 1px solid var(--edge); border-radius: 7px; background: #fff; }
.tlp-font-current img { display: block; width: auto; max-width: 100%; height: 48px; object-fit: contain; object-position: left center; }
.tlp-font-no-preview { color: var(--muted); font-size: 11px; }
.tlp-font-list { position: absolute; z-index: 40; top: 34px; left: 0; right: 0; max-height: 360px;
  overflow-y: auto; padding: 4px; border: 1px solid var(--edge); border-radius: 8px;
  background: var(--card); box-shadow: 0 14px 34px rgba(28, 25, 23, .18); }
.tlp-font-option { min-height: 68px; padding: 5px 8px; border-left: 3px solid transparent;
  border-radius: 5px; cursor: pointer; }
.tlp-font-option > span:first-child { display: block; margin-bottom: 2px; color: var(--text); font-size: 11.5px; font-weight: 650; }
.tlp-font-option img { display: block; width: 100%; height: 48px; object-fit: contain; object-position: left center; }
.tlp-font-option.active { background: var(--accent-soft); }
.tlp-font-option[aria-selected="true"] { border-left-color: var(--accent); }
.tlp-style-preview { display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* max-width:100% は付けない — JS（fitStyleSamples / fitSample）が scrollWidth を基準に
   transform: scale() で縮小する。max-width で先に箱を詰めると、scale の基準（scrollWidth =
   詰める前の内容幅）と実際に縮小される箱（詰められた後の幅）がずれ、内容が箱の外へ
   はみ出したまま縮小されて見切れる（「衝撃の事実」カードで実測・2026-08-06 修正）。 */
.tlp-style-sample { white-space: nowrap; }
.chip-knob-font { background: #f3e8ff; color: #7c3aed; border-color: transparent; }

/* ライブ試用のコピーと詳細データ */
.copy-fallback {
  position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(520px, calc(100vw - 40px));
  padding: 12px; border: 1px solid var(--accent); border-radius: 12px;
  background: var(--card); box-shadow: 0 14px 34px rgba(28, 25, 23, .18);
  color: var(--muted); font-size: 12px;
}
.copy-fallback span { display: block; margin-bottom: 6px; }
.copy-fallback textarea {
  display: block; width: 100%; min-height: 92px; resize: vertical; padding: 8px;
  border: 1px solid var(--edge); border-radius: 8px; background: var(--panel);
  color: var(--text); font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.play-details {
  margin-top: 20px; border: 1px solid var(--edge); border-radius: 12px; background: var(--card);
}
.play-details > summary {
  padding: 13px 16px; cursor: pointer; color: var(--text); font-size: 13.5px; font-weight: 700;
}
.play-details[open] > summary { border-bottom: 1px solid var(--edge); }
.play-details-body { display: grid; gap: 22px; padding: 18px; }
.play-details h2 { margin: 0 0 8px; font-size: 13px; }
.detail-meta, .detail-values { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.detail-meta th, .detail-meta td, .detail-values th, .detail-values td {
  padding: 7px 9px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top;
}
.detail-meta th, .detail-values th { color: #4b5563; font-weight: 650; }
.detail-meta th { width: 132px; }
.detail-table-wrap { overflow-x: auto; }
.detail-values thead th { background: var(--panel); white-space: nowrap; }
.detail-values tbody tr.is-changed { background: var(--accent-soft); }
.detail-values code, .detail-meta code { overflow-wrap: anywhere; }
.changed-badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.unchanged-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-section-head h2 { margin-bottom: 0; }
.detail-json {
  max-height: 520px; margin-top: 8px; overflow: auto; padding: 14px 16px;
  border-radius: 10px; background: #16181d; color: #d8dce3;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2;
}

/* ---- 宣言パック詳細（asset.html の汎用ブロック） ---- */
.features { margin-top: 14px; }
.features-head { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.features ul { margin: 0; padding-left: 1.3em; font-size: 13.5px; }
.features li { margin: 3px 0; }
.sample-block { margin-top: 14px; }
.sample-block pre {
  background: #16181d; color: #d8dce3; font-size: 12px; line-height: 1.6;
  border-radius: 10px; padding: 14px 16px; overflow-x: auto;
}
.sample-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* セットカードの購入ボタン（決済接続済み pack のみ home.js が出す） */
.pack-buy-btn { appearance: none; border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.pack-buy-btn:hover { opacity: .9; }
.pack-buy-btn[disabled] { opacity: .6; cursor: wait; }

/* ---- 背景棚（backgrounds.html / background.html） ---- */
.bgx-preview { display: block; aspect-ratio: 16 / 9; }
.bgx-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.bgx-actions .tlp-try { margin: 0; white-space: nowrap; }
.bgx-stage { width: 100%; aspect-ratio: 16 / 9; min-height: 0; border-radius: 12px; }
.bgx-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.bgx-strip-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--edge); border-radius: 999px; padding: 4px 13px 4px 5px;
  transition: color .15s, border-color .15s;
}
.bgx-strip-item:hover { color: var(--accent); border-color: var(--accent); }
.bgx-strip-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--edge); }

/* ============ B-roll 棚（broll.html） ============ */
/* 比率トグル（ギャラリー上部・2026-08-06 横展開。中立既定、切り抜きプレビューは各カード画像へ適用） */
.brl-aspect-row { margin: 16px 0 0; }
.brl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 14px; }
.brl-card { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel, rgba(255,255,255,.02)); }
.brl-card > a { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.brl-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.brl-card:hover img { transform: scale(1.03); }
.brl-card figcaption { padding: 10px 12px 12px; position: relative; }
.brl-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 4px; }
.brl-dl { position: absolute; top: 10px; right: 12px; }

/* ============ フォント棚（fonts.html） ============ */
.fnt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.fnt-card {
  background: var(--card); border: 1px solid var(--edge); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.fnt-preview {
  aspect-ratio: 16 / 9; background: var(--panel);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.fnt-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 見本画像が無い書体（12/30 件）— 隠さずプレースホルダ + 取得元リンクで網羅性を優先する */
.fnt-noimg {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 10px;
  color: var(--muted); font-size: 11.5px; text-align: center; line-height: 1.5;
  background: repeating-conic-gradient(#efeae2 0% 25%, #e5dfd4 0% 50%) 0 0 / 24px 24px;
}
.fnt-noimg-mark { font-size: 22px; font-weight: 800; color: #c9c1b3; font-style: italic; }
.fnt-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fnt-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.fnt-body h3 { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.fnt-use { font-size: 12px; color: var(--muted); }
.fnt-license { font-size: 11px; color: var(--muted); }
.fnt-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 8px; }
.fnt-link { font-size: 11.5px; font-weight: 600; color: var(--accent); }
.fnt-link:hover { text-decoration: underline; }
.badge-fnt-bundled { background: var(--accent-soft); color: var(--accent); }
.badge-fnt-free { background: var(--free-soft); color: var(--free); }
.badge-fnt-paid { background: var(--panel); color: var(--muted); }
.badge-fnt-sub { background: #f3e8ff; color: #7c3aed; }

/* ---- サムネ構図ライブラリ（thumbnails.html） ---- */
.thm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; margin-top: 14px; }
.thm-preview { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.thm-samples { display: flex; gap: 6px; padding: 8px 10px 0; }
.thm-samples button { flex: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thm-samples button.active { border-color: var(--accent); }
.thm-samples img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thm-desc { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.thm-knobs { margin-bottom: 12px; }

/* ---- パック型商品の全部見せ（リッチ字幕パック等） ---- */
/* 詳細プレビュー = 図鑑: 文字の実寸トリミング見本を暗地に敷き詰める（比率枠なし） */
.detail-preview.detail-preview-pack { background: #17181c; padding: 18px; min-height: 0; align-items: flex-start; align-self: start; }
.pack-specimen { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: center; }
.pack-specimen img { height: 40px; width: auto; max-width: 100%; }
/* 収録素材のカードグリッド: 画像はカード幅 contain = 確実に収まりつつ最大表示 */
.pack-items { margin-top: 26px; }
.pack-items h2 { font-size: 18px; font-weight: 800; }
.pack-items-lead { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.pack-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pack-item {
  background: #17181c; border: 1px solid var(--edge); border-radius: 10px;
  padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 10px;
}
.pack-item-img { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 56px; }
.pack-item-img img { width: 100%; height: auto; max-height: 110px; object-fit: contain; }
.pack-item-meta { display: flex; flex-direction: column; gap: 2px; }
.pack-item-group { font-size: 10.5px; color: #8b8f98; letter-spacing: .04em; }
.pack-item-name { font-size: 12px; color: #d5d8de; font-weight: 600; }

/* ---- ホームカード: 文字見本の図鑑（テロップ系） ---- */
.card-preview-specimen { background: #17181c; }
.card-specimen {
  display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; align-content: flex-start;
  justify-content: center; padding: 12px 14px; width: 100%; height: 100%; overflow: hidden;
  /* 収まりきらない分は下端でフェードアウト = 「まだ続きがある」を絵で言う */
  -webkit-mask-image: linear-gradient(#000 72%, transparent 98%);
  mask-image: linear-gradient(#000 72%, transparent 98%);
}
.card-specimen img { height: 25px; width: auto; max-width: 94%; }

/* ---- ホームカード: 背景ライブラリの立体壁面 ---- */
.card-preview-bgwall { background: #17181c; overflow: hidden; }
.bg-wall {
  display: grid; grid-template-columns: repeat(5, 96px); gap: 12px;
  transform: perspective(720px) rotateX(30deg) rotateZ(-11deg) scale(1.3);
  transform-origin: 52% 42%;
}
.bg-wall-tile {
  width: 96px; aspect-ratio: 16 / 10; border-radius: 8px;
  box-shadow: 0 14px 22px rgba(0, 0, 0, .38);
}
.bg-wall-tile:nth-child(3n) { translate: 0 -7px; }
.bg-wall-tile:nth-child(3n + 1) { translate: 0 7px; }
.bg-wall-count {
  position: absolute; right: 10px; bottom: 10px; font-size: 11px; font-weight: 700;
  color: #e8eaee; background: rgba(23, 24, 28, .72); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; padding: 4px 10px; backdrop-filter: blur(3px);
}

/* ---- ホームカード: 音源プレイヤー（AKARI Sounds） ---- */
.card-preview-sound { background: #17181c; overflow: hidden; }
.sound-stage {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 14px 16px 12px;
}
.sound-jackets { display: flex; }
.sound-jackets img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 14px rgba(0, 0, 0, .4);
}
.sound-jackets img:not(:first-child) { margin-left: -14px; }
.sound-jackets img:nth-child(1) { transform: rotate(-4deg); }
.sound-jackets img:nth-child(2) { transform: rotate(2deg) translateY(3px); }
.sound-jackets img:nth-child(3) { transform: rotate(-2deg); }
.sound-jackets img:nth-child(4) { transform: rotate(5deg) translateY(2px); }
.sound-eq { display: flex; align-items: flex-end; gap: 4px; height: 52px; }
.sound-eq span {
  width: 6px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #ffb26b, var(--accent));
  height: 30%; animation: f2d-eq 1.1s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) { .sound-eq span { animation: none; height: 62%; } }
.sound-playerbar { display: flex; align-items: center; gap: 10px; width: 100%; }
.sound-play {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; padding-left: 2px;
}
.sound-track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); position: relative; }
.sound-track i { position: absolute; inset: 0 62% 0 0; border-radius: 2px; background: var(--accent); }
.sound-track i::after {
  content: ""; position: absolute; right: -5px; top: 50%; translate: 0 -50%;
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
}
.sound-time { font-size: 10.5px; font-variant-numeric: tabular-nums; color: #b9bec7; }

/* ---- ホームカード: 宣言パック（機械可読データのコードシート） ---- */
.card-preview-decl { background: #17181c; overflow: hidden; position: relative; }
.decl-window {
  width: 88%; max-width: 350px; background: #1e2127; border: 1px solid #33373f; border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .45); overflow: hidden;
}
.decl-titlebar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #262a31; }
.decl-titlebar i { width: 8px; height: 8px; border-radius: 50%; }
.decl-titlebar i:nth-child(1) { background: #ff5f57; }
.decl-titlebar i:nth-child(2) { background: #febc2e; }
.decl-titlebar i:nth-child(3) { background: #28c840; }
.decl-titlebar span { margin-left: 6px; font-size: 10.5px; color: #9aa1ab; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.decl-code {
  margin: 0; padding: 9px 12px 11px; white-space: pre; overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.55; color: #c9d1d9;
}
.decl-code .k { color: #7ee0a3; }
.decl-code .n { color: #ffab70; }
.decl-code .s { color: #a5c8ff; }
.decl-note { position: absolute; left: 12px; bottom: 2px; font-size: 46px; color: rgba(255, 255, 255, .08); pointer-events: none; }
.decl-stamp {
  position: absolute; right: 12px; top: 12px; rotate: 6deg;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #ffb26b;
  border: 2px solid #ffb26b; border-radius: 8px; padding: 3px 8px; background: rgba(23, 24, 28, .6);
}
/* メール登録ゲート（Lab の無料 DL / 購入で共用） */
.email-gate-backdrop[hidden] { display: none; }
.email-gate-backdrop {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  padding: 20px; background: rgba(28, 25, 23, .58); backdrop-filter: blur(4px);
}
.email-gate-dialog {
  position: relative; width: min(100%, 440px); padding: 26px; border-radius: 16px;
  background: #fff; color: #1c1917; box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
.email-gate-dialog h2 { margin: 0 32px 10px 0; font-size: 21px; }
.email-gate-dialog p { margin: 7px 0; font-size: 14px; }
.email-gate-benefits { color: #6b645d; }
.email-gate-close {
  position: absolute; top: 12px; right: 14px; border: 0; background: transparent;
  color: #6b645d; font-size: 24px; cursor: pointer;
}
.email-gate-field { display: grid; gap: 5px; margin-top: 18px; font-size: 12px; font-weight: 700; }
.email-gate-field input {
  width: 100%; padding: 11px 12px; border: 1px solid #ddd6ce; border-radius: 9px;
  background: #fff; color: #1c1917; font: inherit;
}
.email-gate-optin { display: flex; align-items: center; gap: 8px; margin: 13px 0; font-size: 14px; }
.email-gate-optin input { width: 18px; height: 18px; accent-color: #ea580c; }
.email-gate-submit {
  width: 100%; border: 0; border-radius: 9px; padding: 11px 16px; background: #ea580c;
  color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.email-gate-message { margin-top: 12px; color: #6b645d; font-size: 13px; }
.email-gate-message a { color: #ea580c; }
body.email-gate-open { overflow: hidden; }
@media (max-width: 375px) {
  .email-gate-backdrop { padding: 12px; }
  .email-gate-dialog { padding: 22px 18px; }
}

/* ---- Lifetime パス詳細ページ（lifetime.html = /lab/lifetime） ----
   トップカード（.lifetime）が 1 枚に詰め込んでいた説得を、9 節の広いレイアウトへ展開する。
   価格・席・段の数値はすべて pass/status 由来（lifetime.js）で、ここは器だけを持つ */
.lt-page .note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.lt-page .note a { color: var(--accent); font-weight: 700; }
/* 合成プレビューの静止ポスター（宣言パック等）はカード枠いっぱいに収める */
.lt-page .card-preview > img { width: 100%; height: 100%; object-fit: cover; }
.lt-hero { padding: 32px 0 40px; }
.lt-hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px 32px; align-items: start;
  border: 1px solid var(--edge); border-radius: 16px; background: var(--card); padding: 26px 28px;
}
.lt-title { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; letter-spacing: .01em; }
.lt-lead { color: var(--muted); font-size: 14px; margin-top: 10px; }
.lt-hero-points { list-style: none; margin-top: 14px; display: grid; gap: 6px; font-size: 14px; }
.lt-hero-points li { padding-left: 20px; position: relative; }
.lt-hero-points li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.lt-buybox { text-align: center; align-self: center; }
.lt-price { font-size: 30px; font-weight: 900; color: var(--accent); line-height: 1.3; }
.lt-seats { font-size: 12px; color: var(--muted); margin-top: 6px; }
.lt-seats-total { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lt-cta { margin-top: 10px; }
.lt-cta .note { font-size: 11.5px; }
.lt-total-note { margin-top: 16px; }
/* §3 これから増える分 — 準備中カテゴリの紹介カード。点線 = 準備中の視覚言語を継承し、
   価格・合計・比較には一切関与しない（チップ時代からの規律は不変） */
.lt-upcoming-cats {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin: 4px 0 0; padding: 0;
}
.lt-upcoming-cats li {
  border: 1px dashed var(--edge); border-radius: 14px; background: var(--card);
  padding: 14px 16px;
}
.lt-upcoming-cats h3 { font-size: 14px; font-weight: 800; }
.lt-upcoming-cats p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.lt-ladder { list-style: none; display: grid; gap: 8px; }
.lt-ladder-step {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--edge); border-radius: 12px; background: var(--card);
  padding: 10px 16px; font-size: 14px;
}
.lt-ladder-step.is-current { border-color: var(--accent); background: var(--accent-soft); }
.lt-ladder-step.is-done { color: var(--muted); }
.lt-ladder-seats { min-width: 116px; color: var(--muted); font-size: 13px; }
.lt-ladder-price { font-weight: 800; }
.lt-ladder-now {
  font-size: 11px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 1px 9px;
}
.lt-progress {
  margin-top: 16px; height: 8px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--edge); overflow: hidden;
}
.lt-progress-bar { display: block; height: 100%; width: 0; background: var(--accent); }
.lt-after-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lt-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lt-scope-card {
  border: 1px solid var(--edge); border-radius: 14px; background: var(--card); padding: 18px 20px;
}
.lt-scope-card h3 { font-size: 15px; font-weight: 800; }
.lt-scope-card ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; font-size: 13.5px; }
.lt-scope-card li { padding-left: 18px; position: relative; color: var(--muted); }
.lt-scope-card li::before { content: "・"; position: absolute; left: 0; }
.lt-cta-foot {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px 32px; align-items: center;
  border: 1px solid var(--accent); border-radius: 16px; background: var(--card); padding: 26px 28px;
}
.lt-cta-foot h2 { font-size: 20px; font-weight: 800; }
@media (max-width: 760px) {
  .lt-hero-grid, .lt-cta-foot, .lt-after-grid, .lt-scope-grid, .lt-upcoming-cats { grid-template-columns: 1fr; }
}

/* ---- アップデート（更新履歴。正本: data/updates.json） ---- */
.updates-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--edge); }
.update-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--edge); font-size: 13px; }
.update-date { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.update-tag { flex: none; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.update-text a { color: var(--accent); }
.update-text a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .update-row { flex-wrap: wrap; row-gap: 2px; }
  .update-text { flex-basis: 100%; }
}

/* 素材詳細のバージョンチップ（正本: 素材 meta.json / assets-catalog.json） */
.detail-version { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 1px 10px; }
