/* style.css — Nadge（ナッジ）公式サイト共通スタイル
 *
 * 世界観は «絵本»。木のテーブルの上に開いた本、そのページの上で島が育つ。
 * 配色はアプリの実アセットとゲーム UI（app/lib/src/core/constants/app_colors.dart）
 * から取る:
 *  - 紙       … titleDialogPanel #FBF4E4 / gamePanel #F7E8D3
 *  - 木の枠   … gameBorder #512F23 / titleButtonFrameBottom #6D4D18
 *  - 金の飾り … titleButtonFrameTop #CFB074 / gameActiveAccent #E0A94A
 *  - 押せる緑 … titleButtonFillTop #5F9078 / FillBottom #4F7C65 / titleDialogAccent #2F7053
 *  - 草原     … islandTile #A9D977 / gameDoButton #97C853
 *  - 文字     … gameText #46140B / titleDialogText #2C3B23
 * どちらを変えたときも、もう一方と食い違わないようにすること。
 */

:root {
  /* ── 書体 ──
     和文は丸ゴシック（Zen Maru Gothic）。ロゴの丸みと水彩の柔らかさに合わせる。
     欧文の見出しラベルはアプリと同じ Fjalla One（app_text_styles.dart の enFontFamily）。 */
  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Fjalla One", "Zen Maru Gothic", sans-serif;

  /* ── 紙 ── */
  --paper: #fbf4e4;
  --paperDeep: #f3e6cf;
  --paperInk: #ead9bb;
  --card: #fffaf0;
  --cream: #fff7e8;

  /* ── 木・文字 ── */
  --wood: #512f23;
  --woodSoft: #7a5540;
  --ink: #3a2318;
  --inkBody: #5b473b;
  --inkMute: #9a7f5f;
  --inkFaint: #b9a58a;

  /* ── 金 ── */
  --gold: #cfb074;
  --goldDeep: #b08a3e;
  --amber: #e0a94a;

  /* ── 緑（押せるもの・強調）── */
  --green: #4f7c65;
  --greenDeep: #2f7053;
  --greenLight: #5f9078;
  --leaf: #97c853;
  --meadow: #a9d977;

  /* ── 空・花 ── */
  --sky: #65aad0;
  --skyPale: #ddedf4;
  --rose: #e88fa8;

  /* ── 線 ── */
  --line: #dcc7a6;
  --lineSoft: #ebdfc8;

  /* 影は茶みのある柔らかいもので統一する */
  --shadowSoft: 0 2px 10px rgba(81, 47, 35, 0.06);
  --shadowCard: 0 14px 30px -18px rgba(81, 47, 35, 0.5);
  --shadowLift: 0 24px 48px -22px rgba(81, 47, 35, 0.55);

  --radius: 22px;
  --radiusSm: 14px;
  --radiusXs: 10px;

  --headerH: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--headerH) + 20px);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--inkBody);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.03em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 紙の質感（薄い繊維ノイズ）＋ 空と草原の色をごく薄く滲ませる */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(101, 170, 208, 0.10) 0, transparent 46%),
    radial-gradient(ellipse at 90% 12%, rgba(169, 217, 119, 0.12) 0, transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(224, 169, 74, 0.08) 0, transparent 40%);
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.32  0 0 0 0 0.20  0 0 0 0 0.12  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ── タイポ ── */
h1, h2, h3, h4 {
  font-family: var(--font-jp);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

::selection { background: rgba(224, 169, 74, .35); }

/* セクション上の英字ラベル。両脇に小さな飾り */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--greenDeep);
  font-size: 12.5px;
  text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 22px; height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 8'><path d='M1 4c3-3 5-3 7 0s4 3 7 0 4-3 6 0' fill='none' stroke='%23b08a3e' stroke-width='1.4' stroke-linecap='round'/></svg>") center / contain no-repeat;
  opacity: .9;
}
.eyebrow.is-left { justify-content: flex-start; }
.eyebrow.is-left::after { display: none; }

