/* ============================================================
   HANAYAMAYA — リニューアル案 2026-07-26
   方向性: Aesop的な余白と商品主役 / 中川政七商店的な和の上質
   タイプ: EC型(情緒訴求) / 生成り基調 / 直角シャープ / 細罫線
   ============================================================ */

/* オープニングのタグライン用。Cormorant Garamond Light(SIL OFL)を latin subset だけ
   セルフホスト(21.9KB)。Google Fonts のCDNに依存させず、Cloudflareのフォント最適化にも左右されない */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #F5F1EC;   /* 生成り(ベース・クライアントモック実測値) */
  --bg-alt:    #FAF8F3;   /* ほぼ白(セクション切替用) */
  --ink:       #1A1A18;   /* 墨色 */
  --ink-mid:   #56534B;
  --ink-soft:  #6F6A5E;   /* 4.5:1以上を確保(可読性監査 2026-07-26) */
  --line:      #DED8CA;
  --line-soft: #E9E4D8;
  --accent:    #1A1A18;
  --red:       #7A1E1E;   /* CTA深紅 */
  --red-deep:  #641717;
  --limited:       #8C2331;   /* やまのしずく用の高級感ある赤(メタリック) */
  --limited-light: #D98A82;
  --limited-dark:  #4A1015;

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans:  "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2.0;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(122, 30, 30, .14); }

/* ---------- 共通パーツ ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(96px, 14vw, 176px) 0; }
.section--alt { background: var(--bg-alt); }

/* セクションラベル: 細い罫線を先頭に添えて編集的に */
.lbl {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.lbl::before {
  content: ""; display: block; width: 40px; height: 1px;
  background: var(--ink-soft); opacity: .55;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .14em; margin: 0; }
h2 { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.7; }
h3 { font-size: clamp(17px, 2.3vw, 21px); line-height: 1.8; }
p  { margin: 0 0 1.4em; }
.lead { font-size: clamp(13px, 1.6vw, 15px); color: var(--ink-mid); max-width: 34em; line-height: 2.2; }

/* ボタン: 直角・深紅。ホバーは沈み込みではなく"満ちる"動き */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6em; min-height: 56px; padding: 0 44px;
  font-size: 12.5px; letter-spacing: .24em;
  border: 1px solid var(--red); background: var(--red); color: #F5F1EC;
  transition: color .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--red-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
  z-index: 0;
}
.btn:hover::after { transform: scaleX(1); }
.btn > * { position: relative; z-index: 1; }
.btn { z-index: 0; }
.btn:hover { border-color: var(--red-deep); }

.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
/* 「9月上旬 販売開始予定」「予約準備中」のCTA。見た目だけ無効にすると押せてしまい、
   まだ売っていないものが実際に買えて事故るので、クリック自体を殺す */
.btn--soon { pointer-events: none; }
.btn--wide { width: 100%; }
.btn--sm { min-height: 46px; padding: 0 24px; font-size: 12px; }

/* 矢印リンク: 下線がスライドし矢印が進む */
.link-arrow {
  position: relative;
  display: inline-flex; align-items: center; gap: .7em;
  font-size: 12px; letter-spacing: .18em;
  padding-bottom: 8px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform-origin: right; transition: transform .3s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(.4); transform-origin: left; }

