:root {
  --turf: #0f4c3a;
  --night: #0e1b2e;
  --red: #c8102e;
  --gold: #c9a227;
  --ink: #161b1e;
  --muted: #5a6670;
  --line: #dee4e1;
  --mist: #eef4f1;
  --white: #fff;
  --serif-ja: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --display-ja: "Zen Old Mincho", "Yu Mincho", serif;
  --display-en: "Cormorant Garamond", Georgia, serif;
  --header-h: 118px;
  --page-pad: clamp(20px, 4vw, 54px);
  --content: 1120px;
  color: var(--ink);
  background: var(--white);
  font-family: var(--serif-ja);
  font-size: 16px;
  line-height: 1.9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 58px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

body,
button,
input,
select,
textarea {
  font-family: var(--serif-ja);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin-block: 0;
}

.wb{display:inline-block;max-width:100%}
:lang(ja) span.wb{all:unset;display:inline-block;max-width:100%}
:lang(ja) span.wb{max-width:none;white-space:nowrap}

a {
  color: var(--turf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--red);
}

button,
input,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--turf);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--night);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  color: var(--white);
  transform: translateY(0);
}

/* Header and global navigation */
.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 26px rgba(14, 27, 46, 0.04);
  backdrop-filter: blur(12px);
}

.site-brand-row,
.site-nav {
  width: min(1360px, calc(100% - 40px));
  margin-inline: auto;
}

.site-brand-row {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: baseline;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--turf);
}

.site-title {
  font-family: var(--display-ja);
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: 0.055em;
}

.site-kicker {
  color: var(--muted);
  font-family: var(--display-en);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: var(--turf);
  background: transparent;
  font-size: 0.78rem;
  cursor: pointer;
}

