/* ============================================================================
   かまど (kamado) — self-owned heat source product guide
   Palette: iron / ash / cast iron / contained ember.
   Ground = charcoal/iron-black DOMINANT (Phase 0 LOCK: グレー・チャコール優位).
   Bright surfaces (steam white / warm ash) are confined to subordinate areas:
   product photo mounts (mix-blend-mode needs a light host), small chip badges,
   and nav legend cards. The page, hero, tiers, editorial, prose and footer all
   read as dark iron/soot from header to footer.
   ============================================================================ */

:root {
  /* dark ground (dominant) */
  --page:    #1C1A17;   /* page background — warm near-black iron */
  --page-2:  #242019;   /* slightly lifted charcoal band (editorial, alt sections) */
  --soot:    #121110;   /* deepest — footer / pr-bar / ember-window base */
  --iron:    #24211E;   /* mid-dark structural tone (borders, solid fills) */
  --cast:    #55504A;   /* mid graphite — used as body text INSIDE light panels */
  --cast-soft: #7A756D; /* muted graphite — captions INSIDE light panels */

  /* light surfaces (subordinate — cards / chips / photo mounts only) */
  --ash:     #B8B2A8;
  --ash-2:   #D8D3C9;
  --ash-3:   #EDE9E1;
  --steam:   #F2EFEA;
  --line:    #C7C0B4;   /* border on light panels */

  /* text on the dark ground */
  --ink:       #F3EFE8;  /* primary text on dark bg */
  --ink-soft:  #C7BFB2;  /* secondary text on dark bg */
  --ink-faint: #8A8377;  /* tertiary / captions on dark bg */
  --line-dark: rgba(243,239,232,0.14);
  --line-dark-soft: rgba(243,239,232,0.08);

  /* the one accent — contained ember, never dominant */
  --ember:      #D65A2E;
  --ember-deep: #E4703F;  /* lifted for legibility on dark bg (was --ember-deep on light) */
  --ember-deep-onlight: #A83F1D; /* darker cedar for use inside light panels */
  --ember-soft: rgba(214,90,46,0.16);

  --amazon:   #17140F;
  --amazon-h: #050403;
  --rakuten:  #A83F1D;

  --font-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'YuMincho', serif;
  --font-sans:  'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--page);
  background-image:
    linear-gradient(135deg, rgba(243,239,232,0.035) 25%, transparent 25%, transparent 50%, rgba(243,239,232,0.035) 50%, rgba(243,239,232,0.035) 75%, transparent 75%),
    radial-gradient(70% 60% at 100% 0%, rgba(214,90,46,0.10), transparent 55%),
    radial-gradient(60% 50% at 0% 100%, rgba(85,80,74,0.10), transparent 60%);
  background-size: 34px 34px, auto, auto;
  background-attachment: fixed;
  line-height: 1.86;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
a { color: var(--ember-deep); text-decoration: none; }
a:hover { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 800; line-height: 1.33; letter-spacing: 0; color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--soot); color: var(--ink); padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

.pr-bar {
  background: var(--soot); color: var(--ink-soft);
  font-size: 11.5px; letter-spacing: 0.04em; text-align: center;
  padding: 7px 16px; font-family: var(--font-mono);
  border-bottom: 1px solid var(--line-dark-soft);
}
.pr-bar strong {
  color: var(--ink); background: var(--ember-deep-onlight);
  border-radius: 2px; padding: 1px 7px; margin-right: 9px; font-weight: 500;
  letter-spacing: 0.12em;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18,17,16,0.86);
  backdrop-filter: saturate(120%) blur(9px);
  -webkit-backdrop-filter: saturate(120%) blur(9px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-text {
  font-family: var(--font-serif); font-weight: 800; font-size: 22px;
  letter-spacing: 0.12em; display: block; line-height: 1.1; color: var(--ink);
}
.logo-tagline {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-faint); display: block; margin-top: 1px;
}
.nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink-soft); font-size: 13px; letter-spacing: 0.04em; font-weight: 500; }
.nav a:hover { color: var(--ember-deep); text-decoration: none; }
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav a { font-size: 12px; }
  .logo-tagline { display: none; }
}

