:root {
  --ink: #111214;
  --ink-2: #1b1c1f;
  --ink-3: #26272b;
  --paper: #f3eee4;
  --paper-2: #e8e1d3;
  --red: #a3241e;
  --red-soft: #c4473f;
  --gold: #c9a45c;
  --muted: #8a8577;
  --line: rgba(243, 238, 228, 0.14);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1160px;
  --radius: 4px;
}

html[lang="ja"] {
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

html[lang="en"] {
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[lang="en"] body {
  font-variant-numeric: lining-nums;
}

html[lang="en"] .brand,
html[lang="en"] .footer-motto {
  letter-spacing: 0.04em;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6em;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1.1em;
}

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(17, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--paper);
  opacity: 0.75;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  opacity: 1;
  text-decoration: none;
  border-bottom-color: var(--red-soft);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--sans);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px;
}

.lang-switch a {
  color: var(--paper);
  opacity: 0.65;
  padding: 3px 10px;
  border-radius: 99px;
  line-height: 1.4;
}

.lang-switch a:hover {
  opacity: 1;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  opacity: 1;
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.06);
  animation: slow-zoom 24s ease-out forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(17, 18, 20, 0.35), rgba(17, 18, 20, 0.85) 70%),
    linear-gradient(180deg, rgba(17, 18, 20, 0.6) 0%, rgba(17, 18, 20, 0.2) 40%, var(--ink) 100%);
}

.hero-photo::after {
  background:
    linear-gradient(90deg, rgba(17, 18, 20, 0.92) 0%, rgba(17, 18, 20, 0.7) 45%, rgba(17, 18, 20, 0.25) 100%),
    linear-gradient(180deg, rgba(17, 18, 20, 0.55) 0%, rgba(17, 18, 20, 0) 35%, rgba(17, 18, 20, 0) 70%, var(--ink) 100%);
}

.hero-photo .hero-bg {
  filter: grayscale(1) contrast(1.1) brightness(0.95);
}

.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 28px;
  max-width: 360px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(243, 238, 228, 0.6);
  text-align: right;
}

@keyframes slow-zoom {
  to {
    transform: scale(1);
  }
}

.hero-content {
  padding: 120px 0 80px;
  max-width: 820px;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-date {
  font-size: clamp(56px, 11vw, 140px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 24px;
  font-variant-numeric: tabular-nums;
}

.hero-date .dot {
  color: var(--red-soft);
}

.hero-title {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.35;
  margin-bottom: 20px;
}

html[lang="ja"] body {
  word-break: auto-phrase;
}

.phrase {
  display: inline-block;
}

.hero-title,
.section-title,
.tl-item h3,
.card-body h3 {
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: rgba(243, 238, 228, 0.85);
  max-width: 680px;
}

.hero-meta {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 15px;
  color: rgba(243, 238, 228, 0.7);
}

.hero-meta strong {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--paper);
  margin: 0 6px;
  font-variant-numeric: tabular-nums;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.1em;
  border: 1px solid var(--paper);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
}

.btn-red {
  background: var(--red);
  border-color: var(--red);
}

.btn-red:hover {
  background: var(--red-soft);
  border-color: var(--red-soft);
  color: var(--paper);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(243, 238, 228, 0.6);
  text-align: center;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: 10px auto 0;
  background: linear-gradient(var(--paper), transparent);
  animation: drip 2s infinite;
}

@keyframes drip {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.page-hero {
  min-height: 72vh;
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}

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

.section-paper a:not(.btn) {
  color: var(--red);
}

.section-dark-2 {
  background: var(--ink-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-no {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--red-soft);
  display: block;
  margin-bottom: 12px;
}

.section-paper .section-no {
  color: var(--red);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
}

.section-sub {
  color: var(--muted);
  font-size: 18px;
}

.section-paper .section-sub {
  color: #6b665a;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

/* ---------- Figures ---------- */
.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(0.25);
  cursor: zoom-in;
  transition: filter 0.4s;
}

.figure img:hover {
  filter: grayscale(0);
}

.figure figcaption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}

.figure-stack {
  display: grid;
  gap: 18px;
}

.figure-stack .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

/* ---------- Quote ---------- */
.quote {
  margin: 32px 0;
  padding: 26px 30px;
  border-left: 3px solid var(--red);
  background: rgba(163, 36, 30, 0.07);
}

.quote .jp {
  font-size: 22px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.quote .zh {
  font-size: 18px;
  margin: 0;
}

.quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.fact-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 56px 64px 0;
  text-align: right;
}

.tl-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 64px 56px;
  text-align: left;
}

.tl-item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 2px solid var(--muted);
}

