@font-face {
  font-family: "Nagiport Japanese Sans";
  src: url("../fonts/japanese-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nagiport Japanese Sans";
  src: url("../fonts/japanese-sans-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Nagiport Japanese Sans";
  src: url("../fonts/japanese-sans-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nagiport Japanese Sans";
  src: url("../fonts/japanese-sans-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/noto-sans-jp-preview.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Nagiport Display";
  src: url("../fonts/shipporimincho-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nagiport Display";
  src: url("../fonts/shipporimincho-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nagiport Display Latin";
  src: url("../fonts/ebgaramond-400-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101012;
  --panel: #19191c;
  --panel-bright: #1e1e21;
  --line: #29292d;
  --line-bright: #3d3d42;
  --text: #f4f4f5;
  --muted: #a0a0a5;
  --accent: #f4f4f5;
  --ink: #101012;
  --font-display: "Nagiport Display Latin", "Nagiport Display", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Nagiport Japanese Sans", "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 4.65rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.18rem; }
.wrap { width: min(100% - 2 * clamp(1rem, 5vw, 4rem), 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; inset: .5rem auto auto .5rem; padding: .5rem; background: var(--background); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 18, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-row, .footer-row { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem 1.5rem; justify-content: space-between; }
.header-row { min-height: 4.25rem; }
.brand, .language { display: inline-flex; gap: .6rem; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.brand { font-family: var(--font-display); letter-spacing: -.025em; font-size: 1.3rem; }
.mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .48rem; background: var(--accent); color: var(--ink); font-family: "Nagiport Japanese Sans", "Noto Sans JP", sans-serif; font-size: .95rem; font-weight: 800; }
.site-nav, .footer-nav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.site-nav a, .footer-nav a, .language { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .9rem; }
.site-nav a { color: var(--muted); padding-inline: .55rem; border-radius: 999px; transition: color .18s ease, background .18s ease; }
.site-nav a:hover { color: var(--text); background: rgba(244, 244, 245, .06); }
.site-nav a[aria-current] { color: var(--accent); }
.language { padding-inline: .5rem; }
.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 45% at 72% 38%, rgba(244, 244, 245, .07), transparent 65%),
    radial-gradient(ellipse 45% 35% at 12% 0%, rgba(244, 244, 245, .045), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; min-height: 34rem; padding-block: 4.5rem; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.16; }
.hero h1 span { display: block; }
.hero-copy p, .intro p, .section-head p { color: var(--muted); max-width: 43rem; margin: 1rem 0 0; }
.hero-copy p { max-width: 30rem; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .6rem 1.35rem; border: 1px solid var(--line-bright); border-radius: 999px; background: rgba(244, 244, 245, .04); text-decoration: none; font-weight: 700; font-size: .95rem; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button:hover { border-color: var(--accent); transform: translateY(-1px); }
.button.primary:hover { background: #dedee1; color: var(--ink); }
.hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 0; }
.hero-stats > div { display: flex; align-items: baseline; gap: .55rem; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(25, 25, 28, .72); }
.hero-stats dt { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.hero-stats dd { margin: 0; font-size: 1.02rem; font-weight: 750; white-space: nowrap; }
.hero-stats .price-usd { display: inline; margin-top: 0; font-size: .82rem; }
.orbit { position: relative; min-width: 0; height: min(34vw, 24rem); margin-inline: -1rem; isolation: isolate; }
.orbit::before { content: ""; position: absolute; inset: -14%; z-index: -1; background: radial-gradient(ellipse, #f4f4f51f, transparent 63%); }
.ring { position: absolute; inset: 50% auto auto 50%; width: var(--size); aspect-ratio: 2.45; border: 1px solid #a0a0a53d; border-radius: 50%; transform: translate(-50%, -50%) rotate(-23deg); }
.ring:nth-child(1) { --size: 91%; }
.ring:nth-child(2) { --size: 73%; }
.ring:nth-child(3) { --size: 55%; }
.ring:nth-child(4) { --size: 37%; }
.node { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: clamp(1.75rem, 4vw, 3rem); aspect-ratio: 1; border: 1px solid #a0a0a566; border-radius: 50%; background: var(--panel); color: var(--accent); font-weight: 750; font-size: .85rem; transform: translate(-50%, -50%); box-shadow: 0 0 2rem #f4f4f524; }
.orbit-core { width: clamp(2rem, 5vw, 3.65rem); border-radius: .8rem; color: var(--ink); background: var(--accent); font-size: 1.12rem; }
.section { padding-block: clamp(3.2rem, 7vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.intro { padding-block: clamp(3rem, 7vw, 5.5rem) 1.6rem; }
.intro h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.intro .model-intro-note { max-width: none; overflow-x: auto; white-space: nowrap; }
.intro + .section { padding-top: 1rem; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.grid { display: grid; gap: 1rem; }
.model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: block; min-width: 0; padding: clamp(1.15rem, 2.8vw, 1.7rem); border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(180deg, var(--panel-bright), var(--panel)); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); }
a.card:hover, .card:target { border-color: var(--accent); }
.card:target { scroll-margin-top: 6rem; }
.card h2 { font-size: 1.3rem; letter-spacing: 0; }
.model-heading { display: flex; gap: .85rem; align-items: flex-start; }
.model-heading > div { min-width: 0; }
.model-letter { flex: 0 0 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .7rem; background: rgba(244, 244, 245, .05); color: var(--accent); font-weight: 750; font-size: 1.05rem; }
.model-heading code { display: block; margin-top: .25rem; color: var(--muted); overflow-wrap: anywhere; font-size: .88rem; }
.rates { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.rates dt { font-size: .84rem; color: var(--muted); }
.rates dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.plan-compare-value, .rates dd, .hero-stats dd { font-variant-numeric: tabular-nums; }
.plan { display: flex; flex-direction: column; align-items: flex-start; container-type: inline-size; }
.plan.featured { border-color: #a0a0a5; box-shadow: 0 24px 50px -30px rgba(244, 244, 245, .25); }
.price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin-block: .65rem .4rem;
}
.price small { font-family: "Nagiport Japanese Sans", "Noto Sans JP", sans-serif; font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-usd {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
}
.plan p:last-child { margin-bottom: 0; }
.plan-compare { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.plan-compare-line {
  display: inline-block;
  white-space: nowrap;
  font-size: .9rem;
  font-size: min(.9rem, 4.65cqi);
  letter-spacing: 0;
}
.plan-compare-value { color: var(--accent); font-size: 1.12em; font-weight: 700; }
.plan-compare small { display: block; margin-top: .2rem; color: var(--muted); font-size: .85rem; font-weight: 400; }
.plan-features { color: var(--muted); display: grid; gap: .45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: .92rem; }
.plan-features li { display: flex; gap: .5rem; align-items: flex-start; }
.plan-features li::before { content: "✓"; flex: none; color: var(--muted); font-weight: 800; line-height: 1.5; }
.plan-note { margin-top: auto; padding-top: 1.1rem; color: var(--muted); font-size: .875rem; }
.plan-note a { color: inherit; }
.conditions { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.conditions li + li { margin-top: .25rem; }
.note, .plan .quota { color: var(--muted); }
.note { margin: 1rem 0 0; font-size: .88rem; }
.units { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: clamp(.78rem, 2.2vw, .95rem); }
.units th, .units td { padding: .8rem clamp(.25rem, 1.8vw, 1rem); border-bottom: 1px solid var(--line); text-align: right; }
.units th:first-child { text-align: left; overflow-wrap: anywhere; }
.units td { white-space: nowrap; }
.units tbody tr { transition: background .15s ease; }
.units tbody tr:hover { background: rgba(244, 244, 245, .03); }
.units thead { background: var(--panel); }
.units thead th { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
.guide { max-width: 49rem; }
.guide h2 { font-size: 1.6rem; margin-bottom: .65rem; }
.guide > section + section { margin-top: 2.4rem; }
.guide p { color: var(--muted); }
.guide a { text-decoration: underline; text-decoration-color: var(--line-bright); }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.6rem; background: rgba(25, 25, 28, .35); }
.footer-row small { color: var(--muted); }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover, .footer-nav a[aria-current] { color: var(--text); }
@media (max-width: 47rem) {
  .site-nav { order: 3; width: 100%; border-top: 1px solid var(--line); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 3rem 2.5rem; }
  .orbit { grid-row: 1; width: min(100%, 26rem); height: 11.5rem; margin-inline: auto; }
}
@media (max-width: 68rem) {
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 37rem) {
  .model-grid { grid-template-columns: 1fr; }
  .section-head .plan-summary { font-size: .8125rem; }
  .site-nav, .footer-nav { gap: 0 1rem; }
}
@media (max-width: 23rem) {
  .plan { padding-inline: .65rem; }
}

/* Rollover highlight (2026-12-06) */
.rollover { padding-block: 2.4rem 0; }
.rollover-band { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 1.15rem 1.5rem; border: 1px solid var(--line-bright); border-radius: 1rem; background: linear-gradient(180deg, var(--panel-bright), var(--panel)); box-shadow: 0 18px 44px -22px rgba(244, 244, 245, .35); color: var(--muted); font-size: .98rem; }
.rollover-band strong { color: var(--text); font-size: 1.14rem; letter-spacing: .01em; }
.rollover-badge { flex: 0 0 auto; display: inline-grid; place-items: center; padding: .5rem .85rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: .85rem; letter-spacing: .06em; white-space: nowrap; }
.rollover-lead { color: var(--text) !important; font-size: 1.06rem; font-weight: 650; border-left: 3px solid var(--accent); padding-left: 1rem; }
#rollover .section-head { padding: 1.5rem 1.7rem; border: 1px solid var(--line-bright); border-radius: 1rem; background: linear-gradient(180deg, var(--panel-bright), var(--panel)); box-shadow: 0 18px 44px -22px rgba(244, 244, 245, .3); }
#rollover .section-head p { color: var(--text); }
@media (max-width: 37rem) {
  .rollover-band { flex-direction: column; align-items: flex-start; gap: .7rem; }
}

/* Legal pages (2026-12-06) */
.legal { max-width: 49rem; }
.legal h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.legal > section + section { margin-top: 2.4rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { text-decoration: underline; text-decoration-color: var(--line-bright); }
.legal ol, .legal ul { margin: 0 0 1em; padding-left: 1.4rem; }
.legal li + li { margin-top: .3rem; }
.legal .draft-note { padding: 1rem 1.25rem; border: 1px solid var(--line-bright); border-radius: 1rem; background: linear-gradient(180deg, var(--panel-bright), var(--panel)); color: var(--text); font-size: .92rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { width: 32%; color: var(--text); font-weight: 600; background: var(--panel); }
.legal-table td { color: var(--muted); }
.legal-table td strong { color: var(--text); }
@media (max-width: 37rem) {
  .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { border-bottom: none; padding-bottom: .2rem; }
  .legal-table td { padding-top: .2rem; }
}
