:root {
  --ink: #162019;
  --muted: #5d695f;
  --paper: #fff9ef;
  --paper-2: #f3eadb;
  --green: #2f6f52;
  --green-deep: #163b2d;
  --clay: #c1723c;
  --sun: #efb640;
  --cream: #fffdf7;
  --line: rgba(22, 32, 25, 0.12);
  --shadow: 0 20px 60px rgba(22, 32, 25, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 182, 64, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(47, 111, 82, 0.14), transparent 30rem),
    var(--paper);
  line-height: 1.72;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-150%);
  background: var(--green-deep);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 20px;
  pointer-events: none;
}
.top-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 10px 30px rgba(22, 32, 25, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.nav-links a:hover { background: rgba(47, 111, 82, 0.09); color: var(--green-deep); }
.nav-button, .tool-button {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
}
.nav-button:hover, .tool-button:hover { transform: translateY(-1px); }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 130px 20px 90px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(15, 28, 20, 0.86), rgba(15, 28, 20, 0.54) 46%, rgba(15, 28, 20, 0.18)),
    url("https://sunagawa-kankou.com/kankou/images/img_0426.jpg");
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -90px -10%;
  height: 190px;
  background: var(--paper);
  border-radius: 50% 50% 0 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 28%, rgba(239, 182, 64, 0.23), transparent 26rem);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  color: #fff;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
  font-size: 0.78rem;
}
.hero .eyebrow { color: #ffd47a; }
h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.8rem, 8vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
}
.lead {
  max-width: 720px;
  margin: 26px 0 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.primary-link, .secondary-link, .spot-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 900;
}
.primary-link { background: #fff; color: var(--green-deep); }
.secondary-link { border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin-top: 58px;
}
.hero-stats div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}
.hero-stats strong { display: block; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.1; }
.hero-stats span { display: block; color: rgba(255,255,255,0.78); font-size: 0.88rem; margin-top: 4px; }

.section-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading h2, .print-card h2, .site-footer h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.section-heading p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); }

.overview-grid, .tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.overview-card, .tip-card, .print-card, .route-card, .spot-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  box-shadow: var(--shadow);
}
.overview-card, .tip-card {
  border-radius: var(--radius-lg);
  padding: 26px;
}
.number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 111, 82, 0.1);
  color: var(--green);
  font-weight: 950;
}
h3 { margin: 16px 0 8px; font-size: 1.28rem; line-height: 1.3; }
.overview-card p, .tip-card li, .timeline-body p, .spot-content p, .spot-data, .route-summary em, .site-footer p {
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 85px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--green), rgba(47,111,82,0.05));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: stretch;
}
.timeline-time {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 24px;
  font-weight: 950;
  font-size: 1.2rem;
  color: var(--green-deep);
}
.timeline-body {
  position: relative;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.78);
}
.timeline-body::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 5px solid var(--green);
  box-shadow: 0 0 0 6px var(--paper);
}
.timeline-item.highlight .timeline-body { background: rgba(239, 182, 64, 0.16); }
.timeline-item.branch .timeline-body { background: rgba(47, 111, 82, 0.08); }
.timeline-item.optional .timeline-body { background: rgba(193, 114, 60, 0.09); }
.timeline-body h3 { margin-top: 0; }
.chip {
  display: inline-flex;
  margin: 8px 8px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 32, 25, 0.07);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 800;
}
.tools-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tool-button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.route-card {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.route-map { height: 520px; min-height: 520px; background: #dce7db; }
.leaflet-container { overflow: hidden; }
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-layer,
.leaflet-zoom-box {
  position: absolute;
  left: 0;
  top: 0;
}
.leaflet-container img.leaflet-tile,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
  max-width: none !important;
  max-height: none !important;
}
.leaflet-tile-container { position: absolute; left: 0; top: 0; }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 800;
  pointer-events: none;
}
.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
  float: left;
  clear: both;
}
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-control-zoom a {
  display: block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  background: #fff;
  color: #162019;
  border-bottom: 1px solid #ccc;
}
.leaflet-control-zoom a:last-child { border-bottom: 0; }
.route-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 32, 25, 0.34);
  font-size: 0.9rem;
  font-weight: 950;
}
.route-marker span { line-height: 1; }
.route-summary {
  padding: 32px;
  background: var(--green-deep);
  color: #fff;
}
.route-summary h3 { margin-top: 0; }
.route-summary ol { margin: 0; padding-left: 22px; }
.route-summary li { margin: 0 0 18px; padding-left: 6px; }
.route-summary span { display: block; font-weight: 900; }
.route-summary em { display: block; color: rgba(255,255,255,0.68); font-style: normal; font-size: 0.9rem; }
.noscript-note { padding: 20px; }