.site-nav {
  padding-bottom: 7px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.site-nav ul::-webkit-scrollbar,
.toc::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 3px 11px;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .nav-main a {
  font-weight: 500;
}

.site-nav .nav-regions {
  border-top: 1px solid var(--line);
}

.site-nav .nav-regions::before {
  position: sticky;
  left: 0;
  z-index: 1;
  flex: 0 0 auto;
  padding: 2px 13px 2px 2px;
  color: var(--turf);
  background: var(--white);
  content: "REGIONS";
  font-family: var(--display-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-nav a::after {
  position: absolute;
  right: 11px;
  bottom: 1px;
  left: 11px;
  height: 1px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--red);
}

/* Editorial hero */
.hero {
  width: min(1440px, 100%);
  margin-inline: auto;
}

.hero:not(.hero-plain) {
  display: grid;
  min-height: max(690px, calc(100svh - var(--header-h)));
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  grid-template-rows: auto auto auto 1fr auto;
  padding-left: max(36px, calc((100vw - 1320px) / 2));
}

.hero:not(.hero-plain) > :not(.hero-photo) {
  grid-column: 1;
  padding-right: clamp(30px, 4vw, 72px);
}

.hero > .eyebrow {
  align-self: end;
  margin: clamp(48px, 8vh, 88px) 0 12px;
}

.hero h1 {
  max-width: 10em;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-ja);
  font-size: clamp(3.15rem, 5.15vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero h1.is-tight {
  font-size: clamp(2.75rem, 4.6vw, 4.8rem);
}

.hero-sub {
  max-width: 25em;
  margin: 24px 0 0;
  color: var(--turf);
  font-family: var(--display-ja);
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  font-weight: 600;
  line-height: 1.7;
}

.hero-lead {
  max-width: 37em;
  margin: 20px 0 34px;
  color: #334047;
  font-size: clamp(0.92rem, 1.12vw, 1.04rem);
  line-height: 2;
}

.hero-photo {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 6;
  min-height: 100%;
  overflow: hidden;
  background: var(--night);
}

.hero-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  background: linear-gradient(transparent, rgba(14, 27, 46, 0.72));
  content: "";
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-owner .hero-photo img {
  object-fit: contain;
}

.hero-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 15px;
  left: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.66rem;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-photo .cr {
  color: inherit;
}

.hero-facts {
  display: grid;
  align-self: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 clamp(38px, 6vh, 68px);
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts li {
  padding: 15px 15px 12px 0;
  border-bottom: 1px solid var(--line);
}

.hero-facts li:nth-child(odd) {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.hero-facts li:nth-child(even) {
  padding-left: 18px;
}

.hero-facts strong,
.numbers strong,
.status-summary strong,
.three-amounts strong,
.cost-cards .big,
.results strong,
.split strong {
  display: block;
  color: var(--gold);
  font-family: var(--display-en), var(--serif-ja);
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hero-facts span,
.numbers span,
.status-summary span,
.split span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.55;
}

.hero-plain {
  max-width: none;
  min-height: 560px;
  padding: clamp(64px, 9vw, 132px) max(var(--page-pad), calc((100vw - 1120px) / 2));
  color: var(--ink);
  background: var(--white);
  border-top: 4px solid var(--turf);
  border-bottom: 1px solid var(--line);
}

.hero-plain h1 {
  color: var(--ink);
}

.hero-plain .hero-sub {
  color: var(--turf);
}

.hero-plain .hero-lead {
  max-width: 48em;
  color: #334047;
}

.hero-plain .eyebrow {
  margin-top: 0;
  color: var(--turf);
}

.hero-plain .hero-facts {
  max-width: 800px;
  margin-bottom: 0;
  border-color: var(--line);
}

.hero-plain .hero-facts li {
  border-color: var(--line);
}

.hero-plain .hero-facts span {
  color: var(--muted);
}

/* In-page navigation */
.toc {
  position: sticky;
  z-index: 25;
  top: var(--header-h);
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: stretch;
  gap: 2px;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(14, 27, 46, 0.035);
  scrollbar-width: none;
}

.toc a {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.toc a::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toc a:hover,
.toc a.is-current {
  color: var(--ink);
}

.toc a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Chapters and editorial typography */
.chapter {
  width: min(var(--content), calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
  padding-block: clamp(82px, 10vw, 138px);
  border-bottom: 1px solid var(--line);
}

.chapter:last-child {
  border-bottom: 0;
}

.chapter > :first-child {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--turf);
  font-family: var(--display-en), var(--serif-ja);
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.chapter h2,
.chapter h3,
.chapter h4 {
  color: var(--ink);
  font-family: var(--display-ja);
  font-weight: 600;
}

.chapter h2 {
  max-width: 16em;
  margin: 0 0 30px;
  font-size: clamp(2.05rem, 4.4vw, 4.1rem);
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.chapter h2.is-tight {
  font-size: clamp(1.85rem, 3.9vw, 3.5rem);
}

.chapter h3 {
  margin: 68px 0 24px;
  font-size: clamp(1.42rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.chapter h4 {
  margin: 44px 0 18px;
  color: var(--turf);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.45;
}

.chapter p {
  max-width: 48em;
}

.chapter > p:not([class]),
.chapter li,
.chapter dd {
  line-height: 1.95;
}

.lead {
  max-width: 42em !important;
  margin: 0 0 clamp(40px, 5vw, 64px);
  color: #28343a;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 2;
}

.note,
.sources,
.sub,
.cr,
figcaption,
.measure-note,
.region-note,
.track-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.75;
}

.note {
  max-width: 72em !important;
  margin: 26px 0;
  padding: 17px 20px;
  border-left: 2px solid var(--gold);
  background: var(--mist);
}

.sources {
  max-width: 86em !important;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sources a,
.refs a,
.credits a {
  overflow-wrap: anywhere;
}

.plain,
.refs,
.unverified,
.fees-list,
.allowances {
  padding-left: 1.3em;
}

.plain li,
.refs li,
.unverified li,
.fees-list li,
.allowances li {
  margin-bottom: 0.75em;
  padding-left: 0.3em;
}

.plain li::marker,
.refs li::marker,
.fees-list li::marker,
.allowances li::marker {
  color: var(--gold);
}

.unverified li::marker {
  color: var(--red);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--turf);
  border-radius: 999px;
  color: var(--white);
  background: var(--turf);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.btn:hover {
  color: var(--white);
  background: #0a392b;
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--turf);
  background: var(--white);
}

.btn-ghost:hover {
  color: var(--white);
}

/* Images and media groupings */
.chapter > figure,
.chapter > .two-col,
.chapter > .gallery-3 {
  margin-top: clamp(42px, 6vw, 74px);
  margin-bottom: clamp(42px, 6vw, 74px);
}

.chapter figure img {
  width: 100%;
}

.chapter figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.two-col,
.gallery-3 {
  display: grid;
  align-items: start;
  gap: clamp(18px, 2.6vw, 34px);
}

.two-col > *,
.gallery-3 > *,
.entry-cards > *,
.track-cards > *,
.form-cards > *,
.basic-cards > *,
.cost-cards > *,
.transfers > *,
.sim-form > * {
  min-width: 0;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-3 figcaption,
.two-col figcaption {
  font-size: 0.67rem;
}

/* Home page */
body.page-home > span.jw {
  display: none;
}

.measures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
}

.measure {
  padding-top: 20px;
  border-top: 3px solid var(--turf);
}

.measure h3 {
  margin: 0 0 20px;
  font-size: 1.45rem;
}

.measure-rule {
  min-height: 5.4em;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.7;
}

.measure-fact {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.85;
}

.measure-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.chapter-map {
  width: min(1280px, calc(100% - (var(--page-pad) * 2)));
}

.worldmap {
  display: block;
  width: 100%;
  height: auto;
  margin: 44px 0 24px;
  contain: paint;
  isolation: isolate;
}

.wm-sphere {
  fill: #f8fbf9;
}

.wm-grat {
  fill: none;
  stroke: #e6ece9;
  stroke-width: 1;
}

.wm-land {
  fill: #dce5e0;
  stroke: #fff;
  stroke-width: 1;
}

.wm-pt circle {
  stroke: var(--white);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.wm-pt.wm-detail circle { fill: var(--turf); }
.wm-pt.wm-basic circle { fill: var(--gold); }
.wm-pt.wm-pending circle { fill: #9aa5ad; }
.wm-pt.wm-closed circle { fill: var(--red); }

a .wm-pt:hover circle,
a:focus .wm-pt circle,
.wm-pt a:hover circle,
.wm-pt a:focus circle {
  filter: drop-shadow(0 2px 3px rgba(14, 27, 46, 0.28));
  transform: scale(1.28);
}

.wm-label {
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 3px;
  font-family: var(--serif-ja);
  font-size: 13.5px;
  paint-order: stroke;
}

.map-legend,
.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 0;
  list-style: none;
}

.map-legend li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.72rem;
}

.map-legend li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.map-legend .lg-detail::before { background: var(--turf); }
.map-legend .lg-basic::before { background: var(--gold); }
.map-legend .lg-pending::before { background: #9aa5ad; }
.map-legend .lg-closed::before { background: var(--red); }

.status-summary {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-summary li {
  padding: 22px 16px;
  border-right: 1px solid var(--line);
}

.status-summary li:last-child {
  border-right: 0;
}

.status-summary .is-total strong {
  color: var(--ink);
  font-size: clamp(2.45rem, 4vw, 3.7rem);
}

.region-index {
  margin-top: 48px;
  column-count: 3;
  column-gap: clamp(32px, 5vw, 70px);
}

.region-group {
  break-inside: avoid;
  margin: 0 0 50px;
}

.region-group h3 {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--turf);
  font-size: 1.22rem;
  white-space: nowrap;
}

.count,
.kind {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--display-en), var(--serif-ja);
  font-size: 0.65rem;
  font-weight: 500;
  vertical-align: middle;
}

.region-list {
  padding: 0;
  list-style: none;
}

.region-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.region-item > a,
.region-item > span:first-child {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.region-item > a:hover {
  color: var(--red);
}

.region-body {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.region-item.is-pending {
  opacity: 0.67;
}

.status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  margin: 3px 0 3px 6px;
  padding: 2px 9px 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.61rem;
  line-height: 1.35;
  white-space: nowrap;
}

.status::before {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-detail { color: var(--turf); }
.status-basic { color: #987b13; }
.status-pending { color: #76828a; }
.status-closed { color: var(--red); }

.howto,
.steps {
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.howto li,
.steps li {
  position: relative;
  min-height: 72px;
  margin: 0;
  padding: 20px 0 20px 72px;
  border-bottom: 1px solid var(--line);
  counter-increment: steps;
}

:lang(ja) .steps span.wb {
  max-width: none;
  white-space: nowrap;
}

:lang(ja) .steps span.wb.is-codeish {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.howto li::before,
.steps li::before {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--gold);
  content: counter(steps, decimal-leading-zero);
  font-family: var(--display-en);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: 50px;
}

.entry {
  display: grid;
  grid-template-rows: auto auto 1fr;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.entry:hover {
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(14, 27, 46, 0.1);
  transform: translateY(-5px);
}

.entry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.entry h3 {
  margin: 0;
  padding: 22px 20px 5px;
  font-size: 1.25rem;
}

.entry p {
  margin: 0;
  padding: 4px 20px 22px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

/* Data tables */
.table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 28px 0 46px;
  overflow-x: auto;
  border-top: 2px solid var(--turf);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  overscroll-behavior-inline: contain;
}

.table-wrap.tall {
  max-height: 70vh;
  overflow-y: auto;
}

table.data {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
}

:lang(ja) table.data span.wb {
  max-width: none;
  white-space: nowrap;
}

table.data th,
table.data td {
  padding: 13px 15px;
  border-right: 1px solid #edf1ef;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th:last-child,
table.data td:last-child {
  border-right: 0;
}

table.data thead th {
  position: relative;
  color: #26333a;
  background: var(--mist);
  font-weight: 500;
  text-align: left;
}

.tall table.data thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  box-shadow: 0 1px var(--line);
}

table.data tbody tr:nth-child(even) {
  background: #fbfcfb;
}

table.data tbody tr:hover {
  background: #f3f7f5;
}

table.data tbody td:first-child,
table.data tfoot td:first-child {
  font-weight: 500;
}

table.data tfoot {
  border-top: 2px solid var(--turf);
  background: var(--mist);
  font-weight: 500;
}

table.data :is(th, td):not(:first-child) {
  text-align: right;
}

table.data:is(.regions-table, .tracks-table, .acceptance, .owners, .owners-others) :is(th, td) {
  text-align: left;
}

.hname {
  font-family: var(--display-ja);
  font-size: 1rem;
  font-weight: 600;
}

.hname-en {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--display-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.sub {
  display: block;
  margin-top: 3px;
}

.unknown {
  color: #a82b3d;
  font-size: 0.75rem;
}

/* Racecourses, ownership, rankings and definitions */
.track-group + .track-group,
.prize-group + .prize-group,
.glossary-group + .glossary-group {
  margin-top: 82px;
}

.track-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}

.track-card {
  border-top: 2px solid var(--turf);
  background: var(--white);
}

.track-card figure {
  margin: 0 0 18px;
}

.track-card figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.track-card h4 {
  margin: 18px 0 13px;
  color: var(--ink);
  font-size: 1.23rem;
}

.track-card dl,
.form-card dl,
.basic-card dl,
.facts {
  display: grid;
  grid-template-columns: minmax(5.5em, 0.45fr) 1fr;
  gap: 7px 14px;
}

.track-card dt,
.form-card dt,
.basic-card dt,
.facts dt,
.meta dt,
.breakdown dt {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.65;
}

.track-card dd,
.form-card dd,
.basic-card dd,
.facts dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.track-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  font-size: 0.78rem;
}

.form-cards,
.basic-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 34px 0 50px;
}

.form-card,
.basic-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--turf);
}

.form-card h4,
.basic-card h3 {
  margin-top: 0;
}

.facts {
  grid-template-columns: repeat(2, minmax(7em, 0.45fr) 1fr);
  gap: 12px 20px;
  margin: 32px 0;
}

.split,
.three-amounts,
.numbers,
.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.split li,
.three-amounts li,
.numbers > div,
.results li {
  padding: 25px 22px;
  border-right: 1px solid var(--line);
}

.split li:last-child,
.three-amounts li:last-child,
.numbers > div:last-child,
.results li:last-child {
  border-right: 0;
}

.split-label,
.amt-label,
.amt-unit,
.result-label {
  display: block;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.55;
}

.three-amounts strong {
  margin: 8px 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.numbers {
  margin: 36px 0;
}

.numbers strong {
  color: var(--turf);
}

details {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  min-height: 52px;
  padding: 14px 48px 14px 8px;
  color: var(--turf);
  font-family: var(--display-ja);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 12px;
  height: 12px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

details[open] > summary::after {
  transform: translateY(-25%) rotate(225deg);
}

details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.meta,
.formulas,
.breakdown,
.examples {
  display: grid;
  gap: 1px;
  margin: 30px 0;
  background: var(--line);
}

.meta > div,
.formulas > div,
.breakdown > div,
.examples > div {
  display: grid;
  grid-template-columns: minmax(9em, 0.35fr) 1fr;
  gap: 20px;
  padding: 18px 20px;
  background: var(--white);
}

.meta dd,
.formulas dd,
.breakdown dd,
.examples dd {
  margin: 0;
}

.transfers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.transfer {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--turf);
}

.transfer h4 {
  margin-top: 0;
}

.transfer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tl {
  color: var(--muted);
  font-size: 0.68rem;
}

.runs {
  padding-left: 1em;
}

.r-date {
  color: var(--turf);
  font-family: var(--display-en);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.glossary {
  border-top: 2px solid var(--turf);
}

.gl-item {
  display: grid;
  grid-template-columns: minmax(11em, 0.34fr) 1fr;
  gap: 34px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.gl-item dt {
  font-weight: 500;
}

.gl-ja {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.gl-item dd {
  margin: 0;
}

.cost-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 40px 0;
}

.cost-cards > article {
  padding: 28px 26px;
  border-top: 3px solid var(--turf);
  background: var(--mist);
}

.cost-cards h3 {
  min-height: 2.8em;
  margin-top: 0;
  font-size: 1.3rem;
}

.cost-cards .big {
  margin: 22px 0 16px;
  color: var(--turf);
  font-size: clamp(2.2rem, 3.7vw, 3.3rem);
}

.cost-cards .big span {
  display: inline;
  color: var(--muted);
  font-family: var(--serif-ja);
  font-size: 0.78rem;
}

/* Simulator */
.presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 32px 0;
  padding: 20px;
  background: var(--mist);
}

.presets-label {
  margin-right: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.preset {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.73rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.preset:hover {
  border-color: var(--turf);
  color: var(--turf);
  transform: translateY(-1px);
}

.preset-jra {
  border-color: var(--turf);
  color: var(--white);
  background: var(--turf);
}

.preset-jra:hover {
  color: var(--white);
  background: #0a392b;
}

.sim-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 36px 0 50px;
}

.sim-form fieldset {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
}

.sim-form legend {
  padding: 0 10px;
  color: var(--turf);
  font-family: var(--display-ja);
  font-size: 1.12rem;
  font-weight: 600;
}

.sim-form label:not(.check) {
  display: grid;
  grid-template-columns: minmax(8em, 1fr) minmax(110px, 0.7fr);
  align-items: center;
  gap: 5px 16px;
  color: #303c42;
  font-size: 0.78rem;
}

.sim-form label small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.65rem;
}

.sim-form input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #bfc9c4;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--display-en), var(--serif-ja);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.sim-form input:focus {
  border-color: var(--turf);
}

.check {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--turf);
}

.sim-output {
  margin-top: 54px;
  padding: clamp(24px, 4vw, 48px);
  border-top: 5px solid var(--turf);
  background: var(--mist);
}

.results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white);
}

.results li:nth-child(2n) {
  border-right: 0;
}

.results li:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.results strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3.1vw, 2.7rem);
}

.results .result-main strong {
  color: var(--turf);
  font-size: clamp(2.1rem, 4.3vw, 3.7rem);
}

.breakdown {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.breakdown > div {
  grid-template-columns: 1fr auto;
}

.breakdown dd {
  font-family: var(--display-en), var(--serif-ja);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.months tr.is-negative td:last-child {
  color: var(--red);
  font-weight: 500;
}

.months tr.is-rest {
  opacity: 0.62;
}

/* Sources */
.credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
  padding: 0;
  list-style: none;
}

.credits li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.7;
}

.cr-memo {
  display: block;
  color: var(--muted);
  font-size: 0.67rem;
}

/* Footer and persistent return link */
.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--night);
}

.footer-inner {
  width: min(var(--content), calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
  padding: 64px 0 104px;
}

.footer-brand {
  color: var(--white);
  font-family: var(--display-en);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.footer-brand:hover {
  color: #dfc978;
}

.site-footer p {
  margin: 8px 0 22px;
  font-size: 0.78rem;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--display-en);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.portal-back {
  position: fixed;
  z-index: 20;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: var(--turf);
  box-shadow: 0 10px 26px rgba(14, 27, 46, 0.24);
  font-size: 0.76rem;
  text-decoration: none;
  transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
}

.portal-back:hover {
  color: var(--white);
  background: #0a392b;
}

.portal-back.is-away {
  opacity: 0;
  pointer-events: none;
  transform: translateY(140%);
}

/* Quiet entrance motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  .measures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .measure-rule {
    min-height: 0;
  }

  .track-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts {
    grid-template-columns: minmax(7em, 0.45fr) 1fr;
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 64px;
    --page-pad: 20px;
  }

  .site-brand-row,
  .site-nav {
    width: calc(100% - 32px);
  }

  .site-brand-row {
    min-height: 63px;
  }

  .site-kicker {
    display: none;
  }

  .site-title {
    font-size: 0.98rem;
  }

  .site-header.has-nav-control .nav-toggle {
    display: inline-flex;
  }

  .site-header.has-nav-control .site-nav {
    max-height: 0;
    padding-bottom: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 240ms ease, visibility 240ms ease, padding 240ms ease;
  }

  .site-header.has-nav-control.is-open .site-nav {
    max-height: 190px;
    padding-bottom: 10px;
    visibility: visible;
  }

  .site-nav a {
    min-height: 44px;
    padding-inline: 12px;
  }

  .site-nav .nav-regions::before {
    padding-left: 4px;
  }

  .hero:not(.hero-plain) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 0 20px 44px;
  }

  .hero:not(.hero-plain) > :not(.hero-photo) {
    padding-right: 0;
  }

  .hero-photo {
    order: -1;
    width: calc(100% + 40px);
    min-height: 0;
    margin-inline: -20px;
  }

  .hero-photo img {
    height: clamp(310px, 48svh, 520px);
  }

  .page-owner .hero-photo img {
    height: min(62svh, 620px);
  }

  .hero > .eyebrow {
    margin: 30px 0 10px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 4.2rem);
    line-height: 1.13;
  }

  .hero h1.is-tight {
    font-size: clamp(2.18rem, 9.5vw, 3.7rem);
  }

  .hero-sub {
    margin-top: 18px;
    font-size: 1.1rem;
  }

  .hero-lead {
    margin: 16px 0 28px;
    font-size: 0.9rem;
  }

  .hero-facts {
    margin-bottom: 0;
  }

  .hero-plain {
    min-height: 500px;
    padding: 64px 20px;
  }

  .hero-plain .hero-facts {
    margin-top: 40px;
  }

  .toc {
    top: var(--header-h);
    min-height: 48px;
    padding-inline: 7px;
  }

  .chapter {
    padding-block: 78px;
  }

  .chapter h2 {
    font-size: clamp(2rem, 8.8vw, 3.2rem);
  }

  .chapter h2.is-tight {
    font-size: clamp(1.8rem, 7.8vw, 2.8rem);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .gallery-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .entry-cards,
  .cost-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-index {
    column-count: 2;
  }

  .status-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .status-summary li:nth-child(3) {
    border-right: 0;
  }

  .status-summary li:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .form-cards,
  .basic-cards,
  .transfers,
  .sim-form {
    grid-template-columns: 1fr;
  }

  .cost-cards h3 {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .gallery-3,
  .entry-cards,
  .track-cards,
  .cost-cards,
  .credits {
    grid-template-columns: 1fr;
  }

  .measures {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .region-index {
    column-count: 1;
  }

  .three-amounts,
  .numbers,
  .split {
    grid-template-columns: 1fr;
  }

  .three-amounts li,
  .numbers > div,
  .split li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .three-amounts li:last-child,
  .numbers > div:last-child,
  .split li:last-child {
    border-bottom: 0;
  }

  .meta > div,
  .formulas > div,
  .examples > div,
  .gl-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .transfer-cols {
    grid-template-columns: 1fr;
  }

  .breakdown {
    grid-template-columns: 1fr;
  }

  .sim-output {
    margin-inline: -4px;
    padding: 20px 12px;
  }

  .sim-form fieldset {
    padding: 20px 16px;
  }
}

@media (max-width: 640px) {
  .wm-label {
    display: none;
  }

  .map-legend {
    gap: 8px 18px;
  }

  .status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-summary li,
  .status-summary li:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .status-summary li:nth-child(even) {
    border-right: 0;
  }

  .status-summary li:last-child {
    border-bottom: 0;
  }

  table.data {
    min-width: 620px;
    font-size: 0.78rem;
  }

  table.data th,
  table.data td {
    padding: 10px 11px;
  }

  .table-wrap::after {
    display: block;
    width: 100%;
    padding: 6px 10px;
    color: var(--muted);
    background: var(--white);
    content: "表は横に動かせます";
    font-size: 0.61rem;
    text-align: right;
  }

  .results {
    grid-template-columns: 1fr;
  }

  .results li,
  .results li:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .results li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .site-brand-row,
  .site-nav {
    width: calc(100% - 24px);
  }

  .hero-facts strong {
    font-size: 1.65rem;
  }

  .hero-facts span {
    font-size: 0.61rem;
  }

  .chapter {
    width: calc(100% - 32px);
  }

  .chapter-map {
    width: calc(100% - 20px);
  }

  .chapter h3 {
    margin-top: 54px;
  }

  .steps li {
    padding-left: 44px;
    font-size: 0.84rem;
  }

  .steps li::before {
    top: 18px;
    font-size: 2rem;
  }

  .page-jp .two-col .plain {
    font-size: 0.9rem;
  }

  .status-summary li {
    padding: 18px 12px;
  }

  .form-card,
  .basic-card,
  .transfer {
    padding: 20px 16px;
  }

  .facts,
  .track-card dl,
  .form-card dl,
  .basic-card dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facts dd,
  .track-card dd,
  .form-card dd,
  .basic-card dd {
    margin-bottom: 12px;
  }

  .sim-form label:not(.check) {
    grid-template-columns: 1fr;
  }

  .sim-form label small {
    grid-column: 1;
  }

  .presets {
    padding: 16px 12px;
  }

  .preset {
    flex: 1 1 145px;
  }

  .portal-back {
    bottom: 12px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    font-size: 11pt;
  }

  .site-header,
  .toc,
  .portal-back,
  .site-footer,
  .links,
  .presets {
    display: none !important;
  }

  .hero,
  .hero:not(.hero-plain),
  .hero-plain {
    display: block;
    min-height: 0;
    padding: 0;
    color: #000;
    background: #fff;
  }

  .hero-photo {
    margin: 16pt 0;
  }

  .hero-photo img {
    width: 100%;
    height: auto;
  }

  .hero-photo figcaption {
    position: static;
    color: #000;
    text-shadow: none;
  }

  .hero-plain h1,
  .hero-plain .hero-sub,
  .hero-plain .hero-lead {
    color: #000;
  }

  .chapter {
    width: 100%;
    padding: 28pt 0;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .table-wrap,
  .table-wrap.tall {
    max-height: none;
    overflow: visible;
  }

  table.data {
    min-width: 0;
    font-size: 8pt;
  }

  a {
    color: #000;
  }
}

/* 地域索引: 広い画面では2段 */
@media (min-width: 1024px) {
  .region-list { columns: 2; column-gap: 48px; }
  .region-item { break-inside: avoid; }
}

/* 長い文の表は左揃え */
table.data:is(.allowances, .prizes, .costs, .owner-summary, .fees, .world-rows) :is(th, td) { text-align: left; }
table.data.fees :is(th, td):nth-child(2) { text-align: right; white-space: nowrap; }
table.data.class-prizes :is(th, td):last-child { text-align: left; }

/* 外貨の横の円換算(目安) */
.yen { color: var(--muted); font-size: 0.82em; font-weight: 400; margin-left: 0.3em; white-space: nowrap; letter-spacing: 0; }
.hero-facts strong .yen, .big .yen, .measure strong .yen, .three-amounts strong .yen { display: block; margin: 2px 0 0; font-size: 0.42em; line-height: 1.6; }
td .yen, dd .yen, .split .yen { display: inline; }
.fx-note { margin: 10px 0 0; max-width: 40em; color: var(--muted); font-size: 0.78rem; line-height: 1.8; }
.fx-note a { color: inherit; }

/* 文節分けの包み(span.jw)は見た目を持たない: 「li span」「.big span」などの指定が数字に効いて小さくなるのを防ぐ */
span.jw:not(#_) { all: unset; display: inline; }
.cost-cards .big .yen, .hero-facts strong .yen { display: block; color: var(--muted); font-family: var(--serif-ja); font-size: 0.78rem; font-weight: 400; margin: 2px 0 0; }

/* 費用カードの数字: 「.big span」の指定が文節分けの包み(.jw/.wb)に効いて小さくならないように */
.cost-cards .big span.jw { all: unset; display: inline; }
.cost-cards .big span.wb { all: unset; display: inline-block; max-width: none; white-space: nowrap; }
.cost-cards .big > span:not(.jw):not(.wb):not(.yen) { display: block; margin-top: 6px; color: var(--muted); font-family: var(--serif-ja); font-size: 0.78rem; font-weight: 400; line-height: 1.6; }

/* 狭い画面では数字の枠を1列に(長い外貨の金額がはみ出さないように) */
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li:nth-child(odd) { padding-right: 0; border-right: 0; }
  .hero-facts li:nth-child(even) { padding-left: 0; }
  .hero-facts strong { overflow-wrap: anywhere; }
}

/* 費用カードの数字は3列に収まる大きさに */
.cost-cards .big { font-size: clamp(1.5rem, 2.1vw, 2.1rem); }