/* ── レイアウト ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; padding: 112px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-top: 18px;
  line-height: 1.55;
}
.section-head p {
  margin-top: 16px;
  color: var(--inkBody);
  font-size: 15.5px;
  text-wrap: pretty;
}
.band {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.5) 0, transparent 40%),
    var(--paperDeep);
  border-top: 1px solid var(--lineSoft);
  border-bottom: 1px solid var(--lineSoft);
}

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  background: rgba(251, 244, 228, 0.82);
  border-bottom: 1px solid rgba(207, 176, 116, 0.45);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 18px -14px rgba(81,47,35,.5);
}
.site-header .container {
  display: flex; align-items: center; gap: 16px;
  height: var(--headerH);
}
.site-header .brand { margin-right: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand img { height: 44px; width: auto; }
.brand .brand-text {
  font-family: var(--font-en);
  font-size: 22px; letter-spacing: 0.06em;
  color: var(--ink);
}
.nav {
  display: flex; gap: 26px; align-items: center;
  font-size: 13.5px; letter-spacing: 0.08em; font-weight: 500;
}
.nav a { color: var(--inkBody); transition: color .2s; position: relative; }
.nav a:not(.cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0); transform-origin: center; transition: transform .25s;
}
.nav a:not(.cta):hover { color: var(--ink); }
.nav a:not(.cta):hover::after { transform: scaleX(1); }
/* 言語切替（ヘッダー右）。地味に、ただし見つかるように */
.nav .lang-switch {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--woodSoft);
}
.nav .lang-switch::after { display: none; }
.nav .lang-switch:hover { border-color: var(--amber); color: var(--ink); }
/* 英語ページは字間を詰め、行間もやや締める（和文向けの設定のままだと間延びする） */
html[lang="en"] body { letter-spacing: 0.005em; line-height: 1.8; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: 0.005em; line-height: 1.3; }
html[lang="en"] .hero-title { letter-spacing: 0; line-height: 1.15; }
html[lang="en"] .nav { gap: 22px; letter-spacing: .04em; }
html[lang="en"] .cycle-jp, html[lang="en"] .faq-q { letter-spacing: 0; }
/* ⚠️ `.nav a` の文字色より優先させる（ボタンは白文字） */
.nav .cta { margin-left: 6px; }
.nav a.btn, .nav a.btn:hover { color: #fff; }

/* ── ハンバーガー（≤980px。site.js が自動挿入）── */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink);
}
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle .bars span {
  display: block; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s, opacity .2s;
}
.site-header[data-menu-open] .nav-toggle .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-menu-open] .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.site-header[data-menu-open] .nav-toggle .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── ボタン ──
   アプリの «はじめる» 看板ボタンと同じ組み: 緑の面 ＋ 木の枠 ＋ 内側の金の光 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 14px;
  background: linear-gradient(180deg, #67987e 0%, var(--green) 100%);
  border: 2px solid #6d4d18;
  /* 厚みは薄く（2px）、落ち影はごく淡く。文字は白に 1px の影だけ */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 0 0 1px rgba(207, 176, 116, .5),
    0 3px 0 -1px #3f5c4b,
    0 8px 14px -10px rgba(47, 112, 83, .45);
  color: #fff;
  font-weight: 700; font-size: 15px; letter-spacing: 0.08em;
  text-shadow: 0 1px 1px rgba(22, 36, 15, .45);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(207,176,116,.5), 0 1px 0 -1px #3f5c4b;
}
.btn.is-small {
  padding: 9px 18px; font-size: 13.5px; border-radius: 11px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 0 0 1px rgba(207, 176, 116, .5),
    0 2px 0 -1px #3f5c4b,
    0 5px 8px -7px rgba(47, 112, 83, .4);
}
.btn.is-ghost {
  background: rgba(255, 250, 240, .7);
  color: var(--greenDeep);
  text-shadow: none;
  border-color: var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 -2px var(--paperInk);
}
.btn.is-ghost:hover { background: #fff; }

/* ── ストアバッジ ── */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px;
  min-width: 190px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px -14px rgba(58, 35, 24, .9);
  line-height: 1.2;
  transition: transform .15s, filter .15s;
}
.store-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.store-btn svg { flex: none; width: 26px; height: 26px; }
.store-btn .store-label {
  font-size: 10px; letter-spacing: 0.14em; opacity: .75; text-transform: uppercase;
  font-family: var(--font-en);
}
.store-btn .store-name { font-size: 16.5px; font-weight: 700; letter-spacing: 0.02em; }
.store-btn.is-soon {
  background: rgba(58, 35, 24, .82);
  cursor: default;
}
.store-note {
  margin-top: 12px;
  font-size: 12.5px; color: var(--inkMute); letter-spacing: 0.04em;
}