.hero { padding: clamp(52px, 9vw, 104px) 0 clamp(40px, 6vw, 70px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(26px, 5vw, 62px); align-items: center; }
.hero-eyebrow,
.section-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--ember-deep); text-transform: uppercase;
}
.hero-eyebrow { margin-bottom: 18px; }
.hero-eyebrow::before, .section-kicker::before { content: "— "; color: var(--ink-faint); }
.hero h1 {
  font-size: clamp(31px, 5.6vw, 56px); color: var(--ink);
  line-height: 1.25; margin-bottom: 24px;
}
.hero h1 span { color: var(--ember-deep); }
.hero-lead {
  font-size: 16.5px; color: var(--ink-soft); line-height: 2; max-width: 44ch;
  border-left: 2px solid var(--ember); padding-left: 18px; margin-bottom: 16px;
}
.hero-note { font-size: 13.5px; color: var(--ink-faint); line-height: 1.86; max-width: 58ch; margin-bottom: 20px; }
.hero-note a { color: var(--ember-deep); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.03em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); display: inline-block; }
.hero-figure figcaption {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.08em; margin-top: 12px; text-align: right;
}
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 360px; }
  .hero-lead { max-width: none; }
}

.bench-steps {
  position: relative;
  height: clamp(270px, 38vw, 420px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding: 18px;
  background:
    radial-gradient(70% 60% at 62% 90%, rgba(214,90,46,0.24), transparent 58%),
    linear-gradient(160deg, var(--soot), var(--iron));
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 60px -40px rgba(0,0,0,0.9);
}
.bench-steps::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(242,239,234,0.05) 18px 20px),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(242,239,234,0.04) 18px 20px);
  opacity: .7;
}
.step {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: flex-end;
  color: var(--ink); font-family: var(--font-serif); font-weight: 800;
  border: 1px solid rgba(184,178,168,0.26);
  background: linear-gradient(180deg, rgba(85,80,74,0.88), rgba(23,20,15,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  padding-right: 20px;
}
.step-lower { height: 74px; width: 52%; margin-left: 0; color: var(--ink-soft); }
.step-middle { height: 96px; width: 74%; margin-left: 12%; color: var(--ink-soft); }
.step-upper { height: 122px; width: 96%; margin-left: 4%; color: var(--ink); background: radial-gradient(90% 100% at 70% 100%, rgba(214,90,46,0.4), transparent 48%), linear-gradient(180deg, #3A342E, var(--soot)); }

.band { padding: clamp(30px, 5vw, 54px) 0; }
.section-title { font-size: clamp(23px, 3.4vw, 32px); color: var(--ink); margin-top: 12px; }
.section-intro { color: var(--ink-soft); max-width: 68ch; margin-top: 14px; line-height: 1.95; }

.tier-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin-top: 26px;
}
.tier-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: end;
  padding: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(243,239,232,0.05), rgba(243,239,232,0.02));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.tier-step:hover { text-decoration: none; border-color: var(--ember); background: rgba(214,90,46,0.08); }
.tier-block {
  display: block; width: 44px;
  background: linear-gradient(180deg, var(--cast), var(--iron));
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.tier-step--lower .tier-block { height: 44px; }
.tier-step--middle .tier-block { height: 72px; background: linear-gradient(180deg, #68615A, var(--iron)); }
.tier-step--upper .tier-block { height: 104px; background: radial-gradient(80% 80% at 60% 100%, rgba(214,90,46,0.5), transparent 54%), linear-gradient(180deg, #423B34, var(--soot)); }
.tier-copy b { display: block; font-family: var(--font-serif); font-size: 18px; color: var(--ink); }
.tier-copy em { display: block; font-style: normal; font-size: 12px; color: var(--ink-soft); line-height: 1.55; margin-top: 2px; }
.tier-copy small { display: block; font-family: var(--font-mono); color: var(--ember-deep); margin-top: 5px; }
@media (max-width: 760px) { .tier-rail { grid-template-columns: 1fr; } }

.stage { padding: clamp(34px, 6vw, 66px) 0; scroll-margin-top: 72px; }
.stage + .stage { border-top: 1px solid var(--line-dark); }
.stage-head { display: grid; grid-template-columns: 132px 1fr; gap: clamp(18px, 3vw, 34px); align-items: stretch; margin-bottom: 26px; }
.ember-window {
  position: relative; min-height: 132px; height: 100%;
  border-radius: 7px; overflow: hidden;
  background: var(--soot);
  border: 1px solid rgba(0,0,0,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -24px 42px rgba(0,0,0,0.28);
}
.ember-window::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 58% at 50% 86%, rgba(214,90,46,var(--glow, .20)), transparent 62%),
    radial-gradient(24% 16% at 56% 76%, rgba(242,239,234,0.16), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(242,239,234,0.05) 14px 15px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .9s ease, transform 1s ease;
}
.is-revealed .ember-window::before { opacity: 1; transform: none; }
.ember-window--lower { --glow: .18; }
.ember-window--middle { --glow: .34; }
.ember-window--upper { --glow: .56; }
.ember-no, .ember-label {
  position: absolute; z-index: 1;
  font-family: var(--font-mono); color: rgba(242,239,234,0.78);
}
.ember-no { left: 13px; top: 10px; font-size: 12px; letter-spacing: .16em; }
.ember-label { right: 13px; bottom: 10px; font-size: 13px; letter-spacing: .18em; }
.stage-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; color: var(--ember-deep); text-transform: uppercase; }
.stage-title { font-size: clamp(22px, 3.4vw, 30px); color: var(--ink); margin: 7px 0 2px; }
.stage-title .motif { font-family: var(--font-sans); font-weight: 400; font-size: 0.56em; color: var(--ink-faint); }
.stage-count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.stage-lead { color: var(--ink-soft); line-height: 1.98; max-width: 72ch; margin-bottom: 8px; }
@media (max-width: 640px) { .stage-head { grid-template-columns: 1fr; } .ember-window { min-height: 92px; } }

/* ---- product cards: the ONE deliberate light surface (photo mounts need a
   bright host for mix-blend-mode:multiply on Amazon product shots). Small,
   repeated, and clearly a "card on a dark table" — not a page-dominant field. ---- */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 288px));
  justify-content: start;
  gap: 20px;
  margin-top: 22px;
}
.product {
  border: 1px solid rgba(0,0,0,0.5); border-radius: var(--radius);
  background: var(--steam); overflow: hidden; max-width: 320px;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 34px -20px rgba(0,0,0,0.7);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8); }
.product-figure {
  position: relative;
  height: 208px;
  background-color: var(--ash-2);
  background-image:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(85,80,74,0.18) 18px 21px),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(242,239,234,0.45) 18px 19px);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.product-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 44px rgba(85,80,74,0.13);
}
.product-image { width: 100%; height: 100%; object-fit: contain; min-width: 0; min-height: 0; padding: 16px; mix-blend-mode: multiply; }
.product-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.product-use { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--ember-deep-onlight); text-transform: uppercase; margin-bottom: 8px; }
.product-use .u-sep { color: var(--cast-soft); margin: 0 6px; }
.product-name { font-family: var(--font-sans); font-weight: 700; font-size: 14.5px; color: var(--iron); line-height: 1.5; }
.product-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 9px; }
.price-hint { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--cast); letter-spacing: 0.03em; }
.price-hint b { color: var(--iron); font-weight: 500; }
.fire-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.03em;
  border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px;
  color: var(--cast); background: var(--ash-3);
}
.fire-badge--maker { border-color: rgba(168,63,29,0.4); background: rgba(214,90,46,0.14); color: var(--ember-deep-onlight); }
.product-reason { font-size: 13px; color: var(--cast); line-height: 1.82; margin-top: 10px; flex: 1; }
.product-spec {
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--cast-soft); letter-spacing: 0.02em;
  display: flex; flex-wrap: wrap; gap: 3px 14px;
}
.product-spec b { color: var(--cast); font-weight: 500; }

