:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --card: #ffffff;
  --text: #25262b;
  --muted: #62646c;
  --line: #dedbd2;
  --accent: #2f5d62;
  --accent-text: #ffffff;
  --accent-soft: #e3edec;
  --before: #8a5a44;
  --warn-bg: #fbf1dc;
  --warn-line: #e3cd96;
  --todo-bg: #fde8e4;
  --todo-text: #8c2f22;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181b;
    --bg-alt: #1e2024;
    --card: #222428;
    --text: #e8e6e1;
    --muted: #a3a5ab;
    --line: #34373d;
    --accent: #8cc3c4;
    --accent-text: #0f1a1b;
    --accent-soft: #223335;
    --before: #d4a48c;
    --warn-bg: #33291a;
    --warn-line: #5c4a24;
    --todo-bg: #43221e;
    --todo-text: #f2b3a9;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.brand small { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 8px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 5.2vw, 2.5rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.3rem, 3.6vw, 1.65rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

.hero { padding: 56px 0 48px; }
.hero .eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .6em; }

/* buttons */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); text-decoration: none;
  font-weight: 600; border: 1px solid var(--accent); line-height: 1.5;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.is-unset { opacity: .6; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* before / after */
.ba { display: grid; gap: 14px; margin: 28px 0 8px; }
@media (min-width: 720px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.ba-card .tag { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; }
.ba-card.before .tag { color: var(--before); }
.ba-card.after { border-color: var(--accent); background: var(--accent-soft); }
.ba-card.after .tag { color: var(--accent); }
.ba-card p { margin: 0; }
.ba-card.before p { color: var(--muted); }

/* style examples */
.styles { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 720px) { .styles { grid-template-columns: repeat(3, 1fr); } }
.style-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.style-card h3 { margin-bottom: .2em; }
.style-card .app { font-size: .8rem; color: var(--muted); margin-bottom: .8em; }
.style-card .said { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin-bottom: .8em; }
.style-card .out { margin: 0; font-weight: 500; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .steps.three { grid-template-columns: repeat(3, 1fr); } }
.steps > li {
  counter-increment: s; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 18px 20px;
}
.steps > li::before {
  content: counter(s); display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  font-weight: 700; font-size: .9rem; margin-bottom: 8px;
}
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }

/* placeholder frames */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted);
  background: var(--bg-alt); padding: 20px; font-size: .9rem; margin: 14px 0;
}
.placeholder.video { aspect-ratio: 16 / 9; }
.placeholder.shot { min-height: 180px; }
.placeholder code { font-family: var(--mono); font-size: .85em; }

/* pricing */
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-top: 24px;
}
.price-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card .amount { font-size: 2rem; font-weight: 700; line-height: 1.3; }
.price-card .amount small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.price-card ul { padding-left: 1.2em; margin: 12px 0 0; }
.price-card li { margin-bottom: .3em; }
.price-card.free { background: var(--bg); }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style-position: inside; }
details[open] summary { border-bottom: 1px solid var(--line); }
details .a { padding: 14px 18px 4px; }

/* notices */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius);
  padding: 14px 18px; margin: 20px 0;
}
.notice p:last-child { margin-bottom: 0; }

.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* document pages */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.doc h2 { font-size: 1.2rem; margin-top: 2em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--muted); font-size: .88rem; }