/* ── チップ ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--woodSoft);
  white-space: nowrap;
}
.chip.is-green { background: #e9f3dc; border-color: #c6dfa8; color: #3f6b2c; }
.chip.is-sky   { background: #e6f2f8; border-color: #bfdcea; color: #2f6f8f; }
.chip.is-rose  { background: #fbe8ee; border-color: #f1c6d3; color: #a7415e; }
.chip.is-gold  { background: #fbefd5; border-color: #ecd39c; color: #8a6410; }

/* ── カード ── */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 28px;
  box-shadow: var(--shadowSoft), var(--shadowCard);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadowSoft), var(--shadowLift); }
.card h3 { font-size: 19px; margin-bottom: 12px; line-height: 1.5; }
.card p { font-size: 14.5px; color: var(--inkBody); text-wrap: pretty; }
.card .card-num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-en);
  font-size: 13px; letter-spacing: 0.22em;
  color: var(--goldDeep);
}
/* 木の枠 ＋ 内側の金線（アプリのダイアログの框） */
.card-wood {
  background: var(--cream);
  border: 2px solid var(--woodSoft);
  box-shadow:
    inset 0 0 0 4px var(--cream),
    inset 0 0 0 5px var(--gold),
    var(--shadowCard);
  padding: 36px 34px;
}
.card-wood:hover { transform: none; box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px var(--gold), var(--shadowLift); }

/* ── Hero ── */
.hero {
  padding: 0;
  overflow: hidden;
  background: var(--sky);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(251,244,228,.94) 0%, rgba(251,244,228,.86) 36%, rgba(251,244,228,.28) 62%, rgba(251,244,228,0) 80%),
    linear-gradient(180deg, rgba(251,244,228,0) 70%, var(--paper) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  /* 画面の高さいっぱい。ただし縦長の画面で間延びしないよう上限を置く */
  min-height: min(calc(100vh - var(--headerH)), 820px);
  padding: 72px 0 40px;
}
.hero-title {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.32;
  letter-spacing: 0.04em;
  margin-top: 20px;
  font-weight: 900;
  color: var(--ink);
}
.hero-title .accent { color: var(--greenDeep); }
.hero-lead {
  margin-top: 26px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--inkBody);
  max-width: 500px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 34px;
}
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.hero-visual {
  position: relative;
  display: flex; justify-content: center;
}
.hero-visual .phone { position: relative; z-index: 2; }
.hero-spirit {
  position: absolute; z-index: 3;
  width: 120px;
  right: 0; bottom: 60px;
  filter: drop-shadow(0 12px 16px rgba(81,47,35,.25));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* ── iPhone フレーム ── */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 640;
  border-radius: 46px;
  background: #1d1a18;
  padding: 10px;
  box-shadow:
    inset 0 0 0 2px #3a3532,
    inset 0 0 0 4px #0d0b0a,
    0 30px 60px -22px rgba(58, 35, 24, .7),
    0 8px 20px -8px rgba(58, 35, 24, .4);
}
.phone::before {
  content: "";
  position: absolute; z-index: 3;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 999px;
  background: #0d0b0a;
}
.phone .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #cfe3ee;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.is-small { width: 230px; border-radius: 36px; padding: 8px; }
.phone.is-small::before { top: 16px; width: 70px; height: 20px; }
.phone.is-small .screen { border-radius: 28px; }
.phone-btn {
  position: absolute; width: 3px; border-radius: 2px; background: #2c2825;
}
.phone-btn.power { right: -3px; top: 150px; height: 74px; }
.phone-btn.vol1 { left: -3px; top: 120px; height: 46px; }
.phone-btn.vol2 { left: -3px; top: 176px; height: 46px; }
.phone-btn.mute { left: -3px; top: 82px; height: 26px; }

