:root {
  --primary: #0F766E;
  --accent: #0284C7;
  --heading: #0F172A;
  --text: #334155;
  --subtext: #64748B;
  --bg: #FFFFFF;
  --soft: #F8FAFC;
  --border: #E2E8F0;
  --max: 1040px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(226,232,240,.9);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { width: 142px; height: auto; display: block; }
.header-nav { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 600; }
.header-nav a { color: var(--text); }

.hero {
  padding: 84px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecfdf9;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.18;
  letter-spacing: -.035em;
  color: var(--heading);
}
.lead { margin: 0; max-width: 720px; color: var(--subtext); font-size: 17px; }
.meta { margin-top: 24px; font-size: 13px; color: var(--subtext); }

.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 56px 0 96px;
}
.toc { position: sticky; top: 100px; align-self: start; }
.toc-title { font-size: 12px; font-weight: 800; color: var(--subtext); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.toc a { display: block; padding: 6px 0; color: var(--subtext); font-size: 13px; line-height: 1.45; }
.toc a:hover { color: var(--primary); text-decoration: none; }

.terms { min-width: 0; }
.notice {
  margin-bottom: 42px;
  padding: 18px 20px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: #f0f9ff;
  color: #075985;
  font-size: 14px;
}
.article { padding: 0 0 38px; margin: 0 0 38px; border-bottom: 1px solid var(--border); }
.article:last-child { border-bottom: 0; }
h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.45;
  color: var(--heading);
  letter-spacing: -.015em;
}
.article p { margin: 10px 0; }
.article ol, .article ul { margin: 12px 0; padding-left: 1.7em; }
.article li { margin: 7px 0; }
.article ol ol { list-style-type: decimal; }

.site-footer { border-top: 1px solid var(--border); background: var(--soft); }
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand img { width: 128px; height: auto; }
.footer-note { margin-top: 10px; font-size: 12px; color: var(--subtext); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 13px; }
.footer-links a { color: var(--subtext); }

@media (max-width: 820px) {
  .header-nav { display: none; }
  .hero { padding: 56px 0 42px; }
  .page-shell { grid-template-columns: 1fr; gap: 0; padding-top: 38px; }
  .toc { display: none; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .header-inner, .hero-inner, .page-shell, .footer-inner { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 64px; }
  .logo img { width: 124px; }
  h1 { font-size: 38px; }
  .lead { font-size: 15px; }
  h2 { font-size: 21px; }
}

.article h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--heading);
}
.article table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.article th,
.article td {
  padding: 13px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.article th {
  background: var(--soft);
  color: var(--heading);
  font-weight: 700;
}
