/* ============================================================
   Japan Sightseeing Guide — photo-first light theme
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --line: rgba(16, 24, 40, 0.10);
  --line-strong: rgba(16, 24, 40, 0.20);

  --text: #131820;
  --muted: #59637a;
  --dim: #6b7688;

  --vermilion: #e8402c;
  --accent-text: #c8341f;   /* AA-safe vermilion for small text on white */
  --ember: #f5842b;
  --gold: #b5810c;
  --indigo: #4a5fd0;
  --jade: #12a077;

  --grad-hot: linear-gradient(120deg, #e8402c 0%, #f5842b 100%);
  --grad-hot-solid: linear-gradient(120deg, #c8341f 0%, #b34a14 100%);   /* white text passes AA on both stops */
  --grad-cool: linear-gradient(120deg, #4a5fd0 0%, #0d7f5f 100%);

  /* anything that sits on top of a photograph */
  --on-photo: #ffffff;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;

  --shadow: 0 22px 55px rgba(16, 24, 40, 0.14);
  --shadow-soft: 0 8px 26px rgba(16, 24, 40, 0.08);

  --font-display: "Fraunces", "Hiragino Mincho ProN", Georgia, serif;
  --font-body: "DM Sans", "Hiragino Sans", "Noto Sans KR", "Noto Sans TC", "Segoe UI", sans-serif;

  --wrap: 1240px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 6% -10%, rgba(232, 64, 44, 0.055), transparent 60%),
    radial-gradient(820px 560px at 98% 2%, rgba(74, 95, 208, 0.05), transparent 58%),
    radial-gradient(1000px 700px at 50% 110%, rgba(18, 160, 119, 0.045), transparent 60%),
    var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

::selection { background: rgba(232, 64, 44, 0.18); }

:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--vermilion);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------- layout bits */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-head p { color: var(--muted); max-width: 56ch; margin: 0; }
.section-head > div { min-width: 0; }
.section-head h2 { margin-bottom: 0.35em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-hot);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-hot-solid);
  color: #fff;
  box-shadow: 0 10px 26px rgba(232, 64, 44, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(232, 64, 44, 0.36); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--vermilion); }

/* ghost buttons that sit on a photograph */
.hero .btn-ghost,
.spot-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--on-photo);
  backdrop-filter: blur(10px);
}
.hero .btn-ghost:hover,
.spot-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: var(--on-photo);
  border-color: #fff;
}

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

/* ------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(16, 24, 40, 0.07); }

/* Over a photo hero the bar stays transparent until the page scrolls. */
html.js body.has-photo-hero .site-header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
html.js body.has-photo-hero .site-header:not(.is-stuck) .brand,
html.js body.has-photo-hero .site-header:not(.is-stuck) .brand-mark { color: var(--on-photo); }
html.js body.has-photo-hero .site-header:not(.is-stuck) .brand-sub { color: rgba(255, 255, 255, 0.72); }
html.js body.has-photo-hero .site-header:not(.is-stuck) .primary-nav a { color: rgba(255, 255, 255, 0.88); }
html.js body.has-photo-hero .site-header:not(.is-stuck) .primary-nav a:hover,
html.js body.has-photo-hero .site-header:not(.is-stuck) .primary-nav a.is-current {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
html.js body.has-photo-hero .site-header:not(.is-stuck) .search-trigger,
html.js body.has-photo-hero .site-header:not(.is-stuck) .lang-list,
html.js body.has-photo-hero .site-header:not(.is-stuck) .nav-toggle {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  backdrop-filter: blur(10px);
}
html.js body.has-photo-hero .site-header:not(.is-stuck) .search-trigger kbd {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.34);
}
html.js body.has-photo-hero .site-header:not(.is-stuck) .lang-list a { color: rgba(255, 255, 255, 0.82); }
html.js body.has-photo-hero .site-header:not(.is-stuck) .lang-list a.is-active { background: #fff; color: var(--text); }
html.js body.has-photo-hero .site-header:not(.is-stuck) .brand-badge { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); }