.tl-item:nth-child(even)::before {
  right: auto;
  left: -6px;
}

.tl-item.key::before {
  background: var(--red);
  border-color: var(--red-soft);
  box-shadow: 0 0 0 6px rgba(163, 36, 30, 0.25);
}

.tl-date {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.tl-item.key .tl-date {
  color: var(--red-soft);
}

.tl-item h3 {
  font-size: 23px;
  margin: 6px 0 10px;
}

.tl-item p {
  color: rgba(243, 238, 228, 0.78);
  margin: 0;
}

.tl-item img {
  margin-top: 16px;
  border-radius: var(--radius);
  filter: grayscale(0.3);
  cursor: zoom-in;
  max-height: 260px;
  width: 100%;
  object-fit: cover;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  background: var(--ink);
  padding: 36px 30px;
}

.stat-num {
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat-num small {
  font-size: 0.42em;
  font-weight: 700;
  margin-left: 4px;
  color: var(--red-soft);
}

.stat-label {
  margin-top: 10px;
  font-size: 16px;
  color: rgba(243, 238, 228, 0.82);
}

.stat-note {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.footnote {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 4;
  cursor: zoom-in;
  background: var(--ink-3);
}

.g-item.wide {
  grid-column: span 8;
}

.g-item.tall {
  grid-row: span 2;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.9) brightness(0.85);
  transition: transform 0.7s, filter 0.5s;
}

.g-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0.2) brightness(0.95);
}

.g-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 15px;
  line-height: 1.5;
}

.g-item .cap span {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section-paper .card {
  background: #fbf8f2;
  border-color: rgba(17, 18, 20, 0.1);
}

.card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
  filter: grayscale(0.6);
  cursor: zoom-in;
}

.card-body {
  padding: 22px 24px 26px;
}

.card-body h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.card-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--red-soft);
  margin-bottom: 10px;
  display: block;
}

.section-paper .card-tag {
  color: var(--red);
}

.card-body p {
  font-size: 15.5px;
  margin: 0;
  color: inherit;
  opacity: 0.85;
}

.icon-card {
  padding: 30px 28px;
}

.icon-card .icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--red);
}

/* ---------- Bars ---------- */
.bars {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 130px;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}

html[lang="ja"] .bar-row,
html[lang="en"] .bar-row {
  grid-template-columns: 150px 1fr 130px;
  font-size: 15px;
}

