:root {
  --navy: #35547c;
  --navy-deep: #22384f;
  --brass: #a8864f;
  --brass-tint: #f3ecdf;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --panel: #f6f3ec;
  --ink: #1e2732;
  --muted: #5a6574;
  --line: #e4dfd3;
  --radius: 14px;
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", "Meiryo", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  line-break: strict;
  overflow-wrap: anywhere;
}
svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; line-height: 1.25; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .14em; color: var(--navy-deep); }
.brand span { font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
nav.top { display: none; gap: 24px; }
nav.top a { color: var(--ink); text-decoration: none; font-size: 14px; }
nav.top a:hover { color: var(--navy); }
@media (min-width: 820px) { nav.top { display: flex; } header.site .nav-cta { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .06em; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* headings */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 600; color: var(--navy-deep);
  font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase;
}

/* hero */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) {
  .hero { padding: 88px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--brass); }
h1 { font-size: clamp(30px, 5.2vw, 46px); line-height: 1.45; letter-spacing: .06em; margin: 14px 0 20px; }
.lead { margin: 0; max-width: 36em; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.hero-art { width: 100%; max-width: 280px; margin: 0 auto; }
@media (min-width: 880px) { .hero-art { max-width: 360px; } }
.hero-art text { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; fill: var(--muted); }

/* sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
@media (min-width: 880px) { .section { padding: 88px 0; } }
.section h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.5; letter-spacing: .08em; margin: 0 0 10px; }
.sec-lead { margin: 0 0 32px; max-width: 40em; color: var(--muted); }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; line-height: 1.5; letter-spacing: .06em; margin: 0 0 8px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .num { display: block; margin-bottom: 10px; font-family: var(--serif); font-size: 14px; letter-spacing: .12em; color: var(--brass); }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* usage table */
.usage { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.usage table { width: 100%; border-collapse: collapse; font-size: 15px; }
.usage th, .usage td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.usage tbody tr:last-child th, .usage tbody tr:last-child td { border-bottom: 0; }
.usage thead th { background: var(--panel); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.usage tbody th { font-weight: 400; }
.usage .r { text-align: right; }

/* plans */
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.plan-name { margin: 0; font-size: 20px; letter-spacing: .1em; }
.plan-credits { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.plan-credits strong { margin-right: 4px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.plan-price { margin: 18px 0 0; font-family: var(--serif); font-size: 38px; line-height: 1.2; letter-spacing: .02em; color: var(--navy-deep); }
.plan-price .yen { margin-left: 2px; font-size: 18px; }
.plan-price small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.plan-meta { display: grid; gap: 6px; margin: 16px 0 24px; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.plan .btn { width: 100%; margin-top: auto; }

/* definition lists (conditions, seller) */
.dl { margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dl > div { display: grid; gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dl > div:last-child { border-bottom: 0; }
@media (min-width: 720px) { .dl > div { grid-template-columns: 11em minmax(0, 1fr); gap: 16px; } }
.dl dt { font-size: 14px; font-weight: 600; }
.dl dd { margin: 0; font-size: 15px; color: var(--muted); }
.conditions { margin-top: 28px; }
.mail-note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

/* steps */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 14px;
  border: 1px solid var(--brass); border-radius: 50%;
  font-family: var(--serif); font-size: 15px; color: var(--brass);
}
.steps h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* notice */
.notice { padding: 24px 24px 24px 28px; background: var(--brass-tint); border-left: 3px solid var(--brass); border-radius: var(--radius); }
.notice ul { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; font-size: 15px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { position: relative; padding: 18px 28px 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--brass); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; font-size: 15px; color: var(--muted); }

/* footer */
footer.site { padding: 40px 0 48px; background: var(--panel); border-top: 1px solid var(--line); }
nav.foot { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
nav.foot a { color: var(--ink); text-decoration: none; }
nav.foot a:hover { color: var(--navy); text-decoration: underline; }
.fine { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* documents */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); letter-spacing: .06em; }
.doc .meta { margin: 0 0 32px; font-size: 13px; color: var(--muted); }
.doc h2 { margin: 40px 0 10px; font-size: 19px; line-height: 1.5; letter-spacing: .06em; }
.doc p, .doc li { font-size: 15.5px; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc .end { margin-top: 40px; text-align: right; color: var(--muted); }
.law { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.law th, .law td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; }
.law th { width: 13em; background: var(--panel); font-weight: 600; }
.law tr:last-child th, .law tr:last-child td { border-bottom: 0; }
.law td ul { margin: 0 0 6px; padding-left: 1.2em; }
.law .sub { color: var(--muted); font-size: 14px; }
@media (max-width: 719px) {
  .law, .law tbody, .law tr, .law th, .law td { display: block; width: 100%; }
  .law th { padding-bottom: 2px; border-bottom: 0; background: transparent; color: var(--navy-deep); }
  .law td { padding-top: 0; }
}