.header-inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-hot);
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(232, 64, 44, 0.30);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.primary-nav { display: flex; gap: 0.35rem; }
.primary-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.primary-nav a:hover,
.primary-nav a.is-current { color: var(--text); background: var(--surface-2); }

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.search-trigger:hover { border-color: var(--vermilion); color: var(--text); }
.search-trigger kbd {
  font: inherit;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--dim);
}

.lang-switcher { display: flex; align-items: center; gap: 0.4rem; }
.lang-label { display: none; }
.lang-list {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.lang-list a {
  display: block;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-list a:hover { color: var(--text); }
.lang-list a.is-active { background: var(--grad-hot-solid); color: #fff; }

.lang-short { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

/* --------------------------------------------------------- search modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: clamp(1rem, 8vh, 6rem) 1.25rem 2rem;
  background: rgba(19, 24, 32, 0.42);
  backdrop-filter: blur(10px);
}
.search-modal.is-open { display: block; }

.search-panel {
  width: min(100%, 720px);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: pop 0.22s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.search-field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
  padding: 0.3rem 0;
}
.search-field input:focus { outline: none; }
.search-field .search-icon { font-size: 1.1rem; opacity: 0.6; }
.search-close {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.search-results {
  max-height: min(60vh, 520px);
  overflow-y: auto;
  padding: 0.5rem;
}
.search-results:empty { display: none; }

.search-hit {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}
.search-hit:hover,
.search-hit.is-active { background: var(--surface-2); color: var(--text); }
.search-hit img {
  width: 64px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--surface-2);
  flex: none;
}
.search-hit-body { min-width: 0; }
.search-hit strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-hit span { font-size: 0.78rem; color: var(--dim); }
.search-empty { padding: 1.5rem; text-align: center; color: var(--dim); font-size: 0.9rem; }

/* --------------------------------------------------------------- hero */
.site-main { padding-top: var(--header-h); }
body.has-photo-hero .site-main { padding-top: 0; }

.hero {
  position: relative;
  min-height: min(90vh, 840px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-photo);
}

.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease;
}
.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 12s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.14) translate3d(0, 0, 0); }
  to { transform: scale(1.0) translate3d(0, -1.5%, 0); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.52) 0%, rgba(10, 14, 22, 0.18) 34%, rgba(10, 14, 22, 0.80) 100%),
    linear-gradient(96deg, rgba(10, 14, 22, 0.68) 0%, rgba(10, 14, 22, 0.18) 60%, transparent 100%);
}

.hero-inner { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.hero-copy { max-width: 42rem; }

.hero .eyebrow { color: #ffd9a8; }

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  font-weight: 900;
  margin-bottom: 0.35em;
  color: var(--on-photo);
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.42);
}
.hero h1 .accent {
  background: linear-gradient(120deg, #ffb08a 0%, #ffd9a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: min(100%, 34rem);
  margin: 1.8rem 0 1.25rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.94);
  cursor: text;
  box-shadow: 0 12px 34px rgba(10, 14, 22, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-search:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(10, 14, 22, 0.3); }
.hero-search span { color: var(--muted); flex: 1; font-size: 0.98rem; text-align: left; }
.hero-search .btn { padding: 0.62rem 1.15rem; flex: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  max-width: 40rem;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  color: var(--on-photo);
}
.hero-stat span {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-credit {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 1;
}
.hero-credit a { color: inherit; }

.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.15rem;
  display: flex;
  gap: 0.45rem;
  z-index: 1;
}
.hero-dots button {
  width: 26px;
  height: 3px;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}
.hero-dots button.is-active { background: #fff; width: 42px; }

/* ------------------------------------------------------- category rail */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }

.cat-tile {
  position: relative;
  min-height: 190px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.cat-tile-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.10) 0%, rgba(10, 14, 22, 0.80) 100%);
  transition: background 0.3s ease;
}
.cat-tile:hover .cat-tile-media { transform: scale(1.08); }
.cat-tile:hover::after { background: linear-gradient(180deg, rgba(232, 64, 44, 0.20) 0%, rgba(10, 14, 22, 0.85) 100%); }
.cat-tile-icon { font-size: 1.6rem; margin-bottom: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); }
.cat-tile-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; }
.cat-tile-count { font-size: 0.75rem; color: rgba(255, 255, 255, 0.72); }

