@charset "utf-8";
/* ============================================================
   Mimoa brand site - site.css
   すべての数値は docs/08_デザイン根拠書.md のトークンから取る。
   根拠書にない数値は書かない(work/tokencheck.py で検出)。
   テーマ: 既定(=案1 やわらかな水彩) / [data-theme="p2"] / [data-theme="p3"]
   ============================================================ */

/* ---------- 1. tokens(根拠書 §1〜§7) ----------------------- */
:root {
  /* 余白スケール(§1) 4の倍数。隣り合う比が1.25〜1.5 */
  --s4: 4px;  --s8: 8px;  --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px;
  --s40: 40px; --s48: 48px; --s64: 64px; --s80: 80px; --s96: 96px; --s128: 128px; --s160: 160px;

  /* 書体(§3) */
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-lat: "Jost", "Noto Sans JP", sans-serif;
  --w-head: 500;

  /* 文字サイズ(§3 SP列) */
  --fs-note: 12px;  --fs-label: 12px; --fs-small: 14px; --fs-body: 16px; --fs-lead: 18px;
  --fs-h3: 20px;    --fs-h2: 28px;    --fs-h1: 34px;    --fs-big: 40px;  --fs-btn: 16px;
  --lh-body: 1.85; --lh-lead: 1.8; --lh-small: 1.7; --lh-note: 1.6; --lh-h3: 1.5; --lh-h2: 1.4; --lh-h1: 1.4;
  --ls-body: 0.02em; --ls-h3: 0.03em; --ls-h2: 0.04em; --ls-h1: 0.05em; --ls-label: 0.16em; --ls-btn: 0.04em;

  /* 色(§4 案1)。コメントの数字は地に対するコントラスト比 */
  --paper: #fbfaf7;
  --band: #f1eee6;
  --white: #ffffff;
  --ink: #3b3a36;          /* 10.91 */
  --muted: #6b6a64;        /*  5.20 注記の下限 */
  --primary: #8e9b77;      /* 面と線のみ。文字を載せない */
  --primary-ink: #647250;  /* 白文字 5.17 / 対paper 4.95 */
  --primary-soft: #c9d3b5;
  --accent-y: #e9d98b;
  --accent-b: #a9c6db;
  --line: #e6e2da;
  --error: #9e3f35;        /*  6.4 */
  --shadow: 0 8px 24px rgba(59, 58, 54, 0.06);
  --scrim: rgba(59, 58, 54, 0.4);

  /* レイアウト(§2) */
  --maxw: 1200px;
  --measure: 640px;
  --gutter: 20px;
  --header-h: 64px;
  --logo-en: 24px;         /* ロゴ(文字版) 24 + 4 + 12 = 40。ヘッダー64の中で上下12 */
  --logo-ja: 12px;
  --section-y: 80px;
  --footer-y: 64px;
  --grid-gap: 16px;
  --card-pad: 16px;
  --head-gap: 24px;        /* 見出し→本文 */
  --block-gap: 40px;       /* 見出しブロック→内容 */
  --drawer-w: 320px;
  --hero-h: 640px;         /* PCのFV高さ(§11) */
  --s320: 320px;           /* 大きな仮イラストの幅(§11) */

  /* 形(§5) */
  --r8: 8px; --r16: 16px; --r24: 24px; --r32: 32px; --r-pill: 999px;
  --btn-h: 48px; --btn-px: 24px; --btn-sm-h: 40px; --btn-sm-px: 20px;
  --badge: 112px;
  --icon: 24px;
  --icon-stroke: 1.5px;
  --wave-h: 48px;
  --photo-r: 24px;
  --photo-r-l: 32px;

  /* 動き(§7) */
  --t-reveal: 600ms;
  --t-hover: 200ms;
  --t-card: 400ms;
  --t-loop-s: 2400ms;      /* 小さな図形の往復(§13) */
  --t-loop: 3200ms;
  --t-loop-l: 4800ms;      /* イラストの浮遊 */
  --ico: 40px;             /* 図形アイコンの大きさ(§13) */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-y: 8px;
}

/* タブレット(600〜)は余白だけ中間値。PCの指定が後で上書きする */
@media (min-width: 600px) {
  :root { --gutter: 32px; --grid-gap: 24px; }
}

