/* ---------- 色トークン（明） ---------- */
:root {
  --bg: #f8f3ec;
  --bg-alt: #f1e8dc;
  --surface: #fffcf8;
  --fg: #2b1d16;
  --fg-dim: #54433a;
  --fg-mute: #6b574a;
  --line: #dccbb8;
  --accent: #8e4452;
  --accent-fg: #fffaf6;
  --accent-soft: #f3e1e1;
  --gold: #7c5e25;
  --memo-bg: #fbf1d9;
  --memo-fg: #5e4712;
  --demo-bg: #2b1d16;
  --demo-fg: #f8f3ec;
  --sea: #dfe9e6;
  --land: #b9a27f;
  --shadow: 0 10px 30px rgba(60, 35, 20, .10);

  /* 挿絵（テリーヌ・黒糖）は写真の代わりなので配色に依らず固定 */
  --choco-1: #5a3423;
  --choco-2: #3a2016;
  --choco-3: #24130c;
  --kokuto: #6b4a2a;

  --serif: "Shippori Mincho", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Cormorant Garamond", "Shippori Mincho", serif;
  --header-h: 64px;
  color-scheme: light;
}

/* ---------- 色トークン（暗） ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110e;
    --bg-alt: #1f1713;
    --surface: #251c17;
    --fg: #f3e9dd;
    --fg-dim: #d6c6b4;
    --fg-mute: #bba995;
    --line: #43352c;
    --accent: #e7a9b3;
    --accent-fg: #2b1418;
    --accent-soft: #3a2328;
    --gold: #dcbb72;
    --memo-bg: #33291a;
    --memo-fg: #efd9a6;
    --demo-bg: #f3e9dd;
    --demo-fg: #17110e;
    --sea: #1f2b29;
    --land: #6d5a41;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110e; --bg-alt: #1f1713; --surface: #251c17;
  --fg: #f3e9dd; --fg-dim: #d6c6b4; --fg-mute: #bba995; --line: #43352c;
  --accent: #e7a9b3; --accent-fg: #2b1418; --accent-soft: #3a2328; --gold: #dcbb72;
  --memo-bg: #33291a; --memo-fg: #efd9a6; --demo-bg: #f3e9dd; --demo-fg: #17110e;
  --sea: #1f2b29; --land: #6d5a41; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.5; margin: 0 0 .6em; letter-spacing: .06em; }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: clamp(64px, 10vw, 112px) 0; }
.eyebrow {
  font-family: var(--latin);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: .12em;
  margin-bottom: .4em;
}
.sub { color: var(--fg-dim); }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

.memo {
  display: inline-block;
  background: var(--memo-bg);
  color: var(--memo-fg);
  font-size: 13px;
  line-height: 1.7;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
}
.center .memo, .memo.center { display: block; max-width: 640px; margin: 28px auto 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--accent); color: var(--accent-fg);
  border: 1px solid var(--accent); border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .08em;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- 提案バー・ヘッダー ---------- */
.demo-bar {
  background: var(--demo-bg); color: var(--demo-fg);
  font-size: 13px; line-height: 1.6; text-align: center; padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--latin); font-size: 24px; font-weight: 500; letter-spacing: .08em;
  text-decoration: none; color: var(--fg); margin: 0;
}
.logo-mark { width: 28px; height: 28px; color: var(--accent); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--fg-dim); letter-spacing: .1em; }
.nav a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(ellipse at 85% 20%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr .95fr; } }
.lead { color: var(--fg-dim); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.center-cta { justify-content: center; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li {
  font-size: 13px; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
  background: var(--surface);
}

.hero-visual { position: relative; display: grid; place-items: center; }
.plate {
  position: relative;
  width: min(420px, 100%); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--surface) 55%, var(--bg-alt) 72%, var(--line) 73%, var(--surface) 76%);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.photo-note { font-size: 12px; color: var(--fg-mute); margin: 12px 0 0; }

/* テリーヌの挿絵 */
.terrine {
  position: relative;
  width: 62%; aspect-ratio: 2.4 / 1;
  border-radius: 6px 6px 4px 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 30%),
    linear-gradient(180deg, var(--choco-1), var(--choco-2) 55%, var(--choco-3));
  box-shadow: 0 18px 24px -12px rgba(30, 15, 8, .55), inset 0 -6px 0 rgba(0,0,0,.18);
  transform: rotate(-8deg);
}
.terrine::after {
  /* 断面 */
  content: ""; position: absolute; right: -10%; top: 8%; width: 12%; height: 92%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, var(--choco-2), var(--choco-1));
}
.gloss {
  position: absolute; left: 10%; top: 12%; width: 50%; height: 12%;
  border-radius: 999px; background: rgba(255,255,255,.18); filter: blur(2px);
}
.terrine-hero { width: 64%; }
.terrine-bitter { --choco-1: #3d2217; --choco-2: #26130c; --choco-3: #150a06; }
.terrine.small { width: 42%; }
.kokuto {
  position: absolute; background: var(--kokuto);
  border-radius: 30% 45% 35% 40%;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.2);
}
.k1 { width: 9%; aspect-ratio: 1.1; left: 18%; bottom: 22%; transform: rotate(12deg); }
.k2 { width: 7%; aspect-ratio: 1; left: 29%; bottom: 17%; transform: rotate(-20deg); }
.k3 { width: 6%; aspect-ratio: 1.2; right: 20%; top: 24%; transform: rotate(30deg); }