/* ---------------------------------------------------------------- map */
/* Full-bleed, large map — visual impact over geographic accuracy. */
.section-map { padding-bottom: 0; }

.japan-map-wrap {
  margin-top: 0.5rem;
  margin-inline: calc(-1 * clamp(0.5rem, 4vw, 2.5rem));
}

.map-stage {
  position: relative;
  min-height: clamp(520px, 78vh, 920px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.japan-map-svg {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  min-height: clamp(520px, 78vh, 920px);
  border-radius: var(--radius-l);
  background:
    radial-gradient(70% 65% at 55% 45%, rgba(74, 95, 208, 0.10), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(245, 247, 252, 0.35));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.japan-map-svg svg {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  aspect-ratio: 680 / 1080;
}
.map-bg { fill: transparent; }

.pref-shape {
  fill: #dfe4ee;
  stroke: #ffffff;
  stroke-width: 0.7;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}
.pref-shape:hover,
.pref-shape.is-hover {
  fill: var(--ember);
  stroke: #fff;
  filter: drop-shadow(0 2px 6px rgba(245, 132, 43, 0.5));
}
.pref-shape.is-active {
  fill: var(--vermilion);
  stroke: #fff;
  filter: drop-shadow(0 3px 10px rgba(232, 64, 44, 0.5));
}

/* Okinawa is drawn as an inset in the bottom-right pocket, marked off by a
   diagonal rule the way printed Japanese tourist maps do it. */
.map-inset-divider {
  stroke: var(--line-strong);
  stroke-width: 1.2;
  stroke-dasharray: 7 6;
  fill: none;
  pointer-events: none;
}

.map-region {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  fill: #45506a;
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
  user-select: none;
}

.map-cta {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0 0;
}

/* Top-left: Japan runs corner to corner, so that quadrant is open water, and
   the bottom-right is now taken by the Okinawa inset. */
.map-panel {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.5rem);
  top: clamp(0.75rem, 2vw, 1.5rem);
  width: min(340px, calc(100% - 1.5rem));
  z-index: 2;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.map-hint { color: var(--muted); font-size: 0.92rem; margin: 0; }

.map-preview {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
}

.map-selection-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}
.map-selection-count { font-size: 0.82rem; color: var(--dim); margin: 0; }
.map-selection[hidden] { display: none; }
.map-selection { display: flex; flex-direction: column; gap: 0.6rem; }

.pref-list-fallback { margin-top: 2rem; }
.pref-list-fallback summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.prefecture-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}
.pref-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pref-link:hover {
  border-color: var(--vermilion);
  transform: translateY(-2px);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.pref-count { color: var(--dim); font-size: 0.78rem; }

/* ------------------------------------------------------------- mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 1rem;
}
.mosaic .spot-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .spot-card:nth-child(6) { grid-column: span 2; }
.mosaic .spot-card:nth-child(7) { grid-row: span 2; }

/* -------------------------------------------------------- spot cards */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.spot-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  min-height: 300px;
  display: flex;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}
.spot-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.spot-card > a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: 1.15rem;
  text-decoration: none;
  color: #fff;
  gap: 0.35rem;
}
.spot-card > a:hover { color: #fff; }

.spot-card-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-color: #dfe4ee;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.spot-card:hover .spot-card-media { transform: scale(1.07); }

.spot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.02) 0%, rgba(10, 14, 22, 0.48) 50%, rgba(10, 14, 22, 0.90) 100%);
}