/* PC(§2・§3 PC列)。900以上でナビが1行に収まる */
@media (min-width: 900px) {
  :root {
    --fs-label: 13px; --fs-body: 17px; --fs-lead: 20px;
    --fs-h3: 24px; --fs-h2: 40px; --fs-h1: 56px; --fs-big: 56px;
    --gutter: 40px;
    --header-h: 80px;
    --logo-en: 32px;       /* 32 + 4 + 12 = 48。ヘッダー80の中で上下16 */
    --section-y: 128px;
    --footer-y: 80px;
    --grid-gap: 32px;
    --card-pad: 24px;
    --head-gap: 32px;
    --block-gap: 48px;
    --badge: 128px;
    --wave-h: 80px;
  }
}
/* 案2 あかるいショップ(§9)。色だけ差し替え */
[data-theme="p2"] {
  --paper: #fcfaf6;
  --band: #f3eee6;
  --ink: #4a4440;          /* 9.19 */
  --muted: #7a6a5a;        /* 4.99 */
  --primary: #b19885;
  --primary-ink: #65744b;  /* 白文字 5.06 */
  --primary-soft: #f2d4cb;
  --accent-y: #f6e7c9;
  --accent-b: #e8dcd2;
  --line: #eae2d8;
  --shadow: 0 8px 24px rgba(74, 68, 64, 0.06);
  --scrim: rgba(74, 68, 64, 0.4);
}

/* 案3 しずかな余白(§9)。色と見出し書体を差し替え */
[data-theme="p3"] {
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --w-head: 400;
  --ls-h1: 0.08em; --ls-h2: 0.08em; --ls-h3: 0.06em;
  --paper: #ffffff;
  --band: #f4f1ee;
  --ink: #5a4f48;          /* 見出し 7.93 */
  --muted: #6b5f57;        /* 本文 6.18 */
  --primary: #bfa48a;
  --primary-ink: #85694f;  /* 5.08 */
  --primary-soft: #e6e0d9;
  --accent-y: #e6e0d9;
  --accent-b: #9faf8d;
  --line: #e6e0d9;
  --shadow: 0 8px 24px rgba(90, 79, 72, 0.06);
  --scrim: rgba(90, 79, 72, 0.4);
}

/* ---------- 2. base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-feature-settings: "palt" 1;
  word-break: auto-phrase;   /* 文節で折る(§3) */
  line-break: strict;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

p { margin: 0 0 var(--s16); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--w-head);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
ul, ol { margin: 0 0 var(--s16); padding-left: var(--s24); }
li { text-wrap: pretty; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }

/* 焦点(§4)。文字色と同じ2px、外側3px */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
[hidden] { display: none; }
/* アンカー移動で固定ヘッダーの下に潜らない */
[id] { scroll-margin-top: calc(var(--header-h) + var(--s16)); }

.skip-link {
  position: absolute;
  inset-inline: 0;
  top: calc(var(--s64) * -1);
  z-index: 200;
  width: max-content;
  margin-inline: auto;
  padding: var(--s12) var(--s24);
  background: var(--primary-ink);
  color: var(--white);
  border-radius: 0 0 var(--r8) var(--r8);
  text-decoration: none;
  font-size: var(--fs-small);
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.wrap { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), var(--measure)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--band); }
.section--surface { background: var(--white); }

/* ---------- 3. type helpers ------------------------------- */
.label-en {
  display: block;
  margin-bottom: var(--s12);          /* ラベル→見出し 12(§6) */
  font-family: var(--font-lat);
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--ls-label);
  color: var(--primary-ink);
  text-transform: uppercase;
}
.sec-head { margin-bottom: var(--block-gap); text-align: center; }
.sec-title { margin-bottom: var(--s16); }
.sec-lead { color: var(--muted); font-size: var(--fs-body); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.note { font-size: var(--fs-note); line-height: var(--lh-note); letter-spacing: 0; color: var(--muted); }
.text-center { text-align: center; }
.br-sp { display: inline; }                 /* SPだけの改行(意味の切れ目で折る §3) */
@media (min-width: 900px) { .br-sp { display: none; } }
.more { margin-top: var(--s32); }     /* 本文→ボタン 32(§6) */
/* 余白ユーティリティ(スケールの値だけ) */
.mt-12 { margin-top: var(--s12); }
.mt-16 { margin-top: var(--s16); }
.mt-24 { margin-top: var(--s24); }
.mt-40 { margin-top: var(--s40); }
.mb-24 { margin-bottom: var(--s24); }
.pb-section { padding-bottom: var(--section-y); }
.section--top0 { padding-top: 0; }   /* 直前にパンくず/ページ見出しがある時 */
.sec-title--sub { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); text-align: left; }
.faq-group { padding: 0; }
.faq-group + .faq-group { margin-top: var(--s48); }
.pd__title { margin-bottom: var(--s8); }
/* 見出しの頭に置くアイコン。24を行の中央に(-4pxで文字の中心に合わせる) */
.h-icon { width: var(--icon); height: var(--icon); color: var(--primary-ink); vertical-align: -4px; margin-right: var(--s8); }

