:root {
  --sumi: #202326;
  --kinari: #f3ebdd;
  --shu: #a43b2f;
  --gold: #9a7740;
  --gray: #d8d2c7;
  --paper: #fffaf0;
  --content: 72rem;
  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sumi);
  background: var(--kinari);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  line-height: 1.9;
  letter-spacing: 0.035em;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--sumi);
  transform: translateY(-150%);
}

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


.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--header-height);
  color: var(--paper);
  background: rgb(32 35 38 / 96%);
  border-bottom: 1px solid rgb(243 235 221 / 20%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--content));
  min-height: var(--header-height);
  margin-inline: auto;
  gap: 1rem;
}

.brand {
  flex: none;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.16em;
}

.nav-toggle {
  display: none;
  padding: 0.55rem 0.75rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--gray);
  font: inherit;
}

.site-nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding-block: 0.55rem;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #f0c5bb;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(78svh, 48rem);
  overflow: hidden;
  color: var(--paper);
  background: var(--sumi);
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(32 35 38 / 8%) 0%, rgb(32 35 38 / 22%) 45%, rgb(32 35 38 / 78%) 100%),
    linear-gradient(90deg, rgb(32 35 38 / 38%), transparent 72%);
  content: "";
}

.hero--about::after {
  background:
    linear-gradient(180deg, rgb(32 35 38 / 18%) 0%, rgb(32 35 38 / 36%) 45%, rgb(32 35 38 / 88%) 100%),
    linear-gradient(90deg, rgb(32 35 38 / 78%) 0%, rgb(32 35 38 / 54%) 58%, rgb(32 35 38 / 22%) 100%);
}

.hero::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(11.111% - 1px),
    rgb(243 235 221 / 28%) calc(11.111% - 1px),
    rgb(243 235 221 / 28%) 11.111%
  );
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 3;
  align-self: end;
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero-inner h1,
.hero-copy,
.hero-inner > .eyebrow {
  text-shadow: 0 2px 12px rgb(0 0 0 / 78%);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #dbc298;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.45;
  letter-spacing: 0.09em;
  word-break: normal;
  line-break: strict;
}

h1 {
  max-width: 15em;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 30em;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  text-wrap: pretty;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.35rem;
  color: var(--paper);
  background: var(--shu);
  border: 1px solid transparent;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #7f2f26;
}

main section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.narrow {
  max-width: 48rem;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.lead {
  max-width: 43em;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.section-dark {
  color: var(--paper);
  background: var(--sumi);
}

.section-paper {
  background: var(--paper);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3rem);
}

.card,
.fact-note {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgb(255 250 240 / 76%);
  border-top: 3px solid var(--gold);
}

.section-dark .card {
  background: rgb(243 235 221 / 8%);
}

.town-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0 0;
  padding: 0;
  gap: 1rem;
  counter-reset: town;
  list-style: none;
}

.town-list li {
  min-height: 8rem;
  padding: 1.2rem;
  background: var(--paper);
  border-left: 4px solid var(--shu);
  font-size: 1.05rem;
  font-weight: 700;
  counter-increment: town;
}

.town-list li::before {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  content: "0" counter(town);
}

.image-placeholder {
  display: grid;
  min-height: 24rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgb(164 59 47 / 45%), transparent 55%),
    var(--sumi);
  border: 1px solid var(--gold);
  align-content: end;
}

.image-placeholder dl {
  display: grid;
  grid-template-columns: 8em 1fr;
  max-width: 55rem;
  margin: 1rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
}

.image-placeholder dt,
.image-placeholder dd {
  margin: 0;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgb(243 235 221 / 20%);
}

.image-placeholder dt {
  color: #dbc298;
  font-weight: 700;
}

.site-photo {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0.75rem 2rem rgb(32 35 38 / 16%);
}

.site-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.site-photo figcaption {
  padding: 1rem 1.1rem 1.2rem;
  color: var(--sumi);
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.75;
}

.site-photo figcaption strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.site-photo figcaption a {
  color: #6f2a22;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.image-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
}

.hero-image-note {
  max-width: min(44rem, 100%);
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: rgb(32 35 38 / 78%);
  border-left: 3px solid var(--gold);
  font-family: system-ui, sans-serif;
}

.hero-credit a {
  color: #fff3c9;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.hero-credit a:hover {
  color: #fff;
}

.hero-credit a:focus-visible {
  color: #fff;
  outline-color: #fff3c9;
}

.gallery-disclaimer {
  max-width: 52rem;
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  background: rgb(243 235 221 / 10%);
  border-left: 4px solid var(--gold);
  font-family: system-ui, sans-serif;
  font-size: 0.9375rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.photo-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.source-note {
  padding: 1rem 1.2rem;
  background: var(--gray);
  border-left: 4px solid var(--gold);
  font-size: 0.9rem;
}

.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  border-block: 1px solid var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.next-link span {
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}

.site-footer {
  padding-block: 3rem;
  color: var(--paper);
  background: #151719;
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
}

.footer-nav {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgb(243 235 221 / 20%);
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.footer-nav a {
  display: block;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgb(243 235 221 / 18%);
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: #f0c5bb;
  border-color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.3rem;
  font-size: 0.875rem;
  text-underline-offset: 0.25em;
}

.management-note {
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.footer-note {
  color: var(--gray);
}

@media (max-width: 64rem) {
  .js .nav-toggle {
    display: block;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.7rem 1rem 1rem;
    background: var(--sumi);
    border-top: 1px solid rgb(243 235 221 / 20%);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 1rem;
  }

  .site-nav a {
    padding-block: 0.7rem;
  }

  .footer-nav ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 48rem) {
  .grid,
  .footer-grid,
  .photo-stack {
    grid-template-columns: 1fr;
  }

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

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

  .image-placeholder {
    min-height: 28rem;
  }
}

@media (max-width: 30rem) {
  .site-nav ul,
  .footer-nav ul,
  .photo-gallery,
  .town-list {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .container,
  .header-inner {
    width: min(calc(100% - 1.5rem), var(--content));
  }

  .hero-inner {
    padding-block: 3.5rem;
  }

  h1 {
    max-width: none;
    font-size: 2rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-wrap: pretty;
  }

  h2 {
    font-size: 1.65rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-wrap: pretty;
  }

  .hero-image-note {
    margin-top: 1rem;
    padding: 0.65rem 0.75rem;
    line-height: 1.65;
  }

  .image-placeholder dl {
    grid-template-columns: 1fr;
  }

  .image-placeholder dd {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
