/* 江東区・都電の歴史 — 江東リンク横断特集 */
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  --ink: #1c2228;
  --ink-soft: #3a4550;
  --rail: #4a5560;
  --rail-deep: #2a323a;
  --greenway: #3d6b4f;
  --greenway-soft: #6a9a78;
  --signal: #c45c2a;
  --signal-soft: #e8a070;
  --foam: #f3f1ec;
  --panel: #e7e4dc;
  --line: rgba(28, 34, 40, 0.14);
  --max: 1120px;
  --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:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(61, 107, 79, 0.08), transparent 50%),
    linear-gradient(180deg, #eceae4 0%, var(--foam) 28%, var(--foam) 100%);
  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(--signal);
  outline-offset: 3px;
}

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

.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 {
  flex: 0 0 40px;
  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 1rem;
  font-size: 0.8rem;
  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(--signal-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: 900px) {
  .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, 34, 40, 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 {
  position: relative;
  min-height: min(78vh, 700px);
  display: grid;
  align-content: end;
  overflow: hidden;
  color: #fff;
  background: var(--rail-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__media.is-missing {
  background:
    linear-gradient(135deg, #2f3d34 0%, #1c2228 55%, #3a2a20 100%);
}
.hero__media.is-missing::before {
  content: "現地撮影待ち · 緑道ヒーロー";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(243, 241, 236, 0.45);
  letter-spacing: 0.16em;
  font-size: 0.85rem;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 24, 28, 0.9) 0%, rgba(20, 24, 28, 0.45) 52%, rgba(20, 24, 28, 0.2) 100%),
    linear-gradient(180deg, rgba(20, 24, 28, 0.1) 0%, rgba(20, 24, 28, 0.7) 100%);
}

@keyframes drift {
  from { transform: scale(1.03) translateY(0); }
  to { transform: scale(1.07) translateY(-1.5%); }
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 5.5rem 0 3.25rem;
}

.hero__brand {
  margin: 0 0 1.2rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-family: var(--display);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  animation: rise 0.9s ease-out both;
}

.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 36em;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.9;
  color: rgba(243, 241, 236, 0.9);
  animation: rise 0.9s ease-out 0.12s both;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease-out 0.22s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__credit {
  margin: 0;
  padding: 0.65rem clamp(1.1rem, 4vw, 2.5rem);
  background: var(--ink);
  color: rgba(243, 241, 236, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  font: inherit;
}
.button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}
.button--solid {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
  font-weight: 700;
}
.button--solid:hover {
  background: #d46834;
  border-color: #d46834;
}
.button--dark {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.button--dark:hover {
  background: rgba(28, 34, 40, 0.06);
}

.section {
  width: min(var(--max), calc(100% - 2.2rem));
  margin-inline: auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section--tint {
  width: 100%;
  background: linear-gradient(180deg, #e4ebe5 0%, var(--foam) 100%);
}
.section--tint > .section__inner,
.section--deep > .section__inner,
.section--dusk > .section__inner {
  width: min(var(--max), calc(100% - 2.2rem));
  margin-inline: auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section--deep {
  width: 100%;
  background:
    radial-gradient(ellipse 65% 45% at 85% 0%, rgba(61, 107, 79, 0.28), transparent 55%),
    linear-gradient(180deg, #243028, #1c2228);
  color: var(--foam);
}

.section--dusk {
  width: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(196, 92, 42, 0.14), transparent 50%),
    linear-gradient(180deg, #2a323a, #1c2228);
  color: var(--foam);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--greenway);
}
.section--deep .eyebrow,
.section--dusk .eyebrow { color: var(--signal-soft); }

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.8vw, 2.55rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-weight: 700;
}

h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section__lead {
  margin: 1.1rem 0 0;
  max-width: 42em;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.section--deep .section__lead,
.section--dusk .section__lead {
  color: rgba(243, 241, 236, 0.82);
}

.fact-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.fact-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  vertical-align: middle;
  opacity: 0.85;
}
.badge--ok { color: var(--greenway); }
.badge--soft { color: var(--rail); }
.badge--open { color: var(--signal); }
.badge--wait { color: #8a6a2a; }
.section--deep .badge--ok,
.section--dusk .badge--ok { color: #a8c49a; }
.section--deep .badge--soft,
.section--dusk .badge--soft { color: #b8c0c8; }
.section--deep .badge--open,
.section--dusk .badge--open { color: var(--signal-soft); }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.25rem;
  align-items: start;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

.panel {
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.panel + .panel { margin-top: 1.25rem; }
.panel p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}
.panel p:last-child { margin-bottom: 0; }
.section--deep .panel,
.section--dusk .panel { border-color: rgba(243, 241, 236, 0.18); }
.section--deep .panel p,
.section--dusk .panel p { color: rgba(243, 241, 236, 0.82); }

.aside-note {
  padding: 1.35rem 1.4rem;
  background: var(--panel);
  border-left: 3px solid var(--signal);
}
.aside-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.aside-note p + p { margin-top: 0.75rem; }
.section--deep .aside-note,
.section--dusk .aside-note {
  background: rgba(255, 255, 236, 0.06);
  border-left-color: var(--signal-soft);
}
.section--deep .aside-note p,
.section--dusk .aside-note p { color: rgba(243, 241, 236, 0.82); }

.pull-quote {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.pull-quote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.7;
  letter-spacing: 0.03em;
}
.pull-quote footer {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.section--deep .pull-quote,
.section--dusk .pull-quote { border-color: rgba(243, 241, 236, 0.18); }
.section--deep .pull-quote footer,
.section--dusk .pull-quote footer { color: rgba(243, 241, 236, 0.65); }

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .route-grid { grid-template-columns: 1fr; }
}
.route-card {
  padding: 1.35rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border-top: 3px solid var(--greenway);
}
.route-card--soft { border-top-color: var(--rail); }
.route-card--warn { border-top-color: var(--signal); }
.route-card h3 { margin-bottom: 0.5rem; }
.route-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.route-card .meta {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--rail);
}

.timeline {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid rgba(61, 107, 79, 0.35);
}
.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(--greenway);
  box-shadow: 0 0 0 3px var(--foam);
}
.timeline__year {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.timeline__body {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.section--deep .timeline { border-color: rgba(168, 196, 154, 0.35); }
.section--deep .timeline li::before { background: var(--signal-soft); box-shadow: 0 0 0 3px #243028; }
.section--deep .timeline__body { color: rgba(243, 241, 236, 0.8); }

.stops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.stops li {
  padding: 0.35rem 0.7rem;
  background: rgba(61, 107, 79, 0.1);
  border: 1px solid rgba(61, 107, 79, 0.22);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.stops li::after {
  content: "→";
  margin-left: 0.55rem;
  opacity: 0.45;
}
.stops li:last-child::after { content: none; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 720px) {
  .photo-grid { grid-template-columns: 1fr; }
}
.photo-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .photo-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .photo-grid--3 { grid-template-columns: 1fr; }
}

.photo {
  margin: 0;
  background: #fff;
}
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8d4cb;
}
.photo.is-missing {
  min-height: 12rem;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, #ddd8ce, #ddd8ce 8px, #e8e3d8 8px, #e8e3d8 16px);
  color: var(--rail);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem;
}
.photo figcaption {
  padding: 0.75rem 0.15rem 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.photo__credit {
  display: block;
  margin-top: 0.25rem;
  color: #6a737c;
  font-size: 0.72rem;
}
.rights-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid rgba(138, 106, 42, 0.45);
  color: #8a6a2a;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.map-frame {
  margin-top: 1.5rem;
  background: #fff;
  overflow: hidden;
}
.map-frame img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f7f5f0;
}
.map-frame figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.walk-steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: walk;
}
.walk-steps li {
  position: relative;
  padding: 1.1rem 0 1.1rem 3.2rem;
  border-top: 1px solid var(--line);
  counter-increment: walk;
}
.walk-steps li::before {
  content: counter(walk);
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--greenway);
  color: var(--greenway);
  font-family: var(--display);
  font-weight: 700;
}
.walk-steps h3 { margin-bottom: 0.4rem; }
.walk-steps p {
  margin: 0;
  color: var(--ink-soft);
}

.plaque-spot {
  margin-top: 1.5rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(243, 241, 236, 0.16);
}
.plaque-spot p { margin: 0 0 1rem; color: rgba(243, 241, 236, 0.82); }

dialog.plaque-dialog {
  width: min(36rem, calc(100% - 2rem));
  padding: 0;
  border: none;
  background: var(--foam);
  color: var(--ink);
}
dialog.plaque-dialog::backdrop {
  background: rgba(20, 24, 28, 0.55);
}
.plaque-dialog__inner { padding: 1.5rem 1.5rem 1.25rem; }
.plaque-dialog__inner h2 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.plaque-dialog__inner p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.plaque-dialog__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.next-link {
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.section--deep .next-link,
.section--dusk .next-link { border-color: rgba(243, 241, 236, 0.18); }

.sources-table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.sources-table th,
.sources-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.sources-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--rail);
  font-weight: 700;
}
.sources-table a {
  color: var(--greenway);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  padding: 2rem clamp(1.1rem, 4vw, 2.5rem) 2.75rem;
  background: var(--ink);
  color: rgba(243, 241, 236, 0.72);
  font-size: 0.85rem;
}
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 0.5rem; }
.site-footer a { color: #dce8df; }

/* === production-closer additions === */
.site-header.is-scrolled {
  position: fixed;
  inset: 0 0 auto;
  background: rgba(28, 34, 40, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.legend-ref {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.section--deep .legend-ref,
.section--dusk .legend-ref { color: rgba(243,241,236,0.75); }

.fact-tag {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 0.08em;
  background: #e8eee3;
  color: #3d4a35;
}
.fact-tag[data-kind="fact"] { background: #e3efe6; color: #245536; }
.fact-tag[data-kind="approx"] { background: #eef0e4; color: #555a2e; }
.fact-tag[data-kind="tradition"] { background: #e8eef5; color: #2f4560; }
.fact-tag[data-kind="interp"] { background: #f3ebe2; color: #6a4a2a; }
.fact-tag[data-kind="open"] { background: #f5efe0; color: #6a5520; }
.fact-tag[data-kind="plaque"] { background: #ece8e2; color: #5a5045; }

.bridge-next {
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}
.bridge-next p {
  margin: 0 0 1rem;
  max-width: 40em;
  color: var(--ink-soft);
}
.section--deep .bridge-next,
.section--dusk .bridge-next { border-color: rgba(243,241,236,0.18); }
.section--deep .bridge-next p,
.section--dusk .bridge-next p { color: rgba(243,241,236,0.8); }

.panel--spaced { margin-top: 2rem; }
.note-soft {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.stack-gap { margin-top: 2rem; }
.stack-gap-sm { margin-top: 1.5rem; }

.route-card--on-dark {
  background: rgba(255,255,255,0.06);
  color: inherit;
}
.route-card--on-dark h3 { color: #fff; }
.route-card--on-dark p { color: rgba(243,241,236,0.82); }
.route-card--on-dark .meta { color: rgba(243,241,236,0.55); }
.route-card--on-dark a { color: #dce8df; }

.stops-table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.stops-table th,
.stops-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.stops-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--rail);
}
.stops-table .is-open { color: #8a6a2a; font-size: 0.85rem; }

.timeline-era {
  margin: 1.25rem 0 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.section:not(.section--deep):not(.section--dusk) .timeline-era {
  background: rgba(255,255,255,0.65);
}
.timeline-era > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.timeline-era > summary::-webkit-details-marker { display: none; }
.timeline-era > summary::after {
  content: "開く";
  float: right;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.65;
}
.timeline-era[open] > summary::after { content: "閉じる"; }
.timeline-era .timeline { margin: 0 1.15rem 1.15rem; border-left-color: rgba(232,160,112,0.45); }

.site-spot {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(243,241,236,0.18);
  background: rgba(0,0,0,0.15);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.site-spot:hover { border-color: var(--signal-soft); }
.site-spot__visual {
  min-height: 12rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 8px, rgba 8px, transparent 16px);
  color: rgba(243,241,236,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
}
.site-spot__caption {
  padding: 0 1rem 1rem;
  font-size: 0.82rem;
  color: rgba(243,241,236,0.8);
}
.site-spot__caption strong { display: block; margin-bottom: 0.25rem; color: #fff; }

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@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.15rem 1.1rem;
  background: rgba(255,255,255,0.65);
  border-top: 3px solid var(--greenway);
}
.source-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.source-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.source-card a {
  color: var(--greenway);
  font-size: 0.85rem;
  font-weight: 700;
}

.status-box {
  margin-top: 1.75rem;
  padding: 1.2rem 1.35rem;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,0.45);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.status-box p { margin: 0 0 0.6rem; }
.status-box p:last-child { margin: 0; }

.related-reads {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  background: var(--panel);
}
.related-reads h3 { margin-bottom: 0.65rem; }
.related-reads ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.related-reads a { color: var(--greenway); font-weight: 700; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr; }
}
.stat-strip article {
  padding: 1.1rem 1rem;
  background: rgba(61,107,79,0.08);
  border-left: 3px solid var(--greenway);
}
.stat-strip strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.stat-strip span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.global-footer {
  --global-footer-content: min(1120px, calc(100% - 40px));
  --global-footer-ink: #14181c;
  --global-footer-white: #fffdf8;
  --global-footer-gold: #e8a070;
  --global-footer-line: rgba(255, 255, 255, 0.17);
  color: rgba(255, 253, 248, 0.82);
  background: var(--global-footer-ink);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.035em;
}
.global-footer a { color: inherit; }
.global-footer a:focus-visible {
  outline: 3px solid var(--global-footer-gold);
  outline-offset: 5px;
}
.global-footer__main {
  width: var(--global-footer-content);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.global-footer__brand {
  margin: 0 0 1rem;
  color: var(--global-footer-white);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.25;
}
.global-footer__brand small {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.global-footer__story {
  max-width: 26rem;
  margin: 0;
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.9rem;
}
.global-footer__nav-title {
  margin: 0 0 1rem;
  color: var(--global-footer-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.global-footer__nav ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
  list-style: none;
}
.global-footer__nav a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--global-footer-white);
  font-size: 0.88rem;
  text-decoration: none;
}
.global-footer__nav a:hover { text-decoration: underline; }
.global-footer__credits {
  border-top: 1px solid var(--global-footer-line);
  border-bottom: 1px solid var(--global-footer-line);
  background: rgba(74, 85, 96, 0.35);
}
.global-footer__credits-inner {
  width: var(--global-footer-content);
  margin-inline: auto;
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.global-footer__credit {
  min-width: 0;
  padding: 0.4rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.global-footer__credit:first-child {
  padding-left: 0;
  border-right: 1px solid var(--global-footer-line);
}
.global-footer__credit:last-child { padding-right: 0; }
.global-footer__credit-label {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 253, 248, 0.56);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.global-footer__credit-name {
  margin: 0;
  color: var(--global-footer-white);
  font-size: 1rem;
  font-weight: 700;
}
.global-footer__credit-link {
  flex: 0 0 auto;
  color: var(--global-footer-gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.global-footer__credit-link:hover { text-decoration: underline; }
.global-footer__bottom {
  width: var(--global-footer-content);
  margin-inline: auto;
  padding: 1.4rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: rgba(255, 253, 248, 0.58);
  font-size: 0.78rem;
}
.global-footer__bottom p { margin: 0; }
@media (max-width: 820px) {
  .global-footer__main { grid-template-columns: 1fr; }
  .global-footer__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-footer__credits-inner { grid-template-columns: 1fr; }
  .global-footer__credit { padding: 1rem 0; }
  .global-footer__credit:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--global-footer-line);
  }
  .global-footer__bottom { display: block; }
  .global-footer__bottom p + p { margin-top: 0.5rem; }
}

.site-nav a[aria-current="true"] {
  border-color: var(--signal-soft);
  opacity: 1;
}
