﻿/* Bay ward boundaries — mock (江東リンク特集型) */
@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: #0e1c24;
  --ink-soft: #2a3f4a;
  --water: #0b3d4a;
  --water-mid: #156878;
  --water-light: #3a9aad;
  --mist: #d7e6ea;
  --foam: #f3f8f9;
  --sand: #c4a574;
  --flare: #e8b45a;
  --line: rgba(14, 28, 36, 0.12);
  --max: 1120px;
}

*,
*::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(--foam);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  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(--water-mid);
  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;
  flex-direction: row;
  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 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(--flare);
  opacity: 1;
}

/* Hero — full-bleed photo */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: grid;
  align-content: end;
  overflow: hidden;
  color: #fff;
  background: #06232d;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.03);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 35, 45, 0.82) 0%, rgba(6, 35, 45, 0.45) 48%, rgba(6, 35, 45, 0.22) 100%),
    linear-gradient(180deg, rgba(6, 35, 45, 0.2) 0%, rgba(6, 35, 45, 0.55) 100%);
}

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

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

.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.4rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(2.1rem, 5.4vw, 3.55rem);
  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, 248, 249, 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); }
}

.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;
}
.button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}
.button--solid {
  background: var(--flare);
  border-color: var(--flare);
  color: var(--ink);
  font-weight: 700;
}
.button--solid:hover {
  background: #f0c57a;
  border-color: #f0c57a;
}

.mock-badge {
  position: absolute;
  z-index: 2;
  right: clamp(0.9rem, 3vw, 1.5rem);
  bottom: clamp(0.9rem, 3vw, 1.5rem);
  margin: 0;
  padding: 0.4rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(6, 35, 45, 0.55);
}

/* Sections */
.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, #eaf3f5 0%, var(--foam) 100%);
}
.section--tint > .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 70% 50% at 80% 0%, rgba(58, 154, 173, 0.22), transparent 55%),
    linear-gradient(180deg, #0b3d4a, #0a2e38);
  color: var(--foam);
}
.section--deep > .section__inner {
  width: min(var(--max), calc(100% - 2.2rem));
  margin-inline: auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--water-mid);
}
.section--deep .eyebrow { color: var(--flare); }

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

