/* 江東と戦争 — mock (横断特集型) */
:root {
  --ink: #1c2429;
  --ink-soft: #3a4750;
  --ash: #5c6670;
  --slate: #2a3640;
  --dawn: #9a7b3c;
  --dawn-soft: #d4c4a0;
  --paper: #f3f2ee;
  --panel: #e7e8e4;
  --line: rgba(28, 36, 41, 0.14);
  --veil: rgba(28, 36, 41, 0.72);
  --max: 1280px;
  --max-photo: min(1320px, 100%);
  --display: "Shippori Mincho", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--dawn);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.75rem 1rem;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.1rem, 4vw, 2.5rem);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: inherit;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.brand small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  opacity: 0.9;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--dawn-soft);
  opacity: 1;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 0.45rem 0.8rem;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
    background: rgba(28, 36, 41, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-content: end;
  overflow: hidden;
  color: #fff;
  background: #1a2228;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: #1a2228;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.02);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(18, 24, 29, 0.88) 0%, rgba(18, 24, 29, 0.52) 48%, rgba(18, 24, 29, 0.28) 100%),
    linear-gradient(180deg, rgba(18, 24, 29, 0.2) 0%, rgba(18, 24, 29, 0.72) 100%);
  pointer-events: none;
}

@keyframes drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.2%); }
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.2rem, 4vw, 2.5rem) clamp(2.2rem, 5vh, 3.2rem);
  max-width: 42rem;
}
.hero__brand {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  opacity: 0.8;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
}
.hero__lead {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.75;
  opacity: 0.92;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.hero__credit {
  margin: 0;
  padding: 0.65rem clamp(1.2rem, 4vw, 2.5rem) 1.2rem;
  font-size: 0.78rem;
  color: var(--ash);
  letter-spacing: 0.04em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.button:hover,
.button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.button--solid {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.button--solid:hover,
.button--solid:focus-visible {
  background: var(--dawn-soft);
  border-color: var(--dawn-soft);
}
.button--ink {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.button--ink:hover,
.button--ink:focus-visible {
  background: var(--panel);
  border-color: var(--ash);
}

/* Sections */
.section,
.section--deep {
  padding: clamp(3.2rem, 7vw, 5rem) clamp(1.2rem, 4vw, 2.5rem);
}
.section { background: var(--paper); }
.section--deep {
  background: linear-gradient(180deg, #e9ebe8 0%, #dde1dc 100%);
}
.section__inner { max-width: var(--max); margin: 0 auto; }

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}
.section h2,
.section--deep h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}
.section__lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.legend-ref {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ash);
}

.pull-quote {
  margin: 2rem 0 0;
  padding: 1.4rem 1.5rem;
  border-left: 3px solid var(--dawn);
  background: rgba(255, 255, 255, 0.55);
}
.pull-quote p {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.7;
}
.pull-quote footer {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ash);
}
.pull-quote a { color: var(--slate); }

.aside-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.aside-note strong { color: var(--ink); }

.bridge {
  margin-top: 2.4rem;
  padding: 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
}
.bridge__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--ash);
}
.bridge h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}
.bridge p { margin: 0.7rem 0 0; color: var(--ink-soft); }
.bridge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

