/* ==================================================================
   nagomi. トップページ（2026-09-30 全面改装）
   ------------------------------------------------------------------
   体験の軸は「間（ま）」: 砂紋に触れる → 一本を焚く30分 → 七つの色。
   演出は js/home.js。JSが無い／動きを減らす設定でも、全文と導線がそのまま読める作り。
   このファイルはトップだけで読み込む（他ページは style.css のまま）。
   ================================================================== */

.home {
  /* 画面の高さの単位。vh/svh は iPhone の上下のバーの出入りで値が変わり、上の章の高さが変わってページが跳ぶ。
     home.js が読み込み時に px で固定し、画面の幅が変わった（回転した）ときだけ測り直す。
     --us = バーが出ているときの高さの1%（見出し・余白・最初の画面）／ --ul = バーが隠れたときの高さの1%（全面に固定する章） */
  --us: 1vh;
  --ul: 1vh;
  --paper: #f3eee4;
  --paper-2: #ebe3d4;
  --sumi: #1f1c19;
  --ember: #d9642b;
  --h-pad: clamp(22px, 6vw, 96px);
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  background: var(--paper);
  color: var(--sumi);
}
/* :where で優先度を0にする（各章の padding 指定を上書きしないように） */
:where(.home main section) { padding: 0; }
/* 横にはみ出す演出があっても、ページが横に揺れないように（clip は sticky を壊さない） */
.home main { overflow-x: clip; }
@supports (height: 1svh) { .home { --us: 1svh; --ul: 1lvh; } }
.home [id] { scroll-margin-top: 0; }

/* 紙のざらつき（全面に薄く）
   高さはツールバーが隠れたときの画面の高さ（lvh）で固定する。inset:0 にすると、スマホの上下のバーが
   出入りするたびに全面の模様が描き直されてちらつく */
.home::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh; height: 100lvh;
  transform: translateZ(0);
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- ヘッダー: ヒーローの上では透明 ---------- */
.home .site-head {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), background 0.35s ease, border-color 0.35s ease;
}
.home .site-head.scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: color-mix(in srgb, var(--sumi) 10%, transparent);
  box-shadow: none;
}
.home.on-dark .site-head:not(.scrolled) .gnav a:not(.nav-cta) { color: var(--paper); }

/* ---------- 共通の部品 ---------- */
.h-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--h-pad); }
.h-label {
  font-family: var(--latin);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 1.2rem;
}
.h-label::before { content: "— "; }
.h-en { font-family: var(--latin); font-style: italic; letter-spacing: 0.04em; }
.h-title {
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  font-feature-settings: "palt";
}
.h-title-xl { font-size: clamp(2.2rem, 5.2vw, 4.8rem); line-height: 1.38; }
.h-small { font-size: 0.8rem; color: var(--ink-faint); line-height: 1.9; }
.h-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 2.4rem; }
.h-links { margin-top: 2.2rem; }

/* 矢印つきリンク */
.h-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--sumi);
  padding: 0.6rem 0;
  border-bottom: 1px solid currentColor;
}
.h-arrow::after { content: "→"; transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .h-arrow:hover::after { transform: translateX(6px); } }

/* ボタン（塗り・線・LINE） */
.h-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.9em;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.25s ease;
  will-change: transform;
}
.h-btn > span { position: relative; z-index: 1; }
.h-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) { .h-btn:hover::before { transform: none; } }
.h-btn-fill { background: var(--accent); color: #fff; }
.h-btn-fill::before { background: var(--accent-deep); }
.h-btn-line { border: 1px solid currentColor; color: var(--sumi); }
.h-btn-line::before { background: var(--sumi); }
@media (hover: hover) { .h-btn-line:hover { color: var(--paper); border-color: var(--sumi); } }
.h-btn-line-app { background: #06c755; color: #fff; }
.h-btn-line-app::before { background: #05a648; }

/* 一文字ずつあらわれる見出し（JSが .ch に分ける。JSなしならそのまま表示） */
.h-split .wd { display: inline-block; white-space: nowrap; }
.h-split .ch { display: inline-block; opacity: 0; transform: translateY(0.55em); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.h-split.on .ch { opacity: 1; transform: none; }

/* ==================================================================
   01 HERO
   ================================================================== */
.h-hero {
  position: relative;
  height: calc(var(--us) * 100);
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 40%, #f6f1e8 0%, #ece4d6 70%, #e4dacb 100%);
  touch-action: pan-y;
}
/* 実写の枯山水（生成）を全面に。WebGL が同じ写真を波紋で揺らす（使えなければ写真のまま） */
.h-photo, .h-photo img, .h-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-photo img { object-fit: cover; object-position: center; }
.h-gl { z-index: 1; opacity: 0; transition: opacity 0.6s ease; }
.h-gl.is-on { opacity: 1; }
/* 左上から和紙色を薄くかけて、縦書きの見出しを読みやすく */
.h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(246, 241, 232, 0.78) 0%, rgba(246, 241, 232, 0.35) 34%, rgba(246, 241, 232, 0) 55%),
              linear-gradient(to top, rgba(246, 241, 232, 0.55) 0%, rgba(246, 241, 232, 0) 32%);
}

.h-hero-inner {
  position: relative;
  z-index: 4;
  height: 100%;
  pointer-events: none;
}
.h-hero-inner a { pointer-events: auto; }
.h-hero-era {
  position: absolute;
  left: var(--h-pad);
  top: clamp(96px, calc(var(--us) * 16), 150px);
  writing-mode: vertical-rl;
  font-family: var(--font-min);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  color: var(--accent-text);
}
.h-hero-title {
  position: absolute;
  left: calc(var(--h-pad) + 2.4rem);
  top: clamp(96px, calc(var(--us) * 14), 130px);
  writing-mode: vertical-rl;
  font-family: var(--font-min);
  font-weight: 500;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: 1.35;
  letter-spacing: 0.14em;
  color: var(--sumi);
  margin: 0;
  text-wrap: nowrap;
}
.h-hero-title .h-tl { display: block; }
.h-hero-title .h-tl + .h-tl { margin-top: 0.9em; }
.h-hero-title rt { font-size: 0.24em; letter-spacing: 0; color: var(--accent-text); }
.h-hero-side {
  position: absolute;
  /* 石と同心円は右側。説明文は見出しの右隣、まっすぐな砂紋だけの余白に置く */
  left: clamp(300px, 27vw, 470px);
  bottom: clamp(56px, calc(var(--us) * 10), 110px);
  width: min(400px, 30vw);
}
.h-hero-lead { font-size: 0.95rem; line-height: 2.1; color: var(--ink-soft); margin-bottom: 1.6rem; }
.h-hero-lead strong { color: var(--sumi); font-weight: 500; }
.h-hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.h-hero-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-family: var(--font-min);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  opacity: 0;
  animation: h-fadein 1.2s ease 2.2s forwards;
  pointer-events: none;
}
.h-hint-sp { display: none; }
.h-scroll {
  position: absolute;
  z-index: 4;
  left: var(--h-pad);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--latin);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--sumi);
  text-decoration: none;
}
.h-scroll i { position: relative; width: 64px; height: 1px; background: color-mix(in srgb, var(--sumi) 25%, transparent); overflow: hidden; }
.h-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--sumi); transform: translateX(-100%); animation: h-line 2.4s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes h-line { 60%, 100% { transform: translateX(100%); } }
@keyframes h-fadein { to { opacity: 1; } }