.spot-card-badges {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.badge-pref { background: var(--accent-text); border-color: transparent; color: #fff; }
.badge-pref:hover { color: #fff; }
.badge-rating { background: #ffcf5c; border-color: transparent; color: #3b2a02; }

.spot-card h2,
.spot-card h3 {
  font-size: 1.22rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.spot-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spot-card-meta {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.spot-card-photos {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  font-size: 0.7rem;
  color: #fff;
  background: rgba(10, 14, 22, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.spot-card:hover .spot-card-photos { opacity: 1; transform: none; }

/* --------------------------------------------------------- filter bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.filter-chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.filter-chip.is-active {
  background: var(--grad-hot-solid);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 64, 44, 0.25);
}
.filter-count { font-size: 0.72rem; opacity: 0.7; }

/* ------------------------------------------------------- archive hero */
.archive-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  color: var(--on-photo);
}
.archive-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.62) 0%, rgba(10, 14, 22, 0.48) 45%, rgba(10, 14, 22, 0.78) 100%);
}
.archive-hero h1 { margin-bottom: 0.3em; color: var(--on-photo); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }
.archive-hero p { color: rgba(255, 255, 255, 0.9); max-width: 54ch; }

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-text); }

.archive-hero .breadcrumbs,
.spot-hero .breadcrumbs { color: rgba(255, 255, 255, 0.68); }
.archive-hero .breadcrumbs a,
.spot-hero .breadcrumbs a { color: rgba(255, 255, 255, 0.88); }
.archive-hero .breadcrumbs a:hover,
.spot-hero .breadcrumbs a:hover { color: #fff; }

/* --------------------------------------------------------- spot single */
.spot-hero {
  position: relative;
  min-height: min(74vh, 680px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 3.2rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-photo);
}
.spot-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.spot-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.55) 0%, rgba(10, 14, 22, 0.18) 38%, rgba(10, 14, 22, 0.82) 100%);
}
.spot-hero-inner { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.spot-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  margin-bottom: 0.25em;
  color: var(--on-photo);
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.42);
}
.spot-hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 46rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.spot-hero-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.spot-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -1.8rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.fact {
  background: var(--surface);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.fact-icon { font-size: 1.15rem; line-height: 1.3; }
.fact-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.15rem;
}
.fact-value { font-size: 0.88rem; font-weight: 600; line-height: 1.4; }

.spot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.panel {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  margin-bottom: 1.5rem;
}
.panel > h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.panel > h2 .panel-icon { font-size: 1.1rem; }

.prose { color: #3a4353; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent-text); }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.93rem;
  color: #3a4353;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature-list li:hover { border-color: var(--line-strong); transform: translateX(3px); background: #fff; }
.feature-list .marker {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--grad-hot-solid);
  color: #fff;
}
.feature-list.is-cool .marker { background: var(--grad-cool); color: #fff; }
.feature-list.is-tips .marker { background: #f0b429; color: #3b2a02; }

.access-steps { list-style: none; margin: 0; padding: 0 0 0 1.35rem; position: relative; }
.access-steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--vermilion), var(--indigo));
  border-radius: 2px;
}
.access-steps li { position: relative; padding: 0 0 0.9rem; font-size: 0.94rem; color: #3a4353; }
.access-steps li::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--vermilion);
}
.access-steps li:last-child { padding-bottom: 0; }