/* ---------- 4. buttons(§5) -------------------------------- */
.btn {
  --btn-bg: var(--primary-ink);
  --btn-fg: var(--white);
  --btn-bd: var(--primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-btn);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
/* ホバーは地を6%暗く(§7) */
.btn:hover { --btn-bg: color-mix(in srgb, var(--primary-ink) 94%, #000); --btn-bd: var(--btn-bg); }
.btn .icon { width: var(--icon); height: var(--icon); flex: none; }
.btn .icon:last-child { margin-left: var(--s4); transition: translate var(--t-hover) var(--ease-out); }   /* 矢印は右端に離す */
.btn:hover .icon:last-child { translate: 4px 0; }   /* ホバーで矢印が4px進む(§13) */
.btn--ghost {
  --btn-bg: var(--white);
  --btn-fg: var(--primary-ink);
  --btn-bd: var(--primary-ink);
}
.btn--ghost:hover { --btn-bg: color-mix(in srgb, var(--white) 94%, var(--primary-ink)); --btn-bd: var(--primary-ink); }
.btn--soft { --btn-bg: var(--primary-soft); --btn-fg: var(--ink); --btn-bd: var(--primary-soft); }
.btn--soft:hover { --btn-bg: color-mix(in srgb, var(--primary-soft) 94%, #000); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: var(--btn-sm-h); padding: 0 var(--btn-sm-px); font-size: var(--fs-small); }

/* ---------- 5. header / drawer(§2) ------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  transition: box-shadow var(--t-hover) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }   /* 重なった時だけ境界 */
.hd-inner {
  display: flex;
  align-items: center;
  gap: var(--s16);
  height: var(--header-h);
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  margin-right: auto;
  text-decoration: none;
  line-height: 1;
}
.logo-en {
  font-family: var(--font-lat);
  font-size: var(--logo-en);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--ls-body);
  color: var(--ink);
}
.logo-ja {
  font-family: var(--font-body);
  font-size: var(--logo-ja);
  line-height: 1;
  letter-spacing: 0.3em;
  text-indent: 0.3em;   /* 字間の分だけ右に寄るのを戻す */
  color: var(--muted);
}

.gnav { display: none; }
/* ピル型のナビ(§13)。英字の小ラベル+和文の2段。ホバーで英字が主色になり2px浮く */
.gnav ul { display: flex; gap: var(--s4); margin: 0; padding: 0 var(--s8); list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); }
.gnav a {
  display: flex; flex-direction: column; align-items: center; gap: var(--s4);
  padding: var(--s8) var(--s16);
  font-size: var(--fs-small);
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--r-pill);
  transition: color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.gnav a::before {
  content: attr(data-en);
  font-family: var(--font-lat); font-size: var(--fs-note); letter-spacing: var(--ls-label); line-height: 1;
  color: var(--muted);
  transition: color var(--t-hover) var(--ease-out), translate var(--t-hover) var(--ease-out);
}
.gnav a:hover { color: var(--primary-ink); background: var(--band); }
.gnav a:hover::before { color: var(--primary-ink); translate: 0 -2px; }
.gnav a[aria-current="page"] { color: var(--primary-ink); }
.gnav a[aria-current="page"]::before { color: var(--primary-ink); }
[data-theme="p3"] .gnav a { font-family: var(--font-lat); letter-spacing: var(--ls-label); text-transform: uppercase; }

.hd-cta { display: none; min-height: var(--btn-sm-h); padding: 0 var(--btn-sm-px); font-size: var(--fs-small); }

/* ハンバーガー: 48の円(タップ領域)、線は24幅・1.5px */
.nav-toggle {
  display: grid;
  place-content: center;
  gap: var(--s8);
  width: var(--btn-h);
  height: var(--btn-h);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  cursor: pointer;
  transition: gap var(--t-hover) var(--ease-out);
}
.nav-toggle:hover { gap: var(--s12); }   /* 触れると2本の線が開く */
.nav-toggle span[aria-hidden="true"]:not(.lbl) {
  display: block;
  width: var(--icon);
  height: var(--icon-stroke);
  background: var(--ink);
  border-radius: 1px;
}
.nav-toggle .lbl { display: none; }   /* 12px未満の文字は置かない(§3)。名前は sr-only で読む */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-hover) var(--ease-out), visibility var(--t-hover);
}
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer__scrim { position: absolute; inset: 0; background: var(--scrim); border: 0; padding: 0; cursor: pointer; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(100% - var(--s48), var(--drawer-w));   /* 左に48以上のスクリムを残しタップで閉じられる */
  overflow-y: auto;
  padding: var(--s16) var(--gutter) var(--s40);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.drawer__close {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: var(--btn-h); height: var(--btn-h);
  border: 0; background: none; cursor: pointer;
  color: var(--ink); font-size: var(--fs-h3); line-height: 1;
}
.drawer__nav ul { margin: var(--s8) 0 var(--s24); padding: 0; list-style: none; }
.drawer__nav li + li { border-top: 1px solid var(--line); }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s12); padding: var(--s16) 0;
  font-size: var(--fs-body); line-height: 1; text-decoration: none;
}
.drawer__nav a::after {
  content: ""; width: var(--s8); height: var(--s8);
  border-right: var(--icon-stroke) solid var(--muted); border-top: var(--icon-stroke) solid var(--muted);
  rotate: 45deg;
}
.drawer__sub { display: grid; gap: var(--s12); margin-top: var(--s24); }
.drawer__sub a { font-size: var(--fs-small); line-height: 1; color: var(--muted); text-decoration: none; }

