:root {
  --ink: #16181d;
  --muted: #5b6270;
  --line: #e2e4ea;
  --bg: #fbfbfc;
  --card: #ffffff;
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --brand-soft: #eef0fe;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceef2;
    --muted: #a0a7b4;
    --line: #2b2f37;
    --bg: #121418;
    --card: #1a1d23;
    --brand: #818cf8;
    --brand-ink: #10121a;
    --brand-soft: #23264a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--brand); }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 64px;
}

h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.25; margin: 0 0 18px; letter-spacing: 0.01em; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; }
.small { font-size: 13px; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }

.button {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.button.disabled { opacity: 0.6; cursor: default; }

.notice {
  margin: 8px 0 0;
  padding: 10px 16px;
  background: var(--brand-soft);
  border-radius: 8px;
  font-size: 14px;
}
.doc .notice { margin: 0 0 8px; }
.doc.center { text-align: center; padding-top: 64px; }

/* 画面のイメージ（実際のアプリの字幕と同じ色と形） */
.mock { margin: 0; }
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #2a2d34;
  border-radius: 12px 12px 0 0;
  color: #b5bac4;
  font-size: 12px;
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #4a4e57; }
.mock-bar b { margin-left: 8px; font-weight: 500; }
.mock-body { position: relative; background: #1b1d22; border-radius: 0 0 12px 12px; padding: 20px; min-height: 320px; }
.mock-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-person { display: grid; place-items: center; background: #272a31; border-radius: 8px; height: 120px; position: relative; }
.mock-person i { width: 44px; height: 44px; border-radius: 50%; background: #3d414a; }
.mock-person small { position: absolute; left: 10px; bottom: 6px; color: #9aa0ac; font-size: 11px; }
.caption-box {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 18px;
  background: rgba(18, 20, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.caption-box p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mock .caption-box p { animation: caption-in 0.5s ease both; }
  .mock .caption-box p:nth-child(1) { animation-delay: 0.3s; }
  .mock .caption-box p:nth-child(2) { animation-delay: 0.9s; }
  .mock .caption-box p:nth-child(3) { animation-delay: 2.2s; }
  .mock .caption-box p:nth-child(4) { animation-delay: 2.8s; }
}
@keyframes caption-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.caption-box .src { color: #c4cbd6; font-size: 13px; }
.caption-box .dst { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.caption-box .dst:last-child { margin-bottom: 0; }
.caption-box .src.own { color: #93c5fd; }
.caption-box .dst.own { color: #bfdbfe; }
.caption-box.compact { bottom: 34px; padding: 6px 14px; }
.caption-box.compact .dst { font-size: 15px; }
.mock figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: right; }

.section { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.section h2 { font-size: 24px; margin: 0 0 20px; }
.section h3 { font-size: 17px; margin: 0 0 8px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards article, .plans article {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cards p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 12px; }
.plans article { display: flex; flex-direction: column; }
.plans .featured { border-color: var(--brand); border-width: 2px; }
.price { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.plans ul { margin: 0 0 18px; padding-left: 20px; flex: 1; font-size: 15px; color: var(--muted); }

/* ゲームの画面での字幕の見本 */
.game-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.game-fig { position: relative; margin: 0; }
.game-fig img { display: block; width: 100%; height: auto; border-radius: 10px; }
.game-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.caption-outline {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 44px;
  text-align: center;
}
.caption-outline p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  -webkit-text-stroke: 4px #000;
  paint-order: stroke fill;
}
.check-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 15px; color: var(--muted); }
.check-list li { padding-left: 24px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.check-list b { color: var(--ink); }

/* アプリの画面 */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.shots figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two ul { margin: 0; padding-left: 20px; font-size: 15px; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.doc { max-width: 760px; margin: 0 auto; padding: 16px 0 56px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.doc th { background: var(--card); white-space: nowrap; font-weight: 600; }
.doc dt { font-weight: 700; margin-top: 14px; }
.doc dd { margin: 2px 0 0; color: var(--muted); }

.site-footer {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero, .cards, .steps, .plans, .two, .game-figs, .check-list, .shots { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; gap: 32px; }
  .site-header nav a { margin-left: 12px; }
  .caption-box .dst { font-size: 15px; }
  .doc th { white-space: normal; }
}
