@charset "UTF-8";

:root {
  --ink: #161b1e;
  --muted: #5a6670;
  --blue: #0b3d5c;
  --navy: #0a1e2e;
  --red: #c1272d;
  --gold: #c9a227;
  --line: #dce3e8;
  --pale: #eaf2f7;
  --white: #ffffff;
  --serif-ja: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --display-ja: "Zen Old Mincho", "Yu Mincho", "YuMincho", serif;
  --display-en: "Cormorant Garamond", Georgia, serif;
  --page: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-offset: 142px;
  --shadow: 0 18px 45px rgba(10, 30, 46, 0.10);
}

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

html {
  color: var(--ink);
  background: var(--white);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 70px);
}

body {
  margin: 0;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #075c8b;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.cr {
  color: #73808a;
  font-size: 0.66rem;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--blue);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 18;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 18px rgba(10, 30, 46, 0.035);
  transition: box-shadow 220ms ease;
}

.site-header.is-compact {
  box-shadow: 0 6px 22px rgba(10, 30, 46, 0.08);
}

.site-header-inner {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.brand-row {
  display: flex;
  align-items: center;
  max-height: 69px;
  overflow: hidden;
  padding: 12px var(--gutter) 10px;
  transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease;
}

.is-compact .brand-row {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
}

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

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

.brand-ja {
  font-family: var(--display-ja);
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.3;
}

.brand-en {
  color: var(--muted);
  font-family: var(--display-en);
  font-size: 0.92rem;
  font-style: italic;
  letter-spacing: 0.13em;
}

.site-nav {
  border-top: 1px solid #edf1f3;
  padding: 4px var(--gutter) 5px;
}

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

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

.site-nav .nav-main {
  padding-bottom: 2px;
}

.site-nav li {
  flex: 0 0 auto;
}

.site-nav a {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 6px 10px;
  border-radius: 3px;
  color: #34424b;
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--pale);
  color: var(--blue);
}

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

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 9px;
  bottom: 2px;
  left: 9px;
  height: 2px;
  background: var(--red);
  content: "";
}

.page {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  grid-template-areas:
    "eyebrow photo"
    "title photo"
    "sub photo"
    "lead photo"
    "facts photo";
  grid-template-rows: auto auto auto 1fr auto;
  min-height: min(760px, calc(100svh - 80px));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hero > .eyebrow {
  grid-area: eyebrow;
  align-self: end;
  margin: 0;
  padding: clamp(44px, 7vw, 92px) clamp(26px, 4vw, 64px) 12px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
}

.hero > h1 {
  grid-area: title;
  align-self: start;
  max-width: 7em;
  margin: 0;
  padding: 0 clamp(26px, 4vw, 64px) 20px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  color: var(--ink);
  font-family: var(--display-ja);
  font-size: clamp(3.2rem, 5.3vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.12;
}

.hero-home > h1 {
  max-width: 7em;
  font-size: clamp(3.05rem, 5vw, 5.65rem);
}

.hero-sub {
  grid-area: sub;
  max-width: 30em;
  margin: 0;
  padding: 0 clamp(26px, 4vw, 64px) 18px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  color: var(--blue);
  font-family: var(--display-ja);
  font-size: clamp(1.12rem, 1.65vw, 1.55rem);
  font-weight: 600;
  line-height: 1.75;
}

.hero-lead {
  grid-area: lead;
  align-self: start;
  max-width: 42em;
  margin: 0;
  padding: 0 clamp(26px, 4vw, 64px) 30px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  color: #39454c;
  font-size: 0.9rem;
  line-height: 2;
}

.hero-photo {
  grid-area: photo;
  position: relative;
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy);
}

.hero-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(10, 30, 46, 0.62));
  content: "";
  pointer-events: none;
}

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

.hero-photo figcaption {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: 20px;
  left: clamp(18px, 3vw, 42px);
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.55);
}

.hero-photo .cr {
  color: rgba(255, 255, 255, 0.74);
}

