:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.85 var(--sans);
}
::selection { background: #dbeafe; color: var(--ink); }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-strong); }
a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 16px;
}
.skip:focus {
  top: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 3;
}

header,
footer {
  padding: 20px max(24px, calc((100vw - 1120px) / 2));
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a,
footer a,
.brand {
  color: var(--ink);
  text-decoration: none;
}
nav a { font-size: 14px; font-weight: 650; color: var(--muted); }
nav a:hover,
nav a[aria-current="page"],
footer a:hover { color: var(--accent); }
.brand {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.brand span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
}

main {
  max-width: 1120px;
  margin: auto;
  padding: 48px 24px 88px;
}
h1, h2, h3 { line-height: 1.4; font-weight: 650; letter-spacing: -0.02em; }
h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.25;
  margin: 12px 0 20px;
}
h2 { font-size: 22px; margin: 0 0 12px; }
h3 { font-size: 18px; }
p, li { color: var(--ink); }
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 12px 0 48px;
  align-items: center;
}
.hero p { max-width: 40em; color: var(--muted); }
.reward {
  padding: 32px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.reward span,
.reward p,
.reward small { color: #cbd5e1; }
.reward strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
}
.reward strong small {
  font-size: 18px;
  font-weight: 600;
  color: #93c5fd;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  margin: 20px 16px 28px 0;
  min-height: 48px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}
.button:hover { background: var(--accent-strong); color: #fff; }
.notice {
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
}
.notice strong { display: block; margin-bottom: 4px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 56px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { color: var(--muted); }
.step {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.legal { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal > p { color: var(--muted); }
.legal section {
  margin: 16px 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal p,
.legal li { overflow-wrap: anywhere; }
.legal ul { margin: 8px 0 16px; padding-left: 1.25em; }
.legal li { margin: 6px 0; }
.toc {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.toc a { display: block; margin: 8px 0; font-weight: 650; }
.example {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
summary { cursor: pointer; font-weight: 700; }
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
footer p { width: 100%; margin: 4px 0 0; color: var(--muted); }
.sources { font-size: 14px; color: var(--muted); }

.contact-form label {
  display: block;
  margin: 18px 0 6px;
  font-weight: 700;
}
.contact-form .hint,
.field-count {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 640px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-actions { margin-top: 22px; }
.contact-actions button {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}
.contact-actions button:hover { background: var(--accent-strong); }
.contact-actions button:disabled { opacity: 0.65; cursor: progress; }
.status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.contact-done {
  max-width: 640px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.contact-done strong {
  display: inline-block;
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  header { align-items: flex-start; flex-direction: column; }
  nav { gap: 14px 16px; }
  .hero, .grid { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding-bottom: 28px; }
  main { padding: 32px 20px 56px; }
  .reward { padding: 24px; }
  .legal h1 { font-size: 32px; }
  .legal section { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
