@font-face {
  font-family: "M PLUS 1";
  src: url("/fonts/mplus1-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Soukou Mincho";
  src: url("/fonts/soukou-mincho-complete.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --sans: "M PLUS 1", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --text-serif: Georgia, "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --display-ja: "Soukou Mincho", var(--text-serif);
}
body { font-family: var(--text-serif); font-weight: 500; line-height: 1.8; }

.hero h2, .section h2, .fronts h2, .op h3, .front b, .offer strong,
.mast nav a, .stat strong, .btn, .minor, .page h1,
.page h2:not(.question-title), .page h3, .subtitle {
  font-family: var(--display-ja);
  font-weight: 400;
  letter-spacing: .04em;
}
.hero h2 {
  font-size: clamp(2.55rem, 4.5vw, 4.25rem);
  letter-spacing: .045em;
  line-height: 1.2;
}
.section h2, .fronts h2, .page h1 { line-height: 1.38; }
.op h3 { font-size: 1.65rem; }
.hero-copy {
  font-family: var(--display-ja);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.75;
}
.btn, .minor { font-size: 1.08rem; }
.subtitle { letter-spacing: .09em; }
.eyebrow, .tagline, .lab, .steps .num, .option .letter, #bgm-toggle {
  font-family: var(--mono);
  font-weight: 700;
}
.eyebrow, .tagline, .lab { letter-spacing: .10em; }
input, select, textarea, .small-note, .subtle, .question-title, .option, .feedback p,
.document p, .record-note, .metadata {
  font-family: var(--sans);
}
.option, .document .passage, .feedback .passage, .quote {
  font-weight: 500;
}
.document .passage, .feedback .passage, .quote {
  font-family: var(--text-serif);
  line-height: 1.75;
}
.metadata, .meter, .steps .num { font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.5rem; }
.service-link { display: inline-block; font: 500 .94rem/1.6 var(--sans); text-decoration: underline; text-underline-offset: .26em; }
.service-link span { margin-inline-start: .35em; color: var(--acid); }
.site-footer { padding: 24px 0; color: #d4daca; border-top: 1px solid var(--line); }
.site-footer .wrap, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer .wrap { justify-content: space-between; gap: 12px 24px; }
.site-footer nav, .purchase-dates, .purchase-id { font: 500 .86rem/1.65 var(--sans); }
.site-footer nav a { display: inline-block; padding: .45rem 0; }
.site-footer nav a:hover { text-decoration: underline; }
.purchase-dates { margin: 12px 0; }
.purchase-dates div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.purchase-dates dd { margin: 0; }
.purchase-id { overflow-wrap: anywhere; }
#purchase-confirm button:disabled { cursor: not-allowed; }
#purchase-confirm button:disabled:hover { background: var(--acid); }
@media (max-width: 600px) {
  .hero h2 { font-size: clamp(2.05rem, 8.8vw, 2.7rem); }
  .hero-copy { font-size: 1.01rem; }
  .op h3 { font-size: 1.4rem; }
}