@media (min-width: 900px) {
  .gnav { display: block; }
  .hd-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .logo { align-items: flex-start; }
}

/* ---------- 6. photo slot(支給写真が入るまでの色面) -------- */
.photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--ar, 4 / 3);
  border-radius: var(--photo-r);
  background:
    radial-gradient(120% 90% at 20% 10%, var(--white), transparent 60%),
    linear-gradient(150deg, var(--band) 0%, var(--primary-soft) 100%);
  overflow: hidden;
}
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-label {
  position: relative;
  z-index: 1;
  max-width: calc(100% - var(--s16));
  overflow: hidden;
  text-overflow: ellipsis;
  padding: var(--s4) var(--s12);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 80%, transparent);
  color: var(--muted);
  font-size: var(--fs-note);
  line-height: var(--lh-note);
  letter-spacing: 0;
  white-space: nowrap;
}
.photo--round { border-radius: var(--photo-r-l); }
.photo--circle { border-radius: 50%; }

/* ---------- 7. hero(§2・§5・§11) 写真を背景に、手前に文字 --- */
.hero {
  position: relative;
  display: grid;
  align-items: start;
  min-height: calc(100svh - var(--header-h));   /* 一画面に写真と文字を収める(§11) */
  overflow: clip;
  background: var(--band);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* 文字の下に地の色の薄い幕(§11)。SPは上から下へ */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 92%, transparent) 0%, color-mix(in srgb, var(--paper) 70%, transparent) 40%, transparent 60%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding-block: var(--s40) var(--s80);
}
.hero__copy { max-width: var(--measure); }
.hero__title { margin-bottom: var(--head-gap); }
.hero__title .hl {
  background: linear-gradient(transparent 70%, var(--primary-soft) 70%);   /* 水彩の下線(装飾は主色の淡色のみ) */
}
.hero__lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); }
/* 図形アイコンの列(§13)。参考サイトのFVの小さな動く図形に相当。色は主色・淡い主色・差し色2の4色だけ */
.hero__icons { display: flex; gap: var(--s16); margin: var(--s24) 0 0; padding: 0; list-style: none; }
.ico { width: var(--ico); height: var(--ico); }
.sec-ico { display: block; margin: 0 auto var(--s12); }          /* 見出しの上に置く動く図形(§13) */
.about .sec-ico { margin-left: 0; }                              /* 左寄せの見出しは左に */
.page-head .sec-ico { margin-bottom: var(--s16); }
.ico svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ico .ico__back, .ico .ico__a, .ico .ico__t2 path, .ico .ico__t2 rect, .ico .ico__l1, .ico .ico__l2 { fill: var(--primary); }
.ico .ico__front, .ico .ico__t1 path, .ico .ico__t1 rect, .ico .ico__c { fill: var(--primary-soft); }
.ico .ico__b, .ico .ico__sun, .ico .ico__core { fill: var(--accent-y); }
.ico .ico__ring, .ico--rise .ico__front { fill: var(--accent-b); }
.ico--mt .ico__back { transform-box: fill-box; transform-origin: 50% 100%; animation: ico-grow var(--t-loop) var(--ease-out) infinite alternate; }
.ico--sun .ico__c { animation: ico-bob var(--t-loop-s) ease-in-out infinite alternate; }
.ico--tree .ico__t1 { animation: ico-bob var(--t-loop-s) ease-in-out infinite alternate; }
.ico--tree .ico__t2 { animation: ico-bob var(--t-loop-s) ease-in-out infinite alternate-reverse; }
.ico--rise .ico__sun { animation: ico-rise var(--t-loop) ease-in-out infinite alternate; }
.ico--flower .ico__head { transform-box: fill-box; transform-origin: 50% 50%; animation: ico-pulse var(--t-loop) ease-in-out infinite alternate; }
.ico--flower .ico__l1 { transform-box: fill-box; transform-origin: 50% 100%; animation: ico-sway var(--t-loop-s) ease-in-out infinite alternate; }
.ico--flower .ico__l2 { transform-box: fill-box; transform-origin: 50% 100%; animation: ico-sway var(--t-loop-s) ease-in-out infinite alternate-reverse; }
@keyframes ico-grow { from { transform: scaleY(0.7); } to { transform: scaleY(1); } }
@keyframes ico-bob  { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes ico-rise { from { transform: translateY(8px); } to { transform: translateY(-2px); } }
@keyframes ico-pulse { from { transform: scale(0.92) rotate(-6deg); } to { transform: scale(1) rotate(6deg); } }
@keyframes ico-sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes deco-float { from { translate: 0 0; } to { translate: 0 -8px; } }
@keyframes deco-sway { from { rotate: -2deg; } to { rotate: 2deg; } }

/* 仮イラスト(§11)。本番はイラストレーター作画に差し替え */
.hero__deco { position: absolute; z-index: 1; pointer-events: none; }
.hero__deco--birds { animation: deco-float var(--t-loop-l) ease-in-out infinite alternate; }
.hero__deco--leaf { transform-origin: 20% 100%; animation: deco-sway var(--t-loop-l) ease-in-out infinite alternate; }
.hero__deco--birds { top: var(--s16); right: var(--s16); width: var(--s96); }
.hero__deco--leaf { left: calc(var(--s24) * -1); bottom: calc(var(--s24) * -1); width: var(--s128); }
[data-theme="p3"] .hero__deco { display: none; }
.hero-foot { padding-block: var(--s32) 0; background: var(--paper); }
.hero__note { margin-top: var(--s16); }

/* 約束バッジ: 白い円(§5)。SPは2列、PCは4つ横並び */
.badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s16);
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
  width: var(--badge);
  height: var(--badge);
  padding: var(--s8);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.4;
  letter-spacing: 0;
}
.badges .icon-circle { display: grid; place-items: center; }
.badges .icon { width: var(--icon); height: var(--icon); color: var(--primary-ink); }
.badges li:hover .icon { animation: ico-bob var(--t-hover) ease-in-out 2 alternate; }   /* 触れると1回はねる */

