:root {
  --bg: #fff;
  --band: #f3f5f9;
  --line: #d5d9e0;
  --text: #1c2430;
  --muted: #5b6676;
  --accent: #1657c4;
  --accent-dark: #0f459e;
  --warn: #b45309;
  --warn-soft: #fff4d6;
  --ok: #1a7f37;
  --err: #b42318;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
h2 { font-size: 26px; text-align: center; margin-bottom: 28px; }
h3 { font-size: 17px; margin-bottom: 6px; }
p { margin: 0 0 12px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); font-weight: 700; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.beta { margin-left: 4px; padding: 1px 8px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.small { padding: 5px 14px; font-size: 14px; }
.btn.outline { background: #fff; color: var(--accent); }
.btn.outline:hover { background: #eef3fd; }
.btn:disabled { opacity: .6; cursor: default; }

section { padding: 64px 24px; }
section > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.band { background: var(--band); }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1140px; margin: 0 auto; padding-top: 56px; }
.hero > * { max-width: none; margin: 0; }
.hero h1 { font-size: 31px; margin-bottom: 16px; }
.eyebrow { display: inline-block; padding: 3px 12px; border-radius: 14px; background: var(--warn-soft); color: #7a4b00; font-size: 14px; font-weight: 700; }
.lead { font-size: 17px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
.hero-figure { margin: 0; }
.hero-figure svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 14px rgba(20, 40, 80, .12)); }

.cards { display: grid; gap: 20px; padding: 0; list-style: none; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards li { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.cards p, .steps p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 22px 22px 22px 66px; border: 1px solid var(--line); border-radius: 10px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; text-align: center; line-height: 32px;
}

.beta-box { max-width: 820px; padding: 22px 28px; border: 1px solid #f0d58a; border-radius: 10px; background: var(--warn-soft); }
.beta-box ul { margin: 0; padding-left: 20px; }
.beta-box li { margin: 6px 0; }

.form-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; max-width: none; }
.form-section > * { max-width: none; margin: 0; }
.form-section { padding-left: max(24px, calc((100% - 900px) / 2)); padding-right: max(24px, calc((100% - 900px) / 2)); }
.form-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 70px; }
#register { scroll-margin-top: 50px; }
.form-card h2 { font-size: 21px; text-align: left; margin-bottom: 8px; }
.form-card p { font-size: 14px; color: var(--muted); }
form label { display: block; margin: 14px 0; font-size: 14px; font-weight: 700; }
form input:not([type="checkbox"]) {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid #aab2bf; border-radius: 6px; font: inherit;
}
form input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
form input.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
form .check input { margin-top: 7px; }
form .btn { width: 100%; }
.msg { min-height: 1.8em; margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.form-card .msg.ok { color: var(--ok); }
.form-card .msg.err { color: var(--err); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); }

/* 規約・確認ページ */
.narrow { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.narrow h1 { font-size: 26px; margin-bottom: 24px; }
.narrow h2 { font-size: 18px; text-align: left; margin: 32px 0 8px; }
.narrow li { margin: 4px 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.list { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.list th, .list td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.list th { background: var(--band); }
.draft { padding: 10px 14px; border-radius: 6px; background: var(--warn-soft); color: #7a4b00; font-size: 14px; }

@media (max-width: 820px) {
  .hero, .form-section, .cards.three, .cards.two, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  section { padding: 44px 16px; }
  .site-header { padding: 10px 16px; }
  #nav-login { display: none; }
}