.offers { display: flex; gap: 9px; margin-top: 15px; }
.offer {
  flex: 1; position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 9px 12px 8px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; transition: filter 0.2s ease, transform 0.1s ease;
}
.offer:hover { text-decoration: none; filter: brightness(1.12); }
.offer:active { transform: translateY(1px); }
.offer--amazon { background: var(--amazon); color: var(--steam); }
.offer--amazon:hover { background: var(--amazon-h); }
.offer--rakuten { background: var(--ash-3); color: var(--rakuten); border-color: var(--rakuten); }
.offer-store { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }
.offer-go { font-size: 11px; opacity: 0.86; }
.offer-arrow { margin-left: 3px; }
.pr-tag {
  position: absolute; top: 6px; right: 7px; font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: 0.1em; padding: 1px 4px; border-radius: 2px;
  background: rgba(255,255,255,0.16); color: inherit; opacity: 0.75;
}
.offer--rakuten .pr-tag { background: rgba(168,63,29,0.12); }
.offer-note { font-size: 10.5px; color: var(--cast-soft); line-height: 1.6; margin-top: 9px; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16,0.72,0.24,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } .ember-window::before { opacity: 1 !important; transform: none !important; } }

/* ---- editorial: dark band, one shade lifted from page ground ---- */
.editorial { background: var(--page-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.editorial .wrap { padding-top: clamp(38px, 6vw, 60px); padding-bottom: clamp(38px, 6vw, 60px); }
.editorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 24px; }
.ed-card { background: rgba(243,239,232,0.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px 20px 22px; }
.ed-card h3 { font-size: 16px; color: var(--ink); margin-bottom: 9px; }
.ed-card h3 .ed-no { font-family: var(--font-mono); font-size: 11px; color: var(--ember-deep); margin-right: 8px; letter-spacing: 0.08em; }
.ed-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.85; }
.legend-note { font-size: 11.5px; color: var(--ink-faint); line-height: 1.7; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-dark); }

