:root {
  --navy: #1f2a44;
  --navy-deep: #16203a;
  --yellow: #ffd400;
  --ink: #1c2230;
  --muted: #5b6577;
  --line: #e3e7ee;
  --bg: #f7f8fb;
  --card: #ffffff;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: #eef1f6; padding: 0.1em 0.35em; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.site {
  background: var(--navy);
  color: #fff;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.brand .mark { width: 28px; height: 28px; border-radius: 6px; background: var(--yellow); display: inline-block; position: relative; }
.brand .mark::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 4px; background: var(--navy); border-radius: 2px; }
nav.top a { color: #d9deea; text-decoration: none; margin-left: 22px; font-size: 15px; }
nav.top a:hover { color: #fff; }

.hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
.hero p { font-size: 19px; color: #d9deea; margin: 0; max-width: 680px; }

main { padding: 48px 0 64px; }
h2 { font-size: 24px; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
p, li { color: var(--ink); }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h3 { margin-top: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #eef1f6; color: var(--muted); margin-bottom: 10px; }
.badge.live { background: #fff4bf; color: #6b5300; }
.card ul { padding-left: 18px; margin: 10px 0 16px; }
.card li { margin: 4px 0; }
.actions a { display: inline-block; margin-right: 14px; font-weight: 600; text-decoration: none; }
.button { background: var(--navy); color: #fff !important; padding: 10px 16px; border-radius: 8px; }
.button:hover { background: var(--navy-deep); }

.doc { max-width: 760px; }
.doc h1 { font-size: 32px; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 17px; }
  nav.top a { margin-left: 14px; font-size: 14px; }
}

/* --- home page: hero, presets, quick start, facts, faq --- */
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin: 0 0 12px; font-weight: 700; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero .actions { margin-top: 26px; }
.hero .actions a { margin-right: 12px; }
.button.yellow { background: var(--yellow); color: var(--navy) !important; }
.button.yellow:hover { background: #ffdf3d; }
.button.ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.45); }
.button.ghost:hover { border-color: #fff; }
.hero-note { font-size: 14px; color: #b9c2d6; margin-top: 14px; }
.hero-shots { display: flex; gap: 14px; justify-content: flex-end; align-items: stretch; }
.hero-shots img { display: block; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,0.35); background: #000; }
.hero-shots .portrait { width: 44%; object-fit: cover; }
.hero-shots .shot-stack { width: 56%; display: flex; flex-direction: column; gap: 14px; }
.hero-shots .shot-stack img { width: 100%; }

.section { margin: 0 0 56px; }
.section .lead { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0 0 20px; }

.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.preset-grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
/* 見本は 1080p の全画面なので、字幕のある下部中央を 2 倍に拡大して切り出す */
.preset-grid .thumb { aspect-ratio: 16 / 6; overflow: hidden; background: #2f3a52; }
.preset-grid img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform: scale(2); transform-origin: 50% 100%; }
/* karaoke_highlight の見本は字幕が画面中央にある */
.preset-grid .center img { object-position: 50% 50%; transform-origin: 50% 50%; }
.preset-grid figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.preset-grid figcaption code { margin-right: 6px; }

.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.code-title { margin: 0 0 8px; font-weight: 600; color: var(--muted); font-size: 14px; }
pre { margin: 0 0 12px; background: var(--navy-deep); color: #e6ebf5; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.fact strong { display: block; margin-bottom: 6px; font-size: 16px; }
.fact span { color: var(--muted); font-size: 15px; }

.faq { max-width: 820px; margin: 0; }
.faq dt { font-weight: 600; margin: 18px 0 4px; }
.faq dd { margin: 0; color: var(--muted); }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shots { justify-content: flex-start; }
  .code-grid { grid-template-columns: 1fr; }
}

/* narrow screens: keep the brand on one line and let the nav wrap under it */
@media (max-width: 640px) {
  header.site .wrap { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; gap: 6px 0; }
  .brand { white-space: nowrap; }
  nav.top { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  nav.top a { margin-left: 0; }
  .hero { padding: 36px 0 44px; }
  .eyebrow { font-size: 12px; }
}
