:root {
  --ink: #172b3a;
  --ink-soft: #4a5b64;
  --bridge-blue: #2d6f9f;
  --sumida-teal: #3f7f86;
  --steel-gray: #718087;
  --steel-pale: #dfe5e6;
  --deep-indigo: #173b59;
  --festival-vermilion: #b74636;
  --cream: #f5f1e7;
  --white: #fffdf7;
  --line: rgba(23, 59, 89, 0.17);
  --shadow: 0 18px 50px rgba(23, 59, 89, 0.12);
  --nav-h: 4.5rem;
  --content: 70rem;
  --measure: 43rem;
  --font-display: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Yu Gothic UI", "Hiragino Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.8;
  letter-spacing: 0.035em;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--bridge-blue);
}

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

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-decoration: none;
}

.brand span {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.nav-toggle {
  display: none;
  min-width: 3.6rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--bridge-blue);
  box-shadow: inset 0 -2px 0 var(--bridge-blue);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(40rem, 86vh, 60rem);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--ink);
  box-shadow: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 9;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: end;
  max-width: 58rem;
  margin: 0;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 8vw, 8rem);
  border-radius: 0;
  color: var(--white);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 2px 20px rgba(3, 18, 28, 0.72);
  backdrop-filter: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--bridge-blue);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9fd5ec;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-break: strict;
  word-break: auto-phrase;
}

.home .hero h1 {
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 1;
  letter-spacing: 0.18em;
}

.hero__lead {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero .hero__lead {
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--bridge-blue);
  border-radius: 999px;
  color: var(--white);
  background: var(--bridge-blue);
  font-weight: 700;
  text-decoration: none;
}

.button--ghost {
  color: var(--bridge-blue);
  background: transparent;
}

.hero .button {
  border-color: #b9e2f2;
  color: var(--deep-indigo);
  background: #e6f5fb;
}

.hero .button--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 22, 33, 0.76) 0%, rgba(4, 22, 33, 0.46) 38%, rgba(4, 22, 33, 0.06) 72%),
    linear-gradient(0deg, rgba(4, 22, 33, 0.7) 0%, rgba(4, 22, 33, 0.12) 52%, rgba(4, 22, 33, 0.08) 100%);
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero__media--art img {
  object-position: center 46%;
}

.hero__media--logistics img {
  object-position: center 58%;
}

.hero__media--faith img {
  object-position: center 42%;
}

.hero__media--map img {
  object-position: center;
  filter: contrast(1.04);
}

.hero__media--water img {
  object-position: center 48%;
}

.hero__media--walk img {
  object-position: center 54%;
}

.hero__credit {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  max-width: min(34rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(4, 20, 31, 0.76);
  font-size: 0.875rem;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

.hero__credit a {
  color: var(--white);
}

.section {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--tint {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - var(--content)) / 2));
  background: var(--steel-pale);
}

.section__head {
  max-width: var(--measure);
  margin-bottom: 2.2rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.section__lead {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.photo-slot {
  position: relative;
  min-height: 20rem;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 2px dashed rgba(45, 111, 159, 0.42);
  border-radius: 1.2rem;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(45, 111, 159, 0.1), rgba(63, 127, 134, 0.09)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(113, 128, 135, 0.08) 18px 19px);
}

.photo-slot::before {
  content: "PHOTO PLAN";
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  color: var(--bridge-blue);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.photo-slot--hero {
  grid-column: 6 / -1;
  grid-row: 1;
  min-height: clamp(31rem, 56vw, 43rem);
}

.photo-slot--wide {
  min-height: 26rem;
}

.photo-slot--portrait {
  min-height: 32rem;
}

.photo-slot--map {
  min-height: 30rem;
  background:
    linear-gradient(rgba(255, 254, 250, 0.55), rgba(255, 254, 250, 0.55)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(113, 128, 135, 0.14) 34px 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(45, 111, 159, 0.13) 34px 35px);
}

.content-photo {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 1.2rem;
  background: var(--deep-indigo);
  box-shadow: 0 20px 50px rgba(23, 59, 89, 0.16);
}

.content-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  flex: 1 1 auto;
  object-fit: cover;
}

.content-photo--wide img {
  min-height: 26rem;
  aspect-ratio: 16 / 10;
}

.content-photo--portrait img {
  min-height: 32rem;
  aspect-ratio: 4 / 5;
}

.content-photo--panorama {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.content-photo--panorama img {
  min-height: 24rem;
  aspect-ratio: 16 / 8;
}

.content-photo figcaption {
  padding: 0.9rem 1rem 1rem;
  color: rgba(255, 255, 255, 0.86);
  background: var(--deep-indigo);
  font-size: 0.76rem;
  line-height: 1.65;
}

.content-photo figcaption a {
  color: var(--white);
  text-underline-offset: 0.18em;
}

.image-label {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.13rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 0.08em;
}

.image-label--ai {
  border-color: rgba(255, 218, 140, 0.78);
  color: #ffdd99;
}

.photo-spec {
  width: min(100%, 34rem);
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 10px 30px rgba(23, 59, 89, 0.09);
}

.photo-spec__title {
  margin: 0;
  color: var(--deep-indigo);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-break: strict;
  text-wrap: balance;
  word-break: auto-phrase;
}

.photo-spec__purpose {
  margin: 0.55rem 0 1rem;
  color: var(--ink-soft);
}

.photo-spec dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.45rem 0.8rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.photo-spec dt {
  color: var(--bridge-blue);
  font-weight: 800;
}

.photo-spec dd {
  margin: 0;
}

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

.card {
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--white);
}

.card__num {
  color: var(--festival-vermilion);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.card h3 {
  margin: 0.55rem 0;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--bridge-blue);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-bottom: 1rem;
}

.prose h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.35rem;
}

