/* ==========================================================================
   Bedroom Development — 屋号のページ (/, /easel/, 404) の土台
   --------------------------------------------------------------------------
   方向は「Contact sheet」(docs/plans/2026-11-02-brand-and-site-design.md §3、user 決定 2026-11-02)。
   入口は v2 (2026-11-04): 写真と Loupe が主役、屋号は脇役。製品はフィルムのベタ焼きのコマとして並べる。
   色と chrome (house bar / footer) は house.css。製品ページ固有のものは各ページの assets/style.css。
   ========================================================================== */

* { 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.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain。Loupe の body::after と同じ */
body::after {
  content: ""; position: fixed; inset: 0; opacity: 0.04; pointer-events: none; z-index: 1;
  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");
}

/* ---------- 和文 (Loupe と同じ規則) ---------- */
body.lang-ja { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; line-break: strict; }
/* 文の見出しは JA で書き下ろし。英語の文は kicker にも残さない (docs/research/2026-11-03-bilingual-lp-research.md §2)。
   欧文だけの要素 (ワードマーク・製品名・mono) は言語で書体を変えない */
body.lang-ja :is(.en, .maker-name, .wordmark, .sheet-name, .hero-wordmark, .eco-tool, .eco-hub b) { font-family: var(--font-sans); }
body.lang-ja .mono { letter-spacing: inherit; }
/* 改行できるのは build が単語境界に置いた <wbr> だけにする (scripts/ja-typography.mjs) */
body.lang-ja { word-break: keep-all; }
/* 40 字以上流れる本文 (build の scripts/ja-typography.mjs が ja-flow を付ける) は普通の和文組版
   (どの字間でも折る) + 左揃え。見出し・ボタン・短い注記は上の keep-all (単語境界だけで折る) のまま。
   両端揃えは「0.15〜0.4 EV 手前」のような折れないかたまりの手前で行が早く終わると字間が 30% 前後
   伸びたのでやめた (2026-11-05 user)。
   中央揃えの段落は 40 字以上でも単語境界のまま (以前の markJaFlow の判定と同じ)。中央に揃えている所を :not() に並べる:
   価格の欄 (easel・argent の style.css の .price-top / .price-alt) と購入完了の見出し (thanks.css の .thanks-head)。
   中央揃えの段落を足したらここにも足す。漏れは check-linebreaks.js が「ja-flow の判定」で落とす */
body.lang-ja .ja-flow:not(.price-top *, .price-alt, .thanks-head *) { word-break: normal; text-align: start; }
/* 本文では単語境界の <wbr> を無効にする (WJ の追い込みより強いため) */
body.lang-ja .ja-flow:not(.price-top *, .price-alt, .thanks-head *) wbr { display: none; }

a { color: var(--accent, var(--amber)); text-decoration: none; }
a:hover { color: #ffb54d; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.t-dim { color: var(--dim); }
.t-faint { color: var(--faint); }

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

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 18px; }
h3 { font-size: 18px; line-height: 1.4; }
p { margin: 0; }
p + p { margin-top: 14px; }

/* ---------- header ---------- */
/* ガラスの nav (user 採用 2026-11-02): 透けた地に強い blur、下の罫の代わりに上端の明るい線と下へ溶ける影 (apple-design §12) */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 10, 8, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.site-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(235, 230, 220, 0.14); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 24px; pointer-events: none;
  background: linear-gradient(rgba(11, 10, 8, 0.5), transparent);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark svg { width: 20px; height: 20px; flex: none; }
.wordmark:hover { color: var(--ink); }
.header-nav { display: flex; gap: 22px; margin-left: auto; font-size: 12px; letter-spacing: 0.08em; }
.header-nav a { color: var(--dim); white-space: nowrap; }
.header-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
/* 静的なページ (EN と /ja/) はビルドが button を <a> にする (scripts/build-i18n.mjs)。404・thanks・account は button のまま */
.lang-switch :is(button, a) {
  border: none; background: transparent; color: var(--dim);
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  padding: 6px 10px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.lang-switch :is(button.active, a[aria-current="true"]) { background: var(--ink); color: var(--bg); }
.lang-switch a:not([aria-current="true"]):hover { color: var(--ink); }
.lang-switch a[aria-current="true"]:hover { color: var(--bg); }

/* ---------- buttons / chips / tags ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border-radius: 6px; font-weight: 600; line-height: 1.25; text-align: center;
  transition: transform 160ms var(--ease-out), background 160ms ease, border-color 160ms ease, filter 160ms ease;
}
/* 押した瞬間に返す (release でなく pointer-down)。hover の持ち上げはポインタのある端末だけ */
.btn:active { transform: scale(0.97); }
@media not ((hover: hover) and (pointer: fine)) {
  .btn:hover { transform: none; }
}
.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; gap: 8px; }
.btn-lg { padding: 14px 24px; font-size: 15px; min-width: 200px; }
.btn-solid { background: var(--accent, var(--amber)); color: #1a1000; }
.btn-solid:hover { filter: brightness(1.08); color: #1a1000; transform: translateY(-1px); }
.btn-solid small { color: #4a3000; }
/* 文字色を反転させたボタン。Latent の LP の App Store ボタンと同じ見た目 (地 = 文字色、文字 = 地) */
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { opacity: 0.9; color: var(--bg); transform: translateY(-1px); }
.btn-ink small { color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(235, 230, 220, 0.25); }
.btn-ghost:hover { border-color: rgba(235, 230, 220, 0.5); color: var(--ink); transform: translateY(-1px); }
/* Coming Soon: 押せない。色を落として、カーソルも変えない。製品ページの .btn-solid (色の上書き) に
   勝つように .btn を重ねて詳細度を上げている */
.btn.btn-soon, .btn.btn-soon:hover {
  background: var(--panel-2); color: #bfb8ac; border: 1px dashed rgba(235, 230, 220, 0.28);
  transform: none; cursor: default; filter: none;
}
.btn.btn-soon small { color: var(--dim); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-center { justify-content: center; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.chip-accent { color: var(--accent, var(--amber)); border-color: color-mix(in srgb, var(--accent, var(--amber)) 40%, transparent); background: color-mix(in srgb, var(--accent, var(--amber)) 12%, transparent); font-weight: 600; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap;
}
.tag-soon { color: var(--accent, var(--amber)); }

/* ---------- section chrome ---------- */
.section { position: relative; padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 0; }
.section-lede { color: var(--dim); font-size: 15.5px; max-width: 58ch; text-wrap: pretty; }
.kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent, var(--amber)); margin-bottom: 18px; }
[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;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 入口 v2 (2026-11-04): 写真と Loupe が主役、屋号は脇役 ----------
   版は Design canvas (HANDOVER に URL)。写真はまだ無いので .ph のプレースホルダー (data-asset に撮るもの)。 */
.hero { position: relative; padding: 80px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero .shell { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy > .lang-block { display: flex; flex-direction: column; gap: 22px; }
.hero-copy > .lang-block[data-lang-block="ja"] { display: none; }
body.lang-ja .hero-copy > .lang-block[data-lang-block="ja"] { display: flex; }
body.lang-ja .hero-copy > .lang-block[data-lang-block="en"] { display: none; }
.hero-copy .kicker { margin-bottom: 0; }
.hero-gloss { font-size: 13px; line-height: 1.7; color: var(--dim); }
.hero-gloss i { color: var(--faint); }
.hero-gloss-word { color: var(--ink); font-weight: 600; }
.hero-gloss-both { color: var(--amber); }
.hero-title { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.05; max-width: 13ch; }
.hero-wordmark { font-size: clamp(44px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; }
.hero-catch { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; margin-top: -6px; }
.hero-lede { color: var(--dim); font-size: 18px; line-height: 1.6; max-width: 46ch; }
body.lang-ja .hero-lede { font-size: 16px; line-height: 1.85; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.figure-cap { font-size: 11px; letter-spacing: 0.06em; color: var(--faint); display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }

/* 読み込み時の出現 (hero だけ、1 回)。写真の枠は「現像」で像を結ぶ: ぼけて暗い所から浮かぶ */
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes develop { from { opacity: 0; filter: blur(10px) brightness(0.45); } 55% { opacity: 1; } to { opacity: 1; filter: blur(0) brightness(1); } }
.hero-in { animation: hero-in 700ms var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 60ms); }
.ph-develop { animation: develop 1400ms var(--ease-out) both; animation-delay: 260ms; }
@media (prefers-reduced-motion: reduce) {
  @keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes develop { from { opacity: 0; } to { opacity: 1; } }
  .hero-in, .ph-develop { animation-duration: 200ms; }
}

/* 写真のプレースホルダー。素材が来たら <img> に差し替える */
.ph { position: relative; background: linear-gradient(160deg, #2a2419 0%, #15130f 55%, #1d1a14 100%); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 7px); }
.ph::after { content: "[" attr(data-asset) "]"; position: relative; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; line-height: 1.7; color: var(--faint); padding: 0 16px; }
.ph-neg { background: linear-gradient(160deg, #5a3a1d, #2a1a0c); }
/* 開発中の製品の画面。セーフライトの暗い琥珀を薄くかぶせ、左上に札を出す (現像中 = 開発中)。
   画は本物の開発版の画面で、仕様は変わりうる */
.wip { position: relative; overflow: hidden; }
.wip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0) 45%, rgba(10, 8, 6, 0.55) 100%),
    radial-gradient(120% 90% at 100% 0%, rgba(255, 140, 40, 0.16), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 28, 0.35);
  mix-blend-mode: normal;
}
.wip .sheet-img, .wip .selected-img { filter: saturate(0.82) brightness(0.92); }
.wip-tag {
  position: absolute; left: 12px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 9px; border: 1px solid rgba(255, 159, 28, 0.5); border-radius: 999px;
  background: rgba(14, 11, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--amber); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.wip-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: wip-pulse 2.4s ease-in-out infinite; }
@keyframes wip-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .wip-tag::before { animation: none; } }
.sheet-frame .wip-tag { left: 6px; bottom: 6px; padding: 3px 7px; font-size: 9px; gap: 6px; }
.sheet-frame .wip-tag::before { width: 5px; height: 5px; }
body.lang-ja .wip-tag { font-family: var(--font-sans); letter-spacing: 0.08em; }
.ph-paper { background: linear-gradient(160deg, #e9e4d8, #d9d2c2); }

/* フィルムの帯: 上下にパーフォレーション、縁に刻印 */
/* 下のパーフォレーションは刻印 (下端の 1 行) の上に置く */
.film { position: relative; background: #050505; padding: 26px 10px 34px; }
.film::before, .film::after { content: ""; position: absolute; left: 10px; right: 10px; height: 8px; border-radius: 1px; background: repeating-linear-gradient(90deg, #1c1a16 0 12px, transparent 12px 24px); }
.film::before { top: 9px; }
.film::after { bottom: 15px; }
.film-edge { position: absolute; left: 14px; bottom: 1px; font-size: 8px; letter-spacing: 0.3em; color: #c9821a; opacity: 0.9; white-space: nowrap; }
.film-edge-r { left: auto; right: 14px; }
/* 左の刻印は右の刻印の手前で切る (390 で枠を越えて横スクロールが出た、ペルソナ評価 2026-11-04) */
.film-edge:not(.film-edge-r) { right: 64px; overflow: hidden; }
.film-tilt { transform: rotate(-1.2deg); }
.hero-img { display: block; width: 100%; height: auto; }
/* 撮影・スキャン・反転を 1 行ずつ (語の途中で製品名が次の行に落ちないように) */
.hero-cap { flex-direction: column; gap: 4px; }
.film-sheet { padding: 30px 14px 36px; }
.film-small { padding: 22px 10px 32px; }

/* 札・入力 */
.field-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.field-label.is-selected { color: var(--mark); }
.field-note { color: var(--dim); font-size: 12px; line-height: 1.7; }
.field-note a { color: var(--ink); border-bottom: 1px solid rgba(235, 230, 220, 0.3); }
.field-status:empty { display: none; }
.field-status { font-size: 13px; color: var(--ink); }
.input { height: 46px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(235, 230, 220, 0.18); background: var(--panel); color: var(--ink); font-size: 15px; font-family: inherit; min-width: 0; }
.input::placeholder { color: var(--faint); }
.input:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.btn-md { padding: 12px 18px; font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notify-inline { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.notify-inline .field-label { flex-basis: 100%; margin-bottom: -2px; }
.notify-inline .input { flex: 1 1 220px; }
.notify-inline .field-note, .notify-inline .field-status { flex-basis: 100%; }
.notify-inline[data-notify-state="sent"] :is(.input, button) { display: none; }

/* Products: 増やせるカタログ。ベタ焼きのコマと、その下の札 */
.section-sub { color: var(--dim); font-size: 15px; margin-top: 8px; max-width: 62ch; }
body.lang-ja .section-sub { line-height: 1.85; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sheet-frame { position: relative; display: block; }
/* 実物の写真。Easel の書き出しは 1:1 なので、枠の 3:2 には紙の色を足して収める (#f3f0e9 = Easel の Paper) */
.sheet-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.sheet-img-mat { object-fit: contain; background: #f3f0e9; }
a.sheet-frame :is(.ph, .sheet-img) { transition: filter 200ms ease; }
@media (hover: hover) and (pointer: fine) { a.sheet-frame:hover .ph { filter: brightness(1.25); } a.sheet-frame:hover .sheet-img { filter: brightness(1.06); } }
/* 選んだコマは細い枠、ほかは少し落とす (赤丸はやめた。user 2026-11-04) */
.sheet-frame[data-select] :is(.ph, .sheet-img) { transition: filter 200ms ease, opacity 200ms ease; }
.sheet-frame[data-select]:not(.is-selected) :is(.ph, .sheet-img) { opacity: 0.55; }
.sheet-frame.is-selected { outline: 1px solid var(--ink); outline-offset: 3px; }
.sheet-captions { margin-top: 18px; padding: 0 14px; }
.sheet-cap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sheet-cap p { color: var(--dim); font-size: 13.5px; line-height: 1.55; }
body.lang-ja .sheet-cap p { line-height: 1.7; }
.sheet-name { font-weight: 600; font-size: 17px; }
.sheet-name a { color: var(--ink); }
.sheet-name a:hover { color: var(--amber); }
.kind-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg); background: var(--dim); padding: 2px 6px; border-radius: 2px; margin-right: 6px; vertical-align: 2px; font-weight: 500; }
.selected { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-top: 64px; padding: 36px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; scroll-margin-top: 88px; }
.selected-copy { display: flex; flex-direction: column; gap: 18px; }
.selected-copy h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; max-width: 20ch; }
.selected-copy > p { color: var(--dim); font-size: 16px; line-height: 1.6; max-width: 52ch; }
body.lang-ja .selected-copy > p { font-size: 15.5px; line-height: 1.85; max-width: 36em; }
.chip b { color: var(--amber); font-weight: 500; }
.selected-img { width: 100%; height: auto; vertical-align: top; }
/* 選ばれた札だけ赤く、" · selected" を出す。枠の出し分けは house.js (JS が無ければ 4 枠とも並ぶ) */
.sel-mark { display: none; }
.sheet-cap.is-selected .field-label { color: var(--mark); }
.sheet-cap.is-selected .sel-mark { display: inline; }
.selected[hidden] { display: none; }

/* 1 本の工程: 売り場ではなく索引 */
.eco { --bus: var(--line); }
.eco-hub { position: relative; width: min(360px, 100%); margin: 0 auto 44px; padding: 18px 22px; text-align: center; border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 7%, var(--panel)); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.eco-hub { flex-direction: row; justify-content: center; gap: 10px; }
.eco-hub svg { width: 22px; height: 22px; flex: none; }
.eco-hub b { font-size: 20px; font-weight: 600; color: var(--ink); }
.eco-hub::after { content: ""; position: absolute; left: 50%; top: 100%; height: 44px; border-left: 1px solid var(--bus); }
.eco-nodes { position: relative; list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.eco-nodes::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; border-top: 1px solid var(--bus); }
.eco-node { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; }
.eco-node::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 23px; border-left: 1px solid var(--bus); }
.eco-tool { font-weight: 600; font-size: 19px; color: var(--ink); margin-top: 4px; }
a.eco-tool:hover { color: var(--amber); }
.eco-meta { font-size: 11px; letter-spacing: 0.06em; color: var(--faint); }
.eco-io { margin-top: 4px; font-size: 11px; letter-spacing: 0.04em; color: var(--amber); }

/* 作り手 */
.maker-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.maker-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.maker-figure .ph { border-radius: 6px; }
.maker-img { display: block; width: 100%; height: auto; border-radius: 6px; }
.maker-copy { display: flex; flex-direction: column; gap: 18px; }
.maker-copy .kicker { margin-bottom: 0; }
.maker-copy h2 { margin-bottom: 0; }
.maker-copy .maker-name { margin-top: 0; }
/* 作例は 3:2 のフィルム 4 枚 (2026-11-05)。96px のサムネイルでは写真として見えないので、本文の幅で 2 × 2 */
.maker-scans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 60ch; } /* 本文 (.prose) の右端に揃える */
.maker-scans img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.maker-scan { display: block; border-radius: 4px; cursor: zoom-in; }
.maker-scan img { transition: opacity 0.2s var(--ease-out); }
.maker-scan:hover img { opacity: 0.82; }
.maker-scan:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- 作例のギャラリー (assets/gallery.js) ---------- */
html.gallery-open { overflow: hidden; }
.gallery {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 76px 28px;
  border: 0; background: #080706; color: var(--ink); /* 不透明。透けると明るい写真の上で本文が読めてしまう */
}
/* 閉じているあいだは隠す。<dialog> を知らないブラウザでも空の枠と動かないボタンを見せない */
.gallery:not([open]) { display: none; }
/* 写真を送ったことを読み上げで伝える領域 (見た目には出さない) */
.gallery-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gallery[open] { display: flex; align-items: center; justify-content: center; }
.gallery::backdrop { background: rgba(0, 0, 0, 0.6); }
.gallery-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.gallery-img { display: block; max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.gallery-cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12px; color: var(--dim); letter-spacing: 0.04em; }
.gallery-count { color: var(--faint); }
.gallery-btn {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink); font: 400 28px/1 var(--font-sans); cursor: pointer;
}
.gallery-btn:hover { background: rgba(235, 230, 220, 0.08); }
.gallery-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.gallery-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.gallery-next { right: 14px; top: 50%; transform: translateY(-50%); }
.gallery-close { top: 12px; right: 14px; }
@media (max-width: 640px) {
  .gallery { padding: 56px 12px 84px; }
  .gallery-img { max-height: calc(100dvh - 190px); }
  .gallery-prev, .gallery-next { top: auto; bottom: 18px; transform: none; }
  .gallery-prev { left: calc(50% - 60px); }
  .gallery-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .maker-scan img { transition: none; } }

/* 発売通知 */
.notify-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 28px 0 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(235, 230, 220, 0.14); border-radius: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--dim); cursor: pointer; }
.check input { accent-color: var(--amber); }
.notify-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.notify-submit { width: 100%; }
.notify-form[data-notify-state="sent"] :is(.notify-fields, .notify-submit) { display: none; }

/* 窓口: 2 行 */
.contact-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; }
.contact-rows .addr { font-size: 17px; font-weight: 500; color: var(--ink); }
.contact-rows .addr:hover { color: var(--amber); }
.contact-rows p { color: var(--dim); font-size: 14px; line-height: 1.7; }

@media (max-width: 900px) {
  .hero-grid, .selected, .maker-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .eco-hub { margin: 0; text-align: left; justify-content: flex-start; }
  .eco-hub::after { left: 12px; height: 18px; }
  .eco-nodes { grid-template-columns: minmax(0, 1fr); padding: 18px 0 0 24px; gap: 10px; }
  .eco-nodes::before { top: 0; bottom: 30px; left: 12px; right: auto; border-top: 0; border-left: 1px solid var(--bus); }
  .eco-node::before { left: -12px; top: 30px; bottom: auto; width: 12px; height: 0; border-left: 0; border-top: 1px solid var(--bus); }
  .contact-rows { grid-template-columns: minmax(0, 1fr); }
  .header-cta { display: none; }
}
.selected-head { display: none; }
@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .selected { padding: 22px; }
  /* Products はコマ札と切り替えをやめ、4 製品を縦に積む (user 2026-11-05)。2 列の札は窮屈で、
     切り替えた枠が画面の外に出るので、製品を替えるたびにスクロールを戻す必要があった */
  #products .film-sheet, #products .sheet-captions { display: none; }
  #products .selected, #products .selected[hidden] { display: grid; gap: 20px; margin-top: 20px; }
  #products .selected#loupe { margin-top: 0; }
  .selected-head { display: flex; flex-direction: column; gap: 8px; }
  .selected-head .sheet-name { font-size: 22px; }
  .selected-copy > .field-label.is-selected { display: none; }
  .notify-fields { grid-template-columns: minmax(0, 1fr); }
  .btn-lg { min-width: 0; }
}

/* ---------- セーフライトの面と粒子 (user がスライダーで決めた値、2026-11-02: 面 0.10、粒子 0.06) ----------
   右上の暖色 = 部屋に灯るセーフライト。主の面 0.10、副の面はその 0.3 倍 */
.hero::before {
  background:
    radial-gradient(900px 560px at 88% -8%, rgba(255, 159, 28, 0.10), transparent 65%),
    radial-gradient(1500px 760px at 70% 6%, rgba(255, 159, 28, 0.03), transparent 70%);
}
/* 全面に静止したフィルムの粒子 (SVG の feTurbulence、動かない) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0.06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ---------- maker (入口と共有の部品) ---------- */
/* 見出しは「誰が作っているのか」、名前はその下に 1 行 (大御所ではないので名前を見出しにしない。user 2026-11-03) */
.maker-name { margin-top: 26px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.maker-role { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--dim); max-width: 34ch; }
body.lang-ja .maker-role { line-height: 1.8; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 60ch; }
.prose p { color: var(--dim); font-size: 16px; line-height: 1.65; }
.prose p + p { margin-top: 16px; }
.link-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; letter-spacing: 0.06em; }
.link-list a { color: var(--ink); }
.link-list a:hover { color: var(--accent, var(--amber)); }
/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; color: var(--faint); margin-bottom: 20px; }
.notfound h1 { font-size: clamp(30px, 4vw, 48px); }
.notfound p { color: var(--dim); margin-top: 18px; max-width: 46ch; }
.notfound .link-list { margin-top: 32px; font-size: 15px; letter-spacing: 0; font-family: var(--font-sans); }

/* ---------- 屋号の法務ページ (legal/tokushoho.html・legal/privacy.html) と Easel の EULA ---------- */
/* 製品をまたぐ法務ページ。値は Loupe の法務ページ (loupe/assets/style.css の legal pages) と同じ */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.25; }
.legal h2 { font-size: clamp(18px, 2.1vw, 21px); margin: 48px 0 0; letter-spacing: -0.01em; }
.legal h3 { font-size: 15.5px; margin: 26px 0 0; letter-spacing: 0; color: var(--accent, var(--amber)); }
.legal p, .legal li { color: var(--dim); font-size: 15px; }
/* 本文の節 (privacy・EULA)。特商法は h2 の直後が表なので当たらない */
.legal h2 + p, .legal h2 + ul, .legal h3 + p, .legal h3 + ul { margin-top: 10px; }
.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; }
.legal-end { color: var(--faint); font-size: 11.5px; margin-top: 40px; }
/* mono の半角スペースは固定幅なので「2026 年 11 月」の数字と単位が離れる。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-table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 14.5px; }
.legal h2 + .legal-table { margin-top: 14px; }
.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; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px 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; }

/* ---------- ガイド (guides/、tools/build-guides.js が書き出す) ---------- */
/* 読み物なので、法務ページより本文を明るく、行を長めに。幅は shell-narrow (820px) の中で本文 68ch */
.guide { padding: 56px 0 96px; }
.guide h1 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.22; max-width: 24ch; }
body.lang-ja .guide h1 { max-width: none; line-height: 1.4; }
.guide-byline { margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.guide-author { font-size: 14px; color: var(--ink); }
.guide-author > a { color: var(--ink); }
.guide-author-links { margin-left: 10px; font-size: 12.5px; color: var(--faint); }
.guide-author-links a { color: var(--dim); }
.guide-dates { color: var(--faint); font-size: 11.5px; letter-spacing: 0.06em; margin-top: 6px; }
body.lang-ja .guide-dates { font-family: inherit; letter-spacing: 0.02em; }
.guide-body { max-width: 68ch; }
.guide-body > :first-child { margin-top: 32px; }
.guide-body h2 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; margin: 56px 0 0; letter-spacing: -0.01em; }
.guide-body h3 { font-size: 16.5px; margin: 32px 0 0; letter-spacing: 0; color: var(--accent, var(--amber)); }
.guide-body p, .guide-body li { color: var(--dim); font-size: 16px; line-height: 1.85; }
.guide-body strong { color: var(--ink); font-weight: 600; }
.guide-body :is(h2, h3) + :is(p, ul, ol) { margin-top: 12px; }
.guide-body :is(p, ul, ol, blockquote, pre) + :is(p, ul, ol, blockquote, pre) { margin-top: 16px; }
.guide-body :is(ul, ol) { padding-left: 22px; }
.guide-body li + li { margin-top: 6px; }
.guide-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.guide-body a:hover { text-decoration-color: var(--dim); }
.guide-body code { font-family: var(--font-mono); font-size: 0.9em; color: var(--ink); }
.guide-body pre { margin-top: 16px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.guide-body pre code { font-size: 13px; line-height: 1.6; }
.guide-body blockquote { margin: 20px 0 0; padding-left: 16px; border-left: 2px solid var(--line); }
.guide-body figure { margin: 32px 0 0; }
.guide-body figure img { display: block; width: 100%; height: auto; border-radius: 3px; }
/* Loupe の LP の比較の画像 (2 倍に引き伸ばしたセンサーの画素) を流用するときは、LP と同じく 600px・画素のまま見せる。
   滑らかに縮めると粒がならされて、比べたい差が縮む */
.guide-body figure img[src^="/loupe/assets/proof/"] { width: min(600px, 100%); image-rendering: pixelated; }
.guide-body figcaption { margin-top: 10px; color: var(--faint); font-size: 13px; line-height: 1.6; }
.guide-table { margin-top: 24px; overflow-x: auto; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.guide-table :is(th, td) { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { color: var(--faint); font-weight: 500; font-size: 12.5px; }
.guide-table tbody th { color: var(--ink); font-weight: 600; }
.guide-table td { color: var(--dim); }
.guide-back { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.guide-back a { color: var(--faint); }
.guide-back a:hover { color: var(--dim); }
.guide-lead { color: var(--dim); margin-top: 18px; max-width: 60ch; }
.guide-list { list-style: none; margin: 40px 0 0; padding: 0; }
.guide-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.guide-list li > a { color: var(--ink); font-size: 18px; font-weight: 600; }
.guide-list li > p:not(.guide-dates) { color: var(--dim); margin-top: 6px; max-width: 64ch; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 44px; }
  .header-nav { display: none; }
  .header-actions { margin-left: auto; }
  .lang-switch :is(button, a) { padding: 6px 8px; }
  /* 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; }
}

/* 購入の前の確認 (easel/buy.html) のボタンの行。法務ページの表の下に置く */
.legal .buy-cta { margin-top: 32px; }

/* 発売記念の切り替え (loupe/assets/launch.js が期間中だけ <html> に launch-on を付ける。/loupe/buy と入口のページが使う。期間が終わったら消す) */
html:not(.launch-on) .launch-only { display: none !important; }
html.launch-on .regular-only { display: none !important; }
.launch-bar {
  display: block; text-align: center; font-size: 12px; letter-spacing: 0.04em; color: var(--amber);
  background: var(--amber-soft); border-bottom: 1px solid rgba(255, 159, 28, 0.25); padding: 9px 16px; text-decoration: none;
}
.launch-bar:hover { color: var(--ink); }