/* 入場: 文字が墨のように浮かぶ（CSSだけ。JSが止まっても最後は必ず表示される） */
@keyframes h-ink { from { opacity: 0; filter: blur(10px); transform: translateY(16px); } to { opacity: 1; filter: none; transform: none; } }
.h-hero-era { animation: h-ink 1.6s cubic-bezier(.2,.7,.2,1) 0.1s both; }
.h-hero-title .h-tl:first-child { animation: h-ink 1.8s cubic-bezier(.2,.7,.2,1) 0.3s both; }
.h-hero-title .h-tl:last-child { animation: h-ink 1.8s cubic-bezier(.2,.7,.2,1) 0.75s both; }
.h-hero-side { animation: h-ink 1.6s cubic-bezier(.2,.7,.2,1) 1.25s both; }
@media (prefers-reduced-motion: reduce) { .h-hero-era, .h-hero-title .h-tl, .h-hero-side { animation: none; } }

/* ==================================================================
   02 REVEAL: 小さな窓が広がって、全面の写真になる
   ================================================================== */
.h-reveal { position: relative; height: calc(var(--us) * 300); background: var(--paper); }
.h-reveal-pin { position: sticky; top: 0; height: calc(var(--ul) * 100); overflow: hidden; }
.h-reveal-window {
  --q: calc(1 - var(--r, 1));
  position: absolute;
  inset: 0;
  margin: 0;
  clip-path: inset(calc(var(--q) * calc(var(--us) * 26)) calc(var(--q) * 34vw) calc(var(--q) * calc(var(--us) * 26)) calc(var(--q) * 34vw) round calc(var(--q) * 180px));
  will-change: clip-path;
}
.h-reveal-window img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--r, 1) * 0.18)); will-change: transform; }
.h-reveal-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,12,0.62) 0%, rgba(20,16,12,0.1) 45%, rgba(20,16,12,0) 70%); opacity: var(--r, 1); }
.h-reveal-cap {
  position: absolute;
  left: var(--h-pad);
  right: var(--h-pad);
  bottom: clamp(40px, calc(var(--us) * 9), 96px);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem 3rem;
  opacity: clamp(0, calc((var(--r, 1) - 0.9) * 10), 1);
  transform: translateY(calc((1 - var(--r, 1)) * 40px));
}
.h-reveal-cap .h-en { grid-column: 1 / -1; font-size: clamp(1.1rem, 1.6vw, 1.5rem); opacity: 0.85; }
.h-reveal-copy { font-family: var(--font-min); font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.4; letter-spacing: 0.08em; }
.h-reveal-meta { list-style: none; display: flex; gap: 1.6rem; font-size: 0.85rem; letter-spacing: 0.14em; padding-bottom: 0.8rem; }
.h-reveal-meta li::before { content: "・"; opacity: 0.6; }

/* ==================================================================
   03 BURN: 30分を焚く
   ================================================================== */