@media (min-width: 900px) {
  .hero { min-height: 0; height: var(--hero-h); align-items: center; }
  .hero__bg img { object-position: center center; }
  /* PCは左から右へ。文字は左の白い余白に載る */
  .hero::before {
    background: linear-gradient(to right, color-mix(in srgb, var(--paper) 88%, transparent) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 45%, transparent 70%);
  }
  .hero__inner { padding-block: var(--s64); }
  .hero__deco--birds { top: var(--s40); right: auto; left: calc(50% + var(--s64)); width: var(--s128); }
  .hero__deco--leaf { left: auto; right: calc(var(--s24) * -1); bottom: calc(var(--s32) * -1); width: var(--s160); }
  .hero-foot { padding-block: var(--s40) 0; }
  .about__deco { width: var(--s160); top: var(--s40); }
  .cta-band__deco { width: var(--s320); bottom: calc(var(--s32) * -1); }
  .badges { grid-template-columns: repeat(4, var(--badge)); justify-content: start; }
}

/* 波形の境界(§5)。山は1つ、色は次の帯 */
.wave {
  display: block;
  width: 100%;
  height: var(--wave-h);
  margin-bottom: -1px;
  color: var(--band);
}
.wave svg { display: block; width: 100%; height: 100%; }
[data-theme="p3"] .wave { display: none; }   /* 案3は装飾なし */