/* ── はじまりの話（絵本ストリップ）── */
.story-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.story-page {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadowSoft), var(--shadowCard);
  display: flex; flex-direction: column;
}
.story-page .pic {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--lineSoft);
  background: var(--skyPale);
}
.story-page .pic img { width: 100%; height: 100%; object-fit: cover; }
.story-page .text {
  padding: 20px 22px 24px;
  font-size: 14px; line-height: 2;
  color: var(--inkBody);
  text-wrap: pretty;
  flex: 1;
}
.story-page .text strong { color: var(--ink); font-weight: 700; }
.story-page .pg {
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--goldDeep);
  padding: 0 22px 16px;
}

/* ── ミッション ── */
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cycle-card { padding: 26px 24px 22px; }
.cycle-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.cycle-en {
  font-family: var(--font-en);
  font-size: 26px; letter-spacing: 0.14em;
  color: var(--ink);
}
.cycle-jp { font-size: 12.5px; color: var(--inkMute); letter-spacing: .08em; margin-left: 8px; }
.mission-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 8px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.mission-row + .mission-row { margin-top: 4px; }
.mission-row .thumb {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  object-fit: cover;
}
.mission-row .mission-text {
  flex: 1;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.mission-row .check {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.mission-row.is-done {
  background: #f1f6e6;
  border-color: #d6e6bf;
}
.mission-row.is-done .mission-text { color: var(--inkMute); text-decoration: line-through; text-decoration-color: rgba(154,127,95,.6); }
.mission-row.is-done .check { background: var(--leaf); border-color: #7fb043; }
.mission-row .meter {
  display: block;
  margin-top: 4px;
  height: 6px; width: 100%;
  border-radius: 6px;
  background: var(--paperInk);
  overflow: hidden;
}
.mission-row .meter span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--leaf), #7fb043);
  border-radius: 6px;
}
.mission-row .sub { font-size: 11.5px; color: var(--inkMute); font-weight: 400; }

/* ── 特徴（4 つ）── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
/* 特徴カードは文字だけ（挿絵やアイコンは置かない） */
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { font-size: 14px; }
.feature .note { margin-top: 10px; font-size: 12.5px; color: var(--inkMute); }

/* ── 水晶の成長 ── */
.crystal-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 44px;
}
.crystal-step { text-align: center; }
.crystal-step .stage {
  height: 150px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px;
  background:
    radial-gradient(ellipse at 50% 90%, rgba(169,217,119,.45) 0, transparent 60%);
}
.crystal-step .stage img { max-height: 100%; width: auto; filter: drop-shadow(0 10px 12px rgba(81,47,35,.18)); }
.crystal-step .lv {
  font-family: var(--font-en);
  font-size: 15px; letter-spacing: 0.16em;
  color: var(--greenDeep);
  margin-top: 8px;
}
.crystal-step .note { font-size: 12.5px; color: var(--inkMute); line-height: 1.7; margin-top: 2px; }
.crystal-arrow { color: var(--gold); font-size: 22px; text-align: center; }

.crystal-types {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.crystal-type {
  text-align: center;
  padding: 16px 8px 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadowSoft);
}
.crystal-type img { height: 74px; width: auto; margin: 0 auto; }
.crystal-type .name { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 10px; letter-spacing: .04em; }

/* ── たてもの ── */
.building-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.building {
  position: relative;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 10px 12px;
  text-align: center;
  box-shadow: var(--shadowSoft);
  transition: transform .25s, box-shadow .25s;
}
.building:hover { transform: translateY(-4px); box-shadow: var(--shadowCard); }
.building img { width: 100%; height: auto; }
.building .name { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.building .cat {
  position: absolute; top: 10px; left: 10px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
}

/* 2 カラム（文＋絵） */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.is-reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 16px; line-height: 1.6; }
.split p { margin-top: 16px; font-size: 15px; text-wrap: pretty; }
.split .pic {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadowCard);
  background: var(--skyPale);
}
.split .pic img { width: 100%; height: auto; }
.phones {
  display: flex; justify-content: center; align-items: flex-end; gap: 18px;
}
.phones .phone:nth-child(2) { transform: translateY(-24px); }