.h-burn { position: relative; height: calc(var(--us) * 400); background: #201c18; color: #efe8dc; }
.h-burn-pin {
  position: sticky;
  top: 0;
  height: calc(var(--ul) * 100);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 26vw) 1fr;
  align-items: center;
  gap: 3vw;
  padding: 0 var(--h-pad);
  background: radial-gradient(60% 70% at 50% 60%, #2c2621 0%, #201c18 70%);
}
.h-burn .h-label { color: #d9b98a; }
.h-burn-title { font-family: var(--font-min); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.55; letter-spacing: 0.08em; margin-bottom: 1.6rem; }
.h-burn-lead { font-size: 0.95rem; line-height: 2.1; color: #c9bfb0; max-width: 26em; }
.h-burn-lead strong { color: #f3eee4; font-weight: 500; }
.h-burn-stage { position: relative; height: calc(var(--us) * 78); display: flex; justify-content: center; }
.h-burn-smoke { position: absolute; inset: 0 -10vw; width: calc(100% + 20vw); height: 100%; pointer-events: none; }
.h-incense { position: absolute; bottom: calc(var(--us) * 19); left: 50%; width: 4px; height: calc(var(--us) * 46); transform: translateX(-50%); }
.h-incense-stick {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--len, 1) * 100%);
  border-radius: 2px;
  background: linear-gradient(to right, #6a432d, #a06c49 55%, #6a432d);
}
.h-incense-ember {
  position: absolute; left: -2px; width: 8px; height: 10px;
  bottom: calc(var(--len, 1) * 100% - 4px);
  border-radius: 45%;
  background: radial-gradient(circle at 50% 40%, #fff3c4 0%, #ffae52 35%, #d9642b 70%, rgba(60,30,15,0.95) 100%);
  box-shadow: 0 0 14px 5px rgba(255, 150, 70, 0.6), 0 0 44px 14px rgba(255, 110, 40, 0.22);
  opacity: calc(1 - var(--out, 0));
}
.h-incense-ash {
  position: absolute; left: 50%; bottom: -2px;
  width: calc(16px + var(--p, 0) * 70px); height: calc(4px + var(--p, 0) * 12px);
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(ellipse at 50% 70%, #cfc6b8 0%, #9d948a 60%, rgba(120,112,104,0) 100%);
  opacity: calc(0.25 + var(--p, 0) * 0.75);
}
.h-incense-holder {
  position: absolute; left: 50%; bottom: -16px;
  width: 120px; height: 26px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #4a433c 0%, #2b2622 70%);
  box-shadow: 0 16px 30px -10px rgba(0,0,0,0.6);
  z-index: -1;
}
.h-clock { position: absolute; left: 50%; bottom: calc(calc(var(--us) * 5) + 18px); transform: translateX(-50%); font-family: var(--latin); font-size: 1.2rem; letter-spacing: 0.2em; color: #d9b98a; white-space: nowrap; }
.h-clock-min { font-size: clamp(2.2rem, 3.4vw, 3.4rem); font-style: italic; letter-spacing: 0.04em; margin-right: 0.3em; font-variant-numeric: tabular-nums; }
.h-clock em { font-style: normal; font-family: var(--font-min); font-size: 0.9rem; }
.h-timeline { position: absolute; left: 50%; bottom: calc(var(--us) * 3); width: min(260px, 70%); height: 1px; transform: translateX(-50%); background: rgba(217, 185, 138, 0.3); }
.h-timeline-fill { position: absolute; left: 0; top: -0.5px; height: 2px; width: calc(var(--bp, 0) * 100%); background: #d9b98a; }
.h-timeline i { position: absolute; top: 8px; transform: translateX(-50%); font-style: normal; font-size: 0.72rem; letter-spacing: 0.08em; color: #a89c88; white-space: nowrap; }
.h-timeline i::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 7px; background: rgba(217, 185, 138, 0.6); }
.h-phases { list-style: none; position: relative; min-height: 16em; }
.h-phase { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.h-phase.is-on { opacity: 1; transform: none; }
.h-phase-en { font-family: var(--latin); font-style: italic; font-size: 1.1rem; color: #d9b98a; }
.h-phase h3 { font-family: var(--font-min); font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: 0.12em; margin: 0.3rem 0 1rem; }
.h-phase p:last-child { font-size: 0.95rem; line-height: 2.1; color: #c9bfb0; max-width: 22em; }

/* ==================================================================
   04 WHY / 05 PROOF
   ================================================================== */
.h-why { padding: clamp(96px, calc(var(--us) * 16), 180px) 0 clamp(72px, calc(var(--us) * 12), 140px); }
.h-why-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid color-mix(in srgb, var(--sumi) 16%, transparent); }
.h-why-item { padding: 2.4rem 1.6rem 1rem 0; border-right: 1px solid color-mix(in srgb, var(--sumi) 10%, transparent); padding-left: 1.6rem; }
.h-why-item:first-child { padding-left: 0; }
.h-why-item:last-child { border-right: 0; }
.h-why-num { display: block; font-family: var(--font-min); font-size: clamp(3.4rem, 5.4vw, 5.6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 1.6rem; }
.h-why-item h3 { font-family: var(--font-min); font-size: 1.2rem; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.h-why-item p { font-size: 0.9rem; line-height: 2; color: var(--ink-soft); }

.h-proof { padding: clamp(72px, calc(var(--us) * 12), 140px) 0; background: var(--paper-2); }
.h-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.h-proof-grid div { display: flex; flex-direction: column-reverse; gap: 0.8rem; border-top: 1px solid color-mix(in srgb, var(--sumi) 16%, transparent); padding-top: 1.4rem; }
.h-proof-grid dt { font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.h-proof-grid dd { font-family: var(--font-min); font-size: clamp(2.8rem, 5.2vw, 5rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.h-proof-grid dd small { font-size: 0.3em; margin-left: 0.2em; color: var(--ink-soft); letter-spacing: 0.1em; }

/* ==================================================================
   06 STORY / DESIGN
   ================================================================== */
.h-story { padding: clamp(96px, calc(var(--us) * 16), 200px) 0; }
.h-story-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; align-items: start; }
.h-story-text > p { font-size: 1rem; line-height: 2.2; color: var(--ink-soft); margin-bottom: 1.4em; max-width: 34em; }
.h-story-text strong { color: var(--sumi); font-weight: 500; }
.h-facts { margin-top: 2.4rem; border-top: 1px solid color-mix(in srgb, var(--sumi) 14%, transparent); max-width: 34em; }
.h-facts div { display: flex; gap: 1.4rem; padding: 0.95rem 0; border-bottom: 1px solid color-mix(in srgb, var(--sumi) 10%, transparent); font-size: 0.9rem; }
.h-facts dt { flex: 0 0 5em; color: var(--ink-faint); letter-spacing: 0.12em; }
.h-story-fig { margin-top: calc(var(--us) * 12); border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 4; }
.h-story-fig img { width: 100%; height: 112%; object-fit: cover; transform: translateY(calc(var(--py, 0px) - 6%)); }

.h-kare { padding-bottom: clamp(96px, calc(var(--us) * 14), 180px); }
.h-kare-img { height: calc(var(--us) * 78); min-height: 420px; overflow: hidden; margin: 0 0 clamp(64px, calc(var(--us) * 10), 120px); }
.h-kare-img img { width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--py, -8%)); }
.h-kare-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; }
.h-kare-cols p { font-size: 0.95rem; line-height: 2.2; color: var(--ink-soft); }
.h-kare-cols strong { color: var(--sumi); font-weight: 500; }

/* ==================================================================
   07 CRAFT
   ================================================================== */
.h-craft { padding: clamp(96px, calc(var(--us) * 14), 180px) 0; background: var(--paper-2); }
.h-craft-lead { font-size: 1.05rem; line-height: 2.1; color: var(--ink-soft); max-width: 36em; }
.h-craft-lead strong { color: var(--sumi); font-weight: 500; }
.h-craft-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; margin: clamp(56px, calc(var(--us) * 9), 110px) 0; }
.h-craft-figures > div { border-top: 1px solid color-mix(in srgb, var(--sumi) 16%, transparent); padding-top: 1.4rem; }
.h-big { font-family: var(--font-min); font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1; color: var(--sumi); margin-bottom: 0.8rem; font-variant-numeric: tabular-nums; }
.h-big small { font-size: 0.28em; margin-left: 0.2em; letter-spacing: 0.1em; color: var(--ink-soft); }
.h-craft-figures p:last-child { font-size: 0.85rem; color: var(--ink-soft); }
.h-craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; }
.h-craft-block h3 { font-family: var(--font-min); font-size: 1.35rem; letter-spacing: 0.08em; margin-bottom: 1.2rem; }
.h-craft-block p { font-size: 0.93rem; line-height: 2.15; color: var(--ink-soft); margin-bottom: 1em; }
.h-craft-block strong { color: var(--sumi); font-weight: 500; }

/* ==================================================================
   08 SEVEN SCENTS: 縦スクロールで横に流れる（PC）。SPは縦に積む
   ================================================================== */
.h-scents { position: relative; height: calc(var(--panels, 8) * calc(var(--us) * 100)); }
.h-scents-pin { position: sticky; top: 0; height: calc(var(--ul) * 100); overflow: hidden; }
.h-scents-track { display: flex; height: 100%; width: calc(var(--panels, 8) * 100vw); transform: translate3d(var(--tx, 0), 0, 0); will-change: transform; }
.h-scent {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 0 var(--h-pad);
  overflow: hidden;
}
.h-scent-in { position: relative; z-index: 2; max-width: 560px; }
.h-scent-intro { grid-template-columns: 1.1fr 0.9fr; gap: 4vw; }
.h-scent-intro-fig { margin: 0; justify-self: end; width: min(40vw, calc(var(--us) * 72)); aspect-ratio: 1; border-radius: 4px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(40, 30, 20, 0.45); }
.h-scent-intro-fig img { width: 100%; height: 100%; object-fit: cover; }
.h-scent-intro .h-scent-in { max-width: 820px; }
.h-scent-intro .h-scent-in > p:not(.h-label):not(.h-scents-hint) { font-size: 1rem; line-height: 2.1; color: var(--ink-soft); max-width: 30em; margin-bottom: 2.4rem; }
.h-scents-hint { margin-top: 2.2rem; font-family: var(--latin); font-style: italic; font-size: 1.05rem; color: var(--ink-faint); }
.h-scent-no { font-family: var(--latin); font-style: italic; font-size: 1.05rem; letter-spacing: 0.1em; color: var(--ac); margin-bottom: 1rem; }
.h-scent-name { font-family: var(--font-min); font-weight: 500; font-size: clamp(3.4rem, 8vw, 8rem); line-height: 1.12; letter-spacing: 0.08em; margin-bottom: 0.6rem; font-feature-settings: "palt"; }
.h-scent-name a { color: inherit; text-decoration: none; }
.h-scent-name.is-kana { font-size: clamp(2.6rem, 5.2vw, 5.4rem); letter-spacing: 0.04em; white-space: nowrap; line-height: 1.3; }
.h-scent-en { font-family: var(--latin); font-style: italic; font-size: clamp(1.1rem, 1.5vw, 1.4rem); letter-spacing: 0.06em; color: var(--ac); margin-bottom: 1.8rem; }
.h-scent-copy { font-size: 1rem; line-height: 2.1; max-width: 26em; margin-bottom: 1rem; }
.h-scent-note { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ac); margin-bottom: 1.4rem; }
.h-scent-price { font-family: var(--font-min); font-size: 1.6rem; letter-spacing: 0.04em; margin-bottom: 1.6rem; }
.h-scent-price small { font-size: 0.5em; opacity: 0.75; }
.h-scent-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.h-scent .h-btn-line { color: var(--fg); }
.h-scent .h-btn-line::before { background: var(--fg); }
@media (hover: hover) { .h-scent .h-btn-line:hover { color: var(--bg); border-color: var(--fg); } }
.h-scent .h-btn-fill { background: var(--fg); color: var(--bg); }
.h-scent .h-btn-fill::before { background: var(--ac); }
@media (hover: hover) { .h-scent .h-btn-fill:hover { color: #fff; } }
.h-scent-pkg {
  position: relative;
  justify-self: center;
  height: calc(var(--us) * 78);
  aspect-ratio: 440 / 1231;
  margin: 0;
  transform: translateX(var(--px, 0)) rotate(var(--rot, 0deg));
  filter: drop-shadow(0 40px 50px rgba(20, 16, 12, 0.35));
}
.h-scent-pkg img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.h-scents-bar { position: absolute; left: var(--h-pad); right: var(--h-pad); bottom: 28px; height: 2px; background: rgba(31, 28, 25, 0.12); mix-blend-mode: multiply; }
.h-scents-bar span { position: absolute; inset: 0; background: var(--sumi); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.h-scents-note { font-size: 0.78rem; color: var(--ink-faint); padding: 1.2rem var(--h-pad) 0; position: absolute; bottom: -2.6rem; }

/* 香り診断への入口（七つの香りの最初のパネル） */
.h-quiz {
  display: grid;
  gap: 0.6rem;
  max-width: 560px;
  padding: 2rem 2.2rem;
  border: 1px solid color-mix(in srgb, var(--sumi) 18%, transparent);
  border-radius: 6px;
  text-decoration: none;
  color: var(--sumi);
  background: color-mix(in srgb, #fff 45%, transparent);
  transition: border-color 0.3s ease, background 0.3s ease;
}
@media (hover: hover) { .h-quiz:hover { border-color: var(--accent); background: #fff; } }
.h-quiz-label { font-family: var(--latin); font-style: italic; font-size: 1rem; color: var(--accent-text); }
.h-quiz-title { font-family: var(--font-min); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.6; letter-spacing: 0.06em; }
.h-quiz-desc { font-size: 0.88rem; color: var(--ink-soft); }
.h-quiz-go { justify-self: start; margin-top: 0.6rem; font-size: 0.9rem; letter-spacing: 0.08em; color: #fff; background: var(--accent); border-radius: 999px; padding: 0.8em 1.8em; }
.h-quiz-go::after { content: "  →"; }

/* ==================================================================
   09 TRIAL / 10 LINE / 11 JOURNAL / 12 FAQ / 13 CODA
   ================================================================== */
.h-trial { padding: clamp(120px, calc(var(--us) * 18), 220px) 0 clamp(96px, calc(var(--us) * 14), 180px); }
.h-trial-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; }
.h-trial-img { margin: 0; background: #fff; border-radius: 4px; padding: 2rem; }
.h-trial-body > p { font-size: 1rem; line-height: 2.1; color: var(--ink-soft); max-width: 32em; }
.h-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 0.8rem; }
.h-tags li { font-size: 0.8rem; letter-spacing: 0.06em; padding: 0.35em 1em; border: 1px solid color-mix(in srgb, var(--sumi) 20%, transparent); border-radius: 999px; }
.h-trial-price { font-family: var(--font-min); font-size: clamp(2.4rem, 4vw, 3.6rem) !important; color: var(--sumi) !important; margin: 1.2rem 0 1.4rem; line-height: 1.2 !important; }
.h-trial-price small { font-family: var(--font-goth); font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.04em; }

.h-line { padding: clamp(80px, calc(var(--us) * 12), 140px) 0; background: var(--sumi); color: var(--paper); text-align: center; }
.h-line .h-label { color: #9fd9b0; }
.h-line-in > p { color: #cfc6b8; line-height: 2.1; max-width: 32em; margin: 0 auto 2rem; }
.h-line-in strong { color: #fff; font-weight: 500; }
.h-line .h-small { color: #a39a8c; margin-top: 1.4rem; }

.h-journal { padding: clamp(96px, calc(var(--us) * 14), 180px) 0; }
.h-journal-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1rem; }
.h-journal-head .h-title { margin-bottom: 1.6rem; }
.h-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem 2.4rem; }
.h-jcard { display: grid; gap: 0.6rem; text-decoration: none; color: var(--sumi); }
.h-jcard-img { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 3; margin-bottom: 0.6rem; }
.h-jcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .h-jcard:hover .h-jcard-img img { transform: scale(1.06); } }
.h-jcard-meta { font-family: var(--latin); font-style: italic; font-size: 0.95rem; color: var(--accent-text); }
.h-jcard-title { font-family: var(--font-min); font-size: 1.15rem; line-height: 1.7; letter-spacing: 0.04em; }
.h-jcard-desc { font-size: 0.85rem; line-height: 1.9; color: var(--ink-soft); }

.h-faq { padding: clamp(72px, calc(var(--us) * 12), 140px) 0; border-top: 1px solid color-mix(in srgb, var(--sumi) 10%, transparent); }
.h-faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 5vw; }
.h-faq-list { margin-top: 0; }

.h-coda { overflow: hidden; padding: clamp(40px, calc(var(--us) * 8), 80px) 0 0; }
.h-coda-text {
  font-family: var(--font-min);
  /* 10文字（日常に、香りの間を。）が必ず1行に収まる大きさ。はみ出させない */
  font-size: calc((100vw - var(--h-pad) * 2) / 10.9);
  line-height: 1.1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: center;
  color: color-mix(in srgb, var(--sumi) 12%, transparent);
  padding: 0 var(--h-pad);
}
.home .site-foot { margin-top: 0; }

/* ==================================================================
   カーソル（マウス操作の端末だけ JS が出す）
   ================================================================== */
.h-cursor, .h-cursor-dot { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.h-cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid #fff; transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, background 0.3s ease; }
.h-cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #fff; }
.h-cursor.is-link { width: 66px; height: 66px; margin: -33px 0 0 -33px; border-color: rgba(255, 255, 255, 0.9); }
.h-cursor-dot.is-link { transform-origin: center; opacity: 0; }
.h-cursor.is-hidden, .h-cursor-dot.is-hidden { opacity: 0; }

/* ==================================================================
   スマホ・タブレット
   ================================================================== */
@media (max-width: 899px) {
  .h-hero { min-height: 680px; }
  .h-hero::before { background: linear-gradient(to left, rgba(246, 241, 232, 0.7) 0%, rgba(246, 241, 232, 0) 45%), linear-gradient(to top, rgba(246, 241, 232, 0.92) 0%, rgba(246, 241, 232, 0.75) 30%, rgba(246, 241, 232, 0) 52%); }
  .h-hero-era { left: auto; right: var(--h-pad); top: 36px; }
  /* 縦書きの見出しは「香りの間を。」の句点までボタンの上に収める。
     ボタンの上端＝画面の高さ−242px、見出しの高さ≒文字の大きさ×7.8 なので、低い画面では文字を小さくする */
  .h-hero-title { left: auto; right: calc(var(--h-pad) + 1.9rem); top: 30px; font-size: min(clamp(2.5rem, 10.5vw, 3.6rem), calc((max(var(--us) * 100, 680px) - 370px) / 7.9)); }
  /* スマホは写真（石と砂紋）を見せるため、ボタンだけを置く（説明文は次の章にもある） */
  .h-hero-side { left: var(--h-pad); right: var(--h-pad); width: auto; bottom: 54px; }
  .h-hero-lead { display: none; }
  .h-hero-ctas .h-btn-line { background: rgba(246, 241, 232, 0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .h-hero-lead { font-size: 0.88rem; line-height: 1.95; }
  .h-hero-ctas .h-btn { width: 100%; }
  .h-hint-pc { display: none; }
  .h-hint-sp { display: inline; }
  .h-hero-hint { bottom: 22px; font-size: 0.72rem; letter-spacing: 0.2em; }
  .h-scroll { display: none; }

  .h-reveal { height: calc(var(--us) * 290); } /* 広がりきったあと、写真と文字を画面約0.8枚ぶん止めて見せる（勢いよくスクロールしても流れすぎないように） */
  .h-reveal-window { clip-path: inset(calc(var(--q) * calc(var(--us) * 24)) calc(var(--q) * 18vw) calc(var(--q) * calc(var(--us) * 24)) calc(var(--q) * 18vw) round calc(var(--q) * 120px)); }
  .h-reveal-cap { grid-template-columns: 1fr; }
  .h-reveal-meta { flex-wrap: wrap; gap: 0.2rem 1rem; }

  .h-burn { height: calc(var(--us) * 380); }
  .h-burn-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-content: stretch; padding-top: 84px; padding-bottom: 28px; gap: 0.6rem; }
  .h-burn-title { font-size: 1.5rem; margin-bottom: 0.6rem; }
  .h-burn-lead { font-size: 0.84rem; line-height: 1.9; }
  .h-burn-stage { height: 100%; min-height: 0; }
  /* お香の長さは舞台の高さに合わせる（画面の高さで決めると、文章が長い・画面が低い端末で見出しに刺さる） */
  .h-incense { bottom: 46px; height: clamp(40px, calc(100% - 46px - 30px), calc(var(--us) * 30)); }
  .h-clock { bottom: auto; top: 4px; left: auto; right: 0; transform: none; }
  .h-timeline { bottom: 6px; }
  .h-phases { margin-top: 1.6rem; }
  .h-phases { min-height: 9.5em; }
  .h-phase h3 { font-size: 1.5rem; margin: 0 0 0.4rem; }
  .h-phase p:last-child { font-size: 0.84rem; line-height: 1.9; }

  .h-why-list { grid-template-columns: 1fr; }
  .h-why-item, .h-why-item:first-child { padding: 1.8rem 0; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--sumi) 10%, transparent); display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; }
  .h-why-num { font-size: 3rem; margin: 0; }
  .h-proof-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
  .h-story-grid, .h-trial-grid, .h-craft-grid, .h-faq-grid { grid-template-columns: 1fr; }
  .h-story-fig { margin-top: 0; }
  .h-kare-img { height: calc(var(--us) * 52); }
  .h-kare-cols { grid-template-columns: 1fr; gap: 1rem; }
  .h-craft-figures { grid-template-columns: 1fr; gap: 1.6rem; }
  .h-journal-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .h-journal-head { align-items: start; flex-direction: column; gap: 0; margin-bottom: 1.6rem; }

  /* 七つの香り: 横に流さず、色の帯を縦に積む */
  .h-scents { height: auto !important; }
  .h-scents-pin { position: static; height: auto; overflow: visible; }
  .h-scents-track { flex-direction: column; width: 100% !important; transform: none !important; height: auto; }
  /* スマホ: 箱は右上に小さく、文章は画面の幅いっぱいに（横に並べると文が窮屈になる） */
  .h-scent { flex: none; width: 100%; height: auto; min-height: 0; display: flex; flex-direction: column; padding: 64px var(--h-pad) 64px; }
  .h-scent-in { max-width: none; }
  .h-scent-intro { min-height: auto; grid-template-columns: 1fr; padding-top: 96px; }
  .h-scent-intro-fig { width: 100%; justify-self: stretch; margin-top: 1.6rem; }
  .h-scent-name { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .h-scent-copy { font-size: 0.9rem; }
  .h-scent-pkg { order: -1; position: static; align-self: center; height: auto; width: 30vw; max-width: 150px; margin: 0 0 2.2rem; transform: none; }
  .h-scent-intro .h-scent-in { padding: 0; }
  .h-scent-ctas .h-btn { min-height: 46px; padding: 0 1.3em; font-size: 0.85rem; }
  .h-scents-bar, .h-scents-hint { display: none; }
  .h-scents-note { position: static; padding-bottom: 1rem; }
  .h-quiz { padding: 1.5rem 1.4rem; }
}

/* 動きを減らす設定: 固定・スクロール連動をやめて、最後の状態で見せる */
@media (prefers-reduced-motion: reduce) {
  .h-reveal, .h-burn, .h-scents { height: auto !important; }
  .h-reveal-pin, .h-burn-pin, .h-scents-pin { position: static; height: auto; min-height: calc(var(--us) * 100); }
  .h-reveal-window { position: relative; height: calc(var(--us) * 100); clip-path: none; }
  .h-reveal-cap { opacity: 1; transform: none; }
  .h-scents-track { flex-direction: column; width: 100% !important; transform: none !important; }
  .h-scent { flex: none; width: 100%; min-height: calc(var(--us) * 100); }
  .h-phases { min-height: 0; display: grid; gap: 1.8rem; }
  .h-phase { position: relative; opacity: 1; transform: none; padding-left: 1.6rem; border-left: 1px solid rgba(217, 185, 138, 0.35); }
  .h-phase::before { content: ""; position: absolute; left: -4px; top: 0.55rem; width: 7px; height: 7px; border-radius: 50%; background: #d9b98a; }
  .h-phase h3 { margin-top: 0.1rem; }
  .h-burn-pin { position: static; min-height: 0; padding-top: clamp(96px, calc(var(--us) * 14), 160px); padding-bottom: clamp(96px, calc(var(--us) * 14), 160px); }
  .h-split .ch { opacity: 1; transform: none; }
}
/* 動きを減らす設定のスマホ: お香は見出しと重ねず、独立した段に置く */
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .h-burn-pin { grid-template-rows: none; gap: 2.6rem; }
  .h-burn-stage { height: calc(var(--us) * 50); min-height: 340px; }
  .h-incense { height: min(calc(var(--us) * 34), calc(100% - 58px - 40px)); bottom: 58px; }
}

/* ---------- ナビの下線（ホバーで左から伸びる） ---------- */
.home .gnav a:not(.nav-cta) { position: relative; text-decoration: none; }
.home .gnav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .home .gnav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; } }

/* ---------- フッター: 墨色で締める ---------- */
.home .site-foot { background: var(--sumi); color: #d9d0c2; border-top: 0; }
.home .site-foot .brand-logo { filter: invert(1) brightness(1.6); mix-blend-mode: normal; }
.home .site-foot .foot-tagline, .home .site-foot .foot-company, .home .site-foot .copyright { color: #bdb3a4; }
.home .site-foot .foot-label { color: #d9b98a; }
.home .site-foot .foot-links a { color: #e9e2d6; }
@media (hover: hover) { .home .site-foot .foot-links a:hover { color: #fff; } }
.home .site-foot .btn-amazon { background: #f3eee4; color: var(--sumi); }
.home .site-foot .foot-top, .home .site-foot .foot-bottom { border-color: rgba(243, 238, 228, 0.14); }
.home .h-coda { background: var(--paper); }
.home .site-foot .foot-cols { border-color: rgba(243, 238, 228, 0.14); }
.home .site-foot .foot-en { color: #d9b98a; }
.home .site-foot .foot-tagline { color: #f3eee4; }

/* 短い文の改行を単語（文節）単位に。よくある質問・カードの題名など */
.home .faq-list summary, .h-jcard-title, .h-quiz-title, .h-scent-note, .h-arrow, .h-small, .h-note, .h-reveal-copy, .h-why-item h3, .h-proof-grid dt, .h-craft-block h3, .h-scent-copy, .h-hero-lead, .h-burn-lead, .h-phase p {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.home .faq-list summary { padding-right: 2.4rem; line-height: 1.8; }

/* 30分の目盛り: つまんで時間を動かせるスライダー（当たり判定は上下に広げる） */
.h-timeline { cursor: grab; touch-action: none; }
.h-timeline::before { content: ""; position: absolute; left: -14px; right: -14px; top: -22px; bottom: -26px; }
.h-timeline:active { cursor: grabbing; }
.h-timeline:focus-visible { outline: 1px solid #d9b98a; outline-offset: 16px; border-radius: 2px; }
.h-timeline-knob {
  position: absolute; top: 50%; left: calc(var(--bp, 0) * 100%);
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: #f3e3c4; box-shadow: 0 0 0 4px rgba(217, 185, 138, 0.22), 0 0 18px 2px rgba(255, 170, 90, 0.35);
  transition: transform 0.25s ease;
}
.h-timeline.is-drag .h-timeline-knob { transform: scale(1.25); }
@media (hover: hover) { .h-timeline:hover .h-timeline-knob { transform: scale(1.25); } }
.h-timeline-hint { position: absolute; left: 50%; bottom: calc(calc(var(--us) * 3) - 46px); transform: translateX(-50%); font-size: 0.72rem; letter-spacing: 0.1em; color: #8f8574; white-space: nowrap; }
@media (max-width: 899px) { .h-timeline-hint { bottom: -40px; } .h-burn-stage { margin-bottom: 1.4rem; } }
/* 動きを減らす設定でも、今の段階だけを濃く見せる（目盛りで切り替えられる） */
@media (prefers-reduced-motion: reduce) { .h-phase:not(.is-on) { opacity: 0.45; } .h-timeline-knob { transition: none; } }

/* ==================================================================
   スマホの「30分を焚く」: 見出しと説明は普通に流し、お香と三つの段階だけを固定する（2026-09-30）
   見出しごと固定すると、低い画面や文字の大きい端末でお香が見出しに刺さるため。
   ヘッダーは常に出ているので、固定する枠はヘッダーの下から始める。
   PC と動きを減らす設定では .h-burn-play は箱として消え（display: contents）、今までの並びのまま
   ================================================================== */
.h-burn-play { display: contents; }
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .h-burn { height: auto; }
  .h-burn-pin { position: static; display: block; height: auto; overflow: visible; padding: 112px var(--h-pad) 0; background: none; }
  .h-burn-pin::after { content: ""; display: block; height: calc(var(--us) * 220); } /* お香が燃え尽きるまでのスクロールの長さ */
  .h-burn-play {
    display: flex; flex-direction: column;
    position: sticky; top: 0;
    height: calc(var(--us) * 100);
    overflow: hidden; /* 煙の canvas は舞台より左右に広い。はみ出すとページが横に揺れる */
    padding: 78px 0 18px;
    background: radial-gradient(70% 60% at 50% 45%, #2c2621 0%, #201c18 75%);
    margin: 0 calc(var(--h-pad) * -1); padding-left: var(--h-pad); padding-right: var(--h-pad);
  }
  .h-burn-head { margin-bottom: 1rem; }
  .h-burn-stage { flex: 1 1 auto; height: auto; min-height: 0; }
  .h-incense { bottom: 46px; height: clamp(60px, calc(100% - 46px - 40px), calc(var(--us) * 36)); }
  .h-phases { margin-top: 1.2rem; flex: none; }
}

/* スマホ: 画面に固定した部品のぼかし（backdrop-filter）をやめ、ほぼ不透明の地にする。
   iPhone は上下のバーが出入りするあいだ、ぼかしを毎フレーム描き直してちらつくため（2026-09-30） */
@media (max-width: 899px) {
  .home .site-head.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--paper) 97%, transparent); }
  .home .to-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); }
  .h-hero-ctas .h-btn-line { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(246, 241, 232, 0.94); }
}

/* 三つの段階（点けてすぐ／燃焼中／消えたあと）は、同じ場所に重ねて切り替える。
   高さを決め打ち（min-height）すると、iPhone で文が1行多く折り返したときに最後の行が切れるため、
   グリッドの同じマスに重ねて、いちばん長い段階の高さに自動で合わせる（2026-09-30 実機の指摘） */
@media (prefers-reduced-motion: no-preference) {
  .h-phases { display: grid; min-height: 0; }
  .h-phase { position: relative; inset: auto; grid-area: 1 / 1; }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .h-burn-play { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .h-phases { padding-right: 56px; } /* 右下の「トップへ戻る」ボタンと文字を重ねない */
}

/* ==================================================================
   Craft（淡路島）: 写真と短い文の2段（2026-09-30 作り直し）
   以前は写真なし・約500字の文章2ブロックで、スマホでは文字の壁になっていた。
   1段 約80字にして、数字は写真の横に小さく添える。詳しい話は kodawari.html へ
   ================================================================== */
.h-craft-lead { margin-top: 0.4rem; }
.h-craft-rows { display: grid; gap: clamp(56px, calc(var(--us) * 9), 110px); margin-top: clamp(48px, calc(var(--us) * 8), 96px); }
.h-craft-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.h-craft-row:nth-child(2) .h-craft-fig { order: 2; }
.h-craft-fig { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 2; }
.h-craft-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-craft-txt h3 { font-family: var(--font-min); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: 0.08em; line-height: 1.5; margin-bottom: 1.1rem; }
.h-craft-txt > p { font-size: 1rem; line-height: 2.05; color: var(--ink-soft); max-width: 24em; }
.h-craft-stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--sumi) 14%, transparent); }
.h-craft-stats dt { font-family: var(--latin); font-size: 2.6rem; line-height: 1; color: var(--sumi); }
.h-craft-stats dt small { font-family: var(--font-min); font-size: 0.85rem; margin-left: 0.2em; }
.h-craft-stats dd { font-size: 0.8rem; line-height: 1.7; color: var(--ink-soft); margin-top: 0.5rem; }
.h-craft-stats dd span { font-size: 0.72rem; opacity: 0.8; }
.h-craft-txt h3, .h-craft-txt > p { word-break: auto-phrase; text-wrap: pretty; }
@media (max-width: 899px) {
  .h-craft-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .h-craft-row:nth-child(2) .h-craft-fig { order: 0; }
  .h-craft-fig { margin: 0 calc(var(--h-pad) * -1); border-radius: 0; }
}
.h-craft-stats dt small.pre { margin: 0 0.1em 0 0; }

/* ==================================================================
   ボタンを上質に（2026-09-30「CTAが安っぽい」）
   丸いピル＋彩度の高い赤茶の塗り＋LINEの緑、と種類が多くテンプレート的だったのを、
   角の立った長方形・墨色の塗り／細い線・文字のあとに細い横線、の2種類にそろえる
   ================================================================== */
/* 形は楕円（ピル）に戻す（2026-09-30 ユーザー「やっぱり楕円」。安っぽさの原因は形より彩度の高い赤の塗りだった）。文字のあとの線はやめ、文字だけのすっきりした形に */
.h-btn { border-radius: 999px; min-height: 54px; padding: 0 2.1em; font-size: 0.88rem; letter-spacing: 0.12em; font-weight: 500; }
/* 押してほしいボタン（塗り）は中間の赤茶 #a03e28（2026-10-03 決定）。墨色は地味すぎ、弁柄も沈んで見えたため、
   元の赤茶 #b4472e との間の色。香りの章のボタンは各香りの色（.h-scent .h-btn-fill）のまま */
.h-btn-fill { background: #a03e28; color: #fff; }
.h-btn-fill::before { background: #83321f; }
.h-btn-line { border: 1px solid color-mix(in srgb, var(--sumi) 50%, transparent); color: var(--sumi); }
@media (max-width: 899px) { .h-hero-ctas .h-btn-line { background: rgba(246, 241, 232, 0.92); } }
/* 香り診断のカード */
.h-quiz-go { background: #a03e28; color: #fff; border-radius: 999px; padding: 0.95em 1.9em; font-size: 0.88rem; letter-spacing: 0.12em; }
.h-quiz-go::after { content: none; }
/* LINEの章（墨色の地）: 緑の塗りをやめ、生成りのボタンに小さな緑の丸印 */
/* LINEのボタンはLINEの緑（2026-10-03 決定: 緑のほうが友だち追加だと一目で分かる。色に意味がある例外） */
.h-line .h-btn-line-app { background: #06c755; color: #fff; }
.h-line .h-btn-line-app::before { background: #05a648; }
/* フッターとヘッダーのボタンも同じ形に */
.home .site-foot .btn { border-radius: 999px; letter-spacing: 0.1em; }
.home .site-foot .btn-line { background: #06c755; color: #fff; border: 0; }
/* 香りの章の2つのボタンは横に並べたまま（スマホ390pxでも1段に収める）。暗い地では枠線を文字の色で */
.h-scent-ctas .h-btn { padding: 0 1.4em; letter-spacing: 0.08em; white-space: nowrap; }
.h-scent .h-btn-line { border-color: color-mix(in srgb, var(--fg) 55%, transparent); }
/* LINEの章のボタンは1行に */
.h-line .h-btn { padding: 0 1.6em; letter-spacing: 0.08em; white-space: nowrap; }
@media (max-width: 380px) { .h-line .h-btn { font-size: 0.8rem; } .h-scent-ctas .h-btn { font-size: 0.8rem; } }


/* 数字: 英字の書体（Cormorant）の数字は高さがそろわない昔風の形（8がδに見える）で読みにくかった → 高さのそろった数字に（2026-09-30）
   数字が主役の場所（香りの番号・時計・淡路島の数字）は斜体もやめる */
.home { font-variant-numeric: lining-nums; }
.h-scent-no, .h-clock-min { font-style: normal; font-variant-numeric: lining-nums tabular-nums; }
.h-craft-stats dt { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- PCのヒーロー: 砂紋の上でも文字が読めるように（2026-10-07） ---------- */
@media (min-width: 900px) {
  .h-hero::before {
    background:
      radial-gradient(ellipse 32vw calc(var(--us) * 36) at 32vw 70%, rgba(246, 241, 232, 0.95) 0%, rgba(246, 241, 232, 0.86) 45%, rgba(246, 241, 232, 0.4) 75%, rgba(246, 241, 232, 0) 100%),
      linear-gradient(100deg, rgba(246, 241, 232, 0.88) 0%, rgba(246, 241, 232, 0.58) 30%, rgba(246, 241, 232, 0.14) 52%, rgba(246, 241, 232, 0) 62%),
      linear-gradient(to bottom, rgba(246, 241, 232, 0.72) 0, rgba(246, 241, 232, 0) 120px),
      linear-gradient(to top, rgba(246, 241, 232, 0.55) 0%, rgba(246, 241, 232, 0) 32%);
  }
  .h-hero-side { width: min(440px, 32vw); }
  .h-hero-lead { font-size: 1rem; color: #3b342d; font-weight: 500; text-shadow: 0 0 10px rgba(246, 241, 232, 0.95), 0 0 2px rgba(246, 241, 232, 0.9); }
  .h-hero-lead strong { font-weight: 700; }
  .h-hero-era { font-weight: 600; }
  .home .site-head:not(.scrolled) .gnav a:not(.nav-cta) { color: var(--ink); font-weight: 500; text-shadow: 0 0 8px rgba(246, 241, 232, 0.95); }
  .h-hero-ctas .h-btn-line { background: rgba(246, 241, 232, 0.9); }
}

/* ---------- トップのLINE入口（2026-10-07）: お試し香の章の中と、レビューの直後 ---------- */
.h-trial-line { margin: 1.4rem 0 1.8rem; padding: 1.1rem 1.3rem 1.2rem; max-width: 32em; border: 1px solid color-mix(in srgb, #06c755 32%, transparent); border-radius: 14px; background: #f2f9f4; }
.h-trial-line p { font-size: 0.9rem; line-height: 1.9; color: var(--ink-soft); margin: 0 0 0.85rem; }
.h-trial-line strong { color: var(--sumi); font-weight: 600; margin-right: 0.4em; }
.h-trial-line .h-btn, .h-lineband .h-btn { min-height: 46px; font-size: 0.84rem; padding: 0 1.6em; letter-spacing: 0.08em; white-space: nowrap; }
.h-lineband { background: var(--paper-2); padding: 0 0 clamp(56px, calc(var(--us) * 8), 96px); }
.h-lineband-in { display: flex; align-items: center; justify-content: center; gap: 1.2rem 1.8rem; flex-wrap: wrap; text-align: center; border-top: 1px solid color-mix(in srgb, var(--sumi) 12%, transparent); padding-top: 1.8rem; }
.h-lineband p { margin: 0; font-size: 0.95rem; line-height: 1.9; color: var(--ink-soft); }
.h-lineband strong { color: var(--sumi); font-weight: 600; margin-right: 0.3em; }
@media (max-width: 899px) { .h-trial-line .h-btn { width: 100%; } .h-lineband p { font-size: 0.88rem; } }
.h-trial-line .nw, .h-lineband .nw { display: inline-block; }

/* ---------- 7つの香りの写真（棚の写真に差し替え 2026-10-07）: スマホは文字を少し小さく、下に寄せる ---------- */
@media (max-width: 899px) {
  .h-reveal-cap { bottom: clamp(26px, calc(var(--us) * 4.5), 52px); gap: 0.6rem; }
  .h-reveal-cap .h-en { font-size: 1rem; }
  .h-reveal-copy { font-size: clamp(1.55rem, 7.2vw, 2rem); line-height: 1.45; }
  .h-reveal-meta { font-size: 0.76rem; padding-bottom: 0.2rem; }
}
