/* ==========================================================================
   Easel — 製品ページ固有の見た目 (ギャラリーの額装)
   --------------------------------------------------------------------------
   土台は /assets/site.css、chrome は /assets/house.css。ここでは差し色を紙の ivory に、
   見出しをアプリの Serif と同じ EB Garamond にし、マットの見本 (CSS で描く) を持つ。
   規範は docs/plans/2026-11-02-brand-and-site-design.md §3.2。
   ========================================================================== */

:root {
  --accent: #e9dfc9;           /* アプリの Ivory #F1ECE2 を暗い地に合わせて沈めた */
  --accent-soft: rgba(233, 223, 201, 0.12);
  --font-serif: "EB Garamond", "EB Garamond Fallback", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
}

a { color: var(--accent); }
a:hover { color: #fff6e3; }
.hero::before {
  background:
    radial-gradient(760px 420px at 70% 20%, rgba(233, 223, 201, 0.07), transparent 70%),
    radial-gradient(600px 400px at 10% 90%, rgba(233, 223, 201, 0.03), transparent 70%);
}

/* 見出しは美術館のキャプションの書体。見出しは日本語モードでも英語のまま (site/README.md)。 */
h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.005em; }
/* site.css の body.lang-ja h1/h2 (欧文書体に固定) より詳細度で勝つ必要がある。JA でも見出しは EB Garamond (ペルソナ評価 04 F-3) */
body.lang-ja h1, body.lang-ja h2 { font-family: var(--font-serif); }
body.lang-ja .hero h1 { font-size: clamp(32px, 4.2vw, 56px); max-width: 100%; line-height: 1.25; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; max-width: 14ch; }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
.wordmark svg { color: var(--accent); }
.wordmark-sub { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: var(--faint); margin-left: 6px; }
.btn-solid { color: #1a1813; }
.btn-solid small { color: #4a4336; }
.tag-soon { color: var(--accent); }

/* ---------- hero: マットの見本 ----------
   実機のスクショではなく、書き出しと同じ寸法規則を CSS に写して描く。紙・比率・余白・
   書体の切り替えは assets/easel.js が data-* を付け替えるだけ。数値は easel-print の
   設計書 §2.3〜2.5 (u = 幅/100。余白 S 5u / M 8u / L 11u、写真の下 3u、上下 1:1.2)。 */
.hero { padding: 110px 0 96px; border-bottom: 1px solid var(--line); }
.hero .shell { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 56px; align-items: center; }
.hero .lede { color: var(--dim); font-size: 17.5px; max-width: 560px; margin-top: 26px; text-wrap: pretty; }
.hero .cta-row { margin-top: 36px; }
.mat-stage { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.mat {
  --paper: #f3f0e9; --cap1: #2a2a2a; --cap2: #77746e; --s: 8%;
  width: min(100%, 440px); aspect-ratio: 4 / 5;
  background: var(--paper); border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  padding: var(--s);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  /* 上下の余白を 1 : 1.2 に。padding-bottom を少し重くして額装の慣習を写す */
  padding-bottom: calc(var(--s) * 1.2);
  transition: background 0.3s ease, aspect-ratio 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}
/* 1:1 のときも舞台の高さは 4:5 のまま (余った分を上下の margin で埋める。節の高さが比率で動かないように) */
.mat[data-ratio="1x1"] { aspect-ratio: 1 / 1; margin-block: calc(min(100%, 440px) * 0.125); }
.mat[data-margin="s"] { --s: 5%; }
.mat[data-margin="l"] { --s: 11%; }
.mat[data-paper="white"] { --paper: #ffffff; --cap1: #222222; --cap2: #7a7a7a; }
.mat[data-paper="ivory"] { --paper: #f1ece2; }
.mat[data-paper="black"] { --paper: #121212; --cap1: #e6e6e6; --cap2: #8c8c8c; }
.mat-photo {
  width: 100%; aspect-ratio: 3 / 2; position: relative; overflow: hidden;
  /* 白芯の 45° ベベルと接触影。上から光が当たる前提で上辺が明るい */
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.9),
    0 -1px 0 1.5px rgba(255, 255, 255, 0.95),
    inset 0 3px 6px rgba(0, 0, 0, 0.22), inset 2px 0 4px rgba(0, 0, 0, 0.12), inset -2px 0 4px rgba(0, 0, 0, 0.12);
  background: #2a2724;
}
.mat[data-paper="black"] .mat-photo { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35), inset 0 3px 6px rgba(0, 0, 0, 0.5); }
.mat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mat-photo .img-slot {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; line-height: 1.6;
  color: rgba(236, 232, 224, 0.5);
  background:
    repeating-linear-gradient(135deg, rgba(236, 232, 224, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #34302b, #211e1a);
}
.mat-caption {
  margin-top: 3%; text-align: center; line-height: 1.35;
  font-family: "Inter", "Inter Fallback", var(--font-sans); color: var(--cap1);
  font-feature-settings: "tnum" 1;
  transition: color 0.3s ease;
}
.mat[data-face="serif"] .mat-caption { font-family: var(--font-serif); }
.mat[data-face="mono"] .mat-caption { font-family: var(--font-mono); }
.mat-caption .c1 { display: block; font-size: clamp(9px, 1.6cqw, 12px); font-weight: 500; letter-spacing: 0.01em; }
.mat-caption .c2 { display: block; margin-top: 0.7%; font-size: clamp(8px, 1.35cqw, 10.5px); font-weight: 400; letter-spacing: 0.03em; color: var(--cap2); }
.mat-stage { container-type: inline-size; }
.mat[data-face="serif"] .mat-caption .c1 { font-size: clamp(10px, 1.8cqw, 13.5px); }
.mat[data-face="serif"] .mat-caption .c2 { font-size: clamp(9px, 1.5cqw, 12px); }

/* 見本の操作。アプリのインスペクタと同じ選択肢だけ (書体の自由指定や色はない) */
.mat-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; }
.mat-controls .ctl { display: inline-flex; align-items: center; gap: 4px; }
.mat-controls .ctl > span { color: var(--faint); margin-right: 4px; }
.mat-controls button {
  border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer;
  font: inherit; letter-spacing: inherit; padding: 4px 9px; border-radius: 5px;
}
.mat-controls button:hover { color: var(--ink); }
.mat-controls button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mat-controls .swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(236, 232, 224, 0.25); vertical-align: -1px; margin-right: 5px; }
.mat-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--faint); text-align: center; }

/* ---------- what it does ---------- */
/* 窓のスクショ。番号は下の 3 枚のカード (01 CAPTION / 02 BATCH / 03 EXPORT) が指す場所。位置は画像ごと (EN と JA でインスペクタの行がずれる) */
.win { margin: 36px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.win-frame { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line); }
.win-frame img { display: block; width: 100%; height: auto; }
.win-no { position: absolute; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--bg); font-family: var(--font-mono); font-size: 12px; font-weight: 500; box-shadow: 0 0 0 3px rgba(11, 10, 8, 0.85); }
.win figcaption { font-size: 10.5px; letter-spacing: 0.08em; color: var(--faint); }
/* スマホでは窓が小さく UI が読めないので、番号は出さない (下端の 03 が枠で切れる) */
@media (max-width: 640px) { .win-no { display: none; } .win-frame { border-radius: 8px; } }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 10px; }
.card { padding: 28px 28px 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.card .no { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--faint); }
.card h3 { margin-top: 12px; font-size: 19px; }
.card p { color: var(--dim); font-size: 15px; margin-top: 10px; }
.card .ex { margin-top: 16px; padding: 12px 14px; background: #f3f0e9; color: #2a2a2a; border-radius: 6px; text-align: center; font-family: "Inter", "Inter Fallback", var(--font-sans); line-height: 1.35; font-feature-settings: "tnum" 1; }
.card .ex .c1 { display: block; font-size: 12px; font-weight: 500; }
.card .ex .c2 { display: block; font-size: 10.5px; color: #77746e; letter-spacing: 0.03em; margin-top: 2px; }
@media (max-width: 900px) { .three-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- details (spec list) ---------- */
.spec-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-list dt, .spec-list .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.spec-list .v { color: var(--dim); }
.spec-list .v strong { color: var(--ink); font-weight: 500; }
.spec-list .paper { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(236, 232, 224, 0.25); vertical-align: -1px; margin-right: 5px; }
@media (max-width: 640px) { .spec-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- pricing ---------- */
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 44px 40px; }
.price-top { text-align: center; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.price-amount .mono { font-size: 56px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.price-once { color: var(--dim); font-size: 15px; }
.price-anchor { color: var(--dim); font-size: 15.5px; max-width: 540px; margin: 18px auto 0; text-wrap: pretty; }
.price-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--dim); }
.price-list .mono { color: var(--accent); flex: none; }
.price-card .cta-row { margin-top: 36px; }
.price-alt { text-align: center; color: var(--faint); font-size: 12px; letter-spacing: 0.04em; margin-top: 26px; }
@media (max-width: 640px) { .price-card { padding: 32px 22px; } .price-amount .mono { font-size: 46px; } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 10px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--faint); flex: none; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .a { padding: 0 0 22px; color: var(--dim); font-size: 15px; max-width: 70ch; }

/* ---------- final ---------- */
.final-cta { position: relative; padding: 110px 0; text-align: center; border-bottom: 1px solid var(--line); }
.final-cta h2 { max-width: 20ch; margin: 0 auto 14px; }
.final-sub { color: var(--dim); font-size: 16.5px; margin-bottom: 36px; }
.trust-line { margin-top: 26px; color: var(--faint); font-size: 11px; letter-spacing: 0.1em; }

@media (max-width: 900px) {
  .hero .shell { grid-template-columns: minmax(0, 1fr); }
  .mat-stage { order: 1; }
}
@media (max-width: 640px) {
  .header-actions .btn { display: none; }
  .final-cta { padding: 80px 0; }
}

/* ---------- 仕様の下のリリースノートへのリンク (index.html) と、リリースノートのページ (releases/index.html) ---------- */
.spec-foot { margin-top: 18px; font-size: 12px; letter-spacing: 0.06em; }
.spec-foot a { color: var(--faint); }
.spec-foot a:hover { color: var(--dim); }
body.lang-ja .spec-foot { font-family: inherit; letter-spacing: 0.02em; }
.release-lead { color: var(--ink); }