/* 画像プレースホルダ */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  background: #EDE8DC; border: 1px dashed #C6BFAD; color: #6F6A5E;
  font-size: 11px; letter-spacing: .12em; line-height: 1.7; padding: 20px;
  aspect-ratio: 4 / 3;
}
.ph b { font-size: 10px; letter-spacing: .2em; color: #8A8474; font-weight: 400; }

/* ---------- ヘッダー: テキストブランドのみ・極薄 ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,236,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.hd {
  max-width: none; padding: 0 var(--pad);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.hd-brand { display: flex; align-items: center; }
.hd-brand img { display: none; }
.hd-brand span {
  font-family: var(--serif);
  font-size: 7px; letter-spacing: .42em; padding-left: 0;
}
.hd-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.hd-nav a { position: relative; font-size: 12px; letter-spacing: .18em; padding: 6px 0; }
.hd-nav a:not(.hd-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .28s var(--ease);
}
.hd-nav a:not(.hd-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.hd-nav a.hd-cta {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; white-space: nowrap;
  height: 40px; padding: 0 26px; line-height: 1;
  border: 1px solid #7A1E1E; background: #7A1E1E; color: #F5F1EC;
  font-size: 11.5px; letter-spacing: .2em;
  transition: background .22s var(--ease), border-color .22s var(--ease);
}
.hd-nav a.hd-cta:hover { background: #641717; border-color: #641717; }
.hd-burger { display: none; width: 26px; height: 14px; position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.hd-burger i { position: absolute; left: 0; width: 100%; height: 1px; background: var(--ink); transition: transform .25s var(--ease); }
.hd-burger i:first-child { top: 0; } .hd-burger i:last-child { bottom: 0; }

@media (max-width: 860px) {
  .hd { height: 64px; }
  .hd-nav { display: none; }
  .hd-burger { display: block; }
}

/* ---------- フッター ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 110px) 0 56px; font-size: 12px; color: var(--ink-mid); }
.ft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 48px; }
.ft-cols h4 { font-family: var(--sans); font-size: 10px; letter-spacing: .28em; color: var(--ink-soft); margin: 0 0 20px; font-weight: 400; text-transform: uppercase; }
.ft-cols a { display: block; margin-bottom: 12px; transition: color .2s var(--ease); }
.ft-cols a:hover { color: var(--ink); }
.ft-bottom {
  margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 11px; color: var(--ink-soft); letter-spacing: .12em;
}
.ft-bottom span:first-child { font-family: var(--serif); }

/* ---------- ① ファーストビュー ----------
   PC: ロゴ中央上に大きく／コピー左下／商品3サイズ右下
   SP: ロゴ→コピー→商品→全幅ボタン→水のこと
------------------------------------------------------------------ */
.hero { position: relative; }
.hero-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  max-width: none; margin: 0 auto; padding: 0 var(--pad);
}

.hero-mark {
  position: absolute; left: 50%; top: 34%;
  transform: translate(-50%, -50%); text-align: center; width: max-content;
}
.hero-mark img { width: clamp(40px, 4vw, 60px); margin: 0 auto; }
.hero-mark-en {
  display: block; margin-top: 18px;
  font-size: clamp(10px, 1vw, 13px); letter-spacing: .46em; color: var(--ink);
  padding-left: .46em;
}

.hero-copy { position: absolute; left: var(--pad); bottom: clamp(72px, 13vh, 132px); max-width: 32em; }
.hero-copy h1 {
  font-size: clamp(26px, 2.8vw, 38px); line-height: 1.5; letter-spacing: .24em;
  margin-bottom: 16px;
}
.hero-copy .hero-sub { font-size: clamp(12px, 1.05vw, 14px); color: var(--ink-mid); letter-spacing: .1em; margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.hero-actions .btn { min-height: 54px; padding: 0 46px; letter-spacing: .26em; }
.hero-reserve {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-size: 12px; letter-spacing: .1em; color: var(--limited);
}
.hero-reserve .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--limited); }

.hero-bags {
  position: absolute; right: var(--pad); bottom: clamp(48px, 9vh, 96px);
  width: clamp(280px, 37vw, 520px);
}
.hero-bags img { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero-stage { min-height: 0; padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: center; }
  .hero-mark, .hero-copy, .hero-bags { position: static; transform: none; left: auto; right: auto; bottom: auto; }
  .hero-copy { display: contents; }
  .hero-mark { order: 1; margin: 0 auto 36px; }
  .hero-mark img { width: 44px; }
  .hero-copy h1 { order: 2; text-align: center; font-size: 24px; margin-bottom: 12px; }
  .hero-copy .hero-sub { order: 3; text-align: center; margin-bottom: 34px; }
  .hero-bags { order: 4; margin-bottom: 36px; width: 100%; max-width: 420px; }
  .hero-actions { order: 5; flex-direction: column; align-items: stretch; gap: 20px; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-arrow { justify-content: center; align-self: center; }
  .hero-reserve { order: 6; justify-content: center; width: 100%; margin-top: 22px; }
}

/* ---------- ② 水 ---------- */
.water-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.water-figure { overflow: hidden; }
.water-figure img, .water-figure .ph {
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  transition: transform 1.2s var(--ease);
}
.water-figure:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .water-grid { grid-template-columns: 1fr; } }

/* ---------- 花山という土地(全幅2分割・クライアントモック準拠 2026-08-01) ----------
   左に白地のコピー、右に山並みをフルブリード。wrap を使わず全幅で割るので
   .section ではなく独立したグリッドにする。分割比はモック実測 37.5% : 62.5% */
