/*
 * withemere.com の LP 共通スタイル（ゆる家計簿 LP のデザインが基準）。
 * packages/landing-ui の React 部品も同じクラス名でこのファイルを読む（Claude Design 同期用）。
 * クラス名を変えるときは packages/landing-ui/src/ も合わせて直すこと。
 */
/*
 * 画像はすべてコンセプト画像からの切り出しで、地色は切り出し元の実測値（#FFFCF4）に
 * 合わせてある。--bg を変えると画像の縁（フェザー部分）が浮くので注意。
 * 切り出しの地色に依存するため、ダークモードは持たない。
 */
:root {
  color-scheme: light;
  --bg: #FFFCF4;
  --surface: #FFFFFF;
  --text: #3A382E;
  --text-muted: #6E6B5C;
  --green-dark: #3F5D43;
  --green-mid: #6E8F6A;
  --green-pale: #E7EEE2;
  --green-pale-border: #CBDAC2;
  --trust-bg: #EFEAE0;
  --trust-border: #D8CDB4;
  --trust-accent: #7A6A45;
  --line: #EAE3D2;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  /* 日本語を文節で折り返す（「しっか／り。」のような泣き別れを防ぐ） */
  word-break: auto-phrase;
}
img, svg { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1000px; margin: 0 auto; padding-inline: 20px; }

/* ── ヘッダー（withemere.com 共通の Products メニュー） ── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
/* 左上のロゴは withemere.com の全ページ共通。押すとブランドトップへ（ゆる家計簿のロゴはヒーローに出す） */
.site-home { display: block; line-height: 0; }
.site-home img { height: 40px; width: auto; }
.nav-products { position: relative; }
.nav-products summary {
  list-style: none; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--green-dark);
  padding: 6px 4px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-products summary::-webkit-details-marker { display: none; }
.nav-products summary::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-products[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-products summary:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 2px; }
.products-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10;
  width: 17rem; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(90, 80, 50, .14);
}
.products-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; line-height: 1.5; }
.products-menu a:hover, .products-menu a[aria-current="page"] { background: var(--green-pale); }
.products-menu .pm-name { display: block; font-weight: 700; }
.products-menu .pm-desc { display: block; font-size: 12px; color: var(--text-muted); }

/* ── セクション共通 ───────────────────────── */
section { position: relative; padding-block: 88px; }
section + section { border-top: 1px solid var(--line); }

h1, h2, h3 { margin: 0; font-weight: 900; color: var(--green-dark); }
h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.5; margin-bottom: 14px; }
h3 { font-size: 20px; line-height: 1.5; margin-bottom: 8px; color: var(--text); font-weight: 700; }
.lead { color: var(--text-muted); font-size: 16px; max-width: 34em; }

.split { display: flex; align-items: center; gap: 48px; }
.split > * { flex: 1 1 0; min-width: 0; }
.split.reverse { flex-direction: row-reverse; }

