/* 販売サイト共通スタイル
   レイアウト：朝のカフェの色（ラテ地＋ローズ）と丸い外枠＋中身の表や数字はExcelらしくきっちり。かわいさは枠と見出し、信頼感は数字と表で出す */
:root {
  --bg: #fbf5f0;
  --surface: #fffdfb;
  --ink: #2f2a33;
  --muted: #6c6470;
  --line: #eedfd6;
  --accent: #c25a74;
  --accent-ink: #ffffff;
  --accent-soft: #f9e3e6;
  --latte: #e9d5c3;
  --mint: #2f8a72;
  --mint-soft: #dff3ec;
  --cell-in: #fff1a8;
  --cell-in-ink: #1a4fb5;
  --cell-calc: #eef0f4;
  --minus: #b3261e;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-data: "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --radius: 16px;
  --radius-sm: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1b1a; --surface: #2a2524; --ink: #f3ece8; --muted: #b0a6a2; --line: #3d3533;
    --accent: #f293aa; --accent-ink: #2a1019; --accent-soft: #42292f; --latte: #4a3b33; --mint: #7fd6bb; --mint-soft: #1f3530;
    --cell-in: #4a4220; --cell-in-ink: #9cc0ff; --cell-calc: #2d2a36; --minus: #ff8a80; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1b1a; --surface: #2a2524; --ink: #f3ece8; --muted: #b0a6a2; --line: #3d3533;
    --accent: #f293aa; --accent-ink: #2a1019; --accent-soft: #42292f; --latte: #4a3b33; --mint: #7fd6bb; --mint-soft: #1f3530;
  --cell-in: #4a4220; --cell-in-ink: #9cc0ff; --cell-calc: #2d2a36; --minus: #ff8a80; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.4; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 700; letter-spacing: 0.02em; }
h2 { font-size: var(--step-2); font-weight: 700; }
h2::after { content: ""; display: block; width: 2.2em; height: 4px; margin-top: 8px; border-radius: 999px; background: var(--accent-soft); }
.buybox h2::after, .crumbs + h1 + * h2::after { display: none; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.measure { max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* ヘッダー・フッター */
.site-head { border-bottom: 2px dotted var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: var(--latte); color: var(--ink); border-radius: 50%;
}
.brand-mark svg { width: 22px; height: 22px; }
.hero { display: grid; gap: 16px; padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), var(--latte)); }
.hero > * { max-width: 40em; }
.hero p.muted { color: var(--ink); opacity: .85; }
.brand > span:last-child { font-family: var(--font-display); }
.brand small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--muted); line-height: 1.2; }
.site-nav { display: flex; gap: 20px; font-size: var(--step--1); }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; }
.site-nav a:hover { background: var(--accent-soft); }
.site-nav a:hover { color: var(--ink); }
.site-foot { border-top: 2px dotted var(--line); margin-top: 96px; background: var(--surface); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 28px; font-size: var(--step--1); color: var(--muted); }
.site-foot a { color: var(--muted); }

main { display: grid; gap: 72px; padding-block: 48px 0; }
section { display: grid; gap: 20px; }
.eyebrow { justify-self: start; font-size: var(--step--1); letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; font-weight: 700; }

/* 状態ピル */
.pill {
  display: inline-block; font-size: 0.75rem; line-height: 1; padding: 5px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.pill.ready { border-color: transparent; background: var(--mint-soft); color: var(--mint); font-weight: 700; }

/* 商品一覧 */
.feature {
  display: grid; gap: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 24px -12px color-mix(in srgb, var(--accent) 35%, transparent);
}
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1.1fr; padding: 36px; align-items: center; } }
.feature > div { min-width: 0; display: grid; gap: 16px; align-content: start; }
.price { font-family: var(--font-data); font-size: var(--step-1); font-weight: 700; }
.price small { font-size: var(--step--1); font-weight: 400; color: var(--muted); }
.lineup { list-style: none; margin: 0; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lineup li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding-block: 16px; border-bottom: 1px dashed var(--line);
}
.lineup li:last-child { border-bottom: 0; }
.lineup .desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.9375rem; }
.lineup strong { font-weight: 700; }

.channels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Excel風の見本 */
.sheet-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.sheet { border-collapse: collapse; font-family: var(--font-data); font-size: 0.8125rem; min-width: 34rem; width: 100%; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 6px 8px; text-align: right; white-space: nowrap; }
.sheet th { background: var(--bg); color: var(--muted); font-weight: 400; text-align: center; }
.sheet td.l { text-align: left; }
.sheet td.in { background: var(--cell-in); color: var(--cell-in-ink); font-weight: 700; }
.sheet td.calc { background: var(--cell-calc); }
.sheet td.neg { color: var(--minus); }
.sheet tr.empty td { color: var(--muted); }
.sheet caption { caption-side: bottom; text-align: left; padding: 8px 10px; font-size: 0.75rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--step--1); color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.legend .k-in::before { background: var(--cell-in); }
.legend .k-calc::before { background: var(--cell-calc); }

/* 報告文デモ */
.report { display: grid; gap: 12px; }
.report-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button {
  font: inherit; font-size: var(--step--1); padding: 6px 14px; border: 0; background: var(--surface);
  color: var(--muted); cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.report pre {
  margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--cell-in); border-radius: var(--radius-sm);
  font-family: var(--font-data); font-size: 0.9375rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere;
}
.copy-state { font-size: var(--step--1); color: var(--accent); min-height: 1.5em; }

/* 商品詳細 */
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: var(--muted); }
.product-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .product-top { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.product-top > * { min-width: 0; }
.lead { font-size: var(--step-1); line-height: 1.7; }
.buybox {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 16px;
}
@media (min-width: 900px) { .buybox { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); } }
.buybox .btn { width: 100%; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700;
}
.steps .when { font-size: var(--step--1); color: var(--muted); }

.outputs { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); border-top: 1px solid var(--line); }
.outputs div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; padding-right: 16px; }
.outputs b { font-weight: 700; }
.outputs span { color: var(--muted); font-size: 0.875rem; }

.table-wrap { overflow-x: auto; }
.plain { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.plain th, .plain td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.plain th { font-weight: 700; white-space: nowrap; width: 1%; padding-right: 24px; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px dashed var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin-top: 8px; color: var(--muted); }

.notice {
  font-size: var(--step--1); color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 10px 14px;
}
@media (prefers-reduced-motion: no-preference) { .btn, .seg button { transition: background-color .15s, color .15s; } }
