/* ==========================================================================
   Loupe LP — darkroom instrument aesthetic
   warm near-black · amber #ff9f1c · mono readouts · film motifs
   ========================================================================== */

:root {
  --bg: #0c0b09;
  --bg-alt: #100f0c;
  --panel: #14130f;
  --panel-2: #1a1813;
  --ink: #ece8e0;
  --dim: #9a948a;
  --faint: #5c574e;
  --line: rgba(236, 232, 224, 0.09);
  --amber: #ff9f1c;
  --amber-soft: rgba(255, 159, 28, 0.14);
  --ok: #5fd48a;
  --bad: #ff5d5d;
  --font-sans: "Space Grotesk", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shell: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lang-ja { font-family: "Noto Sans JP", "Hiragino Sans", var(--font-sans); }
body.lang-ja h1, body.lang-ja h2, body.lang-ja h3 { letter-spacing: 0; line-height: 1.45; }
/* 見出しと同じ理由でラベル類も詰める。EN の全大文字ラベル用に入れた tracking
   (compare-tag 0.1em / checker 0.14em / vs-head 0.12em / trust-line 0.1em) は
   日本語に当たると字間になる。kicker 等「JA でも英語のまま」のラベルは対象外。 */
body.lang-ja .compare-tag,
body.lang-ja .trust-line,
body.lang-ja .checker label,
body.lang-ja .vs-head > div { letter-spacing: 0.03em; }
/* compare-tag は EN が全大文字なので mono だが、JA では和字が入る。mono の半角スペースは
   固定幅 0.6em で「Loupe の実測露出」の助詞前が不自然に開くため、JA では sans に戻す。
   .ui-label (SCORE · AT PEAK など JA でも英語ハードコードの UI ラベル) は mono を維持。 */
body.lang-ja .compare-tag:not(.ui-label) { font-family: inherit; }
body.lang-ja .btn small { font-family: inherit; }
/* JA の改行品質。既定の line-break: auto では長音符が行頭に来て「センサ / ーの作り」と
   分断される。strict で長音符・小書き文字を行頭禁則にする。見出しは balance で行長を
   均等化し「出し切れな / いのか」のような単語途中の改行を減らす。 */
body.lang-ja { line-break: strict; }
/* 日本語は原則どの文字間でも折れるので、ブラウザは文節を無視して幅いっぱいまで詰める。
   結果「こ / のフィルム」「直りま / せん」のように連体詞や活用語尾が割れる。text-wrap の
   pretty / balance は行長のバランス調整で、折る位置の制約ではないため効かない。
   そこで CJK 内の自動改行を全面的に禁止し、改行位置は main.js が単語境界に置く <wbr>
   だけで決める。seg-ja は分割が実際に走ったときだけ付くので、Intl.Segmenter 非対応
   環境では従来どおり折り返す。 */
body.lang-ja.seg-ja { word-break: keep-all; }
/* 和文の本文は両端揃えが基本。ラグった右端は欧文の作法で、auto-phrase で改行可能点が
   減るとその凹凸が大きく出る。日本語は余りを字間に吸収できるので justify で潰す。
   :where() で詳細度 0 にしてあるため .pain-punch や .section-alt の中央揃えは勝つ。 */
:where(body.lang-ja) :where(p, dd, figcaption, .spec-list li) { text-align: justify; }
/* 継承で中央揃えになっている段落だけは、直接指定が継承に勝つので明示で戻す。 */
body.lang-ja .price-top p,
body.lang-ja .final-cta p { text-align: center; }
/* h1 は <br> で 2 行に割っているので balance を当てるとセグメントごとに均等化され、
   「フィルムスキャ / ン」とカタカナが分断される。h1 は font-size 側で解く。 */
body.lang-ja h2, body.lang-ja h3 { text-wrap: balance; }
/* <br> で改行位置を明示した見出しは balance を外す。balance はセグメントごとに
   行長を均等化するので、指定した改行位置の中でさらに単語が割れる。 */
body.lang-ja h2.wrap-manual { text-wrap: initial; }
/* EN の 52px は日本語だと全角で入る字数が半分になり、「シャッターを切る前 / に決まっている」と
   助詞の前で改行される。44px で「シャッターを切る前に」(10 字) が 1 行に収まる。 */
body.lang-ja .hero h1 { font-size: clamp(30px, 3.4vw, 44px); }
/* h2 も同じ理由で下げる。40px では feature の 1 カラム (512px) に 12.8 字しか入らず、
   43 字の cal.h2 が 5 行 + 助詞行頭になる。34px なら 15 字/行。 */
body.lang-ja h2 { font-size: clamp(26px, 3.2vw, 34px); }
/* punch も EN の 30px 前提。JA は全角が 0.99em ずつ入るので 27 字で 802px となり
   shell-narrow の本文幅 764px を 38px 超え、「出し切れない / なら、」と助詞だけが
   2 行目に落ちる。<br> で 2 行に割っているので h1 と同じく font-size 側で解く。 */
body.lang-ja .pain-punch { font-size: clamp(21px, 2.8vw, 28px); }
body.lang-ja p, body.lang-ja li, body.lang-ja figcaption, body.lang-ja dd { text-wrap: pretty; }

/* film grain atmosphere */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffb54d; }
.mono { font-family: var(--font-mono); }
.t-ok { color: var(--ok); }
.t-bad { color: var(--bad); }
.t-amber { color: var(--amber); }
.t-dim { color: var(--dim); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.shell-narrow { max-width: 820px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
h3 { font-size: 18px; line-height: 1.4; }
p { margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 60px; }
.wordmark { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.wordmark svg { color: var(--amber); }
.wordmark:hover { color: var(--ink); }
.header-nav { display: flex; gap: 4px; margin-left: 8px; margin-right: auto; }
.header-nav a { color: var(--dim); font-size: 13.5px; font-weight: 500; padding: 7px 12px; border-radius: 6px; }
.header-nav a:hover { color: var(--ink); background: rgba(236, 232, 224, 0.05); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang-switch button {
  border: none; background: transparent; color: var(--dim);
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 6px 10px; cursor: pointer;
}
.lang-switch button.active { background: var(--ink); color: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border-radius: 8px; font-weight: 700; text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn small { font-weight: 500; font-size: 10.5px; letter-spacing: 0.04em; opacity: 0.75; }
.btn-sm { padding: 8px 14px; font-size: 13px; flex-direction: row; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; min-width: 220px; }
.btn-solid { background: var(--amber); color: #1a1000; }
.btn-solid:hover { background: #ffb54d; color: #1a1000; transform: translateY(-1px); }
.btn-solid small { color: #4a3000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(236, 232, 224, 0.22); }
.btn-ghost:hover { border-color: rgba(236, 232, 224, 0.45); color: var(--ink); transform: translateY(-1px); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-center { justify-content: center; }

/* ---------- section chrome ---------- */
.section { position: relative; padding: 110px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-lede { color: var(--dim); font-size: 16.5px; max-width: 640px; margin-bottom: 40px; text-wrap: pretty; }

/* film frame-number label on each section */
[data-frame]::before {
  content: attr(data-frame);
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--faint); white-space: nowrap;
}

/* perforation strip divider */
.section::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='15'%3E%3Crect x='9' y='3' width='16' height='9' rx='2.5' fill='none' stroke='rgba(236,232,224,0.13)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  pointer-events: none;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 120px 0 90px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 420px at 70% -80px, rgba(255, 159, 28, 0.08), transparent 70%),
    radial-gradient(600px 400px at 10% 30%, rgba(255, 159, 28, 0.04), transparent 70%);
}
.hero .shell { position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 56px; align-items: center; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  font-size: 11px; font-weight: 500; color: var(--dim);
  border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px;
  background: rgba(236, 232, 224, 0.03);
}
.chip-amber { color: var(--amber); border-color: rgba(255, 159, 28, 0.35); background: var(--amber-soft); font-weight: 600; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 22px; }
.lede { color: var(--dim); font-size: 17px; line-height: 1.85; margin-bottom: 36px; text-wrap: pretty; }

.hero-stage { position: relative; }
.app-window {
  background: var(--panel);
  border: 1px solid rgba(236, 232, 224, 0.13);
  border-radius: 12px; padding: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 159, 28, 0.05);
}
.app-titlebar { display: flex; align-items: center; gap: 6px; padding: 2px 6px 10px; }
.traffic { width: 10px; height: 10px; border-radius: 50%; background: #2e2c26; }
.app-live { display: flex; align-items: center; gap: 6px; margin-left: 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--dim); }
.app-meta { margin-left: auto; font-size: 10.5px; color: var(--faint); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.float-badge {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  background: rgba(20, 19, 15, 0.94);
  border: 1px solid rgba(236, 232, 224, 0.16);
  border-radius: 8px; padding: 9px 13px;
  font-size: 11px; font-weight: 600; color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.fb-1 { top: 36px; left: -18px; animation: floaty 5s ease-in-out infinite; }
.fb-2 { top: 44%; right: -14px; animation: floaty 6s ease-in-out -1.8s infinite; }
.fb-3 { bottom: 52px; left: -14px; animation: floaty 5.5s ease-in-out -2.7s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .float-badge, .dot-ok { animation: none; }
}

/* ---------- image slots (placeholders until real assets) ---------- */
.img-slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #14130f 0 14px, #171610 14px 28px);
  border: 1px dashed rgba(236, 232, 224, 0.18);
  border-radius: 8px; overflow: hidden;
  min-height: 200px;
}
.img-slot > span { font-size: 10.5px; color: var(--faint); text-align: center; padding: 0 12%; line-height: 1.9; letter-spacing: 0.03em; }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-hero { height: 520px; }
.slot-feature { height: 300px; margin-bottom: 12px; }

/* ---------- pain ---------- */
.pain-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.pain-item { display: flex; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.pain-num { font-size: 13px; font-weight: 600; color: var(--amber); padding-top: 4px; flex-shrink: 0; }
.pain-item h3 { margin-bottom: 10px; }
.pain-item p { color: var(--dim); font-size: 14.5px; }
.pain-punch { margin-top: 56px; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; letter-spacing: -0.01em; text-align: center; }
.pain-punch strong { color: var(--amber); font-weight: 700; }

/* ---------- proof / comparison sliders ---------- */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare { margin: 0; }
.compare-frame { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(236, 232, 224, 0.13); aspect-ratio: 4 / 3; background: var(--panel); }
.compare-frame .img-slot { position: absolute; inset: 0; border: none; border-radius: 0; min-height: 0; }
.compare-over { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare-over .img-slot { background: repeating-linear-gradient(45deg, #1a1813 0 14px, #1d1b14 14px 28px); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--amber); pointer-events: none; z-index: 2;
  box-shadow: 0 0 12px rgba(255, 159, 28, 0.6);
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.compare-handle span::before { content: "◂ ▸"; font-size: 10px; color: #1a1000; letter-spacing: 1px; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; z-index: 3; margin: 0;
}
.compare-tag {
  position: absolute; bottom: 10px; z-index: 2;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em;
  background: rgba(12, 11, 9, 0.8); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 4px; color: var(--dim);
}
.tag-left { left: 10px; }
.tag-right { right: 10px; color: var(--amber); border-color: rgba(255, 159, 28, 0.35); }
.compare figcaption { margin-top: 12px; font-size: 11px; color: var(--faint); line-height: 1.8; letter-spacing: 0.02em; }

/* ---------- feature sections ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.feature-flip .feature-copy { order: 2; }
.feature-flip .feature-visual { order: 1; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--amber); margin-bottom: 16px; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy > p { color: var(--dim); font-size: 15px; margin-bottom: 28px; text-wrap: pretty; }
.spec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.spec-list li { display: flex; gap: 16px; align-items: baseline; font-size: 14px; color: #c9c4ba; line-height: 1.75; }
.spec-key { flex-shrink: 0; width: 108px; font-size: 11px; font-weight: 600; color: var(--amber); letter-spacing: 0.04em; }

/* ---------- instrument panels (CSS/JS animated) ---------- */
.instrument-panel {
  background: #0a0908;
  border: 1px solid rgba(236, 232, 224, 0.12);
  border-radius: 10px; padding: 16px;
}
.inst-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 11px; }

/* histogram */
.hist-canvas { position: relative; height: 96px; display: flex; align-items: flex-end; gap: 2px; }
.hist-canvas .bar { flex: 1; border-radius: 1px 1px 0 0; transform-origin: bottom; animation: histFlick 2.2s ease-in-out infinite alternate; }
.hist-canvas .clip-line { position: absolute; top: 0; bottom: 0; right: 6%; border-left: 1px dashed rgba(255, 93, 93, 0.55); }
.hist-canvas .clip-label { position: absolute; top: -4px; right: 0; font-family: var(--font-mono); font-size: 9px; color: var(--bad); }
@keyframes histFlick { from { transform: scaleY(0.86); } to { transform: scaleY(1.05); } }

/* calibration rail */
.cal-rail { position: relative; height: 58px; }
.cal-gradient {
  position: absolute; left: 0; right: 0; bottom: 6px; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #23211b 0%, #6b5210 55%, var(--amber) 78%, var(--bad) 96%);
}
.cal-marker { position: absolute; top: 0; bottom: 0; font-size: 9px; white-space: nowrap; }
.cal-marker::after { content: ""; position: absolute; left: 50%; top: 15px; bottom: 0; border-left: 1px dashed currentColor; opacity: 0.6; }
.m-jpeg { left: 62%; color: var(--dim); transform: translateX(-50%); }
.m-raw { left: 92%; color: var(--bad); transform: translateX(-50%); }
.cal-cursor {
  position: absolute; bottom: 2px; width: 2px; height: 18px; border-radius: 1px;
  background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 100% { left: 10%; } 50% { left: 88%; } }

/* focus panel */
.focus-panel { display: block; }
/* focus score over time: climbs, then flattens against the peak-hold line */
.peak-field {
  position: relative; height: 104px; padding: 10px 12px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(180deg, #141210 0%, #0d0c0b 100%);
  display: flex; align-items: flex-end; gap: 1px;
}
.peak-field i { flex: 1; display: block; min-height: 2px; border-radius: 1px 1px 0 0; }
.peak-hold {
  position: absolute; left: 12px; right: 12px; height: 1px;
  background: rgba(255, 159, 28, 0.55); pointer-events: none;
}
.peak-hold::after {
  content: "PEAK"; position: absolute; right: 0; top: -12px;
  font: 600 9px/1 var(--font-mono); letter-spacing: 0.1em; color: rgba(255, 159, 28, 0.75);
}
.inst-row strong { font-size: 15px; font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .hist-canvas .bar, .cal-cursor { animation: none; }
}

/* ---------- ceiling / vs table ---------- */
.ceiling-h { text-align: center; }
.section-alt .shell-narrow .section-lede { margin-left: auto; margin-right: auto; text-align: center; max-width: 720px; }
.vs-table { margin-top: 40px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.vs-row { display: grid; grid-template-columns: 200px 1fr 1fr; border-bottom: 1px solid var(--line); }
.vs-row:last-child { border-bottom: none; }
.vs-row > div { padding: 15px 20px; font-size: 13.5px; line-height: 1.6; }
.vs-row > div:first-child { color: var(--dim); font-size: 12.5px; }
.vs-row > div:nth-child(2) { color: var(--ink); background: rgba(255, 159, 28, 0.05); border-left: 1px solid rgba(255, 159, 28, 0.2); border-right: 1px solid var(--line); }
.vs-row > div:nth-child(3) { color: var(--faint); }
.vs-head > div { font-family: var(--font-mono); font-size: 11px !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.vs-head .vs-loupe { color: var(--amber) !important; font-weight: 600; }
.vs-note { margin-top: 18px; font-size: 11px; color: var(--faint); line-height: 1.9; }
.vs-fair { margin-top: 8px; font-size: 13px; color: var(--dim); font-style: italic; }

/* ---------- outcomes ---------- */
.outcome-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.outcome { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; transition: border-color 0.25s ease, transform 0.25s ease; }
.outcome:hover { border-color: rgba(255, 159, 28, 0.3); transform: translateY(-2px); }
.outcome-num { color: var(--amber); font-size: 15px; }
.outcome h3 { margin: 12px 0 8px; }
.outcome p { color: var(--dim); font-size: 13.5px; }

/* ---------- pricing ---------- */
.price-card {
  margin-top: 36px; background: var(--panel);
  border: 1px solid rgba(255, 159, 28, 0.25); border-radius: 16px;
  padding: 44px 48px;
  box-shadow: 0 0 80px rgba(255, 159, 28, 0.06);
}
.price-top { text-align: center; margin-bottom: 30px; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 16px; }
.price-amount .mono { font-size: 56px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; }
.price-once { color: var(--dim); font-size: 14px; }
.price-anchor { color: var(--dim); font-size: 14.5px; max-width: 520px; margin: 0 auto; text-wrap: pretty; }
.price-list { list-style: none; margin: 0 auto 32px; padding: 0; max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.price-list li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: #c9c4ba; }
.price-alt { text-align: center; margin-top: 20px; font-size: 11px; color: var(--faint); }

/* ---------- FAQ + checker ---------- */
.checker { margin: 8px 0 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; }
.checker label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--amber); margin-bottom: 12px; }
.checker select {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid rgba(236, 232, 224, 0.2); border-radius: 8px;
  padding: 12px 14px; font-family: var(--font-sans); font-size: 14.5px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a948a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.checker-result { margin-top: 14px; font-size: 13.5px; line-height: 1.7; padding: 12px 16px; border-radius: 8px; }
.checker-result.ok { background: rgba(95, 212, 138, 0.08); border: 1px solid rgba(95, 212, 138, 0.25); color: #a9e8c0; }
.checker-result.listed { background: var(--amber-soft); border: 1px solid rgba(255, 159, 28, 0.3); color: #ffd9a0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 22px; transition: border-color 0.2s ease; }
.faq-list details:hover { border-color: rgba(255, 159, 28, 0.25); }
.faq-list summary { cursor: pointer; padding: 17px 0; font-size: 14.5px; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "＋"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 14px; transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--amber); }
.faq-list details p { padding: 0 0 20px; font-size: 13.5px; color: var(--dim); line-height: 1.9; }

/* ---------- final CTA ---------- */
.final-cta {
  position: relative; padding: 130px 0; text-align: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 340px at 50% 120%, rgba(255, 159, 28, 0.13), transparent 70%);
}
.final-cta .shell { position: relative; }
.final-cta h2 { font-size: clamp(28px, 4.4vw, 44px); }
.final-sub { color: var(--amber); font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; margin: 14px 0 40px; }
.trust-line { margin-top: 30px; font-size: 10.5px; letter-spacing: 0.1em; color: var(--faint); }

/* ---------- legal pages (privacy.html / eula.html) ---------- */
/* 言語ブロックの排他表示。法務文書は辞書に分解せず全文を並べて置く (理由は legal.js)。
   EN を既定にするのは index.html と同じ (第一言語が HTML にある状態)。 */
.lang-block[data-lang-block="ja"] { display: none; }
body.lang-ja .lang-block[data-lang-block="ja"] { display: block; }
body.lang-ja .lang-block[data-lang-block="en"] { display: none; }

.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.25; }
/* 見出しの大きさは h2 の既定 (clamp 28-40px) では条文の階層に対して大きすぎる。
   body.lang-ja h2 の 34px も同じ理由で上書きする (詳細度で勝つよう .legal を前置)。 */
.legal h2,
body.lang-ja .legal h2 { font-size: clamp(18px, 2.1vw, 21px); margin: 42px 0 10px; letter-spacing: -0.01em; }
.legal h3,
body.lang-ja .legal h3 { font-size: 15.5px; margin: 26px 0 8px; color: var(--amber); }
.legal p, .legal li { color: var(--dim); font-size: 15px; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal code { font-family: var(--font-mono); font-size: 0.92em; color: var(--ink); }
.legal-meta { color: var(--faint); font-size: 11.5px; letter-spacing: 0.06em; margin-top: 12px; }
/* mono の半角スペースは固定幅 0.6em なので「2026 年 8 月」の数字と単位が離れる
   (index.html の .compare-tag と同じ理由)。和字が入る行は JA では sans に戻す。 */
body.lang-ja .legal-meta, body.lang-ja .legal-end { font-family: inherit; letter-spacing: 0.02em; }
.legal-lead { color: var(--ink); margin-top: 30px; }
.legal-end { color: var(--faint); font-size: 11.5px; margin-top: 40px; }
/* 特商法の表。項目名を左固定幅にして値を読ませる (Latent の legal/tokushoho と同じ形) */
.legal-table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 14.5px; }
.legal-table th, .legal-table td { padding: 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table th { width: 190px; padding-right: 20px; font-weight: 600; color: var(--ink); }
.legal-table td { color: var(--dim); }
body.lang-ja .legal-table th { width: 210px; }
@media (max-width: 640px) {
  /* 190px の項目名列が残ると値が 2 文字幅になるので、縦積みに切り替える */
  .legal-table th, .legal-table td { display: block; width: auto; padding-right: 0; }
  .legal-table th { border-bottom: none; padding-bottom: 2px; }
  body.lang-ja .legal-table th { width: auto; }
}

.legal-nav { display: flex; gap: 20px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.legal-nav a { color: var(--faint); }
.legal-nav a:hover { color: var(--dim); }
/* 法務ページのヘッダーは nav を持たないので、言語トグルを右端に寄せる */
.header-actions-legal { margin-left: auto; }

/* ---------- footer ---------- */
.site-footer { padding: 34px 0 46px; }
.footer-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.wordmark-dim { color: var(--dim); font-size: 13px; }
.wordmark-dim svg { color: var(--faint); }
.footer-tag { color: var(--faint); font-size: 11px; font-weight: 400; }
/* footer は 4 リンクになったので、狭い幅では折り返して並ぶ。リンク内の折り返し
   (「使用許諾 / 契約」) だけは禁止する — 項目の境界が読めなくなるため。 */
.footer-nav { display: flex; gap: 18px; margin-left: auto; font-size: 11px; flex-wrap: wrap; }
.footer-nav a { white-space: nowrap; }
.footer-nav a { color: var(--faint); }
.footer-nav a:hover { color: var(--dim); }
.footer-legal { width: 100%; font-size: 11px; color: var(--faint); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
/* 両端揃えには行長が要る。--shell (1140px) を下回るとカラムが縮み、入りきらない語が
   空けた穴を字間が吸収しきれない。tools/check-linebreaks.js の実測で伸びは 1024px で
   +31%、430px で +61% に達する。ラグはスタイルだが、間延びした字間は欠陥なので、
   レイアウトが全幅で組めない範囲ではラグに戻す。 */
@media (max-width: 1140px) {
  :where(body.lang-ja) :where(p, dd, figcaption, .spec-list li) { text-align: start; }
}

@media (max-width: 960px) {
  .hero .shell { grid-template-columns: 1fr; gap: 44px; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature-flip .feature-copy { order: 1; }
  .feature-flip .feature-visual { order: 2; }
  .proof-grid { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .float-badge { display: none; }
  .slot-hero { height: 340px; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div:first-child { padding-bottom: 4px; font-weight: 600; }
  .vs-row > div:nth-child(2) { border-left: none; border-right: none; }
  .vs-head { display: none; }
  .vs-row > div:nth-child(2)::before { content: "Loupe — "; color: var(--amber); font-family: var(--font-mono); font-size: 11px; }
  .vs-row > div:nth-child(3)::before { content: "Generic — "; font-family: var(--font-mono); font-size: 11px; }
  .price-card { padding: 32px 24px; }
  .section { padding: 84px 0; }
}

/* ---------- JA のモバイル組版 ---------- */
@media (max-width: 640px) {
  /* wrap-manual の <br> はデスクトップ幅 (1 カラム 512px) 前提の改行位置。
     モバイルでは各セグメントがさらに折り返して助詞 1 文字の孤立行を作るので、
     <br> を無効化して balance の自動分割に戻す。 */
  body.lang-ja h2.wrap-manual br { display: none; }
  /* balance は行長の均等を優先して文節境界を壊す (助詞が行頭に来る)。狭い幅では
     自然折り返しのほうが助詞行頭が少ないので、見出しの balance を全部外す。 */
  body.lang-ja h2, body.lang-ja h3 { text-wrap: initial; }
  /* h3 18px ではカード内幅 290px に 16 字しか入らず、16 字の見出しを balance が
     2 行に割って「スキャン露出のこ / とを考えなくなる」になる。 */
  body.lang-ja h3 { font-size: 16px; }
  /* 390px には wordmark + 言語トグル + ボタン 2 つが収まらず、ボタン内でテキストが
     折り返して「無料トラ / イアル」「日 / 本 / 語」になる。副 CTA (購入) を隠し、
     主 CTA (トライアル) だけ残す。price セクションに購入ボタンはある。 */
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-sm { white-space: nowrap; padding: 7px 12px; }
  .lang-switch button { padding: 6px 8px; white-space: nowrap; }
}
