:root {
  --navy: #1e3a5f;
  --navy-2: #2f6690;
  --navy-deep: #12263f;
  --accent: #2f6690;
  --accent-soft: #e6eef6;
  --ink: #1b2430;
  --muted: #566274;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --card: #ffffff;
  --warn-bg: #fff6e8;
  --warn-line: #e8b86a;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7fb0dc;
    --accent-soft: #1d3452;
    --ink: #e8edf3;
    --muted: #a5b0bf;
    --line: #2b3a4f;
    --bg: #0f1a2b;
    --bg-alt: #142238;
    --card: #1a2a42;
    --warn-bg: #2d2616;
    --warn-line: #8a6a2e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); text-align: center; margin-bottom: 1.4em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
section { padding: 72px 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.small { font-size: .88rem; color: var(--muted); }
.tiny { font-size: .75rem; opacity: .7; }

/* ヘッダ */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 38, 63, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.bar-in { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .04em;
}
.brand img { border-radius: 7px; }
.bar-nav { display: flex; gap: 20px; margin-left: auto; }
.bar-nav a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .9rem; }
.bar-nav a:hover { color: #fff; }

/* 近日公開の札 */
.soon {
  display: inline-block; font-weight: 700; letter-spacing: .06em;
  color: #fff; border: 2px solid rgba(255, 255, 255, .7);
  padding: 8px 22px; border-radius: 999px;
}

/* 最初の画面 */
.hero {
  background: radial-gradient(120% 90% at 85% 10%, var(--navy-2) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em;
  color: #cfe1f2; border: 1px solid rgba(207, 225, 242, .4);
  padding: 2px 12px; border-radius: 999px; margin-bottom: 1.2em;
}
.hero h1 { font-size: clamp(1.75rem, 4vw, 3.2rem); letter-spacing: .02em; }
.lead { font-size: 1.1rem; color: rgba(255, 255, 255, .9); max-width: 34em; }
.cta { margin-top: 28px; }
.hero-icon { display: flex; justify-content: center; }
.hero-icon img { width: 220px; border-radius: 48px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }

/* 3 つの手順 */
.step-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 20px;
}
.step-list p { color: var(--muted); font-size: .95rem; }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800;
}

/* できること */
.features { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid article {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border-top: 3px solid var(--accent);
}
.feature-grid p { color: var(--muted); font-size: .95rem; margin: 0; }

/* 画面 */
.shots { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; max-width: 900px; margin: 0 auto; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(18, 38, 63, .2); }
.shots figcaption { margin-top: .6em; font-size: .88rem; color: var(--muted); text-align: center; }

/* 使える問題集 */
.books { background: var(--bg-alt); }
.books h2, .guide h2 { text-align: left; margin-bottom: .8em; }
.books h3 { margin-top: 1.6em; }
.books ul { margin: 0 0 1em; padding-left: 1.3em; }

/* 注意 */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius);
  padding: 24px 28px;
}
.notice h3 { margin-bottom: .4em; }
.notice p { margin: 0; }

/* 使い方ページ */
.hero-sub { padding: 48px 0 40px; }
.guide section { padding: 40px 0; }
.guide section + section { border-top: 1px solid var(--line); }
.guide h2 { font-size: 1.4rem; }
.guide ul { padding-left: 1.3em; }
.guide .shot { max-width: 560px; margin: 1em 0; border-radius: 12px; border: 1px solid var(--line); }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .6em 0 0; color: var(--muted); }
.more { margin-top: 1.4em; text-align: right; }

/* 最後の呼びかけ */
.final { background: linear-gradient(160deg, var(--navy-2), var(--navy-deep)); color: #fff; }
.final-icon { margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.final a { color: #fff; }

/* フッタ */
.foot { background: #0b1626; color: rgba(255, 255, 255, .75); padding: 32px 0; font-size: .88rem; }
.foot a { color: rgba(255, 255, 255, .85); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.foot p { margin: 0 0 .4em; }

/* タブレット */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* スマホ */
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .bar-nav { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero h1 { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .lead { margin: 0 auto 1em; }
  .hero-icon { order: -1; }
  .hero-icon img { width: 120px; border-radius: 27px; }
  .step-list, .feature-grid, .shots { grid-template-columns: 1fr; }
  .more { text-align: center; }
}

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

.guide .final { padding: 56px 0; }
.guide .final h2 { text-align: center; }
.guide .hero-sub { padding: 48px 0 40px; }
/* 動作に必要なもの（Apple Pencil は必須、ZEN-64） */
.hero .req { margin: .2em 0 1em; font-weight: 600; color: #fff; }