.land-split {
  display: grid;
  grid-template-columns: 37.5% 62.5%;
  align-items: stretch;
  min-height: min(80vh, 760px);
  background: var(--bg-alt);
}
.land-split-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 64px);
}
.land-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 2.9vw, 38px); line-height: 1.5; letter-spacing: .18em;
  margin: 0;
}
.land-rule { display: block; width: 46px; height: 1px; background: #C3AE84; margin: 24px 0 34px; }
.land-split-text p {
  font-size: clamp(13px, 1.05vw, 15px); line-height: 2.3; letter-spacing: .1em;
  color: var(--ink-mid); margin: 0 0 26px;
}
.land-split-text p:last-of-type { margin-bottom: 0; }
.land-locus { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 26px); margin-top: clamp(38px, 6vw, 74px); }
.land-map { width: clamp(64px, 6vw, 86px); height: auto; flex: none; }
.land-locus b {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; color: #8C7245; margin-bottom: 9px;
}
.land-locus span { display: block; font-size: 11px; letter-spacing: .1em; color: var(--ink-soft); line-height: 1.95; }
.land-split-visual { position: relative; overflow: hidden; }
.land-split-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .land-split { grid-template-columns: 1fr; min-height: 0; }
  .land-split-text { padding: clamp(64px, 12vw, 88px) var(--pad); }
  .land-split-visual { height: 64vw; min-height: 240px; }
}

