/*
Theme Name: Deep Tokyo Map
Theme URI: https://example.com/deep-tokyo-map
Author: Codex
Description: A map-based guide to lesser-known deep Tokyo attractions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Text Domain: deep-tokyo-map
*/

:root {
  --ink: #16202a;
  --muted: #65717c;
  --paper: #f7f4ed;
  --surface: #ffffff;
  --line: #d8d0c2;
  --green: #286d62;
  --red: #b54b35;
  --gold: #af842e;
  --shadow: 0 18px 40px rgba(22, 32, 42, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.72;
}
a { color: inherit; }
.dt-page { min-height: 100vh; }
.dt-header {
  padding: 26px clamp(18px, 4vw, 56px) 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.94);
}
.dt-brand {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.dt-brand a { text-decoration: none; font-size: 18px; font-weight: 900; }
.dt-brand span { color: var(--muted); font-size: 13px; }
.dt-lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}
.dt-lang a {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.dt-lang a.is-active { background: var(--ink); color: #fff; }
.dt-main { max-width: 1180px; margin: 0 auto; padding: 38px clamp(18px, 4vw, 56px) 70px; }
.dt-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr);
  gap: 34px;
  align-items: center;
}
.dt-kicker { margin: 0 0 8px; color: var(--red); font-weight: 900; }
h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: 0; }
.dt-intro {
  max-width: 700px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #fff8ef;
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 900;
  line-height: 1.55;
}
.dt-lead { color: var(--muted); font-size: 17px; max-width: 660px; }
.dt-note { color: var(--muted); font-size: 13px; }
.dt-map-panel, .dt-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.dt-map-panel { padding: 18px; }
.dt-map { display: block; width: 100%; height: auto; min-height: 340px; }
.dt-tokyo-shape { fill: #e8efe9; stroke: #799b91; stroke-width: 2; }
.dt-bay { fill: #dbeef4; opacity: .86; }
.dt-map-river { fill: none; stroke: #8fb6c8; stroke-width: 3; opacity: .7; }
.dt-map-rail { fill: none; stroke: #6d747b; stroke-width: 3; stroke-dasharray: 8 7; opacity: .55; }
.dt-landmark { pointer-events: none; }
.dt-landmark rect,
.dt-landmark circle,
.dt-landmark path {
  fill: #16202a;
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.dt-landmark--tower path,
.dt-landmark--tower circle { fill: var(--red); }
.dt-landmark--gov rect,
.dt-landmark--gov path { fill: var(--green); }
.dt-landmark text {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4;
  fill: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}
.dt-spot-marker { filter: drop-shadow(0 5px 8px rgba(22,32,42,.22)); transition: transform .15s ease; }
.dt-map a:hover .dt-spot-marker, .dt-map a:focus .dt-spot-marker { transform: translateY(-4px); }
.dt-spot-marker__roof { fill: var(--red); }
.dt-spot-marker__body { fill: #fff; stroke: var(--ink); stroke-width: 1.3; }
.dt-spot-marker__door { fill: var(--green); }
.dt-spot-marker text {
  fill: var(--ink);
  font-size: 7px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.dt-list { display: grid; gap: 14px; margin-top: 22px; }
.dt-card {
  display: grid;
  grid-template-columns: 152px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(22, 32, 42, 0.06);
}
.dt-card:hover { border-color: var(--red); }
.dt-card h2 { margin: 0 0 4px; font-size: 22px; }
.dt-meta { color: var(--muted); font-size: 14px; }
.dt-rank { color: var(--gold); font-size: 22px; font-weight: 900; }
.dt-visual {
  margin: 0 0 22px;
}
.dt-visual svg,
.dt-visual img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(22, 32, 42, 0.06);
}
.dt-visual img {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}
.dt-visual figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.dt-visual figcaption a {
  color: var(--red);
  font-weight: 800;
}
.dt-visual--thumb {
  width: 152px;
  margin: 0;
}
.dt-visual--thumb svg,
.dt-visual--thumb img {
  aspect-ratio: 16 / 10;
  height: 96px;
  object-fit: cover;
  box-shadow: none;
}
.dt-back, .dt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.dt-home-link { margin: 34px 0 0; text-align: center; }
.dt-detail { padding: clamp(20px, 4vw, 38px); }
.dt-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.dt-detail-head h1 { font-size: clamp(34px, 4.5vw, 54px); }
.dt-badge { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; color: var(--muted); margin: 4px 6px 0 0; }
.dt-dl { display: grid; grid-template-columns: 170px 1fr; gap: 12px 18px; margin: 0; }
.dt-dl dt { color: var(--muted); font-weight: 900; }
.dt-dl dd { margin: 0; }
.dt-source { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 840px) {
  .dt-brand { align-items: flex-start; flex-direction: column; }
  .dt-hero { grid-template-columns: 1fr; }
  .dt-card, .dt-detail-head { grid-template-columns: 1fr; display: block; }
  .dt-visual--thumb { width: 100%; margin-bottom: 12px; }
  .dt-dl { grid-template-columns: 1fr; gap: 4px 0; }
}