/* ---------- 8. cards / grids(§2) -------------------------- */
.grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid--goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--goods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--goods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s12);              /* 写真→見出し 12(§6) */
  padding: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
}
.card .photo { width: 100%; }
.card .photo > img, .card .photo { transition: scale var(--t-card) var(--ease-out); }
a.card:hover .photo { scale: 1.02; }            /* 気づく最小の拡大(§7) */
.card__body { display: flex; flex-direction: column; gap: var(--s8); }
.card__cat { font-family: var(--font-lat); font-size: var(--fs-label); line-height: 1; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--primary-ink); }
.card__title { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); }
/* 2列の商品カード(SPで幅160px)は9文字の商品名が20pxで収まらないので本文サイズ(16)にする(§12) */
.grid--goods .card__title { font-size: var(--fs-body); line-height: var(--lh-h3); letter-spacing: 0; }
@media (min-width: 600px) { .grid--goods .card__title { font-size: var(--fs-h3); letter-spacing: var(--ls-h3); } }
.card__text { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.card__price { font-family: var(--font-lat); font-size: var(--fs-small); line-height: 1; color: var(--muted); }
a.card:hover .card__title { color: var(--primary-ink); }

.card--boxed {
  padding: var(--card-pad);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r24);
  box-shadow: var(--shadow);
}

/* こだわり4ポイント */
.points { display: grid; gap: var(--grid-gap); margin: 0; padding: 0; list-style: none; }
.point {
  display: grid;
  grid-template-columns: var(--s48) 1fr;
  gap: var(--s16);
  align-items: start;
  padding: var(--card-pad);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r24);
}
.point .icon-circle { display: grid; place-items: center; width: var(--s48); height: var(--s48); border-radius: 50%; background: var(--band); }
.point .icon { width: var(--icon); height: var(--icon); color: var(--primary-ink); }
.point h3 { margin: 0 0 var(--s8); }
.point p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
@media (min-width: 600px) {
  .points--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[data-theme="p3"] .point { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding-inline: 0; }

/* 縦積みのこだわり(concept.html) */
.point-row { display: grid; gap: var(--s24); padding-block: var(--s40); border-top: 1px solid var(--line); }
.point-row:first-of-type { border-top: 0; padding-top: 0; }
.point-row__num { display: block; margin-bottom: var(--s12); font-family: var(--font-lat); font-size: var(--fs-label); line-height: 1; letter-spacing: var(--ls-label); color: var(--primary-ink); }
.point-row h3 { margin-bottom: var(--s16); }
.point-row p { color: var(--muted); }
@media (min-width: 900px) {
  .point-row { grid-template-columns: 1fr 1fr; gap: var(--s64); align-items: center; padding-block: var(--s64); }
  .point-row:nth-of-type(even) .point-row__media { order: -1; }
}

/* ---------- 9. about --------------------------------------- */
.about { position: relative; overflow: clip; }
.about__deco { position: absolute; top: var(--s16); right: calc(var(--s24) * -1); width: var(--s128); pointer-events: none; }
.about__inner { position: relative; }
.about__inner > * + * { margin-top: var(--s32); }   /* SP: 写真→見出しブロック 32(§6 本文→ボタンと同じ「間」) */
.about__title { margin-bottom: var(--head-gap); }
.about__text { color: var(--muted); }
@media (min-width: 900px) {
  .about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s64); align-items: center; }
  .about__inner > * + * { margin-top: 0; }
}