table.legal { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
table.legal th, table.legal td { border: 1px solid var(--line); padding: 12px 14px; vertical-align: top; text-align: left; }
table.legal th { background: var(--bg-alt); width: 11em; font-weight: 600; }
@media (max-width: 600px) {
  table.legal, table.legal tbody, table.legal tr, table.legal th, table.legal td { display: block; width: 100%; }
  table.legal th { border-bottom: 0; }
  table.legal td { border-top: 0; margin-bottom: 10px; }
}

pre.example, .example {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-size: .9rem;
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: .9rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin-bottom: .4em; }

@media (max-width: 480px) {
  section { padding: 40px 0; }
  .btn { width: 100%; text-align: center; }
}

/* hero demo */
:root { --rec: #d03a2f; --menubar: #ecebe6; --key: #ffffff; --key-edge: #cfccc2; }
@media (prefers-color-scheme: dark) { :root { --rec: #ff7a6e; --menubar: #2a2c31; --key: #2b2d32; --key-edge: #121316; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.demo { margin: 28px 0 8px; }
.demo-stage {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 0 16px; overflow: hidden; max-width: 640px; margin: 0 auto; font-size: .92rem; line-height: 1.6;
}
.d-menubar { display: flex; align-items: center; gap: 12px; background: var(--menubar); border-bottom: 1px solid var(--line); padding: 4px 12px; font-size: .8rem; }
.d-appname { font-weight: 700; }
.d-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; transition: background .2s, color .2s; }
.d-status[data-state="rec"] { color: var(--rec); background: color-mix(in srgb, var(--rec) 12%, transparent); border-color: var(--rec); }
.d-status[data-state="rec"] svg { animation: d-pulse 1s ease-in-out infinite; }
.d-status[data-state="busy"] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
@keyframes d-pulse { 50% { opacity: .35; } }
.d-window { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 14px 14px 0; overflow: hidden; }
.d-head { font-weight: 700; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.d-chat { padding: 8px 14px 2px; }
.d-msg { display: flex; gap: 10px; margin-bottom: 6px; line-height: 1.5; }
.d-msg > div { min-width: 0; }
.d-msg p { margin: 0; }
.d-msg time { color: var(--muted); font-size: .75rem; margin-left: 4px; }
.d-av { flex: none; width: 30px; height: 30px; border-radius: 6px; background: var(--before); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.d-av.me { background: var(--accent); color: var(--accent-text); }
.d-posted { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.d-posted.on { opacity: 1; transform: none; }
.d-input { margin: 4px 14px 10px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; min-height: 4em; position: relative; }
.d-ph { color: var(--muted); }
.d-val { position: absolute; left: 12px; right: 12px; top: 6px; }
.d-cap { position: relative; margin: 12px 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; font-size: .86rem; color: var(--text); }
.d-cap::before { content: "話した内容"; position: absolute; top: -9px; left: 12px; background: var(--bg-alt); padding: 0 6px; font-size: .7rem; font-weight: 700; color: var(--before); }
.d-ghost { visibility: hidden; display: block; }
.d-live { position: absolute; left: 14px; right: 14px; top: 12px; }
.d-live .f, .d-live .x { transition: color .4s; }
.d-cap.done .f, .d-cap.done .x { color: var(--muted); opacity: .55; text-decoration: line-through; }
.d-keys { display: flex; gap: 4px; margin: 14px 14px 0; }
.k { flex: 1 1 0; height: 34px; border-radius: 6px; background: var(--key); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--key-edge); display: grid; place-items: center; font-size: .78rem; color: var(--muted); transition: transform .08s, background .12s, color .12s, box-shadow .08s; }
.k125 { flex-grow: 1.25; } .k45 { flex-grow: 4.5; }
.k.rcmd.down { background: var(--accent); color: var(--accent-text); border-color: var(--accent); transform: translateY(2px); box-shadow: 0 0 0 var(--key-edge); }
.d-hint { text-align: right; margin: 8px 14px 0; font-size: .82rem; font-weight: 600; color: var(--accent); min-height: 1.6em; }
.d-note { text-align: center; margin: 8px 0 0; }
@media (max-width: 480px) {
  .demo-stage { font-size: .85rem; }
  .d-keys { gap: 3px; margin-left: 10px; margin-right: 10px; }
  .k { height: 28px; font-size: .7rem; }
  .d-window, .d-cap { margin-left: 10px; margin-right: 10px; }
}

/* hero layout */
.hero-grid { display: block; }
.hero-wrap .demo { margin: 8px 0 0; }
@media (min-width: 900px) {
  .hero { padding: 28px 0 24px; }
  .hero-wrap { max-width: 1040px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 500px); column-gap: 44px; align-items: center; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-cta { grid-column: 1; grid-row: 2; align-self: start; }
  .hero-wrap .demo { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero .lead { font-size: 1rem; margin-bottom: .6em; }
  .hero .btn-row { margin-top: 16px; }
}
@media (min-width: 1000px) { .hero .d-input { min-height: 2.9em; } .hero .d-ph { white-space: nowrap; } }
@media (min-width: 900px) { .hero .d-keys { margin-top: 12px; } .hero .d-cap { margin-top: 10px; } .hero .d-hint { margin-top: 6px; } .hero .demo-stage { padding-bottom: 12px; } .hero .d-window { margin-top: 10px; } .hero .d-note { margin-top: 6px; } }

/* ヘッダーの幅をトップのヒーロー(PCで2列)と揃える */
@media (min-width: 900px) { .site-header .wrap { max-width: 1040px; } }

/* インストール手順のスクリーンショット */
img.shot { display: block; margin: 12px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