/* ── ダウンロード（はじめる）ブロック ────────── */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 210px; }
.start {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-dark); color: #fff; text-decoration: none;
  font-size: 17px; font-weight: 700;
  padding: 14px 30px; border-radius: 999px;
  box-shadow: 0 6px 0 #2C4330;
  transition: transform .12s ease, box-shadow .12s ease;
}
.start:hover { background: #36513A; }
.start:active { transform: translateY(4px); box-shadow: 0 2px 0 #2C4330; }
.start-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.free-note { font-size: 14px; font-weight: 700; color: var(--trust-accent); margin-top: 6px; }

/* ── ① ヒーロー ─────────────────────────── */
.hero { padding-top: 96px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.4; letter-spacing: .02em; color: var(--text); }
.hero .sub { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-top: 18px; }
.hero .body { color: var(--text-muted); margin-top: 14px; }
.hero .brand { margin-top: 30px; }
.hero .cta { margin-top: 22px; }
.hero .split { align-items: flex-end; }
.hero .split > .visual { flex: 1.25 1 0; }

/* ── ② 共感 ─────────────────────────────── */
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.worry {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 22px 20px; display: flex; flex-direction: column;
}
.worry-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 700; margin-top: 2px;
}
.worry:nth-child(1) .num { background: #5E8466; }
.worry:nth-child(2) .num { background: #A0674A; }
.worry:nth-child(3) .num { background: #5A7A96; }
.worry-q { font-weight: 900; font-size: 16px; line-height: 1.6; }
.worry-desc { font-size: 14px; color: var(--text-muted); }
.worry img { height: 120px; width: auto; margin: 12px auto 4px; }
.worry-answer {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--green-pale-border);
  font-size: 14px; font-weight: 700; color: var(--green-dark);
}

.trust {
  margin-top: 18px; display: flex; align-items: center; gap: 20px;
  background: var(--trust-bg); border: 1px solid var(--trust-border); border-radius: 22px;
  padding: 22px 28px;
}
.trust-icon {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--trust-border);
  display: grid; place-items: center; color: var(--trust-accent);
}
.trust-q { font-weight: 900; font-size: 16px; }
.trust-desc { font-size: 14px; color: var(--text-muted); }
.trust-answer { font-size: 17px; font-weight: 900; color: var(--trust-accent); margin-top: 4px; }

.closing { display: flex; align-items: center; gap: 28px; margin-top: 56px; }
.closing img { flex: none; width: 140px; }
.closing-body { font-size: 16px; }
.closing-body strong { color: var(--green-dark); }
.banner {
  margin-top: 20px; background: var(--green-mid); color: #fff; border-radius: 18px;
  padding: 18px 26px; font-size: 18px; font-weight: 700; line-height: 1.7;
}

/* ── ③ 機能 ─────────────────────────────── */
.point { margin-top: 72px; }
.point-label {
  display: inline-block; background: var(--green-mid); color: #fff;
  font-size: 13px; font-weight: 700; padding: 2px 14px; border-radius: 999px; margin-bottom: 10px;
}
.point-desc { color: var(--text-muted); max-width: 30em; }
.point-desc + .point-desc { margin-top: 12px; }
/* まだ出していない機能の予告。今ある機能と読み違えないよう、札を付けて一段控えめにする */
.point-desc.planned { font-size: 14px; }
.planned-tag {
  display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--trust-border); background: var(--trust-bg);
  color: var(--trust-accent); font-size: 12px; font-weight: 700; vertical-align: 1px;
}

.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 26px 0 0; }
.steps li { flex: 1; text-align: center; position: relative; }
.steps li + li::before {
  content: ""; position: absolute; top: 20px; left: -12px; width: 16px; height: 2px;
  background: var(--green-pale-border);
}
.step-badge {
  width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--green-dark); color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 900;
}
.step-label { font-size: 14px; font-weight: 700; }
.step-sub { font-size: 12px; color: var(--text-muted); }

.screen { display: flex; justify-content: center; }
/* 切り出し元が小さいので、原寸の1.4倍程度までに抑える */
.screen img { width: min(100%, 230px); }
.screen.graph img { width: min(100%, 330px); }

.point-solo { text-align: center; }
.point-solo .point-desc { margin-inline: auto; }