/* ---------- 10. tabs(商品一覧) ----------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s8);
  justify-content: center;
  margin: 0 0 var(--block-gap);
  padding: 0;
  list-style: none;
}
.tab {
  min-height: var(--btn-sm-h);
  padding: 0 var(--btn-sm-px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.tab:hover { border-color: var(--primary-ink); }
.tab[aria-selected="true"] { background: var(--primary-ink); border-color: var(--primary-ink); color: var(--white); }

/* ---------- 11. FAQ ---------------------------------------- */
.faq { display: grid; gap: var(--s12); }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r16);
  background: var(--white);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: var(--s12);
  padding: var(--s16) var(--s48) var(--s16) var(--s16);
  position: relative;
  font-size: var(--fs-body);
  line-height: var(--lh-small);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-lat); color: var(--primary-ink); flex: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: var(--s16);
  top: var(--s16);
  width: var(--s8); height: var(--s8);
  border-right: var(--icon-stroke) solid var(--muted);
  border-bottom: var(--icon-stroke) solid var(--muted);
  rotate: 45deg;
  transition: rotate var(--t-hover) var(--ease-out);
}
.faq details[open] summary::after { rotate: 225deg; top: var(--s24); }
.faq__a {
  display: flex;
  gap: var(--s12);
  padding: 0 var(--s16) var(--s16);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--muted);
}
.faq__a::before { content: "A"; font-family: var(--font-lat); color: var(--primary); flex: none; }

/* ---------- 12. journal ------------------------------------ */
.post-meta { display: flex; gap: var(--s12); align-items: center; margin: 0; font-family: var(--font-lat); font-size: var(--fs-note); line-height: 1; color: var(--muted); }
.tag { padding: var(--s4) var(--s12); border-radius: var(--r-pill); background: var(--band); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-note); line-height: 1; }

/* ---------- 13. CTA band ----------------------------------- */
.cta-band { position: relative; overflow: clip; padding-block: var(--section-y); background: var(--band); text-align: center; }
.cta-band__deco { position: absolute; left: calc(var(--s24) * -1); bottom: calc(var(--s24) * -1); width: var(--s160); pointer-events: none; }
.cta-band .wrap-narrow { position: relative; }
[data-theme="p3"] .about__deco, [data-theme="p3"] .cta-band__deco { display: none; }
.cta-band h2 { margin-bottom: var(--s16); }
.cta-band p { color: var(--muted); }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: var(--s12); justify-content: center; margin-top: var(--s32); }

/* ---------- 14. breadcrumb / page head --------------------- */
.crumbs { padding-block: var(--s12); font-size: var(--fs-note); line-height: var(--lh-note); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s8); margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: var(--s8); color: var(--line); }
.crumbs a { text-decoration: none; }

.page-head { padding-block: var(--s24) var(--s48); text-align: center; }
.page-head h1 { margin-bottom: var(--s16); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.page-head p { color: var(--muted); }

/* ---------- 15. product detail ----------------------------- */
.pd { display: grid; gap: var(--s32); }
.pd__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s8); margin-top: var(--s8); }
.pd__price { font-family: var(--font-lat); font-size: var(--fs-h3); line-height: 1; }
.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: var(--lh-small); }
.spec th, .spec td { padding: var(--s12) var(--s4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec th { width: 34%; font-weight: 500; color: var(--muted); white-space: nowrap; }
.steps { display: grid; gap: var(--s16); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: var(--s32) 1fr; gap: var(--s12); font-size: var(--fs-small); line-height: var(--lh-small); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: var(--s32); height: var(--s32);
  border-radius: 50%;
  background: var(--band);
  font-family: var(--font-lat);
  font-size: var(--fs-note);
  color: var(--ink);
}
@media (min-width: 900px) {
  .pd { grid-template-columns: 1fr 1fr; gap: var(--s64); align-items: start; }
  .pd__media { position: sticky; top: calc(var(--header-h) + var(--s16)); }
}

/* ---------- 16. form --------------------------------------- */
.form { display: grid; gap: var(--s24); }
.field { display: grid; gap: var(--s8); }
.field > label { font-size: var(--fs-small); font-weight: 500; line-height: 1; }
.req, .opt {
  display: inline-block;
  margin-left: var(--s8);
  padding: var(--s4) var(--s8);
  border-radius: var(--r-pill);
  font-size: var(--fs-note);
  line-height: 1;
  vertical-align: 2px;
}
.req { background: var(--primary-ink); color: var(--white); }
.opt { background: var(--band); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--btn-h);
  padding: var(--s12) var(--s16);
  border: 1px solid var(--line);
  border-radius: var(--r8);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-body);   /* 16以上でiOSの拡大を防ぐ(§3) */
  line-height: 1.5;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: var(--s160); resize: vertical; }