/* ------------------------------------------------------------ gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: zoom-in;
  padding: 0;
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 240px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: "⤢";
  position: absolute;
  right: 0.5rem;
  bottom: 0.4rem;
  font-size: 0.85rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.gallery-item:hover::after { opacity: 1; }

.credit-note { font-size: 0.74rem; color: var(--dim); margin-top: 0.9rem; }
.credit-note a { color: var(--muted); }

/* ----------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  background: rgba(12, 16, 24, 0.94);
  backdrop-filter: blur(8px);
  padding: 3.5rem 1rem 4.5rem;
}
.lightbox.is-open { display: grid; place-items: center; }
.lightbox img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(0deg, rgba(12, 16, 24, 0.9), transparent);
}
.lightbox-bar a { color: #ffcf5c; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: var(--vermilion); border-color: transparent; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ------------------------------------------------------------ sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1.25rem; }
.side-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.25rem;
}
.side-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.side-list li { display: grid; gap: 0.15rem; font-size: 0.88rem; }
.side-list .k { font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim); }
.side-list .v { color: #3a4353; }

.mini-map {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(74, 95, 208, 0.05) 0 12px, transparent 12px 24px),
    radial-gradient(70% 70% at 50% 50%, rgba(74, 95, 208, 0.12), var(--bg-soft));
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  gap: 0.3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mini-map:hover { border-color: var(--vermilion); color: var(--accent-text); box-shadow: var(--shadow-soft); }
.mini-map .pin { font-size: 1.7rem; }

.related-rail { display: grid; gap: 0.6rem; }
.related-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
}
.related-item:hover { background: var(--surface-2); color: var(--text); }
.related-item img { width: 68px; height: 50px; border-radius: 9px; object-fit: cover; flex: none; }
.related-item strong { display: block; font-size: 0.88rem; font-weight: 600; }
.related-item span { font-size: 0.72rem; color: var(--dim); }

/* ------------------------------------------------------------ reviews */
.review-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1rem; }
.review-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.1rem 1.25rem;
}
.review-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.review-meta strong { font-size: 0.95rem; }
.review-meta span { color: #8a6008; font-size: 0.9rem; letter-spacing: 0.08em; }
.review-photo { margin: 0.85rem 0 0; }
.review-photo img { border-radius: 12px; }

.review-form { display: grid; gap: 0.9rem; max-width: 42rem; }
.review-form h3 { margin: 0; }
.review-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.review-form input[type="text"],
.review-form input[type="email"],
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.review-form textarea { resize: vertical; }
.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--vermilion);
  box-shadow: 0 0 0 3px rgba(232, 64, 44, 0.12);
}
.review-form input[type="file"] { font-size: 0.82rem; color: var(--muted); }
.review-form .btn { justify-self: start; }