/* ---------- ③ 商品ラインナップ ---------- */
.prod-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(44px, 6vw, 72px); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 48px); }
.card {
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: clamp(28px, 3.5vw, 48px);
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { border-color: #C9C1AE; box-shadow: 0 24px 48px -32px rgba(26,26,24,.18); }
.card--limited { border-color: #D9AEA8; }
.card--limited:hover { border-color: var(--limited-light); box-shadow: 0 24px 48px -32px rgba(140,35,49,.22); }
.card-tag { font-size: 10px; letter-spacing: .24em; color: var(--ink-soft); margin-bottom: 16px; }
.card--limited .card-tag {
  font-weight: 500;
  background: linear-gradient(120deg, var(--limited-dark) 0%, var(--limited) 25%, var(--limited-light) 50%, var(--limited) 75%, var(--limited-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-figure { margin: 8px 0 28px; overflow: hidden; }
.card-figure img, .card-figure .ph { aspect-ratio: 4 / 3; object-fit: contain; transition: transform .9s var(--ease); }
.card:hover .card-figure img { transform: scale(1.025); }
.card h3 { margin-bottom: 12px; }
.card-desc { font-size: 12.5px; color: var(--ink-mid); margin-bottom: 24px; line-height: 2.0; }

.pricetable { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 24px; font-feature-settings: "tnum"; }
.pricetable th, .pricetable td { padding: 13px 6px; border-bottom: 1px solid var(--line-soft); text-align: right; }
.pricetable tbody tr:last-child th, .pricetable tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.pricetable th { font-weight: 400; font-size: 10px; letter-spacing: .18em; color: var(--ink-soft); text-align: right; text-transform: uppercase; }
.pricetable th:first-child, .pricetable td:first-child { text-align: left; letter-spacing: .1em; }
.pricetable td { font-family: var(--serif); letter-spacing: .04em; }
.pricetable .sub { color: var(--ink-mid); }

.note-chuck {
  font-size: 11.5px; color: var(--ink-mid);
  background: rgba(255,255,255,.55); border-left: 2px solid var(--line);
  padding: 14px 18px; margin-bottom: 26px; line-height: 1.9;
}
.card .btn { margin-top: auto; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; color: var(--ink-mid); margin-bottom: 18px; }
.stock .dot { width: 6px; height: 6px; border-radius: 50%; background: #6E8B62; }
.stock--few .dot { background: radial-gradient(circle at 30% 30%, var(--limited-light), var(--limited) 55%, var(--limited-dark)); }
.stock--closed .dot { background: #A9A395; }

@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- ④ 予約・定期便 ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 48px); }
.duo-item {
  border: 1px solid var(--line); padding: clamp(32px, 4.5vw, 60px);
  background: var(--bg-alt);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.duo-item:hover { border-color: #C9C1AE; box-shadow: 0 24px 48px -32px rgba(26,26,24,.16); }
.duo-item h3 { margin-bottom: 16px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- 下層ページ共通 ---------- */
.page-head { padding: clamp(72px, 10vw, 132px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 20px; letter-spacing: .16em; }
.crumb { font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 24px; }
.prose { max-width: 40em; }
.prose h2 { margin: clamp(56px, 7vw, 88px) 0 24px; }
.prose h3 { margin: 40px 0 14px; }

/* 商品詳細 */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(40px, 6vw, 72px) 0; }
.pdp-media { position: sticky; top: 96px; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pdp-thumbs .ph { aspect-ratio: 1; font-size: 9px; padding: 6px; }
.pdp h1 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 12px; }
.opt { border: 1px solid var(--line); background: var(--bg-alt); padding: 20px; margin-bottom: 16px; }
.opt-title { font-size: 10px; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 14px; }
.opt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt-btn { border: 1px solid var(--line); background: #fff; padding: 14px 8px; text-align: center; font-size: 12px; line-height: 1.6; cursor: pointer; transition: border-color .2s var(--ease); }
.opt-btn[aria-checked="true"] { border-color: var(--ink); }
.opt-btn small { display: block; font-size: 11px; color: var(--ink-mid); margin-top: 4px; }
.opt-row--buy { grid-template-columns: 1fr 1fr; }
.price-now { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); letter-spacing: .06em; margin: 8px 0 4px; }
.price-note { font-size: 11px; color: var(--ink-soft); margin-bottom: 20px; }
.spec { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 36px; }
.spec th, .spec td { border-bottom: 1px solid var(--line-soft); padding: 14px 4px; text-align: left; vertical-align: top; }
.spec th { width: 8em; font-weight: 400; color: var(--ink-soft); letter-spacing: .1em; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
}

/* レビュー */
.review { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 12px; }
.review-item { border-bottom: 1px solid var(--line-soft); padding: 22px 0; }
.review-meta { font-size: 11px; color: var(--ink-soft); margin-bottom: 8px; }
.stars { letter-spacing: .3em; font-size: 12px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line-soft); padding: 22px 0; }
.faq-item summary { cursor: pointer; list-style: none; font-size: 14px; letter-spacing: .08em; transition: color .2s var(--ease); }
.faq-item summary:hover { color: var(--ink-mid); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋"; margin-right: 14px; color: var(--ink-soft); font-family: var(--serif); }
.faq-item[open] summary::before { content: "－"; }
.faq-item p { margin: 16px 0 0 30px; font-size: 13px; color: var(--ink-mid); }

/* ステータス行(水の旅・予約状況) */
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.status-cell {
  border: 1px solid var(--line); background: var(--bg-alt);
  padding: 24px 20px; font-size: 12px; line-height: 1.9;
  transition: border-color .3s var(--ease);
}
.status-cell:hover { border-color: #C9C1AE; }
.status-cell b {
  display: block; font-family: var(--serif); font-size: 17px;
  margin-bottom: 10px; letter-spacing: .12em; font-weight: 400;
}
@media (max-width: 640px) { .status-row { grid-template-columns: 1fr; } }

/* ---------- 追従購入バー(Step1/2の選択を反映) ----------
   ヒーローを抜けたら出現し、Step3の価格確認が視界にある間は退避する */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(250,248,243,.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 40px -32px rgba(26,26,24,.5);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  transform: translateY(115%);
  opacity: 0;
  visibility: hidden;
  transition: transform .5s var(--ease), opacity .35s var(--ease), visibility .35s;
}
.buybar.is-on { transform: none; opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }

.buybar-in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px);
}

/* 選択中の商品 */
.buybar-prod { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.buybar-prod > p { min-width: 0; margin: 0; }
.buybar-thumb {
  width: 44px; height: 48px; flex: none;
  object-fit: contain; object-position: center bottom;
}
.buybar-name {
  font-family: var(--serif); font-size: 14px; letter-spacing: .1em;
  line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buybar-size {
  display: block; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: .14em; color: var(--ink-soft); margin-top: 2px;
}
.buybar-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .14em;
  border: 1px solid var(--line); color: var(--ink-soft); vertical-align: 2px;
}
.buybar-badge--limited { border-color: var(--limited); color: var(--limited); }

/* 価格 */
.buybar-prices { display: flex; align-items: baseline; gap: 18px; margin-left: auto; }
.buybar-pcol { text-align: right; white-space: nowrap; }
.buybar-plbl { display: block; font-size: 9.5px; letter-spacing: .16em; color: var(--ink-soft); }
.buybar-pval { font-family: var(--serif); font-size: 19px; letter-spacing: .04em; }
.buybar-pval small { font-size: 10px; letter-spacing: .1em; color: var(--ink-soft); margin-left: 3px; }
.buybar-pcol--single .buybar-pval { font-size: 15px; color: var(--ink-mid); }
.buybar-pcol--plan .buybar-pval { color: var(--red); }

/* CTA */
.buybar-cta { display: flex; flex-direction: column; align-items: stretch; gap: 5px; flex: none; }
.buybar-cta .btn { min-height: 48px; padding: 0 30px; white-space: nowrap; }
.buybar-sub {
  font-size: 10.5px; letter-spacing: .1em; color: var(--ink-soft);
  text-align: center; text-decoration: underline; text-underline-offset: 3px;
}
.buybar-sub:hover { color: var(--ink); }

body.has-buybar { padding-bottom: 108px; }

@media (max-width: 860px) {
  .buybar { padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); }
  .buybar-in { gap: 10px; }
  .buybar-thumb { width: 36px; height: 40px; }
  .buybar-name { font-size: 12.5px; letter-spacing: .06em; }
  .buybar-badge { display: none; }
  .buybar-prices { gap: 10px; }
  .buybar-pcol--single { display: none; }
  .buybar-plbl { font-size: 9px; letter-spacing: .1em; }
  .buybar-pval { font-size: 17px; }
  .buybar-cta .btn { min-height: 46px; padding: 0 18px; font-size: 12px; }
  .buybar-sub { display: none; }
  body.has-buybar { padding-bottom: 78px; }
}
@media (max-width: 420px) {
  .buybar-prod { gap: 8px; }
  .buybar-size { font-size: 9.5px; }
}

/* ワイヤー用の注記(原稿確認中プレースホルダ) */
.wirenote {
  background: #EEE9DB; border: 1px solid var(--line); color: var(--ink-mid);
  font-size: 11.5px; line-height: 1.9; padding: 16px 20px; margin: 24px 0;
}
.wirenote b { color: var(--ink); font-weight: 500; }

/* SPハンバーガー展開メニュー */
@media (max-width: 860px) {
  .hd-nav.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 8px 0 12px; z-index: 60;
  }
  .hd-nav.open a { padding: 15px var(--pad); font-size: 13px; }
  .hd-nav.open a:not(.hd-cta)::after { display: none; }
  .hd-nav.open a.hd-cta { margin: 10px var(--pad) 0; height: 46px; padding: 0 26px; }
}

/* ---------- モーション: ヒーロー入場 ----------
   ロゴ→コピー→商品の順で静かに立ち上がる */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-center { from { opacity: 0; transform: translate(-50%, calc(-50% + 22px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
.hero-mark   { animation: rise-center 1.1s var(--ease) .1s both; }
.hero-copy h1        { animation: rise 1.0s var(--ease) .45s both; }
.hero-copy .hero-sub { animation: rise 1.0s var(--ease) .6s both; }
.hero-actions        { animation: rise 1.0s var(--ease) .75s both; }
.hero-bags           { animation: rise 1.2s var(--ease) .55s both; }
/* オープニングの裏で入場アニメが終わってしまわないよう、解除まで止めておく */
body.is-loading .hero-mark,
body.is-loading .hero-copy h1,
body.is-loading .hero-copy .hero-sub,
body.is-loading .hero-actions,
body.is-loading .hero-bags { animation-play-state: paused; }
@media (max-width: 860px) {
  .hero-mark { animation-name: rise; }
}

/* ---------- オープニング(ローダー) ----------
   渓流の映像を敷き、中央にロゴ + Reclaim the Center。
   読み込み完了で .done を付けてフェードアウトし、TOPへ入る */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #14140F; overflow: hidden;
  transition: opacity 1.4s var(--ease), visibility 1.4s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.58) contrast(1.05) saturate(.98);
}
.loader::after {                       /* 中央を少し落として文字を立たせる */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(105% 68% at 50% 48%, rgba(10,10,8,.42), rgba(10,10,8,.58) 60%, rgba(10,10,8,.66));
}
/* ロゴの中心を、解除後のヒーローのロゴ(.hero-mark)とぴったり同じ位置に置く。
   ヒーローは「ヘッダーの下から 34%」なので、画面全体のローダー側では
   ヘッダー分を足した位置を基準にし、ロゴ高さの半分だけ上へ戻す
   (ロゴは 301x712 = 高さが幅の2.3654倍。その半分が 1.1827倍) */
.loader-inner {
  position: absolute; left: 50%;
  top: calc(73px + (100% - 73px) * .34);   /* ヘッダー72px + 境界線1px */
  transform: translate(-50%, calc(clamp(40px, 4vw, 60px) * -1.1827));
  z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(22px, 3vw, 34px);
}
.loader-logo {
  width: clamp(40px, 4vw, 60px); height: auto;   /* .hero-mark img と同じ */
  filter: brightness(0) invert(1);     /* 墨色のロゴを白へ */
  animation: loaderPulse 2.4s var(--ease) infinite;
}
/* 拡縮させるとロゴの上端が動いて、解除後のヒーローのロゴと位置がずれる。明滅だけにする */
@keyframes loaderPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.loader-tagline {
  margin: 0; color: #fff; font-family: "Cormorant Garamond", var(--serif); font-weight: 300;
  font-size: clamp(19px, 2.9vw, 36px); letter-spacing: .3em; text-indent: .3em;
  white-space: nowrap;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .35);
}
.loader-line { position: relative; width: clamp(72px, 9vw, 104px); height: 1px; background: rgba(255,255,255,.16); overflow: hidden; }
.loader-line::after {
  content: ""; position: absolute; left: -100%; top: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  animation: loaderSlide 1.8s ease-in-out infinite;
}
@keyframes loaderSlide { 0% { left: -100%; } 100% { left: 100%; } }
@media (max-width: 860px) {
  /* SPのヒーローはロゴを絶対配置せず、ヘッダー(64px+境界線1px)の下に
     ステージのpadding-top 48px を置いた位置に静的に並べる。同じ座標に合わせる */
  .loader-inner { top: 113px; transform: translateX(-50%); }
  .loader-logo { width: 44px; }        /* SPの .hero-mark img と同じ */
}

/* ---------- モーション: スクロールリビール ----------
   JSが .rv を付与し、視界に入ったら .in で解除。段差はJS側でdelay付与 */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- ヘッダー: スクロール時にわずかに引き締める ---------- */
header { transition: box-shadow .3s var(--ease), background .3s var(--ease); }
header.scrolled {
  background: rgba(245,241,236,.97);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(26,26,24,.25);
}

/* ---------- 価格表: 定期便(お届け価格)を主役に ---------- */
.pricetable .sub { color: var(--red); }
.pricetable tbody tr { transition: background .2s var(--ease); }
.pricetable tbody tr:hover { background: rgba(255,255,255,.65); }

/* ---------- 物語ページ: 章番号の編集的な演出 ---------- */
.page-head .lead { margin-top: 4px; }
.prose > .lbl { margin-bottom: 34px; }

/* 動きを抑えたい環境への配慮 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .loader { display: none; }          /* オープニングは出さずTOPを直接見せる */
}

/* ============================================================
   ステップ型商品選択（2026-07-31 クライアントモック再現版）
   ブランド→品種→サイズ→価格確認の1本フロー
   ============================================================ */
/* ブランド宣言: 左テキスト + 右に斜め2分割のごはんビジュアル(画面右端までフルブリード) */
.sf-hero {
  display: grid; grid-template-columns: minmax(300px, 41%) 1fr;
  align-items: stretch; min-height: min(88vh, 920px);
  background: var(--bg); overflow: hidden;
}
/* ビジュアル側は中身が absolute なので、grid で伸ばさないと高さ0に潰れる。
   テキストはその中で縦中央に置く */
.sf-hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 64px) clamp(56px, 8vw, 104px) var(--pad);
}
/* 斜めの分割は skew ではなく clip-path で作る。skew だと中の写真を逆 skew で
   戻す必要があり、その補正 scale のぶんだけ写真の上下が余計に切り取られて、
   器がフレームから外れてしまう。clip-path なら写真は等倍のまま切り抜ける。
   左端の斜め: モック実測 上端 x=712 / 下端 x=575(領域幅1095) → 12.5% */
.sf-hero-visual {
  position: relative; overflow: hidden;
  clip-path: polygon(12.5% 0, 100% 0, 100% 100%, 0 100%);
}
/* 2枚は flex で並べず重ねる。並べると1枚目を斜めに切った残りがそのまま
   幅30%の帯になって分割線が太くなる。重ねたうえで 0.4% だけずらし、
   その隙間から親の白が覗くのを分割線にする。
   分割線の位置はモック実測: 上端 59.7% / 下端 43.7% */
.sf-hero-panes { position: absolute; inset: 0; background: #fff; }
.sf-pane { position: absolute; top: 0; bottom: 0; margin: 0; overflow: hidden; }
.sf-pane:first-child { left: 0; width: 60%; clip-path: polygon(0 0, 100% 0, 72.8% 100%, 0 100%); }
.sf-pane:last-child { right: 0; width: 56%; clip-path: polygon(29.3% 0, 100% 0, 100% 100%, 0.7% 100%); }
.sf-pane img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* 2枚は同条件で撮り直した真俯瞰カット。器の大きさ・米の粒感・寄りが
   最初から揃っているので、表示側の補正スケールは不要 */
.sf-pane figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 64px 0 clamp(22px, 3vw, 36px); text-align: center; pointer-events: none;
  background: linear-gradient(to top, rgba(26, 26, 24, .5), rgba(26, 26, 24, 0));
}
/* 1枚目は下端が 72.8% までしか見えないので、その中心に寄せる */
.sf-pane:first-child figcaption { right: 27.2%; }
.sf-pane figcaption span {
  display: block; font-family: var(--serif); color: #fff;
  font-size: clamp(13px, 1.5vw, 16px); letter-spacing: .22em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
.sf-title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4vw, 40px); line-height: 1.7; letter-spacing: .08em; margin: 0 0 18px; }
.sf-badges { list-style: none; display: flex; margin: 28px 0 0; padding: 0; }
.sf-badges li {
  flex: 1; text-align: center; font-size: 11px; line-height: 1.9; color: var(--ink-mid);
  padding: 4px 10px; border-left: 1px solid var(--line);
}
.sf-badges li:last-child { border-right: 1px solid var(--line); }
.sf-badges svg { display: block; margin: 0 auto 8px; color: var(--ink-mid); }
.sf-note { font-size: 12px; color: var(--ink-soft); margin-top: 22px; }
.sf-note small { color: var(--ink-soft); }
.sf-note--center { text-align: center; margin-top: 26px; }

/* STEP帯 */
.sf-band { margin-top: clamp(64px, 9vw, 110px); }
.sf-steplbl { text-align: center; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.sf-h { text-align: center; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.6vw, 27px); letter-spacing: .16em; margin: 0 0 34px; }

/* 選択カード共通 */
.sf-options { display: grid; gap: 18px; }
.sf-options--variety { grid-template-columns: 1fr 1fr; }
.sf-options--size { grid-template-columns: repeat(3, 1fr); }
.sf-opt { cursor: pointer; position: relative; display: block; }
.sf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sf-opt-body {
  position: relative; display: block; height: 100%; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 30px);
  transition: border-color .25s var(--ease);
}
.sf-opt:hover .sf-opt-body { border-color: var(--ink-mid); }
.sf-opt input:checked + .sf-opt-body { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.sf-opt input:focus-visible + .sf-opt-body { outline: 2px solid var(--red); outline-offset: 2px; }
.sf-radio {
  position: absolute; top: 16px; left: 16px; width: 16px; height: 16px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
}
.sf-opt input:checked + .sf-opt-body .sf-radio { border-color: var(--red); }
.sf-opt input:checked + .sf-opt-body .sf-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red);
}

/* STEP1 品種カード */
.sf-opt-body--variety { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
/* 品種カードの写真。モック実測でカード幅の約44% */
.sf-ill {
  width: clamp(150px, 19vw, 262px); flex: none;
  border-radius: 4px; object-fit: cover; aspect-ratio: 328 / 269;
}
/* 5kg・10kg の「9月上旬 販売開始予定」。袋の納品待ちのあいだだけ出す小さな札 */
.sf-size-soon {
  display: inline-block; margin-top: 14px;
  font-size: 10.5px; line-height: 1.6; letter-spacing: .12em; color: #8C7245;
  border: 1px solid #DCCFB0; padding: 4px 12px; white-space: nowrap;
}
.sf-vtext { display: block; }
.sf-opt-tag { display: block; font-size: 10px; letter-spacing: .3em; color: var(--ink-soft); margin-bottom: 8px; }
.sf-opt-name { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .1em; margin-bottom: 10px; }
/* 品種のひとこと(ごはんを、味わう。/ 料理を、味わう。) */
.sf-opt-lead {
  display: block; font-size: 12.5px; letter-spacing: .12em;
  color: var(--red); margin-bottom: 10px;
}
.sf-opt-desc { display: block; font-size: 12px; line-height: 1.9; color: var(--ink-mid); }
/* 「令和8年産 予約受付中（数量限定）」は幅が足りないと2行になる。
   inline-flex の align-items:center だとドットが行間の中央に浮くので上詰めにする */
.sf-vtext .stock { display: flex; align-items: flex-start; margin-top: 10px; line-height: 1.7; }
.sf-vtext .stock .dot { flex: none; margin-top: 6px; }
.sf-note-link { margin-top: 26px; text-align: center; }

/* STEP2 サイズカード */
.sf-opt-body--size { text-align: center; padding-top: clamp(24px, 3.5vw, 34px); padding-bottom: clamp(24px, 3.5vw, 34px); }
.sf-minibag { display: block; margin: 0 auto 14px; width: auto; }
.sf-minibag--s2 { height: 46px; }
.sf-minibag--s5 { height: 62px; }
.sf-minibag--s10 { height: 78px; }
.sf-opt-body--size { display: flex; flex-direction: column; justify-content: flex-end; }
.sf-size-name { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: .1em; }
.sf-size-sub { display: block; font-size: 11px; color: var(--ink-soft); margin: 2px 0 12px; }

/* STEP3 価格確認 */
.sf-summary {
  display: grid; grid-template-columns: 1.5fr .9fr 1.2fr auto;
  gap: clamp(18px, 3.5vw, 44px); align-items: center;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(22px, 4vw, 40px);
}
.sf-sum-prod { display: flex; align-items: center; gap: 18px; }
.sf-sum-prod img { max-height: 110px; width: auto; }
.sf-sum-name { font-family: var(--serif); font-size: 15px; line-height: 1.9; letter-spacing: .06em; margin: 0 0 8px; white-space: nowrap; }
.sf-sum-badge {
  display: inline-block; font-size: 10px; letter-spacing: .18em; padding: 3px 10px;
  background: #EBEFE3; color: #55613F; border-radius: 3px;
}
.sf-sum-badge--limited { background: #F5E3E1; color: var(--limited-dark); }
.sf-price-lbl { font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); margin: 0 0 4px; }
.sf-price { font-family: var(--serif); font-size: 26px; letter-spacing: .04em; margin: 0; white-space: nowrap; }
.sf-price small { font-size: 11px; color: var(--ink-soft); margin-left: 4px; }
.sf-price--red { color: var(--red); }
.sf-save {
  display: inline-block; font-size: 10.5px; color: #7A5A1E; background: #F3E9D2;
  padding: 3px 10px; border-radius: 3px; margin: 8px 0 0;
}
.sf-sum-cta { text-align: center; min-width: 210px; }
.sf-single-link { display: inline-block; font-size: 12px; margin-top: 12px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* 安心の3点 */
.sf-assure {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  margin: clamp(64px, 9vw, 104px) 0 0; padding: clamp(20px, 3vw, 30px) 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-alt);
}
.sf-assure li {
  display: flex; gap: 14px; align-items: flex-start; padding: 6px clamp(16px, 2.5vw, 28px);
  font-size: 11.5px; line-height: 1.9; color: var(--ink-mid);
  border-left: 1px solid var(--line-soft);
}
.sf-assure li:first-child { border-left: none; }
.sf-assure svg { flex: none; margin-top: 4px; color: var(--ink-mid); }
.sf-assure b { display: block; font-size: 13px; letter-spacing: .1em; color: var(--ink); margin-bottom: 4px; }

@media (max-width: 900px) {
  .sf-hero { grid-template-columns: 1fr; min-height: 0; }
  .sf-hero-text { padding: clamp(56px, 10vw, 84px) var(--pad) clamp(30px, 6vw, 46px); }
  /* 2枚並ぶと1枚あたりが細くなる。写真(1:1.5)に対して枠が縦長すぎると
     左右が大きく切り取られて器が欠けるので、高さを写真の比率側に寄せる */
  .sf-hero-visual { height: min(46vh, 390px); clip-path: none; }
  .sf-options--variety { grid-template-columns: 1fr; }
  .sf-options--size { grid-template-columns: 1fr; }
  .sf-summary { grid-template-columns: 1fr; text-align: center; }
  .sf-sum-prod { justify-content: center; }
  .sf-sum-cta { min-width: 0; }
  .sf-assure { grid-template-columns: 1fr; }
  .sf-assure li { border-left: none; border-top: 1px solid var(--line-soft); padding: 14px 20px; }
  .sf-assure li:first-child { border-top: none; }
}

/* ===== Instagram link ===== */
.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-link svg { width: 17px; height: 17px; fill: currentColor; display: block; flex: none; }
.hd-nav .ig-link { padding: 6px 0; }
.hd-nav .ig-link::after { content: none; }
.ft-cols .ig-link svg { width: 15px; height: 15px; }
/* PC: ナビ内(購入ボタンの左)に出す。SP: ナビごと隠れるのでメニューボタンの左に出す */
.ig-link--sp { display: none; }
@media (max-width: 860px) {
  .ig-link--sp { display: inline-flex; margin-left: auto; margin-right: 18px; }
  .ig-link--sp svg { width: 20px; height: 20px; }
}