/* ---- generic prose (about / privacy) — text sits directly on the dark ground ---- */
.page-hero { padding: clamp(46px, 8vw, 82px) 0 clamp(20px, 4vw, 34px); }
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(27px, 4.6vw, 42px); color: var(--ink); }
.page-hero p { color: var(--ink-soft); margin-top: 14px; max-width: 62ch; line-height: 1.95; }
.prose { padding-bottom: clamp(40px, 7vw, 76px); }
.prose section { margin-top: 34px; }
.prose h2 { font-size: 21px; color: var(--ink); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-dark); }
.prose h2 .h2-no { font-family: var(--font-mono); font-size: 12px; color: var(--ember-deep); margin-right: 10px; }
.prose p { color: var(--ink-soft); line-height: 1.98; margin-bottom: 12px; }
.prose strong { color: var(--ink); font-weight: 700; }
.callout {
  background: rgba(214,90,46,0.1); border: 1px solid rgba(214,90,46,0.32);
  border-left: 3px solid var(--ember); border-radius: var(--radius);
  padding: 16px 18px; margin: 16px 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.85;
}
.callout strong { color: var(--ember-deep); }

.site-footer { background: var(--soot); color: var(--ink-faint); padding: clamp(36px, 6vw, 58px) 0 30px; margin-top: 0; border-top: 1px solid var(--line-dark-soft); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-brand .logo-text { color: var(--ink); font-size: 20px; }
.footer-brand p { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; line-height: 1.8; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 13px; }
.footer-disclosure { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-dark-soft); font-size: 11.5px; color: var(--ink-faint); line-height: 1.8; }
.footer-disclosure strong { color: var(--ink-soft); }
.footer-copy { margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: #5C564D; }
@media (max-width: 680px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

::selection { background: var(--ember); color: var(--steam); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