.spots { padding-top: 40px; }
.spot-card {
  display: grid;
  grid-template-columns: minmax(270px, 0.95fr) minmax(280px, 1fr);
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 26px;
}
.spot-card.large { grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 1fr); }
.spot-gallery {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 0.68fr;
  gap: 0;
  background: var(--paper-2);
}
.spot-gallery.single { grid-template-columns: 1fr; }
.spot-gallery figure { margin: 0; position: relative; min-height: 100%; overflow: hidden; }
.spot-gallery img { width: 100%; height: 100%; object-fit: cover; }
.photo-side { border-left: 1px solid rgba(255,255,255,0.4); }
.spot-gallery figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 32, 25, 0.76);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}
.spot-content { padding: 34px; }
.spot-time {
  margin: 0 0 8px;
  color: var(--clay);
  font-weight: 950;
  letter-spacing: 0.04em;
}
.spot-content h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 14px; letter-spacing: -0.04em; }
.spot-data {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}
.spot-data div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.spot-data dt { font-weight: 950; color: var(--green-deep); }
.spot-data dd { margin: 0; }
.spot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.spot-actions a { background: var(--green-deep); color: #fff; min-height: 42px; font-size: 0.9rem; }
.spot-actions a + a { background: rgba(47, 111, 82, 0.1); color: var(--green-deep); }
.embedded-map {
  grid-column: 1 / -1;
  height: 300px;
  border-top: 1px solid var(--line);
  background: #dce7db;
}
.embedded-map iframe { width: 100%; height: 100%; border: 0; }

.tip-card ul { margin: 14px 0 0; padding-left: 1.2rem; }
.tip-card li { margin: 8px 0; }
.print-card {
  border-radius: var(--radius-xl);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  gap: 28px;
  align-items: start;
}
.mini-itinerary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mini-itinerary p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(47,111,82,0.08);
}
.mini-itinerary strong { color: var(--green); }

.site-footer {
  background: var(--green-deep);
  color: #fff;
  margin-top: 40px;
  padding: 60px 20px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 36px;
}
.site-footer h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.site-footer p { color: rgba(255,255,255,0.72); }
.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.source-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.source-list a:hover { background: rgba(255,255,255,0.14); }

.leaflet-popup-content { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }

@media (max-width: 900px) {
  .top-nav { border-radius: 24px; align-items: flex-start; flex-wrap: wrap; }
  .nav-links { width: 100%; order: 3; justify-content: space-between; overflow-x: auto; }
  .nav-button { margin-left: auto; }
  .hero { min-height: 720px; }
  .hero-stats, .overview-grid, .tips-grid, .mini-itinerary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-card, .spot-card, .spot-card.large, .print-card, .footer-inner { grid-template-columns: 1fr; }
  .spot-gallery { min-height: 360px; }
  .route-map { min-height: 420px; }
}

@media (max-width: 640px) {
  .site-header { padding: 10px; }
  .top-nav { padding: 10px; gap: 10px; }
  .brand span:last-child { display: none; }
  .nav-links a { font-size: 0.86rem; padding: 7px 10px; }
  .hero { padding: 112px 18px 72px; min-height: 700px; }
  .lead { font-size: 0.98rem; }
  .hero-stats, .overview-grid, .tips-grid, .mini-itinerary { grid-template-columns: 1fr; }
  .section-wrap { width: min(100% - 28px, var(--max)); padding: 62px 0; }
  .timeline::before { left: 18px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-left: 42px; }
  .timeline-time { justify-content: flex-start; padding-top: 0; }
  .timeline-body::before { left: -33px; top: 24px; }
  .timeline-body, .overview-card, .tip-card, .spot-content, .print-card, .route-summary { padding: 22px; }
  .spot-gallery { grid-template-columns: 1fr; }
  .photo-side { display: none; }
  .embedded-map { height: 260px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero-actions, .route, .embedded-map, .tools-row, .spot-actions, .site-footer { display: none !important; }
  .hero { min-height: auto; padding: 20px 0; background: none; color: #000; }
  .hero::after, .hero-overlay { display: none; }
  .hero-content, .section-wrap { width: 100%; }
  .hero-stats, .overview-grid, .tips-grid, .mini-itinerary { grid-template-columns: repeat(2, 1fr); }
  .spot-card, .spot-card.large, .print-card { box-shadow: none; page-break-inside: avoid; }
  .spot-gallery { min-height: 260px; }
  a { text-decoration: none; }
}
