/* Beranivo LP。落ち着いた明るい配色（アプリの src/theme.ts と揃える）。角丸は 4px（side-projects の決まり）。外部フォントは読まない。 */
:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #eeede8;
  --text: #1e2422;
  --sub: #5f6a66;
  --line: #dcdad3;
  --accent: #2f6f55;
  --accent-soft: #dcefe4;
  --on-accent: #ffffff;
  --ink: #1f2a26;
  --figure: #2f6f55;
  --figure-soft: #7d8a85;
  --max: 1120px;
  --radius: 4px;
  --font: "M PLUS 1", "M PLUS 1p", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: var(--max); }
.muted { color: var(--sub); }
.small { font-size: 14px; }
.center { text-align: center; }
.link { color: var(--accent); font-weight: 700; }
section { padding: 72px 0; }
.section-head { margin-bottom: 36px; }
.section-head p:not(.eyebrow) { color: var(--sub); margin-top: 12px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 245, 241, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--sub); }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius); padding: 6px 10px; font: inherit; font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; font-family: inherit; transition: background .15s ease, border-color .15s ease; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--sub); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: #295f49; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.015em; }
.hero .lead { color: var(--sub); font-size: clamp(16px, 1.6vw, 19px); margin: 20px 0 28px; max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--sub); font-size: 14px; }
.hero-points li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.demo-note { color: var(--sub); font-size: 12px; }

/* ---------- 端末の枠と Player（スクリーンショットではなくコードで描く） ---------- */
.phone { width: 300px; height: 620px; border-radius: 40px; background: #0b0f0e; padding: 10px; box-shadow: 0 30px 60px rgba(31, 42, 38, .25), inset 0 0 0 2px #2c3531; position: relative; }
.phone::after { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #1a1f1d; box-shadow: inset 0 0 0 2px #2c3531; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--bg); font-size: 12px; display: flex; flex-direction: column; }
.statusbar { height: 34px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-size: 11px; color: var(--sub); }
.p-head { display: flex; justify-content: space-between; padding: 6px 20px 0; font-size: 12px; color: var(--sub); font-weight: 700; }
.figure { display: block; width: 100%; height: 236px; margin: 6px 0 0; }
.figure .torso { fill: var(--figure); stroke: var(--figure); stroke-width: 13; stroke-linejoin: round; }
.figure .arm { fill: none; stroke: var(--figure); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.figure .leg { fill: none; stroke: var(--figure); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.figure .head { fill: var(--figure); }
.figure .joint { fill: var(--figure); }
.figure .chair { fill: none; stroke: var(--figure-soft); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.figure .chair-panel { fill: var(--figure-soft); fill-opacity: .3; stroke: var(--figure-soft); stroke-width: 3; stroke-linejoin: round; }
.figure .floor { fill: none; stroke: var(--figure-soft); stroke-width: 3; stroke-linecap: round; }
.figure .cue-arc { fill: none; stroke: var(--figure-soft); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 3; }
.figure .cue-arrow { fill: none; stroke: var(--figure-soft); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.p-posture { text-align: center; font-size: 11px; color: var(--sub); margin-top: -2px; }
.p-body { padding: 0 22px; min-height: 84px; }
.p-name { display: block; font-size: 18px; font-weight: 800; line-height: 1.3; }
.p-instr { color: var(--sub); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.p-time { font-family: var(--mono); font-size: 40px; font-weight: 700; text-align: center; letter-spacing: .02em; margin-top: auto; }
.p-bar { height: 4px; background: var(--line); margin: 10px 22px 0; border-radius: 2px; overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.p-btns { display: flex; gap: 10px; padding: 14px 22px 6px; }
.p-btn { flex: 1; padding: 11px 0; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.p-btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.p-btn:disabled { opacity: .45; cursor: default; }
.p-next { text-align: center; color: var(--sub); font-size: 12px; min-height: 18px; padding: 0 22px 18px; }
.p-done { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; text-align: center; }
.p-done b { font-size: 26px; font-weight: 800; }
.p-done p { color: var(--sub); font-size: 15px; }
.p-count { display: inline-block; font-family: var(--mono); font-size: 14px; color: var(--sub); margin: 8px 0 18px; }
.p-done .p-btn { flex: none; width: 80%; }

/* ---------- 3 つの手順 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.step-art { height: 190px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 18px; padding: 16px; }
.step-n { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--sub); font-size: 15px; }
.notif { width: 100%; max-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; }
.notif-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.notif-head svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.notif-head small { margin-left: auto; color: var(--sub); }
.notif p { color: var(--text); }
.notif-actions { display: flex; gap: 14px; margin-top: 10px; font-weight: 700; color: var(--sub); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.notif-actions .on { color: var(--accent); }
.mini-player { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 280px; }
.figure.small { width: 110px; height: 150px; margin: 0; flex: none; }
.mini-player b { display: block; font-size: 15px; }
.mini-player small { font-family: var(--mono); color: var(--sub); font-size: 18px; }
.done-card { text-align: center; }
.done-card b { display: block; font-size: 20px; }
.done-card p { color: var(--sub); }
.done-card .p-count { margin: 6px 0 10px; }
.done-btn { display: block; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: 8px 18px; font-weight: 700; font-size: 13px; }

/* ---------- できること ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--sub); font-size: 15px; }

/* ---------- うるさくない / 持たないもの ---------- */
.quiet { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.container.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.checks, .nots { display: grid; gap: 12px; margin-top: 20px; }
.checks li, .nots li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checks svg, .nots svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.nots svg { stroke: var(--sub); }
.nots + .muted { margin-top: 18px; }

/* ---------- 価格 ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.pro { border-color: var(--accent); background: var(--accent-soft); }
.plan h3 { font-size: 22px; margin-bottom: 10px; }
.plan p { color: var(--sub); }

/* ---------- 入手 ---------- */
.get { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.get .section-head { margin: 0 0 28px; }
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 10px 16px 10px 12px; border-radius: var(--radius); background: #111; color: #fff; border: 1px solid #333; text-align: left; }
.badge svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.15; }
.badge small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.badge b { font-size: 19px; font-weight: 600; }
.badge[aria-disabled="true"] { opacity: .8; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--sub); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--sub); margin-top: 10px; font-size: 15px; }

/* ---------- お問い合わせ ---------- */
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field .label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.req { font-style: normal; color: var(--accent); font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background-color: var(--surface); color: var(--text); }
.field textarea { resize: vertical; min-height: 150px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-note { color: #a1452e; font-size: 14px; }
.contact-done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-done b { display: block; font-size: 18px; margin-bottom: 6px; }
.contact-done p { color: var(--sub); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--sub); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover, .langs a:hover { color: var(--text); }
.langs { display: flex; gap: 14px; margin-left: auto; }
.langs [aria-current] { color: var(--text); font-weight: 700; }
.footer p { flex-basis: 100%; }

/* ---------- 文書（プライバシーポリシー・販売者表示） ---------- */
.doc .prose { padding: 40px 20px 60px; }
.prose h1 { font-size: 32px; margin-bottom: 16px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p { margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------- 出る ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- 画面の幅 ---------- */
@media (max-width: 960px) {
  .hero .container, .container.two { grid-template-columns: 1fr; }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 20px 14px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-toggle { display: inline-block; }
  .nav .btn.small { display: none; }
  .steps, .cards, .plans { grid-template-columns: 1fr; }
  .phone { width: 280px; height: 580px; }
  .langs { margin-left: 0; }
}