.graph-figure { position: relative; }
.graph-roto { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.graph-roto img { width: 120px; }
.bubble {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 10px 16px; font-size: 14px; font-weight: 700; max-width: 15em;
}
.bubble::after {
  content: ""; position: absolute; right: -8px; top: 50%; width: 14px; height: 14px;
  background: var(--surface); border-right: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}

.saving-card {
  width: min(100%, 320px); margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: 22px; box-shadow: 0 16px 34px rgba(90, 80, 50, .10);
}
.saving-total {
  background: #FBEBDC; border-radius: 16px; padding: 12px 16px; text-align: center;
}
.saving-total span { display: block; font-size: 12px; color: var(--text-muted); }
.saving-total b { font-size: 24px; font-weight: 900; color: #8A5A2B; }
.plants { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 18px 0 0; }
.plants li { text-align: center; font-size: 12px; color: var(--text-muted); }
.plants svg { width: 60px; height: 60px; margin-bottom: 2px; }

/* 「これから」枠。今ある機能（Point）と読み違えないよう、番号を振らず点線の枠で一段控えめにする */
.upcoming {
  margin: 72px auto 0; max-width: 640px; padding: 24px 28px; text-align: center;
  border: 1px dashed var(--green-pale-border); border-radius: 22px;
}
.upcoming-label {
  display: inline-block; margin-bottom: 8px; padding: 2px 14px; border-radius: 999px;
  border: 1px solid var(--green-pale-border); color: var(--green-dark);
  font-size: 13px; font-weight: 700;
}
.upcoming .point-desc { margin: 8px auto 0; font-size: 14px; }

.download {
  margin-top: 88px; padding: 40px 20px; text-align: center;
  background: var(--green-pale); border-radius: 28px;
}
.download .brand { justify-content: center; }
.download .cta { margin-top: 20px; }

/* ── ④ キャラクター ──────────────────────── */
.character { text-align: center; }
.character-figure { position: relative; width: min(100%, 360px); margin: 28px auto 0; }
.character-figure .roto { width: 100%; }
.character-name {
  display: inline-block; margin-top: 18px; padding: 4px 26px;
  border: 2px solid var(--green-pale-border); border-radius: 999px;
  font-size: 22px; font-weight: 900; color: var(--green-dark);
}
.character p { max-width: 30em; margin: 16px auto 0; color: var(--text-muted); }
.character .quote { color: var(--text); font-weight: 700; font-size: 17px; }
.map-bag { width: 150px; margin: 28px auto 0; }

/* ── ⑤ CTA ──────────────────────────────── */
.final p + p { margin-top: 14px; }
.final .lead { max-width: none; }
.final .push { font-size: 20px; font-weight: 900; color: var(--green-dark); }
.final .brand { margin-top: 28px; }
.final .cta { margin-top: 18px; }

footer {
  border-top: 1px solid var(--line); padding-block: 36px 44px; text-align: center;
  font-size: 13px; color: var(--text-muted);
}
footer img { width: 160px; margin: 0 auto 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 8px; }

/* ════════════════════════════════════════
 * ここから下はブランドトップ（/）と買い物アシスタント（/kaimono/）で使う部品。
 * ゆる家計簿 LP の見た目（白地の角丸カード・緑のピル・丸ゴシック）に合わせてある。
 * ════════════════════════════════════════ */

/* ── 準備中の主ボタン（押せない .start） ──── */
.start.is-disabled { opacity: .55; cursor: default; box-shadow: 0 6px 0 #2C4330; }
.start.is-disabled:hover { background: var(--green-dark); }
.start.is-disabled:active { transform: none; box-shadow: 0 6px 0 #2C4330; }

/* ── 見出し上の小さな英字ラベル ────────── */
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--green-mid);
}

/* ── ピルの並び（「買う」「記録する」など） ── */
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.pills li {
  background: var(--green-pale); color: var(--green-dark);
  font-size: 14px; font-weight: 700; padding: 2px 14px; border-radius: 999px;
}

/* ── カードのグリッド ───────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px;
  color: inherit; text-decoration: none;
}
a.card { transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--green-pale-border); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-title { font-weight: 900; font-size: 17px; line-height: 1.5; color: var(--text); }
.card-desc { font-size: 14px; color: var(--text-muted); }
/* 番号の丸はゆる家計簿の悩みカードと同じ3色を順に使う（グリッドの外で単独で置いたときは緑） */
.card .num { background: #5E8466; }
.card-grid > .card:nth-child(3n+1) .num { background: #5E8466; }
.card-grid > .card:nth-child(3n+2) .num { background: #A0674A; }
.card-grid > .card:nth-child(3n) .num { background: #5A7A96; }
.card-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--green-pale);
  display: grid; place-items: center; font-size: 22px; line-height: 1;
}
.card .point-label { align-self: flex-start; margin-bottom: 0; }
.card-logo { min-height: 40px; display: flex; align-items: center; }
.card-logo img { height: 34px; width: auto; }
.card-logo .card-title { font-size: 20px; color: var(--green-dark); }
.card-link { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; color: var(--green-dark); }
.card-link::after { content: " →"; }
.card .planned-tag { align-self: flex-start; }

/* ── チェック付きの箇条書き ─────────────── */
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-dark); color: #fff; font-size: 13px; font-weight: 700;
}
.check-list strong { display: block; font-weight: 700; color: var(--green-dark); }
.check-list span { font-size: 14px; color: var(--text-muted); }

/* ── 数字のタイル ───────────────────────── */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--green-pale); border-radius: 22px; padding: 24px 16px; text-align: center; line-height: 1.5; }
.stat.warm { background: #FBEBDC; }
.stat b { display: block; font-size: 40px; font-weight: 900; line-height: 1.1; color: var(--green-dark); margin-bottom: 6px; }
.stat.warm b { color: #8A5A2B; }
.stat span { font-size: 13px; color: var(--text-muted); }

/* emere ロゴ（215x80）はゆる家計簿ロゴより縦長なので、フッターでは幅を詰めて高さを揃える */
footer img.logo-emere { width: 100px; }

/* ── 締めの呼びかけ（.download をロゴなしで使う） ── */
.download:first-child { margin-top: 0; }
.download h2 { margin-bottom: 8px; }
.download .start-note { margin-top: 12px; }

/* ── レスポンシブ ────────────────────────── */
@media (max-width: 960px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .card-grid, .card-grid.four { grid-template-columns: 1fr; }
  section { padding-block: 72px; }
  .split, .split.reverse { flex-direction: column; gap: 32px; align-items: stretch; }
  .worries { grid-template-columns: 1fr; }
  .trust { flex-direction: column; align-items: flex-start; }
  .closing { flex-direction: column; text-align: center; }
  .closing img { width: 120px; }
  .banner { font-size: 16px; text-align: left; }
  .point { margin-top: 56px; }
  .steps { flex-direction: column; gap: 14px; }
  .steps li { display: flex; align-items: center; gap: 12px; text-align: left; }
  .steps li + li::before { display: none; }
  .step-badge { margin: 0; flex: none; }
  .brand img { width: 180px; }
  .final { text-align: left; }
}