/* Honeypot: off-screen rather than display:none, which bots skip. */
.jsc-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rating-input { display: flex; gap: 0.25rem; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: #d7dbe4;
  transition: color 0.15s ease, transform 0.15s ease;
}
.rating-input label:hover { transform: scale(1.15); }
.rating-input.is-lit-1 label:nth-of-type(-n + 1),
.rating-input.is-lit-2 label:nth-of-type(-n + 2),
.rating-input.is-lit-3 label:nth-of-type(-n + 3),
.rating-input.is-lit-4 label:nth-of-type(-n + 4),
.rating-input.is-lit-5 label:nth-of-type(-n + 5) { color: #f0b429; }

.notice {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  border: 1px solid var(--line);
}
.notice-ok { background: rgba(18, 160, 119, 0.10); border-color: rgba(18, 160, 119, 0.35); }
.notice-warn { background: rgba(240, 180, 41, 0.14); border-color: rgba(240, 180, 41, 0.42); }

/* ---------------------------------------------------------- pagination */
.pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.page-numbers:hover { color: var(--text); border-color: var(--line-strong); }
.page-numbers.current { background: var(--grad-hot-solid); border-color: transparent; color: #fff; }

/* --------------------------------------------------------- photo wall */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 165px;
  gap: 0.7rem;
}
.photo-wall .photo-frame:nth-child(3n + 1) { grid-row: span 2; }
.photo-wall .photo-frame:nth-child(7n + 4) { grid-column: span 2; }

.photo-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-decoration: none;
  isolation: isolate;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.photo-frame:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.photo-frame:hover img { transform: scale(1.08); }

.photo-frame-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem 0.85rem 0.7rem;
  display: grid;
  gap: 0.1rem;
  background: linear-gradient(0deg, rgba(10, 14, 22, 0.9), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.photo-frame:hover .photo-frame-cap,
.photo-frame:focus-visible .photo-frame-cap { opacity: 1; transform: none; }
.photo-frame-cap strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}
.photo-frame-cap span { font-size: 0.72rem; color: #ffcf5c; }

/* -------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 3rem 0 2.5rem;
  margin-top: 3rem;
}
.footer-inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 0.4rem;
}
.footer-note { color: var(--muted); font-size: 0.87rem; max-width: 40ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.7rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent-text); }
.footer-legal {
  width: min(100% - 2.5rem, var(--wrap));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--dim);
}
.footer-legal a { color: var(--muted); }

/* ------------------------------------------------------------ reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* -------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .spot-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .map-stage {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .japan-map-svg {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-height: clamp(420px, 68vh, 720px);
  }
  .map-panel {
    position: static;
    width: 100%;
    margin-top: 1rem;
    backdrop-filter: none;
    background: var(--surface);
  }
  .japan-map-wrap { margin-inline: 0; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic .spot-card:nth-child(1),
  .mosaic .spot-card:nth-child(6) { grid-column: span 2; }
  .mosaic .spot-card:nth-child(7) { grid-row: span 1; }
}

@media (max-width: 860px) {
  .header-inner { gap: 0.45rem; }
  .brand { min-width: 0; }
  .brand-sub { display: none; }
  .brand-mark { font-size: 1rem; }
  .brand-badge { width: 34px; height: 34px; font-size: 1rem; }
  .search-trigger { padding: 0.45rem 0.55rem; flex-shrink: 0; }
  .search-trigger > span:nth-child(2) { display: none; }
  .lang-switcher { flex-shrink: 0; }
  .lang-list { padding: 0.14rem; gap: 0.05rem; }
  .lang-list a { padding: 0.28rem 0.42rem; font-size: 0.68rem; }
  .nav-toggle { flex-shrink: 0; margin-left: 0; }
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .primary-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  html.js body.has-photo-hero .site-header.is-open:not(.is-stuck) .primary-nav a { color: var(--muted); }
  html.js body.has-photo-hero .site-header.is-open:not(.is-stuck) .primary-nav a:hover,
  html.js body.has-photo-hero .site-header.is-open:not(.is-stuck) .primary-nav a.is-current {
    color: var(--text);
    background: var(--surface-2);
  }
  .search-trigger kbd { display: none; }
  /* the SVG scales down with the container, so the labels need more units */
  .map-region { font-size: 26px; stroke-width: 5px; }
  .hero { min-height: 86vh; }
  .hero-stats { gap: 1.4rem; }
  .fact-strip { margin-top: 0; }
  .photo-wall { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 130px; }
  .gallery-item:first-child { grid-column: span 2; min-height: 200px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .header-inner, .hero-inner, .spot-hero-inner, .footer-inner, .footer-legal { width: min(100% - 1.75rem, var(--wrap)); }
  .header-inner { gap: 0.35rem; }
  .brand { flex: 0 0 auto; }
  .brand-mark { font-size: 0.85rem; }
  .search-trigger { padding: 0.5rem 0.6rem; }
  .search-trigger-label { display: none; }
  /* the full native names do not fit next to the domain on a phone */
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-list a { padding: 0.24rem 0.34rem; font-size: 0.62rem; }
  .japan-map-svg { min-height: clamp(380px, 62vh, 640px); }
  .brand-sub { display: none; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .mosaic .spot-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .spot-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
  .hero-stat strong { font-size: 1.5rem; }
  .lightbox { padding: 3rem 0.5rem 4rem; }
  .photo-wall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .photo-wall .photo-frame:nth-child(7n + 4) { grid-column: span 2; }
  .photo-frame-cap { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