.field .help { font-size: var(--fs-note); line-height: var(--lh-note); color: var(--muted); }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--error); }
.err { display: none; font-size: var(--fs-note); line-height: var(--lh-note); color: var(--error); }
.field[data-invalid="true"] .err { display: block; }
.check { display: grid; grid-template-columns: var(--s24) 1fr; gap: var(--s12); align-items: start; font-size: var(--fs-small); line-height: var(--lh-small); }
.check input { width: var(--s24); height: var(--s24); margin: 0; }
.form__note { font-size: var(--fs-note); line-height: var(--lh-note); color: var(--muted); }
.form-status { padding: var(--s16); border-radius: var(--r8); background: var(--band); font-size: var(--fs-small); line-height: var(--lh-small); }

/* ---------- 17. footer(§6) ------------------------------- */
.site-footer { padding-block: var(--footer-y) var(--s32); background: var(--band); }
.footer__top { display: grid; gap: var(--s32); }
.footer__nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s12); }
.footer__nav a { font-size: var(--fs-small); line-height: 1; text-decoration: none; color: var(--ink); }
.footer__nav a:hover { color: var(--primary-ink); }
.footer__head { margin: 0 0 var(--s16); font-family: var(--font-lat); font-size: var(--fs-label); line-height: 1; letter-spacing: var(--ls-label); color: var(--primary-ink); }
.footer__bottom {
  margin-top: var(--s40);
  padding-top: var(--s16);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s8) var(--s24);
  align-items: center;
  justify-content: space-between;
}
.footer__bottom p { margin: 0; }
.copyright { font-family: var(--font-lat); font-size: var(--fs-note); line-height: 1; color: var(--muted); }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 2fr 1fr 1fr; gap: var(--s64); }
}

/* SPの追従お問い合わせ(控えめ)。バー高さ 12+48+12=72、本文の下に80空ける */
.sp-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  padding: var(--s12) var(--gutter) calc(var(--s12) + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.sp-cta .btn { width: 100%; display: flex; }
body.has-spcta { padding-bottom: var(--s80); }
@media (min-width: 900px) {
  .sp-cta { display: none; }
  body.has-spcta { padding-bottom: 0; }
}

/* ---------- 18. reveal(§7) -------------------------------- */
.js .rv { opacity: 0; translate: 0 var(--reveal-y); transition: opacity var(--t-reveal) var(--ease-out), translate var(--t-reveal) var(--ease-out); }
.js .rv.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; translate: none; transition: none; }
  .card .photo { transition: none; }
  .ico *, .hero__deco, .about__deco, .cta-band__deco, .badges li:hover .icon { animation: none; }
}

/* ---------- 19. misc --------------------------------------- */
.rich h2 { margin: var(--s48) 0 var(--s16); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.rich h3 { margin: var(--s32) 0 var(--s12); font-size: var(--fs-body); line-height: var(--lh-h3); }
.rich p, .rich li { color: var(--muted); }
.rich ul { padding-left: var(--s24); }
.rich li { margin-bottom: var(--s8); }

.err-page { display: grid; place-items: center; gap: var(--s8); padding-block: var(--s96); text-align: center; }
.err-page .code { font-family: var(--font-lat); font-size: var(--fs-big); line-height: 1; color: var(--primary); }