.bar-track {
  height: 14px;
  background: rgba(17, 18, 20, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bar-value {
  font-family: var(--sans);
  font-size: 14px;
  color: #4a463e;
  text-align: right;
}

/* ---------- Banner quote ---------- */
.banner {
  position: relative;
  padding: 150px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.banner-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: grayscale(1);
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(17, 18, 20, 0.72);
}

.banner blockquote {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.6;
  font-weight: 700;
}

.banner .sub {
  margin-top: 20px;
  font-size: 18px;
  color: rgba(243, 238, 228, 0.75);
}

.banner cite {
  display: block;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.15em;
  color: var(--gold);
}

/* ---------- Quote cards ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.qcard {
  padding: 36px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  position: relative;
}

.qcard::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 22px;
  font-size: 90px;
  line-height: 1;
  color: var(--red);
  opacity: 0.6;
}

.qcard p {
  font-size: 20px;
  margin: 18px 0 6px;
}

.qcard .orig {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 14px;
}

.qcard cite {
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* ---------- Candle ---------- */
.candle-wrap {
  text-align: center;
}

.candle {
  width: 46px;
  height: 140px;
  margin: 0 auto 30px;
  position: relative;
  background: linear-gradient(90deg, #d8cfbf, #f6f1e6 45%, #cfc5b3);
  border-radius: 6px 6px 3px 3px;
}

.candle::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: #333;
  transform: translateX(-50%);
}

.flame {
  position: absolute;
  top: -58px;
  left: 50%;
  width: 22px;
  height: 46px;
  transform: translateX(-50%) scale(0);
  border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 80%, #fff 0%, #ffe9a8 25%, #ffb347 55%, rgba(255, 120, 40, 0) 75%);
  filter: blur(0.5px);
  transition: transform 0.6s;
  transform-origin: 50% 100%;
}

.candle.lit .flame {
  transform: translateX(-50%) scale(1);
  animation: flicker 2.4s infinite alternate;
}

.candle.lit::after {
  content: "";
  position: absolute;
  top: -110px;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 190, 90, 0.28), transparent 65%);
  pointer-events: none;
}

@keyframes flicker {
  0% {
    transform: translateX(-50%) scale(1) rotate(-1deg);
  }
  50% {
    transform: translateX(-50%) scale(1.04, 0.96) rotate(1.5deg);
  }
  100% {
    transform: translateX(-50%) scale(0.97, 1.05) rotate(-0.5deg);
  }
}

.candle-words {
  margin: 0 auto;
  max-width: 640px;
  font-size: 18px;
  line-height: 2.2;
  color: rgba(243, 238, 228, 0.85);
}

.candle-count {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
  min-height: 1.6em;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
}

table.credits {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

table.credits th,
table.credits td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(17, 18, 20, 0.12);
  vertical-align: middle;
}

table.credits th {
  font-weight: 600;
  background: var(--paper-2);
}

table.credits img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 2px;
}

.source-list {
  font-family: var(--sans);
  font-size: 15px;
  padding-left: 20px;
}

.source-list li {
  margin-bottom: 8px;
}

/* ---------- Notice ---------- */
.notice {
  font-family: var(--sans);
  font-size: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(201, 164, 92, 0.4);
  background: rgba(201, 164, 92, 0.08);
  border-radius: var(--radius);
  color: rgba(243, 238, 228, 0.85);
  margin-top: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-motto {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper);
  letter-spacing: 0.3em;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.footer-links a {
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 82vh;
  max-width: 92vw;
  object-fit: contain;
}

.lightbox p {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(243, 238, 228, 0.8);
  max-width: 900px;
  text-align: center;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .stats,
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .g-item,
  .g-item.wide {
    grid-column: span 6;
  }
  .banner-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 880px) {
  .header-right {
    gap: 14px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(17, 18, 20, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .hero-caption {
    left: 24px;
    right: 24px;
    bottom: 20px;
    max-width: none;
    text-align: left;
  }
  .hero-photo .scroll-hint {
    display: none;
  }
  .brand {
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  .section {
    padding: 80px 0;
  }
  .stats,
  .cards {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 6px;
  }
  .tl-item,
  .tl-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 48px 36px;
    text-align: left;
  }
  .tl-item::before,
  .tl-item:nth-child(even)::before {
    left: 0;
    right: auto;
  }
  .gallery {
    grid-auto-rows: 200px;
  }
  .g-item,
  .g-item.wide {
    grid-column: span 12;
  }
  .g-item.tall {
    grid-row: span 1;
  }
  .bar-row,
  html[lang="ja"] .bar-row,
  html[lang="en"] .bar-row {
    grid-template-columns: 120px 1fr;
  }
  .bar-value {
    grid-column: 2;
    text-align: left;
    margin-top: -8px;
  }
  .figure-stack .row {
    grid-template-columns: 1fr;
  }
}