.prose p {
  color: var(--ink-soft);
}

.fact-note {
  margin-top: 1.3rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--festival-vermilion);
  background: rgba(183, 70, 54, 0.08);
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 52rem;
  margin-top: 2rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.timeline__year {
  color: var(--bridge-blue);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.timeline__item h3,
.timeline__item p {
  margin: 0;
}

.timeline__item p {
  color: var(--ink-soft);
}

.era-label {
  display: inline-block;
  margin: 0 0 0.35rem;
  color: var(--festival-vermilion) !important;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.era-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 1.2rem;
  background: var(--line);
}

.era-flow article {
  min-width: 0;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  background: var(--white);
}

.era-flow span {
  color: var(--festival-vermilion);
  font-size: 0.875rem;
  font-weight: 800;
}

.era-flow h3 {
  margin: 0.55rem 0;
  font-size: 1.25rem;
}

.era-flow p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.route {
  display: grid;
  counter-reset: route;
  gap: 1rem;
  margin-top: 2rem;
}

.route__item {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.5rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 59, 89, 0.08);
}

.route__item::before {
  counter-increment: route;
  content: counter(route, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  color: var(--bridge-blue);
  font-weight: 900;
}

.route__item h3,
.route__item p {
  margin: 0;
}

.route__item p {
  color: var(--ink-soft);
}

.next-page {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.4rem;
  color: var(--white);
  background: var(--deep-indigo);
}

.next-page p {
  margin: 0 0 0.5rem;
  opacity: 0.75;
}

.next-page a {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-weight: 700;
  line-break: strict;
  text-decoration: none;
  text-wrap: balance;
  word-break: auto-phrase;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--deep-indigo);
}

.site-footer__main {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.site-footer__brand {
  margin: 0 0 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.site-footer__brand small {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.site-footer__story {
  max-width: 25rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.site-footer__nav-title {
  margin: 0 0 1rem;
  color: #c7d0d3;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__nav ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 2rem;
  list-style: none;
}

.site-footer__nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--white);
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__credits {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(45, 111, 159, 0.28);
}

.site-footer__credits-inner {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credit {
  min-width: 0;
  padding: 0.4rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.credit:first-child {
  padding-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.credit:last-child {
  padding-right: 0;
}

.credit__label {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
}

.credit__name {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.credit__link {
  flex: 0 0 auto;
  color: #d7e3e7;
  font-size: 0.875rem;
  white-space: nowrap;
}

.site-footer__bottom {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: 1.5rem 0 3.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.site-footer__bottom p {
  margin: 0;
}

.mock-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.55rem 1rem;
  color: var(--white);
  background: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 960px) {
  .site-footer__main,
  .site-footer__credits-inner {
    grid-template-columns: 1fr;
  }

  .site-footer__main {
    gap: 2.5rem;
  }

  .credit {
    padding: 1rem 0;
  }

  .credit:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
  }

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

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

  .site-nav a {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--white);
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4rem);
  }

  .hero__media {
    position: absolute;
    inset: 0;
  }

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

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

@media (max-width: 620px) {
  body {
    letter-spacing: 0.02em;
  }

  .site-header {
    min-height: 4rem;
  }

  .brand {
    font-size: 1.15rem;
  }

  .hero {
    width: 100%;
    min-height: 44rem;
    padding: 0;
    border-radius: 0;
  }

  .hero__copy {
    margin: 0;
    padding: 5.5rem 1.25rem 3.75rem;
    border-radius: 0;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__media img {
    min-height: 0;
  }

  .hero__credit {
    top: 0.75rem;
    right: 0.75rem;
    bottom: auto;
    max-width: calc(100% - 1.5rem);
    font-size: 0.75rem;
  }

  .section {
    width: min(calc(100% - 1.5rem), var(--content));
  }

  .section--tint {
    width: 100%;
  }

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

  .era-flow {
    grid-template-columns: 1fr;
  }

  .photo-slot,
  .photo-slot--hero,
  .photo-slot--wide,
  .photo-slot--portrait,
  .photo-slot--map {
    min-height: 25rem;
    padding: 1rem;
  }

  .content-photo img,
  .content-photo--wide img,
  .content-photo--portrait img,
  .content-photo--panorama img {
    min-height: 19rem;
    aspect-ratio: 4 / 3;
  }

  .content-photo--panorama {
    margin-top: 2rem;
  }

  .photo-spec {
    padding: 1rem;
  }

  .photo-spec dl {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .photo-spec dd {
    margin-bottom: 0.55rem;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .next-page a {
    font-size: 1.25rem;
  }

  .site-footer__nav ul {
    gap: 0.4rem 1rem;
  }

  .site-footer__bottom {
    display: block;
    font-size: 0.82rem;
  }

  .site-footer__bottom p + p {
    margin-top: 0.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