.hero-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  gap: 0;
  margin: 0 clamp(26px, 4vw, 64px) 28px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts li {
  min-width: 0;
  padding: 13px 14px 10px 0;
}

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

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

.hero-facts li > strong {
  display: block;
  color: var(--gold);
  font-family: var(--display-en);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-facts li > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.55;
}

.hero-plain {
  display: block;
  min-height: 0;
  padding: clamp(70px, 11vw, 150px) var(--gutter) clamp(55px, 8vw, 110px);
}

.hero-plain > .eyebrow,
.hero-plain > h1,
.hero-plain > .hero-sub,
.hero-plain > .hero-lead {
  max-width: min(100%, 980px);
  margin-inline: auto;
  padding: 0;
}

.hero-plain > h1 {
  margin-top: 0.25em;
  margin-bottom: 0.3em;
}

.hero-plain > .hero-sub {
  margin-bottom: 1em;
}

.eyebrow {
  color: var(--blue);
  font-family: var(--display-en);
  font-size: 0.83rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.toc {
  position: sticky;
  top: var(--header-offset);
  z-index: 12;
  display: flex;
  gap: 0.2rem;
  width: 100%;
  min-height: 54px;
  align-items: center;
  padding: 5px max(var(--gutter), calc((100vw - var(--page)) / 2));
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(10, 30, 46, 0.035);
  scrollbar-width: none;
  transition: top 180ms ease;
}

.toc a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 13px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
}

.toc a:hover,
.toc a.is-current {
  border-bottom-color: var(--gold);
  color: var(--blue);
}

.chapter {
  width: min(calc(100% - (2 * var(--gutter))), var(--page));
  margin-inline: auto;
  padding-block: clamp(76px, 9vw, 132px);
  scroll-margin-top: calc(var(--header-offset) + 62px);
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
}

.chapter > .eyebrow {
  margin: 0 0 0.65rem;
}

.chapter > h2 {
  max-width: 12em;
  margin: 0 0 0.7em;
  color: var(--ink);
  font-family: var(--display-ja);
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.18;
}