/* ── 使い方 ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  text-align: center;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--greenLight), var(--green));
  border: 2px solid #6d4d18;
  box-shadow: inset 0 0 0 1px rgba(207,176,116,.6);
  color: #fff;
  font-family: var(--font-en);
  font-size: 18px;
  margin-bottom: 18px;
}
.step .phone { margin: 0 auto 18px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--inkBody); text-wrap: pretty; }

/* ── FAQ ── */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 22px 8px;
  cursor: pointer;
  display: flex; align-items: flex-start; gap: 16px;
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px; font-weight: 700; letter-spacing: 0.03em;
  line-height: 1.7;
}
.faq-q .q-mark {
  flex: none;
  font-family: var(--font-en);
  color: var(--goldDeep);
  letter-spacing: .1em;
  min-width: 28px;
  padding-top: 2px;
}
.faq-q .q-text { flex: 1; }
.faq-q .q-toggle {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--greenDeep);
  transition: transform .25s, background .2s;
}
.faq-q .q-toggle::before { content: "＋"; font-size: 15px; line-height: 1; }
.faq-item.open .q-toggle { transform: rotate(45deg); background: #e9f3dc; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 900px; }
.faq-a-inner {
  padding: 0 8px 24px 52px;
  color: var(--inkBody);
  font-size: 14.5px;
  text-wrap: pretty;
}
.faq-a-inner p + p { margin-top: 10px; }
.faq-a-inner ul { padding-left: 1.2em; list-style: disc; }
.faq-a-inner ol { padding-left: 1.4em; list-style: decimal; }
.faq-a-inner li { margin: 4px 0; }
.faq-a-inner a { color: var(--greenDeep); text-decoration: underline; text-underline-offset: 3px; }
.faq-more { text-align: center; margin-top: 36px; }

/* ── ダウンロード（結び）── */
.download {
  overflow: hidden;
  background: var(--sky);
}
.download .hero-bg::after {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(251,244,228,.9) 0, rgba(251,244,228,.72) 34%, rgba(251,244,228,0) 70%),
    linear-gradient(180deg, var(--paper) 0%, rgba(251,244,228,.5) 18%, rgba(251,244,228,.5) 82%, rgba(251,244,228,.95) 100%);
}
.download .inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 720px; margin: 0 auto;
  padding: 40px 0 20px;
}
.download h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.5;
  font-weight: 900;
}
.download p { margin-top: 18px; font-size: 15.5px; color: var(--inkBody); }
.download .hero-actions { justify-content: center; }
.download .logo { width: 220px; margin: 0 auto 10px; }