/* Fact tags */
.fact-tag,
.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  vertical-align: middle;
}
.fact-tag[data-kind="fact"],
.badge--ok { background: #dce8df; color: #23412c; }
.fact-tag[data-kind="interp"],
.badge--soft { background: #e8e2d4; color: #5a4520; }
.fact-tag[data-kind="quote"] { background: #dde4ea; color: #2a3d4d; }
.fact-tag[data-kind="pending"],
.badge--pending { background: #efe4d8; color: #6a4020; }
.fact-tag[data-kind="wrong"] { background: #f0d8d8; color: #6b2424; }
.fact-tag[data-kind="approx"] { background: #e4e4e8; color: #3a3a48; }

/* Panels / grids */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
@media (max-width: 720px) {
  .panel-grid { grid-template-columns: 1fr; }
}

.panel {
  padding: 1.25rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
}
.panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-family: var(--display);
  font-weight: 600;
}
.panel p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.panel p + p { margin-top: 0.7rem; }

.stat-table-wrap,
.fact-table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.stat-table,
.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.stat-table th,
.fact-table th,
.stat-table td,
.fact-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.stat-table th,
.fact-table th {
  background: var(--panel);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.stat-table caption,
.table-note {
  caption-side: bottom;
  padding: 0.85rem 0.9rem;
  text-align: left;
  font-size: 0.82rem;
  color: var(--ash);
  background: #fafaf8;
}

/* Places */
.place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: var(--max-photo);
}
@media (max-width: 820px) {
  .place-grid { grid-template-columns: 1fr; }
}

.place-card {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.place-card .photo-slot {
  aspect-ratio: 16 / 11;
  min-height: clamp(220px, 28vw, 340px);
}
.place-card h3 {
  margin: 0;
  padding: 1.15rem 1.25rem 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}
.place-card__meta {
  margin: 0;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  color: var(--ash);
}
.place-card p {
  margin: 0;
  padding: 0.7rem 1.25rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* Photo slots */
.photo-slot {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: clamp(200px, 26vw, 320px);
  background:
    linear-gradient(135deg, #d8dcd8 0%, #c5cbc8 45%, #b7c0bc 100%);
  overflow: hidden;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-slot.is-missing img { display: none; }
.photo-slot__label {
  position: absolute;
  inset: auto 0 0;
  padding: 0.7rem 0.9rem;
  background: rgba(28, 36, 41, 0.72);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.photo-slot.is-missing::before {
  content: "写真準備中 · 許諾後工程";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.photo-slot__pending {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
}
.photo-slot--tall {
  aspect-ratio: 4 / 5;
  min-height: clamp(280px, 42vw, 520px);
}
.photo-slot--wide {
  aspect-ratio: 21 / 9;
  min-height: clamp(260px, 38vw, 480px);
}
.photo-slot--feature {
  aspect-ratio: 16 / 9;
  min-height: clamp(300px, 48vw, 620px);
}

/* Photo stage: wider than body text */
.photo-stage {
  width: min(var(--max-photo), calc(100% + 2rem));
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: var(--max-photo);
}
.gallery-item--feature {
  grid-column: 1 / -1;
}
.gallery-item--feature .photo-slot {
  aspect-ratio: 16 / 9;
  min-height: clamp(320px, 52vw, 680px);
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--ash);
  line-height: 1.55;
}
.rights-banner {
  margin: 0;
  padding: 0.85rem clamp(1.2rem, 4vw, 2.5rem);
  background: #fff8ef;
  border-bottom: 1px solid rgba(154, 123, 60, 0.28);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.rights-banner strong { color: var(--ink); }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2rem;
  max-width: var(--max-photo);
}
.photo-strip .gallery-item--feature {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .photo-strip { grid-template-columns: 1fr; }
}

.figure-block {
  margin-top: 1.6rem;
}
.figure-block figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--ash);
}

/* Timeline */
.timeline {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.4rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--dawn);
  box-shadow: 0 0 0 3px var(--paper);
}
.timeline__year {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ash);
  font-weight: 700;
}
.timeline h3 {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}
.timeline p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Walk */
.walk-steps {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.walk-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
}
.walk-step__n {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--dawn);
  line-height: 1;
}
.walk-step h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--display);
}
.walk-step p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Sources */
.source-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.source-block h3 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.2rem;
}
.source-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.source-block li + li { margin-top: 0.45rem; }
.source-block a { color: var(--slate); }

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}
@media (max-width: 900px) {
  .source-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .source-grid { grid-template-columns: 1fr; }
}
.source-card {
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
}
.source-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  font-family: var(--display);
}
.source-card p {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.source-card a {
  font-size: 0.85rem;
  color: var(--slate);
}

.status-box {
  margin-top: 2rem;
  padding: 1.2rem 1.3rem;
  background: #fff8ef;
  border: 1px solid rgba(154, 123, 60, 0.35);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.status-box p { margin: 0; }
.status-box p + p { margin-top: 0.55rem; }
.status-box strong { color: var(--ink); }

.next-read {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  background: var(--slate);
  color: #fff;
}
.next-read p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  opacity: 0.75;
}
.next-read a {
  display: inline-block;
  margin-top: 0.55rem;
  color: #fff;
  font-family: var(--display);
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}
.next-read a:hover { border-color: #fff; }

/* Footer */
.global-footer {
  background: #1c2429;
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem clamp(1.2rem, 4vw, 2.5rem) 1.5rem;
}
.global-footer__main {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .global-footer__main { grid-template-columns: 1fr; }
}
.global-footer__brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.global-footer__brand small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  opacity: 0.7;
}
.global-footer__story {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 28rem;
}
.global-footer__nav-title {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  opacity: 0.65;
}
.global-footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}
.global-footer__nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.global-footer__nav a:hover { border-color: rgba(255, 255, 255, 0.5); }
.global-footer__credits {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.global-footer__credits-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .global-footer__credits-inner { grid-template-columns: 1fr; }
}
.global-footer__credit {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}
.global-footer__credit-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}
.global-footer__credit-name {
  margin: 0.25rem 0 0;
  font-weight: 700;
}
.global-footer__credit-link {
  font-size: 0.82rem;
  text-decoration: none;
  opacity: 0.8;
}
.global-footer__bottom {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  opacity: 0.65;
}
.global-footer__bottom p { margin: 0; }
.global-footer__bottom p + p { margin-top: 0.35rem; }