.chapter > .lead {
  max-width: 42em;
  margin: 0 0 clamp(38px, 5vw, 68px);
  color: var(--blue);
  font-family: var(--display-ja);
  font-size: clamp(1.14rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.85;
}

.chapter > p:not(.eyebrow):not(.lead):not(.note):not(.sources):not(.links) {
  max-width: 48em;
}

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

.chapter h3 {
  margin: clamp(46px, 6vw, 78px) 0 1rem;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.chapter h4 {
  margin: 1.2rem 0 0.65rem;
  font-size: 1.2rem;
}

.chapter > figure {
  margin-top: clamp(40px, 6vw, 76px);
}

.chapter > figure img {
  width: 100%;
}

.chapter-map {
  position: relative;
}

.chapter-map::before {
  position: absolute;
  z-index: -1;
  inset: 34px calc(50% - 50vw);
  background: linear-gradient(180deg, rgba(234, 242, 247, 0.72), rgba(234, 242, 247, 0.28));
  content: "";
}

.chapter-sources {
  padding-bottom: clamp(90px, 11vw, 160px);
}

.note {
  max-width: 58em;
  margin-block: 1.8rem;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--pale);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.sources {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.85;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(40px, 6vw, 72px);
}

.btn {
  display: inline-grid;
  min-height: 46px;
  place-items: center;
  padding: 10px 21px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

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

.plain,
.refs,
.credits {
  margin: 1.5rem 0;
  padding-left: 1.35em;
}

.plain li,
.refs li,
.credits li {
  margin-block: 0.75rem;
  padding-left: 0.3em;
}

.refs,
.credits {
  color: #414d54;
  font-size: 0.82rem;
  line-height: 1.9;
}

.credits {
  columns: 2;
  column-gap: 3rem;
}

.credits li {
  break-inside: avoid;
}

.cr-memo,
.sub,
.yen {
  color: var(--muted);
  font-size: 0.72em;
  line-height: 1.6;
}

.yen {
  white-space: nowrap;
}

.two-col,
.gallery-3 {
  display: grid;
  gap: clamp(22px, 3vw, 42px);
  margin-top: clamp(40px, 6vw, 72px);
}

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

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

.two-col figure,
.gallery-3 figure,
.park-cards figure,
.heritage-card figure {
  min-width: 0;
}

.two-col img,
.gallery-3 img,
.park-cards img,
.heritage-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.measures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.measure {
  min-height: 230px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--white);
}

.measure h3 {
  margin: 0 0 1.5rem;
  color: var(--blue);
  font-size: 1rem;
}

.measure-fact {
  margin: 0;
  font-family: var(--display-ja);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1.5;
}

.measure-note {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.7;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}

.entry {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.entry:hover {
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

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

.entry h3 {
  margin: 0;
  padding: 20px 20px 6px;
  color: var(--blue);
  font-size: 1.3rem;
}

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

.numbers,
.hero-facts {
  list-style: none;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  padding: 1px;
  background: var(--line);
}

.numbers li {
  min-height: 150px;
  padding: 24px;
  background: var(--white);
}

.numbers li > strong {
  display: block;
  color: var(--gold);
  font-family: var(--display-en);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.numbers li > span {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.7;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  min-width: 0;
  padding: 20px 22px 22px 0;
  border-bottom: 1px solid var(--line);
}

.facts > div:not(:nth-child(3n + 1)) {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.facts dt,
.heritage-card dt,
.producer-cards dt,
.event-cards dt,
.route-cards dt,
.park-cards dt {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.facts dd {
  margin: 0.45rem 0 0;
  font-family: var(--display-ja);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.7;
}

.page-transport .facts dd {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.name-en {
  display: block;
  margin-top: 0.14em;
  color: var(--muted);
  font-family: var(--display-en);
  font-size: 0.78em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

.howto,
.steps {
  counter-reset: editorial-step;
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
}

.howto li,
.steps li {
  position: relative;
  min-height: 106px;
  margin: 0;
  padding: 24px 0 24px clamp(72px, 9vw, 116px);
  border-top: 1px solid var(--line);
  counter-increment: editorial-step;
}

.howto li:last-child,
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

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

.howto li > strong,
.steps li > strong {
  color: var(--blue);
  font-family: var(--display-ja);
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0 3.5rem;
  overflow-x: auto;
  border-top: 2px solid var(--blue);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.table-wrap.tall {
  max-height: 70vh;
  overflow: auto;
  overscroll-behavior: contain;
}

table.data {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.79rem;
  line-height: 1.7;
}

table.data caption {
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: left;
}

table.data th,
table.data td {
  min-width: 7.5em;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #b9c8d2;
  background: var(--pale);
  color: var(--blue);
  font-family: var(--display-ja);
  font-size: 0.75rem;
  font-weight: 600;
}

table.data tbody th {
  color: var(--ink);
  font-weight: 500;
}

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

table.data tfoot th,
table.data tfoot td {
  border-top: 2px solid var(--blue);
  background: #f8fbfc;
  font-weight: 500;
}

table.data .num {
  font-family: var(--display-en);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

table.climate,
table.census,
table.dwellings,
table.housing,
table.rent,
table.fx {
  font-variant-numeric: tabular-nums;
}

table.climate {
  min-width: 1080px;
}

table.wineries,
table.restaurants,
table.beaches,
table.walks,
table.wildlife,
table.venues,
table.other-transport {
  min-width: 980px;
}

.status,
.unknown,
[class^="kind-"],
[class*=" kind-"] {
  color: #8d252a;
  font-size: 0.7em;
  font-weight: 500;
}

.status,
[class^="kind-"],
[class*=" kind-"] {
  display: inline-block;
  margin-block: 0.15em;
  padding: 0.2em 0.55em;
  border: 1px solid rgba(193, 39, 45, 0.28);
  border-radius: 999px;
  background: rgba(193, 39, 45, 0.055);
  line-height: 1.4;
}

tr.is-closed,
tr.is-unverified,
tr.is-cellar_door_closed {
  color: #707a80;
  opacity: 0.78;
}

.area-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.8rem !important;
  padding-top: 1rem;
  padding-right: 2.8rem;
  border-top: 1px solid var(--line);
}

.area-head > .name-en {
  display: inline;
  margin: 0;
}

.area-head > .count {
  position: absolute;
  top: calc(1rem - 1px);
  right: 0;
  color: var(--gold);
  font-family: var(--display-en);
  font-size: 1em;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  transform: scale(0.62);
  transform-origin: left top;
}

.bars {
  margin: 2.4rem 0;
  padding: 0;
  list-style: none;
}

.bars li {
  display: grid;
  grid-template-columns: minmax(8em, 0.8fr) minmax(120px, 2fr) minmax(5em, auto);
  gap: 1rem;
  align-items: center;
  min-height: 46px;
  padding-block: 8px;
}

.bars li > .bar-name {
  color: #35434b;
  font-size: 0.79rem;
}

.bars li > .bar-track {
  height: 9px;
  overflow: hidden;
  background: var(--pale);
}

.bars .bar-track > .bar-fill {
  display: block;
  height: 100%;
  background: var(--blue);
}

.variety-bars .bar-track > .bar-fill {
  background: #6b2740;
}

.bars li > .bar-val {
  color: var(--blue);
  font-family: var(--display-en);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.timeline {
  position: relative;
  margin: 3rem 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: clamp(154px, 18vw, 220px);
  width: 1px;
  background: var(--line);
  content: "";
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(130px, 16vw, 192px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 70px);
  padding: 12px 0 42px;
}

.tl-item::before {
  position: absolute;
  top: 23px;
  left: clamp(149px, calc(18vw - 5px), 215px);
  width: 11px;
  height: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  content: "";
}

.tl-year {
  margin: 0;
  color: var(--gold);
  font-family: var(--display-en);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

.tl-title {
  margin: 0 0 0.55rem !important;
  font-size: clamp(1.25rem, 2vw, 1.7rem) !important;
}

.tl-body {
  max-width: 48em;
  margin: 0;
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.tl-meta > .tl-tag {
  display: inline-block;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: var(--pale);
  color: var(--blue);
}

.tag-maori::before,
.tag-community::before { background: #1b1f24; }
.tag-war::before { background: #c1272d; }
.tag-wine::before { background: #6b2740; }
.tag-nature::before { background: #2e7d4f; }
.tag-art::before { background: #9a5b2b; }
.tag-transport::before { background: #0b3d5c; }

.heritage-cards,
.producer-cards,
.park-cards,
.project-cards,
.event-cards,
.route-cards,
.service-cards,
.subregions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
  margin: 2.4rem 0;
}

.heritage-card,
.producer-cards > article,
.park-cards > article,
.project-cards > article,
.event-cards > article,
.route-cards > article,
.service-cards > article,
.subregions > article,
.market,
.network {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--white);
}

.heritage-card {
  padding: 0 0 26px;
  overflow: hidden;
}

.heritage-card > h4,
.heritage-card > dl,
.heritage-card > p {
  margin-right: 24px;
  margin-left: 24px;
}

.heritage-card h4,
.producer-cards h4,
.project-cards h4,
.service-cards h4,
.subregions h3,
.event-cards h3,
.route-cards h3,
.park-cards h3 {
  margin-top: 0;
}

.heritage-card dl,
.producer-cards dl,
.park-cards dl,
.event-cards dl,
.route-cards dl {
  margin: 1rem 0;
}

.heritage-card dl > div,
.producer-cards dl > div,
.park-cards dl > div,
.event-cards dl > div,
.route-cards dl > div {
  display: grid;
  grid-template-columns: minmax(5.5em, 0.4fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 7px;
  border-top: 1px solid var(--line);
}

.heritage-card dd,
.producer-cards dd,
.park-cards dd,
.event-cards dd,
.route-cards dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.park-cards > article {
  padding: 0 0 28px;
  overflow: hidden;
}

.park-cards article > h3,
.park-cards article > dl,
.park-cards article > p {
  margin-right: 26px;
  margin-left: 26px;
}

.proj-year,
.event-when {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-family: var(--display-en);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.12em;
}

.proj-result {
  padding-left: 0;
  color: var(--gold);
  font-family: var(--display-en);
  font-size: 1.5rem;
  font-weight: 600;
  list-style: none;
}

.timeline-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.timeline-mini li {
  min-height: 150px;
  padding: 22px;
  background: var(--white);
}

.timeline-mini li > strong {
  display: block;
  color: var(--gold);
  font-family: var(--display-en);
  font-size: 2.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.timeline-mini li > span {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.7;
}

.village-list {
  position: relative;
  margin: 3rem 0;
}

.village-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px;
  width: 1px;
  background: var(--line);
  content: "";
}

.village {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1fr);
  gap: 0 2.5rem;
  margin-left: 72px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.village::before {
  position: absolute;
  top: 34px;
  left: -50px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  content: "";
}

.village-no {
  position: absolute;
  top: 24px;
  left: -95px;
  width: 32px;
  margin: 0;
  color: var(--gold);
  font-family: var(--display-en);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.village h3 {
  grid-column: 1;
  margin: 0;
}

.village-pop {
  grid-column: 1;
  margin: 1rem 0 0;
}

.village-pop > strong {
  display: block;
  color: var(--gold);
  font-family: var(--display-en);
  font-size: 2.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.village-pop > .sub {
  display: block;
  margin-top: 0.5rem;
}

.village > p:not(.village-no):not(.village-pop):not(.village-note):not(.sources),
.village > .facilities,
.village > .village-note,
.village > .sources {
  grid-column: 2;
}

.village > p:not(.village-no):not(.village-pop) {
  margin-top: 0;
}

.facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
  padding: 0;
  list-style: none;
}

.facilities li {
  padding: 0.25em 0.65em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.67rem;
}

.village-note {
  color: var(--muted);
  font-size: 0.71rem;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.cal-month {
  min-height: 270px;
  padding: 24px;
  background: var(--white);
}

.cal-name {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  margin: 0 0 1rem;
  color: var(--blue);
}

.cal-name > strong {
  color: var(--gold);
  font-family: var(--display-en);
  font-size: 3.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.cal-name > span {
  font-size: 0.7rem;
}

.cal-items,
.cal-season {
  margin: 0;
  padding-left: 1.1em;
}

.cal-items {
  font-size: 0.78rem;
  line-height: 1.8;
}

.cal-season {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.7;
}

.market,
.network {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--blue);
  background: linear-gradient(135deg, rgba(234, 242, 247, 0.7), var(--white) 58%);
}

.network::after {
  position: absolute;
  right: -32px;
  bottom: -62px;
  color: rgba(201, 162, 39, 0.14);
  content: "100";
  font-family: var(--display-en);
  font-size: 11rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.islandmap,
.gulfmap {
  overflow: visible;
  margin-block: clamp(30px, 4vw, 56px);
  border: 1px solid #d8e3e9;
  background: var(--pale);
}

.im-sea,
.gm-sea { fill: #eaf2f7; }
.im-land,
.gm-land { fill: #f6f4ef; stroke: #8a96a0; stroke-width: 0.8px; }
.gm-island { fill: #f3e3b4; stroke: #9a7a1c; stroke-width: 1.4px; }
.gm-route { fill: none; stroke: #0b3d5c; stroke-width: 2px; stroke-dasharray: 8 7; }
.gm-pt { fill: #0b3d5c; stroke: #ffffff; stroke-width: 1.5px; }
.im-pt circle { stroke: #ffffff; stroke-width: 1.5px; transform-box: fill-box; transform-origin: center; transition: transform 150ms ease; }
.im-town circle { fill: #1b1f24; }
.im-beach circle { fill: #c9a227; }
.im-winery circle { fill: #6b2740; }
.im-park circle { fill: #2e7d4f; }
.im-heritage circle { fill: #9a5b2b; }
.im-ferry circle { fill: #0b3d5c; }
.im-walk circle { fill: #4a90c2; }
.islandmap a:hover .im-pt circle,
.islandmap a:focus .im-pt circle { transform: scale(1.35); }
.im-label,
.gm-label {
  fill: #161b1e;
  stroke: #ffffff;
  stroke-width: 3px;
  paint-order: stroke;
  font-family: var(--serif-ja);
  font-size: 14px;
}
.gm-label-label { fill: #0b3d5c; stroke: #ffffff; stroke-width: 4px; paint-order: stroke; font-family: var(--display-ja); font-size: 25px; font-weight: 600; }
.gm-label-island { fill: #66727a; font-family: var(--display-en); font-size: 15px; font-style: italic; }
.im-scale,
.im-north,
.gm-scale { fill: #5a6670; stroke: #5a6670; font-family: var(--display-en); font-size: 12px; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.35rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.map-legend li::before {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 1px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px currentColor;
  background: currentColor;
  content: "";
}

.lg-town { color: #1b1f24 !important; }
.lg-beach { color: #9a7a1c !important; }
.lg-winery { color: #6b2740 !important; }
.lg-park { color: #2e7d4f !important; }
.lg-heritage { color: #9a5b2b !important; }
.lg-ferry { color: #0b3d5c !important; }
.lg-walk { color: #4a90c2 !important; }

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
  content: "";
}

.footer-inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--page));
  margin-inline: auto;
  padding: clamp(58px, 8vw, 94px) 0 96px;
}

.footer-brand {
  margin: 0;
}

.footer-brand a {
  color: var(--white);
  font-family: var(--display-en);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-line {
  margin: 0.4rem 0 2.5rem;
  font-size: 0.84rem;
}

.fx-note,
.copyright {
  max-width: 70em;
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.67rem;
  line-height: 1.7;
}

.portal-back {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 20;
  display: inline-grid;
  height: 46px;
  min-width: 176px;
  place-items: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(10, 30, 46, 0.27);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
}

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

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

.js.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (max-width: 1199px) {
  .entry-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .heritage-cards,
  .producer-cards,
  .park-cards,
  .project-cards,
  .event-cards,
  .route-cards,
  .service-cards,
  .subregions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root { --header-offset: 140px; }
  .site-brand { gap: 0.7rem; }
  .brand-en { font-size: 0.76rem; }
  .site-nav { padding-inline: 14px; }
  .site-nav a { padding-inline: 9px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "photo"
      "eyebrow"
      "title"
      "sub"
      "lead"
      "facts";
    grid-template-rows: auto;
    min-height: 0;
  }
  .hero-photo {
    height: auto;
    min-height: 0;
  }
  .hero-photo img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .hero > .eyebrow {
    padding: 44px var(--gutter) 10px;
  }
  .hero > h1 {
    padding: 0 var(--gutter) 18px;
    font-size: clamp(3rem, 10vw, 5rem);
  }
  .hero-home > h1 { font-size: clamp(2.8rem, 9.5vw, 4.8rem); }
  .hero-sub,
  .hero-lead {
    max-width: 46em;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }
  .hero-facts {
    margin: 8px var(--gutter) 36px;
  }
  .hero-plain { padding-inline: var(--gutter); }
  .two-col,
  .gallery-3 { grid-template-columns: minmax(0, 1fr); }
  .gallery-3 { gap: 28px; }
  .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .facts > div:nth-child(odd) { padding-right: 20px; }
  .timeline-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credits { columns: 1; }
}

@media (max-width: 639px) {
  :root {
    --gutter: 20px;
    --header-offset: 136px;
  }
  body { font-size: 15px; }
  .brand-row { padding: 10px 16px 8px; }
  .site-brand {
    display: block;
    min-height: 46px;
  }
  .brand-ja,
  .brand-en { display: block; }
  .brand-ja { font-size: 1.12rem; }
  .brand-en { margin-top: 2px; font-size: 0.72rem; }
  .site-nav { padding: 3px 10px 4px; }
  .site-nav a { min-height: 44px; font-size: 0.69rem; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-photo figcaption { right: 16px; bottom: 14px; left: 16px; font-size: 0.62rem; }
  .hero > .eyebrow { padding-top: 38px; }
  .hero > h1 { max-width: none; font-size: clamp(2.55rem, 12.8vw, 4rem); line-height: 1.16; }
  .hero-home > h1 { font-size: clamp(2.35rem, 11.2vw, 3.5rem); }
  .hero-sub { font-size: 1.04rem; }
  .hero-lead { font-size: 0.84rem; line-height: 1.95; }
  .hero-facts li { padding-right: 10px; }
  .hero-facts li:nth-child(even) { padding-left: 10px; }
  .hero-facts li > strong { font-size: clamp(1.25rem, 6vw, 1.8rem); }
  .toc { min-height: 50px; padding-inline: 8px; }
  .toc a { min-height: 44px; padding-inline: 11px; font-size: 0.7rem; }
  .chapter { padding-block: 68px; }
  .chapter > h2 { max-width: none; font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .chapter > .lead { font-size: 1.05rem; }
  .chapter h3 { font-size: 1.35rem; }
  .chapter-map::before { inset-right: -20px; inset-left: -20px; }
  .measures,
  .entry-cards,
  .heritage-cards,
  .producer-cards,
  .park-cards,
  .project-cards,
  .event-cards,
  .route-cards,
  .service-cards,
  .subregions,
  .calendar { grid-template-columns: minmax(0, 1fr); }
  .measure { min-height: 0; }
  .entry h3 { padding-top: 17px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers li { min-height: 125px; padding: 18px; }
  .numbers li > strong { font-size: 2rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div,
  .facts > div:nth-child(even),
  .facts > div:nth-child(odd) { padding: 17px 0; border-right: 0; border-left: 0; }
  .links { display: grid; grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .table-wrap { margin-right: 0; margin-left: 0; }
  table.data { font-size: 0.74rem; }
  table.data th,
  table.data td { min-width: 7em; padding: 11px 10px; }
  .bars li { grid-template-columns: minmax(6em, 0.9fr) minmax(90px, 1.6fr); gap: 0.7rem; }
  .bars li > .bar-val { grid-column: 2; font-size: 0.9rem; }
  .timeline::before { left: 12px; }
  .tl-item { display: block; padding: 4px 0 42px 40px; }
  .tl-item::before { top: 12px; left: 7px; }
  .tl-year { margin-bottom: 0.75rem; text-align: left; }
  .village-list::before { left: 8px; }
  .village { display: block; margin-left: 34px; padding-left: 12px; }
  .village::before { left: -31px; }
  .village-no { top: 28px; left: auto; right: 0; }
  .village-pop { margin-bottom: 1.2rem; }
  .timeline-mini { grid-template-columns: minmax(0, 1fr); }
  .timeline-mini li { min-height: 0; }
  .calendar { gap: 12px; padding: 0; background: transparent; }
  .cal-month { min-height: 0; border: 1px solid var(--line); }
  .map-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .map-legend li { min-width: 0; }
  .im-label { display: none; }
  .islandmap,
  .gulfmap { border-right: 0; border-left: 0; }
  .portal-back { left: 10px; min-width: 164px; padding-inline: 16px; }
}

@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;
  }
  .js.reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .toc,
  .portal-back,
  .skip-link { display: none !important; }
  body { color: #000; font-size: 10pt; }
  .hero { display: block; min-height: 0; }
  .hero > *,
  .hero-sub,
  .hero-lead { padding-right: 0; padding-left: 0; }
  .hero-photo { min-height: 0; }
  .hero-photo img { height: auto; }
  .chapter { width: 100%; padding-block: 28px; }
  .chapter-map::before { display: none; }
  .table-wrap,
  .table-wrap.tall { max-height: none; overflow: visible; }
  table.data { min-width: 0; font-size: 7pt; }
  .site-footer { background: #fff; color: #000; }
  .footer-inner { padding: 30px 0; }
  a { color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