/* ── フッター ── */
.site-footer {
  background: var(--wood);
  color: #efe2cc;
  padding: 64px 0 28px;
  border-top: 6px solid var(--gold);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand img { height: 48px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 13px; letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul li { margin: 8px 0; font-size: 13.5px; }
.site-footer ul a { color: #efe2cc; opacity: .85; transition: opacity .2s; }
.site-footer ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-desc { color: #d9c7a8; font-size: 13px; line-height: 1.9; max-width: 340px; margin-top: 14px; text-wrap: pretty; }
.site-footer .footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(207, 176, 116, .3);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: #d9c7a8;
}
.site-footer .footer-bottom .tag {
  font-family: var(--font-en); letter-spacing: 0.24em; color: var(--gold);
}

/* ── 法務ページ（プライバシー / 規約 / 削除 / FAQ）── */
.page-head {
  padding: 56px 0 28px;
}
.page-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 14px;
  line-height: 1.5;
}
.page-head .meta { margin-top: 12px; color: var(--inkMute); font-size: 13px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--greenDeep); font-weight: 700;
  margin-bottom: 8px;
}
.legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 52px;
  box-shadow: var(--shadowSoft), var(--shadowCard);
  margin-bottom: 96px;
}
.legal > p, .legal li { font-size: 14.5px; color: var(--inkBody); }
.legal .lead { margin-bottom: 8px; }
.legal h2 {
  font-size: 18.5px;
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--paperInk);
  position: relative;
}
.legal h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 64px; height: 2px; background: var(--amber);
}
.legal h3 { font-size: 15.5px; margin: 24px 0 8px; color: var(--woodSoft); }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { margin: 10px 0 10px 1.4em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--goldDeep); }
.legal a { color: var(--greenDeep); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.legal table {
  width: 100%; border-collapse: collapse;
  margin: 12px 0; font-size: 14px;
}
.legal th, .legal td {
  padding: 10px 14px; text-align: left; vertical-align: top;
  border: 1px solid var(--lineSoft);
}
.legal th { background: var(--paperDeep); color: var(--ink); width: 34%; font-weight: 700; }
.legal .notice {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fbefd5;
  border: 1px solid #ecd39c;
  color: #6e4f0e;
  font-size: 14px;
}
.legal .notice.is-green { background: #e9f3dc; border-color: #c6dfa8; color: #345a22; }
.legal .end { text-align: right; margin-top: 40px; color: var(--inkMute); font-size: 13px; }
.legal .toc {
  background: var(--paperDeep);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 24px 0 8px;
  columns: 2; column-gap: 32px;
}
.legal .toc li { margin: 4px 0; font-size: 13.5px; break-inside: avoid; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

/* ── FAQ ページ ── */
.faq-tools { margin-bottom: 8px; }
.faq-search {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7f5f' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") 16px center / 18px no-repeat;
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--shadowSoft);
}
.faq-search::placeholder { color: var(--inkFaint); }
.faq-search:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224,169,74,.2); }
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.faq-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--inkBody);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s;
}
.faq-chip:hover { border-color: var(--amber); color: var(--ink); }
.faq-chip.active { background: var(--greenDeep); border-color: var(--greenDeep); color: #fff; }
.faq-section { padding: 0 0 48px; }
.faq-section-title {
  font-size: 17px; color: var(--greenDeep);
  letter-spacing: .06em;
  margin: 28px 0 6px;
  display: flex; align-items: center; gap: 10px;
}
.faq-section-title::before {
  content: ""; width: 8px; height: 22px; border-radius: 4px; background: var(--amber);
}
.faq-empty { padding: 40px 0; text-align: center; color: var(--inkMute); }
.faq-page .legal { padding-top: 32px; }

/* ── レスポンシブ ── */
@media (max-width: 1080px) {
  .crystal-types { grid-template-columns: repeat(4, 1fr); }
  .building-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .site-header .container { gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--headerH);
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(251, 244, 228, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(81,47,35,.5);
    padding: 8px 20px 18px;
  }
  .site-header[data-menu-open] .nav { display: flex; }
  .nav a { padding: 14px 8px; font-size: 15px; border-bottom: 1px solid var(--lineSoft); }
  .nav a:not(.cta)::after { display: none; }
  .nav .cta { margin: 14px 0 0; text-align: center; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding: 56px 0 24px;
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(251,244,228,.92) 0%, rgba(251,244,228,.86) 55%, rgba(251,244,228,.35) 78%, var(--paper) 100%);
  }
  .hero-lead { max-width: none; }
  .hero-visual { padding-bottom: 20px; }
  .hero-spirit { width: 96px; right: 6%; bottom: 40px; }

  .story-strip { grid-template-columns: repeat(2, 1fr); }
  .cycle-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .split, .split.is-reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.is-reverse > :first-child { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .crystal-steps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .crystal-arrow { display: none; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 84px 0; }
  .legal { padding: 36px 30px; }
}

@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
  .brand img { height: 38px; }
  .hero-title { font-size: clamp(32px, 9.6vw, 44px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
  .story-strip { grid-template-columns: 1fr; }
  .crystal-steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .crystal-types { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .crystal-type img { height: 56px; }
  .building-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .building { padding: 10px 6px 8px; }
  .building .name { font-size: 11px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .phones { gap: 10px; }
  .phones .phone { width: 46%; }
  .phones .phone:nth-child(2) { transform: translateY(-12px); }
  .card { padding: 24px 22px 22px; }
  .card-wood { padding: 28px 22px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .legal { padding: 28px 20px; border-radius: 18px; }
  .legal .toc { columns: 1; }
  .legal th { width: 38%; }
  .faq-q { font-size: 15px; padding: 18px 4px; }
  .faq-a-inner { padding-left: 40px; }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-spirit { animation: none; }
  .card, .building, .btn { transition: none; }
}
