/* えもちゃ 公式サイト（静的サイト）。外部のフォント・スクリプトは使わない */
:root {
  --bg: #0b1030;
  --bg-2: #121845;
  --surface: #171e52;
  --surface-2: #1d2560;
  --border: #323c86;
  --text: #eef0ff;
  --muted: #aab1e0;
  --link: #8fd3ff;
  --accent: #ff7ac8;
  --accent-2: #8f7bff;
  --accent-3: #46d9ff;
  --ok: #7be3a7;
  --todo-bg: #fff3b0;
  --todo-text: #4a3b00;
  --todo-border: #d4a900;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7ff;
    --bg-2: #ecefff;
    --surface: #ffffff;
    --surface-2: #f1f3ff;
    --border: #cfd5f5;
    --text: #1b2050;
    --muted: #525a8f;
    --link: #1b5fd1;
    --accent: #d2308f;
    --accent-2: #5b46e0;
    --accent-3: #0a8fc2;
    --ok: #17794a;
    --shadow: 0 8px 24px rgba(40, 50, 120, 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-3); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* ヒーロー */
.hero { background: radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent), radial-gradient(700px 360px at 5% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent); padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.25; margin: 0 0 12px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.hero .icon { justify-self: center; width: min(280px, 70%); border-radius: 28%; box-shadow: var(--shadow); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 2px solid transparent; }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { color: var(--muted); font-size: 14px; }

/* スマホでご覧の方へ（2026-10-27）: 拡張機能は PC の Chrome にしか入れられないので、スマホ・タブレットで来た人にだけ出す。script は使わない */
.phone-note { display: none; margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--accent); }
.phone-note p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; }
.phone-note p:last-child { margin-bottom: 0; }
.phone-note .phone-title { font-weight: 700; color: var(--accent); }
@media (hover: none) and (pointer: coarse), (max-width: 640px) { .phone-note { display: block; } }

/* セクション */
section.block { padding: 48px 0; border-top: 1px solid var(--border); }
section.block h2 { font-size: 26px; margin: 0 0 8px; }
section.block > .wrap > p.sub, section.block > .narrow > p.sub { color: var(--muted); margin: 0 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
ul.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.check li { padding-left: 28px; position: relative; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.recommended { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; right: 16px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 32px; font-weight: 800; line-height: 1.2; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan .detail { color: var(--muted); font-size: 14px; margin: 0; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* 表（特商法） */
table.legal { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.legal th, table.legal td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); }
table.legal th { width: 12em; background: var(--surface-2); font-weight: 700; }
table.legal tr:last-child th, table.legal tr:last-child td { border-bottom: 0; }
table.legal td > :first-child { margin-top: 0; }
table.legal td > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .icon { order: -1; width: 140px; }
  table.legal, table.legal tbody, table.legal tr, table.legal th, table.legal td { display: block; width: 100%; }
  table.legal th { border-bottom: 0; padding-bottom: 4px; }
}

/* 文書ページ */
.doc { padding: 36px 0 64px; }
.doc h1 { font-size: 30px; margin: 0 0 8px; line-height: 1.35; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 40px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); line-height: 1.5; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc ol, .doc ul { padding-left: 1.5em; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc table th, .doc table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc table th { background: var(--surface-2); }
.doc .scroll { overflow-x: auto; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 24px; font-size: 15px; }
.toc strong { display: block; margin-bottom: 4px; }
.toc ol { columns: 2; column-gap: 28px; margin: 0; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* 公開前に人間が確定する箇所（公開前に、このクラスの要素をすべて確定して、取り除く） */
.todo { background: var(--todo-bg); color: var(--todo-text); border: 1px dashed var(--todo-border); border-radius: 4px; padding: 0 4px; }
.draft-banner { background: var(--todo-bg); color: var(--todo-text); border-bottom: 2px solid var(--todo-border); padding: 8px 16px; text-align: center; font-size: 14px; font-weight: 700; }

/* フッター */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer h2 { font-size: 15px; color: var(--text); margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 2px 0; }
.site-footer .legal-note { margin-top: 24px; font-size: 13px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 640px) { .site-header { position: static; } }