.section__lead {
  margin: 1rem 0 0;
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.section--deep .section__lead { color: rgba(243, 248, 249, 0.82); }

/* Photo strip — 関係5区（統一枠で横並び） */
.photo-strip {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}
.photo-strip figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.photo-strip .photo-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #c5d8de;
  flex: 0 0 auto;
}
.photo-strip .photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}
.photo-strip figure:hover .photo-frame img {
  transform: scale(1.04);
}
.photo-strip figure:nth-child(1) .photo-frame img { object-position: 55% 40%; }
.photo-strip figure:nth-child(2) .photo-frame img { object-position: center 35%; }
.photo-strip figure:nth-child(3) .photo-frame img { object-position: 35% 45%; }
.photo-strip figure:nth-child(4) .photo-frame img { object-position: 65% 50%; }
.photo-strip figure:nth-child(5) .photo-frame img { object-position: center 55%; }
.photo-strip figcaption {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 4.6rem;
  padding: 0.65rem 0.7rem 0.75rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.photo-strip figcaption b {
  display: block;
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.feature-photo {
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.feature-photo .photo-frame {
  position: relative;
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  background: #c5d8de;
}
.feature-photo .photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}
.feature-photo figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.layer__photo {
  margin: 1rem 0 0.35rem;
  border: 1px solid rgba(243, 248, 249, 0.18);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}
.layer__photo .photo-frame {
  position: relative;
  aspect-ratio: 2.2 / 1;
  overflow: hidden;
}
.layer__photo .photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.layer__photo figcaption {
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  color: rgba(243, 248, 249, 0.72);
}

/* Leaflet accurate map */
.leaflet-panel {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.leaflet-map {
  width: 100%;
  height: min(68vh, 560px);
  min-height: 420px;
  background: #d7e6ea;
}
.map-status,
.map-note {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.map-status {
  border-top: 1px solid var(--line);
  background: #f7fbfc;
}
.map-note {
  border-top: 1px solid var(--line);
  padding-bottom: 0.9rem;
}
.map-callout {
  margin: 1rem 0 0;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px dashed #0a5c52;
  background: linear-gradient(180deg, #f7fcfb 0%, #eef7f5 100%);
}
.map-callout__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a5c52;
  font-weight: 700;
}
.map-callout__title {
  margin: 0 0 0.65rem;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
}
.map-callout__lead {
  margin: 0 0 0.95rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}
.map-callout__photo {
  margin: 0 0 1rem;
}
.map-callout__photo .photo-frame--wide {
  aspect-ratio: 1009 / 607;
  background: #d9e4e8;
}
.map-callout__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-callout__photo figcaption {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.map-callout__photo figcaption b {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.98rem;
}
.map-callout__photo-credit {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #5a6f6a;
}
.map-callout p {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.map-callout p:last-child {
  margin-bottom: 0;
}
.map-callout__steps {
  margin: 0 0 0.95rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.map-callout__steps li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9.5rem) 1fr;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 92, 82, 0.18);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.map-callout__steps strong {
  color: #0a5c52;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.map-callout__meta {
  font-size: 0.88rem !important;
  color: #3d5c56 !important;
}
@media (max-width: 640px) {
  .map-callout__steps li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
.ward-ai-map {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem 1rem 1rem;
}
.ward-ai-map summary {
  cursor: pointer;
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  color: var(--ink);
}
.ward-ai-map .ward-area-map {
  margin-top: 0.85rem;
}

/* Ward area map (伊能監修・鳥山生成) */
.ward-area-map {
  margin: 1.75rem 0 0;
  border: 1px solid var(--line);
  background: #e8f0f3;
  overflow: hidden;
}
.ward-area-map__frame {
  /* 生成図 1536×1024 = 3:2。枠も同じ比にして引き伸ばしを防ぐ */
  aspect-ratio: 3 / 2;
  background: #d7e6ea;
}
.ward-area-map__frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.ward-area-map figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: #fff;
}
.ward-area-map figcaption strong {
  display: block;
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.ward-ja-legend {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.ward-ja-legend li {
  display: flex;
  flex: 1 1 0;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 6.4rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
}
.ward-ja-legend li:first-child {
  border-color: rgba(10, 92, 82, 0.45);
  background: #f7fcfb;
}
.ward-ja-legend__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  line-height: 1.35;
}
.ward-ja-legend b {
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: 0.86rem;
  white-space: nowrap;
}
.ward-ja-legend small {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swatch {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid rgba(14, 28, 36, 0.35);
  flex: 0 0 auto;
}
.swatch--koto { background: #1f9a8a; }
.swatch--unfinished {
  background: #fff;
  border: 1px dashed #0a5c52;
  box-sizing: border-box;
}
.swatch--chuo { background: #e6b800; }
.swatch--minato { background: #7a5bb5; }
.swatch--shinagawa { background: #d4553a; }
.swatch--ota { background: #6f8f2e; }

/* Ward map (schematic) — legacy helpers kept for legend */
.ward-map {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.schematic {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, #9ec7d0 0%, #6ea8b6 40%, #3d7f90 100%);
  overflow: hidden;
}

.schematic__water {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 55%, rgba(255, 255, 255, 0.18), transparent 35%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 16px,
      rgba(255, 255, 255, 0.05) 16px,
      rgba(255, 255, 255, 0.05) 17px
    );
}

.island {
  position: absolute;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  font-size: clamp(0.68rem, 1.4vw, 0.85rem);
  letter-spacing: 0.06em;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(14, 28, 36, 0.42);
  backdrop-filter: blur(2px);
  transition: transform 0.35s ease, background 0.35s ease;
}
.island:hover,
.island:focus-within {
  transform: translateY(-2px);
  background: rgba(14, 28, 36, 0.58);
}
.island b {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-size: 1.05em;
  font-weight: 700;
}
.island span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85em;
  opacity: 0.85;
}

.island--koto { left: 48%; top: 22%; width: 32%; height: 28%; }
.island--chuo { left: 24%; top: 12%; width: 20%; height: 22%; }
.island--minato { left: 6%; top: 42%; width: 24%; height: 22%; }
.island--shinagawa { left: 28%; top: 58%; width: 22%; height: 20%; background: rgba(58, 154, 173, 0.35); }
.island--ota { left: 58%; top: 66%; width: 26%; height: 22%; background: rgba(196, 165, 116, 0.45); }

.legend {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.legend--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}
.legend li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.legend--compact li {
  padding: 0 0 0.85rem;
}
.legend li:last-child { border-bottom: 0; padding-bottom: 0; }
.legend--compact li:nth-last-child(-n+2) { border-bottom: 0; }
.legend strong {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.legend p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Why */
.why-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-item {
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--water);
}
.why-item h3 {
  margin: 0 0 0.55rem;
  font-family: "Shippori Mincho", serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.why-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Timeline layers */
.layers {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
}

.layer {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 1.25rem 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(243, 248, 249, 0.16);
}
.layer:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.layer__era {
  font-family: "Shippori Mincho", serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--flare);
}
.layer__era small {
  display: block;
  margin-top: 0.35rem;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(243, 248, 249, 0.65);
}

.layer h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.layer p {
  margin: 0;
  color: rgba(243, 248, 249, 0.84);
  font-size: 0.98rem;
}

.fact-tag {
  display: inline-block;
  margin: 0.7rem 0 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(232, 180, 90, 0.55);
  color: var(--flare);
}

/* Walk */
.walk-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: walk;
  display: grid;
  gap: 1.15rem;
}
.walk-list li {
  counter-increment: walk;
  display: grid;
  grid-template-columns: minmax(9rem, 32%) 1fr;
  gap: 1.1rem;
  align-items: center;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.walk-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.walk-list figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d7e6ea;
}
.walk-list .photo-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.walk-list .photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.walk-list strong {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.walk-list strong::before {
  content: counter(walk, decimal-leading-zero) " · ";
  color: var(--water-mid);
  letter-spacing: 0.04em;
}
.walk-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Sources */
.sources {
  margin-top: 1.75rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.sources h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.sources ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.sources a {
  color: var(--water);
  text-underline-offset: 0.15em;
}
.note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.next {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.next p {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--water-mid);
}
.next a {
  font-family: "Shippori Mincho", serif;
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
}
.next a:hover { border-color: var(--water); }

/* Footer */
.site-footer {
  padding: 2rem clamp(1.1rem, 4vw, 2.5rem) 2.5rem;
  background: var(--ink);
  color: rgba(243, 248, 249, 0.78);
  font-size: 0.88rem;
}
.site-footer__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer strong {
  display: block;
  color: #fff;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.site-footer a {
  color: var(--flare);
  text-underline-offset: 0.15em;
}

@media (max-width: 860px) {
  .ward-map,
  .why-grid,
  .layer,
  .walk-list li,
  .legend--compact {
    grid-template-columns: 1fr;
  }
  .photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-nav { display: none; }
  .hero__copy { padding-top: 6rem; }
  .island { font-size: 0.72rem; }
  .ward-ja-legend li {
    flex: 0 0 auto;
    min-width: 7.2rem;
  }
}

@media (max-width: 640px) {
  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-strip figcaption { min-height: 4.2rem; }
}

/* Leaflet ward name labels — 濃色・読みやすく */
.leaflet-map .ward-name-label {
  background: transparent !important;
  border: 0 !important;
}
.leaflet-map .ward-name-label span {
  display: inline-block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0.15rem 0.35rem;
  white-space: nowrap;
  text-shadow:
    0 0 3px #fff,
    0 0 6px #fff,
    1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff;
}
.leaflet-map .landfill-note-label {
  background: transparent !important;
  border: 0 !important;
}
.leaflet-map .landfill-note-label span {
  display: inline-block;
  text-align: center;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #0a5c52;
  padding: 0.25rem 0.45rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed #0a5c52;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.leaflet-map .landfill-note-label small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3d5c56;
}