/* ---------- コンセプト ---------- */
.concept { background: var(--surface); }
.concept p { color: var(--fg-dim); }

/* ---------- 3つの価値 ---------- */
.values { padding-top: 0; background: var(--surface); }
.value-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value {
  border-top: 1px solid var(--line);
  padding: 28px 4px 0;
}
.value .num { font-family: var(--latin); font-size: 30px; color: var(--gold); display: block; line-height: 1; margin-bottom: 12px; }
.value p { color: var(--fg-dim); font-size: 15px; }

/* ---------- 純黒糖ストーリー ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.kokuto-story p { color: var(--fg-dim); }
.island { display: grid; place-items: center; }
.island-svg { width: min(360px, 100%); }
.sea { fill: var(--sea); }
.land { fill: var(--land); }
.pin { fill: var(--accent); }
.leader { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.map-label { fill: var(--fg); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.map-sub { fill: var(--fg-mute); font-family: var(--latin); font-size: 13px; letter-spacing: .15em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0 0; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--bg); padding: 12px; text-align: center; }
.facts dt { font-size: 12px; color: var(--fg-mute); }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 15px; }

/* ---------- 商品 ---------- */
.products { background: var(--bg-alt); }
.product-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product {
  position: relative;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product.featured { outline: 2px solid var(--accent); outline-offset: -2px; }
.ribbon {
  position: absolute; top: 14px; right: 14px; z-index: 1; margin: 0;
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--latin); font-size: 15px; letter-spacing: .1em; padding: 2px 14px; border-radius: 999px;
}
.product-visual {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; gap: 6%;
  background: radial-gradient(circle at 50% 55%, #fdf8f1 0 40%, #efe2d2 75%);
}
.pv-bitter { background: radial-gradient(circle at 50% 55%, #f5ede4 0 40%, #dccbb8 75%); }
.pv-set { background: radial-gradient(circle at 50% 55%, #fbeeee 0 40%, #ecd6d6 75%); }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-body > p { color: var(--fg-dim); font-size: 15px; }
.tag { font-family: var(--latin); font-style: italic; color: var(--gold) !important; margin-bottom: 2px; font-size: 16px !important; }
.meter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--fg-mute); margin: 4px 0 16px; }
.dots { display: inline-flex; gap: 3px; margin-right: 10px; }
.dots::before {
  content: "●●●●●"; letter-spacing: 2px; font-style: normal; font-size: 11px;
  background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.d2 { --p: 40%; } .d4 { --p: 80%; }
.price { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--fg) !important; margin-top: auto; }
.price small { font-size: 13px; color: var(--fg-mute); font-weight: 400; margin-left: 4px; }

/* ---------- シーン ---------- */
.scene-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 760px) { .scene-grid { grid-template-columns: repeat(3, 1fr); } }
.scene {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 24px;
}
.scene h3::before {
  content: ""; display: block; width: 32px; height: 2px; background: var(--accent); margin-bottom: 16px;
}
.scene p { color: var(--fg-dim); font-size: 15px; margin: 0; }

/* ---------- 召し上がり方 ---------- */
.enjoy { background: var(--surface); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 12px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 48px; color: var(--fg-dim); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-family: var(--latin); font-size: 18px; line-height: 1;
}
.steps b { display: block; color: var(--fg); font-family: var(--serif); font-size: 17px; }
.pairing { background: var(--bg); border-radius: 14px; padding: 28px; }
.pairing ul { list-style: none; padding: 0; margin: 0; }
.pairing li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pairing li span:first-child { font-family: var(--serif); font-weight: 700; }
.pairing li span:last-child { color: var(--fg-dim); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 32px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--latin); font-size: 26px; color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--fg-dim); font-size: 15px; padding-bottom: 12px; }

/* ---------- 締め ---------- */
.closing { background: var(--bg-alt); }
.closing-mark { width: 48px; height: 48px; color: var(--accent); margin-bottom: 12px; }
.closing p { color: var(--fg-dim); }

/* ---------- フッター ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.small-logo { font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { font-size: 13px; color: var(--fg-dim); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.copy { width: 100%; font-size: 12px; color: var(--fg-mute); margin: 0; }
