/* ============================
   Sites & Routes page
   File: style_sites.css
   Scope: body.sites-page
============================ */

:root {
  --sites-ink: var(--ink, #1f2527);
  --sites-muted: var(--muted, #6d6f6a);
  --sites-paper: var(--paper, #fffdf7);
  --sites-cream: var(--cream, #f7f3ea);
  --sites-blue: var(--blue, #243f63);
  --sites-blue-soft: var(--blue-soft, #e8eef5);
  --sites-wine: var(--wine, #8f1717);
  --sites-gold: var(--gold, #b79355);
  --sites-shadow: var(--shadow, 0 24px 70px rgba(28, 34, 38, .12));
  --sites-max: var(--max, 1160px);
}

.sites-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(183, 147, 85, .14), transparent 34rem),
    radial-gradient(circle at 90% 26%, rgba(36, 63, 99, .12), transparent 30rem),
    #faf7f0;
  color: var(--sites-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sites-main {
  overflow: hidden;
}

.sites-main *,
.sites-main *::before,
.sites-main *::after {
  box-sizing: border-box;
}

.sites-main a {
  color: inherit;
}

.sites-main img {
  display: block;
  max-width: 100%;
}

.sites-container {
  width: min(var(--sites-max), calc(100% - 44px));
  margin-inline: auto;
}

.sites-page .section,
.sites-page .contact-strip {
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.sites-page .section {
  padding: clamp(72px, 9vw, 118px) 0;
  background: transparent;
}

.sites-page .section.alt {
  background: rgba(255, 253, 247, .58);
  border-top: 1px solid rgba(36, 63, 99, .10);
  border-bottom: 1px solid rgba(36, 63, 99, .10);
}

.sites-page h1,
.sites-page h2,
.sites-page h3 {
  margin: 0;
  padding: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  letter-spacing: .01em;
  color: #20272a;
}

.sites-page h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .92;
}

.sites-page h1 span {
  display: block;
  color: var(--sites-blue);
}

.sites-page h2 {
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  line-height: 1.03;
}

.sites-page h3 {
  font-size: 1.18rem;
  line-height: 1.25;
}

.sites-page p {
  margin: 0;
  padding: 0;
}

.sites-page .lead,
.sites-page .section-head > p:last-child {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.82;
  color: rgba(31, 37, 39, .82);
}

.sites-page .eyebrow {
  margin: 0 0 14px;
  color: var(--sites-wine);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sites-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(36, 63, 99, .14);
  border-radius: 999px;
  background: var(--sites-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 18px 36px rgba(36, 63, 99, .18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sites-page .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(36, 63, 99, .22);
}

.sites-page .btn.secondary {
  background: rgba(255, 253, 247, .76);
  color: var(--sites-blue);
  border-color: rgba(36, 63, 99, .18);
  box-shadow: none;
}

.section-head {
  max-width: 830px;
}

.section-head.center {
  margin: 0 auto 38px;
  text-align: center;
}

.section-head:not(.center) p:last-child,
.section-head.center p:last-child {
  margin-top: 22px;
}

/* ============================
   Hero
============================ */

.sites-hero {
  position: relative;
  min-height: clamp(720px, 90vh, 920px);
  padding: clamp(82px, 9vw, 124px) 0 clamp(72px, 8vw, 110px);
  display: flex;
  align-items: center;
}

.sites-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 247, 240, .96), rgba(250, 247, 240, .74) 44%, rgba(250, 247, 240, .16)),
    radial-gradient(circle at 76% 24%, rgba(183, 147, 85, .16), transparent 27rem);
  pointer-events: none;
}

.sites-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .82fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
}

.sites-hero__content {
  max-width: 700px;
}

.sites-hero__content .lead {
  max-width: 59ch;
  margin-top: 28px;
}

.sites-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.sites-hero__map {
  min-height: 560px;
  display: grid;
  align-items: center;
}

.location-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(36, 63, 99, .12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 253, 247, .88), transparent 13rem),
    linear-gradient(145deg, rgba(232, 238, 245, .94), rgba(255, 253, 247, .80));
  box-shadow: var(--sites-shadow);
}

.location-card__header {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 20px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--sites-blue);
  font-weight: 760;
}

.location-card__header small {
  font-size: .72rem;
  font-weight: 650;
  color: rgba(36, 63, 99, .58);
}

.context-map {
  position: absolute;
  inset: 62px 22px 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.46), rgba(255,255,255,.18)),
    radial-gradient(circle at 28% 26%, rgba(36, 63, 99, .12), transparent 12rem),
    radial-gradient(circle at 76% 72%, rgba(183, 147, 85, .16), transparent 14rem);
}

.context-map::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(90deg, rgba(36, 63, 99, .10) 1px, transparent 1px),
    linear-gradient(rgba(36, 63, 99, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 92%);
}

.context-land {
  position: absolute;
  border-radius: 999px 42% 999px 55%;
  background: rgba(36, 63, 99, .82);
  box-shadow: 0 20px 40px rgba(36, 63, 99, .14);
}

.context-land--honshu {
  width: 58%;
  height: 19%;
  right: 4%;
  top: 20%;
  transform: rotate(-18deg);
}

.context-land--shikoku {
  width: 28%;
  height: 9%;
  right: 18%;
  top: 46%;
  transform: rotate(-12deg);
  opacity: .78;
}

.context-land--kyushu {
  width: 28%;
  height: 30%;
  left: 28%;
  bottom: 15%;
  transform: rotate(18deg);
  background: rgba(36, 63, 99, .90);
}

.context-label,
.context-pin {
  position: absolute;
  z-index: 2;
  font-weight: 760;
}

.context-label--japan {
  right: 9%;
  top: 13%;
  color: rgba(36, 63, 99, .76);
}

.context-label--kyushu {
  left: 34%;
  bottom: 10%;
  color: rgba(36, 63, 99, .76);
}

.context-label--nagasaki {
  left: 20%;
  bottom: 33%;
  color: rgba(143, 23, 23, .78);
  font-size: .84rem;
}

.context-line {
  position: absolute;
  left: 13%;
  bottom: 36%;
  width: 22%;
  height: 2px;
  background: linear-gradient(90deg, var(--sites-gold), rgba(183, 147, 85, 0));
  transform: rotate(-8deg);
  transform-origin: left center;
}

.context-pin--goto {
  left: 10%;
  bottom: 36%;
  display: grid;
  gap: 8px;
  color: var(--sites-wine);
  font-size: .9rem;
}

.context-pin--goto::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 4px solid #fffdf7;
  border-radius: 999px;
  background: var(--sites-wine);
  box-shadow: 0 0 0 2px rgba(143, 23, 23, .22), 0 14px 24px rgba(28,34,38,.18);
}

/* ============================
   Orientation
============================ */

.sites-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .74fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.orientation-notes {
  display: grid;
  gap: 12px;
}

.note-item,
.practical-card,
.site-card,
.island-summary-card,
.route-card {
  border: 1px solid rgba(36, 63, 99, .12);
  border-radius: 24px;
  background: rgba(255, 253, 247, .78);
  box-shadow: 0 20px 54px rgba(28, 34, 38, .08);
  backdrop-filter: blur(14px);
}

.note-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px;
}

.note-number,
.site-card__type,
.route-card__label,
.island-summary-card span {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--sites-wine);
}

.note-item p,
.practical-card p,
.site-card p,
.island-summary-card p,
.route-card p,
.route-card li {
  color: rgba(31, 37, 39, .72);
  line-height: 1.7;
}

/* ============================
   Island overview
============================ */

.island-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .62fr);
  gap: 24px;
  align-items: stretch;
}

.island-map,
.route-map__surface {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(36, 63, 99, .12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 253, 247, .88), transparent 15rem),
    radial-gradient(circle at 74% 70%, rgba(183, 147, 85, .13), transparent 18rem),
    linear-gradient(145deg, rgba(232, 238, 245, .94), rgba(255, 253, 247, .76));
  box-shadow: var(--sites-shadow);
}

.island-map::before,
.route-map__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(90deg, rgba(36, 63, 99, .10) 1px, transparent 1px),
    linear-gradient(rgba(36, 63, 99, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.map-note {
  position: absolute;
  left: 22px;
  top: 18px;
  z-index: 10;
  padding: 7px 10px;
  border: 1px solid rgba(36, 63, 99, .10);
  border-radius: 999px;
  background: rgba(255, 253, 247, .76);
  color: rgba(31, 37, 39, .58);
  font-size: .72rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.island-shape,
.route-island {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.island-shape img,
.route-island img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.60) hue-rotate(92deg) brightness(.78) contrast(.96);
  opacity: .90;
}

.island-shape--fukue {
  left: 12%;
  bottom: 12%;
  width: min(29vw, 240px);
  aspect-ratio: 142 / 124;
}

.island-shape--hisaka {
  left: 43%;
  top: 52%;
  width: min(12vw, 92px);
  aspect-ratio: 41 / 49;
}

.island-shape--naru {
  left: 49%;
  top: 43%;
  width: min(14vw, 112px);
  aspect-ratio: 48 / 58;
}

.island-shape--wakamatsu {
  left: 63%;
  top: 32%;
  width: min(12vw, 92px);
  height: min(20vw, 142px);
  aspect-ratio: 49 / 71;
}

.island-shape--nakadori {
  left: 70%;
  top: -3%;
  width: min(29vw, 240px);
  aspect-ratio: 55 / 98;
}

.island-placeholder {
  position: absolute;
  z-index: 1;
  border: 2px solid rgba(36, 63, 99, .46);
  background: rgba(36, 63, 99, .16);
  box-shadow: inset 0 0 0 12px rgba(255, 253, 247, .22), 0 18px 42px rgba(28,34,38,.10);
  pointer-events: none;
}

.island-placeholder--wakamatsu {
  left: 62%;
  top: 34%;
  width: 98px;
  height: 142px;
  border-radius: 58% 38% 54% 42%;
  transform: rotate(18deg);
}

.island-placeholder--nakadori {
  left: 74%;
  top: 11%;
  width: 118px;
  height: 210px;
  border-radius: 48% 42% 58% 36%;
  transform: rotate(14deg);
}

.island-name {
  position: absolute;
  z-index: 5;
  padding: 7px 10px;
  border: 1px solid rgba(36, 63, 99, .10);
  border-radius: 999px;
  background: rgba(255, 253, 247, .80);
  color: var(--sites-blue);
  font-size: .8rem;
  font-weight: 760;
  box-shadow: 0 12px 26px rgba(28,34,38,.08);
  backdrop-filter: blur(12px);
}

.island-name--fukue { left: 25%; bottom: 35%; }
.island-name--hisaka { left: 53%; top: 63%; }
.island-name--naru { left: 45%; top: 42%; }
.island-name--wakamatsu { left: 63%; top: 49%; }
.island-name--nakadori { right: 20%; top: 18%; }

.island-node,
.route-point {
  position: absolute;
  z-index: 7;
  width: 18px;
  height: 18px;
  border: 4px solid #fffdf7;
  border-radius: 999px;
  background: var(--sites-wine);
  box-shadow: 0 0 0 2px rgba(143, 23, 23, .18), 0 12px 22px rgba(28,34,38,.16);
}

.island-node--fukue { left: 28%; bottom: 25%; }
.island-node--hisaka { left: 48%; top: 62%; }
.island-node--naru { left: 58%; top: 52%; }
.island-node--wakamatsu { left: 69%; top: 41%; }
.island-node--nakadori { left: 82%; top: 27%; }

.island-summary {
  display: grid;
  gap: 14px;
}

.island-summary-card {
  padding: 22px;
}

.island-summary-card h3 {
  margin: 8px 0 10px;
  color: var(--sites-blue);
}

/* ============================
   Routes
============================ */

.route-planner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .68fr);
  gap: 24px;
  align-items: stretch;
}

.route-map__surface {
  min-height: 620px;
}

.route-lines {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: 0;
  transition: opacity .22s ease;
}

.route-line--gateway { stroke: var(--sites-blue); }
.route-line--hidden { stroke: var(--sites-wine); }
.route-line--prayer { stroke: var(--sites-gold); }
.route-line.is-active { opacity: .9; }

.route-island--fukue {
  left: 12%;
  bottom: 10%;
  width: min(34vw, 300px);
  aspect-ratio: 142 / 124;
}

.route-island--hisaka {
  left: 39%;
  top: 44%;
  width: min(10vw, 80px);
  aspect-ratio: 41 / 49;
}

.route-island--naru {
  left: 51%;
  top: 30%;
  width: min(12vw, 96px);
  aspect-ratio: 48 / 58;
}

.route-island--wakamatsu-placeholder,
.route-island--nakadori-placeholder {
  position: absolute;
  z-index: 1;
  border: 2px solid rgba(36, 63, 99, .40);
  background: rgba(36, 63, 99, .14);
  pointer-events: none;
}

.route-island--wakamatsu-placeholder {
  left: 63%;
  top: 31%;
  width: 78px;
  height: 118px;
  border-radius: 58% 38% 54% 42%;
  transform: rotate(18deg);
}

.route-island--nakadori-placeholder {
  left: 74%;
  top: 12%;
  width: 96px;
  height: 172px;
  border-radius: 48% 42% 58% 36%;
  transform: rotate(14deg);
}

.route-point {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-width: 4px;
  color: #fff;
  font-size: .74rem;
  font-weight: 760;
  cursor: default;
  opacity: .42;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.route-point.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.route-point--fukue { left: 26%; top: 74%; }
.route-point--hisaka { left: 49%; top: 49%; }
.route-point--naru { left: 65%; top: 38%; }
.route-point--wakamatsu { left: 73%; top: 31%; }
.route-point--nakadori { left: 82%; top: 25%; }

.route-label {
  position: absolute;
  z-index: 8;
  padding: 6px 9px;
  border: 1px solid rgba(36, 63, 99, .10);
  border-radius: 999px;
  background: rgba(255, 253, 247, .82);
  color: var(--sites-blue);
  font-size: .76rem;
  font-weight: 760;
  box-shadow: 0 12px 26px rgba(28,34,38,.08);
  backdrop-filter: blur(12px);
}

.route-label--fukue { left: 16%; bottom: 13%; }
.route-label--hisaka { left: 38%; top: 54%; }
.route-label--naru { left: 55%; top: 28%; }
.route-label--north { right: 4%; top: 17%; }

.route-content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.route-tabs,
.site-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.route-tab,
.site-filter__btn {
  appearance: none;
  border: 1px solid rgba(36, 63, 99, .12);
  border-radius: 999px;
  background: rgba(255, 253, 247, .76);
  color: var(--sites-blue);
  cursor: pointer;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(28,34,38,.06);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.route-tab.is-active,
.site-filter__btn.is-active {
  background: var(--sites-blue);
  border-color: var(--sites-blue);
  color: #fff;
}

.route-card {
  display: none;
  padding: 24px;
}

.route-card.is-active {
  display: block;
}

.route-card h3 {
  margin: 8px 0 12px;
  color: var(--sites-blue);
  font-size: 1.5rem;
}

.route-card ol {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
}

/* ============================
   Site cards
============================ */

.site-filter {
  justify-content: center;
  margin: -14px 0 24px;
}

.site-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-card {
  min-height: 208px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.site-card[hidden] {
  display: none;
}

.site-card h3 {
  margin: 10px 0 10px;
  color: var(--sites-blue);
}

/* ============================
   Practical / contact
============================ */

.practical-grid {
  display: grid;
  gap: 12px;
}

.practical-card {
  padding: 22px;
}

.practical-card h3 {
  margin-bottom: 8px;
  color: var(--sites-blue);
}

.sites-contact {
  padding: clamp(48px, 6vw, 78px) 0;
  background: var(--sites-wine);
  color: #fffdf7;
}

.sites-contact .sites-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.sites-contact h2 {
  color: #fffdf7;
  font-size: clamp(2rem, 4.2vw, 4.1rem);
}

.sites-contact p {
  max-width: 760px;
  color: rgba(255, 253, 247, .82);
  line-height: 1.75;
}

.sites-contact .eyebrow {
  color: rgba(255, 253, 247, .72);
}

.sites-contact .btn {
  background: #fffdf7;
  color: var(--sites-wine);
  border-color: rgba(255, 253, 247, .7);
  white-space: nowrap;
}

/* Reveal animation: visible by default, animated when shared script adds .js and .in-view. */
.sites-page .reveal {
  opacity: 1;
  transform: none;
}

html.js .sites-page .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}

html.js .sites-page .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Responsive
============================ */

@media (max-width: 980px) {
  .sites-hero {
    min-height: auto;
  }

  .sites-hero__grid,
  .sites-split,
  .island-overview,
  .route-planner,
  .sites-contact .sites-container {
    grid-template-columns: 1fr;
  }

  .sites-hero__map {
    min-height: auto;
  }

  .location-card {
    min-height: 430px;
  }

  .island-map,
  .route-map__surface {
    min-height: 560px;
  }

  .site-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sites-contact .btn {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .sites-container {
    width: min(100% - 32px, var(--sites-max));
  }

  .sites-page .section {
    padding: 58px 0;
  }

  .sites-hero {
    padding-top: 60px;
    padding-bottom: 56px;
  }

  .sites-page h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .sites-hero__actions {
    display: grid;
  }

  .sites-page .btn,
  .sites-contact .btn {
    width: 100%;
  }

  .location-card {
    min-height: 380px;
    border-radius: 26px;
  }

  .location-card__header {
    display: grid;
    align-items: start;
  }

  .context-map {
    inset: 76px 14px 14px;
    border-radius: 22px;
  }

  .context-land--honshu {
    width: 62%;
    height: 17%;
    right: -2%;
    top: 20%;
  }

  .context-land--kyushu {
    width: 33%;
    height: 30%;
    left: 32%;
    bottom: 16%;
  }

  .context-label--japan,
  .context-label--kyushu {
    font-size: .78rem;
  }

  .context-pin--goto {
    left: 3%;
    bottom: 35%;
    font-size: .78rem;
  }

  .note-item {
    padding: 18px;
  }

  .island-map,
  .route-map__surface {
    min-height: 460px;
    border-radius: 26px;
  }

  .map-note {
    left: 14px;
    top: 14px;
  }

  .island-shape--fukue,
  .route-island--fukue {
    left: 6%;
    width: 4vw;
  }

  .island-shape--hisaka,
  .route-island--hisaka {
    left: 41%;
    width: 15vw;
  }

  .island-shape--naru,
  .route-island--naru {
    left: 53%;
    width: 17vw;
  }

  .island-placeholder--wakamatsu,
  .route-island--wakamatsu-placeholder {
    left: 65%;
    width: 62px;
    height: 94px;
  }

  .island-placeholder--nakadori,
  .route-island--nakadori-placeholder {
    left: 75%;
    width: 70px;
    height: 132px;
  }

  .island-name,
  .route-label {
    font-size: .68rem;
    padding: 5px 7px;
  }

  .island-name--fukue { left: 9%; bottom: 9%; }
  .island-name--hisaka { left: 36%; top: 55%; }
  .island-name--naru { left: 52%; top: 27%; }
  .island-name--wakamatsu { left: 57%; top: 55%; }
  .island-name--nakadori { right: 3%; top: 16%; }

  .island-node--fukue { left: 20%; bottom: 29%; }
  .island-node--hisaka { left: 46%; top: 51%; }
  .island-node--naru { left: 60%; top: 40%; }
  .island-node--wakamatsu { left: 70%; top: 50%; }
  .island-node--nakadori { left: 84%; top: 27%; }

  .route-point--fukue { left: 22%; top: 74%; }
  .route-point--hisaka { left: 49%; top: 49%; }
  .route-point--naru { left: 65%; top: 38%; }
  .route-point--wakamatsu { left: 75%; top: 32%; }
  .route-point--nakadori { left: 84%; top: 25%; }

  .route-label--fukue { left: 8%; bottom: 12%; }
  .route-label--hisaka { left: 35%; top: 54%; }
  .route-label--naru { left: 53%; top: 28%; }
  .route-label--north { right: 3%; top: 15%; }

  .island-summary-card,
  .route-card,
  .site-card,
  .practical-card {
    border-radius: 20px;
  }

  .route-tabs,
  .site-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .route-tabs::-webkit-scrollbar,
  .site-filter::-webkit-scrollbar {
    display: none;
  }

  .route-tab,
  .site-filter__btn {
    flex: 0 0 auto;
  }

  .site-card-grid {
    grid-template-columns: 1fr;
  }

  .site-card {
    min-height: 172px;
    padding: 22px;
  }

  .sites-contact .sites-container {
    gap: 22px;
  }
}

@media (max-width: 390px) {
  .island-map,
  .route-map__surface {
    min-height: 420px;
  }

  .island-placeholder--nakadori,
  .route-island--nakadori-placeholder {
    width: 58px;
    height: 116px;
  }

  .route-point {
    width: 27px;
    height: 27px;
    font-size: .68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .sites-page .reveal,
  .sites-page .btn,
  .route-line,
  .route-point,
  .route-tab,
  .site-filter__btn {
    transition: none;
  }

  .sites-page .btn:hover {
    transform: none;
  }
}


/* ============================
   Island explorer expansion
   Interactive island map + caption + slideshow
============================ */

.sites-hero__actions .btn.secondary[href="#site-list"] {
  background: rgba(255, 253, 247, .76);
}

.island-overview[data-island-explorer] {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .76fr);
  gap: clamp(18px, 3vw, 30px);
}

.island-map__hint {
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 10;
  padding: 7px 10px;
  border: 1px solid rgba(36, 63, 99, .10);
  border-radius: 999px;
  background: rgba(255, 253, 247, .76);
  color: rgba(31, 37, 39, .58);
  font-size: .72rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.island-overview[data-island-explorer] .island-shape,
.island-overview[data-island-explorer] .island-mini-island {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.island-overview[data-island-explorer] .island-shape {
  z-index: 3;
}

.island-overview[data-island-explorer] .island-shape img,
.island-overview[data-island-explorer] .island-shape__fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: saturate(.62) hue-rotate(92deg) brightness(.78) contrast(.96);
  opacity: .86;
  transition: filter .22s ease, opacity .22s ease, transform .22s ease;
}

.island-overview[data-island-explorer] .island-shape__fallback {
  border: 2px solid rgba(36, 63, 99, .46);
  background: rgba(36, 63, 99, .16);
  box-shadow: inset 0 0 0 12px rgba(255, 253, 247, .22), 0 18px 42px rgba(28,34,38,.10);
}



.island-shape--nakadori .island-shape__fallback {
  border-radius: 48% 42% 58% 36%;
  transform: rotate(14deg);
}



.island-shape--wakamatsu .island-shape__fallback {
  border-radius: 58% 38% 54% 42%;
  transform: rotate(18deg);
}

.island-overview[data-island-explorer] .island-shape:hover,
.island-overview[data-island-explorer] .island-shape:focus-visible,
.island-overview[data-island-explorer] .island-shape.is-active {
  z-index: 6;
  transform: translateY(-2px) scale(1.04);
}

.island-overview[data-island-explorer] .island-shape:hover img,
.island-overview[data-island-explorer] .island-shape:focus-visible img,
.island-overview[data-island-explorer] .island-shape.is-active img,
.island-overview[data-island-explorer] .island-shape:hover .island-shape__fallback,
.island-overview[data-island-explorer] .island-shape:focus-visible .island-shape__fallback,
.island-overview[data-island-explorer] .island-shape.is-active .island-shape__fallback {
  opacity: 1;
  filter: saturate(.92) hue-rotate(78deg) brightness(.88) contrast(1.08) drop-shadow(0 16px 20px rgba(36, 63, 99, .18));
}

.island-mini-island {
  left: 50%;
  bottom: 70%;
  width: min(97vw, 800px);
  aspect-ratio: 85 / 100;
}

.island-mini-island--one {
  left: 100%;
  top: 10%;
  width: min(97vw, 800px);
  aspect-ratio: 85 / 100;
}

.island-mini-island--two {
  left: 50%;
  top: 66%;
  width: 24px;
  height: 38px;
  border-radius: 46% 58% 44% 52%;
  transform: rotate(21deg);
}

.island-mini-island--three {
  left: 88%;
  top: 55%;
  width: 22px;
  height: 34px;
  border-radius: 58% 42% 52% 48%;
  transform: rotate(-10deg);
}

.island-mini-island:hover,
.island-mini-island:focus-visible,
.island-mini-island.is-active {
  background: rgba(143, 23, 23, .22) !important;
  border-color: rgba(143, 23, 23, .58) !important;
  transform: translateY(-2px) scale(1.08);
}

.island-name.is-active {
  background: var(--sites-blue);
  color: #fffdf7;
  border-color: rgba(36, 63, 99, .35);
}

.island-name--goto {
  right: 9%;
  top: 61%;
}

.island-node.is-active {
  background: var(--sites-blue);
  box-shadow: 0 0 0 3px rgba(36, 63, 99, .18), 0 12px 24px rgba(28,34,38,.18);
  transform: scale(1.12);
}

.island-node--goto {
  left: 88%;
  top: 60%;
}

.island-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.island-summary-card--featured {
  min-height: 184px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 88% 18%, rgba(183, 147, 85, .14), transparent 8rem),
    rgba(255, 253, 247, .84);
}

.island-summary-card--featured h3 {
  margin: 9px 0 10px;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}

.island-gallery {
  display: grid;
  min-height: clamp(420px, 42vw, 560px);
}

.island-gallery--single {
  grid-template-rows: 1fr;
}

.island-gallery-card {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 63, 99, .12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232, 238, 245, .92), rgba(255, 253, 247, .74)),
    rgba(255, 253, 247, .78);
  box-shadow: 0 20px 54px rgba(28, 34, 38, .08);
}

.island-gallery-card__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 63, 99, .05), rgba(36, 63, 99, .22)),
    radial-gradient(circle at 20% 20%, rgba(255, 253, 247, .76), transparent 10rem),
    linear-gradient(135deg, rgba(183, 147, 85, .24), rgba(36, 63, 99, .18));
  background-position: center;
  background-size: cover;
  transition: opacity .28s ease, transform .28s ease;
}

.island-gallery-card.is-changing .island-gallery-card__image {
  opacity: .72;
  transform: scale(1.012);
}

.island-gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 37, 39, .00) 38%, rgba(31, 37, 39, .52));
  pointer-events: none;
}

.island-gallery-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  color: #fffdf7;
  font-weight: 650;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .34);
}

.island-gallery-card figcaption small {
  opacity: .78;
  font-size: .74rem;
}

.island-gallery--single .island-gallery-card {
  min-height: 100%;
  border-radius: 26px;
}

@media (max-width: 980px) {
  .island-overview[data-island-explorer] {
    grid-template-columns: 1fr;
  }

  .island-panel {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: none;
    align-items: stretch;
  }

  .island-gallery {
    min-height: 390px;
  }
}

@media (max-width: 680px) {
  .island-map__hint {
    left: 14px;
    right: auto;
    top: 52px;
  }

  .island-shape--nakadori {
    left: 75%;
    width: 70px;
    height: 132px;
  }

  .island-shape--wakamatsu {
    left: 65%;
    width: 62px;
    height: 94px;
  }

  .island-mini-island--one {
    left: 36%;
    top: 31%;
    width: 22px;
    height: 36px;
  }

  .island-mini-island--two {
    left: 50%;
    top: 68%;
    width: 18px;
    height: 28px;
  }

  .island-mini-island--three {
    left: 88%;
    top: 57%;
    width: 18px;
    height: 27px;
  }

  .island-name--goto {
    right: 4%;
    top: 64%;
  }

  .island-node--goto {
    left: 89%;
    top: 62%;
  }

  .island-panel {
    grid-template-columns: 1fr;
  }

  .island-summary-card--featured {
    min-height: 172px;
    padding: 21px;
  }

  .island-gallery {
    min-height: clamp(300px, 82vw, 410px);
  }

  .island-gallery-card {
    border-radius: 22px;
  }
}

@media (max-width: 390px) {
  .island-gallery {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .island-overview[data-island-explorer] .island-shape,
  .island-overview[data-island-explorer] .island-shape img,
  .island-overview[data-island-explorer] .island-shape__fallback,
  .island-gallery-card__image {
    transition: none;
  }
}


/* ============================
   Sites island explorer: prevent scroll jitter
============================ */

/* Hoverで内容が切り替わっても、ブラウザがスクロール位置を補正しないようにする */
.sites-islands,
.sites-islands *,
.island-overview[data-island-explorer],
.island-panel,
.island-summary-card--featured,
.island-gallery {
  overflow-anchor: none;
}

/* 説明カードの高さを安定させる */
.island-summary-card--featured {
  min-height: 210px;
}

/* 説明文の行数差でカードの高さが変わらないようにする */
.island-summary-card--featured [data-island-description] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* 島のhover時に上下へ動かさない。見た目の強調は色と影だけにする */
.island-overview[data-island-explorer] .island-shape:hover,
.island-overview[data-island-explorer] .island-shape:focus-visible,
.island-overview[data-island-explorer] .island-shape.is-active {
  transform: none;
}

.island-mini-island:hover,
.island-mini-island:focus-visible,
.island-mini-island.is-active {
  transform: scale(1.04);
}

/* ============================
   Passive mini islands layer
   - Uses smallIslands/smallislands as a full-map image layer.
   - Keeps the panel interaction, but removes all map-side hover/active motion.
============================ */
.island-overview[data-island-explorer] .island-mini-island,
.island-overview[data-island-explorer] .island-mini-island--one {
  position: absolute;
  inset: 0;
  left: 7%;
  top: -10%;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  transform: none !important;
  transition: none;
}

.island-overview[data-island-explorer] .island-mini-island img,
.island-overview[data-island-explorer] .island-mini-island .island-shape__fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: .72;
  filter: saturate(.60) hue-rotate(92deg) brightness(.78) contrast(.96);
  pointer-events: none;
  transform: none !important;
  transition: none;
}

.island-overview[data-island-explorer] .island-mini-island:hover,
.island-overview[data-island-explorer] .island-mini-island:focus-visible,
.island-overview[data-island-explorer] .island-mini-island.is-active {
  z-index: 1;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none;
  outline: none;
  transform: none !important;
}

.island-overview[data-island-explorer] .island-mini-island:hover img,
.island-overview[data-island-explorer] .island-mini-island:focus-visible img,
.island-overview[data-island-explorer] .island-mini-island.is-active img,
.island-overview[data-island-explorer] .island-mini-island:hover .island-shape__fallback,
.island-overview[data-island-explorer] .island-mini-island:focus-visible .island-shape__fallback,
.island-overview[data-island-explorer] .island-mini-island.is-active .island-shape__fallback {
  opacity: .72;
  filter: saturate(.60) hue-rotate(92deg) brightness(.78) contrast(.96);
  transform: none !important;
}

/* ============================
   Hero redesign: image orientation map
   - Replaces the CSS-only map with an image and lightweight HTML/CSS labels.
   - Adjust --goto-x / --goto-y / --nagasaki-x / --nagasaki-y if the pin needs fine tuning.
============================ */

.sites-hero {
  background:
    radial-gradient(circle at 16% 48%, rgba(183, 147, 85, .10), transparent 28rem),
    radial-gradient(circle at 86% 62%, rgba(36, 63, 99, .14), transparent 32rem),
    linear-gradient(180deg, rgba(255, 253, 247, .92), rgba(250, 247, 240, .96));
}

.sites-hero::before {
  background:
    linear-gradient(90deg, rgba(250, 247, 240, .96), rgba(250, 247, 240, .80) 42%, rgba(250, 247, 240, .34)),
    radial-gradient(circle at 76% 24%, rgba(183, 147, 85, .14), transparent 27rem);
}

.sites-hero__content .lead {
  max-width: 55ch;
}

.sites-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 26px;
}

.sites-hero__facts span {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid rgba(36, 63, 99, .11);
  border-radius: 18px;
  background: rgba(255, 253, 247, .66);
  box-shadow: 0 16px 34px rgba(28, 34, 38, .06);
  backdrop-filter: blur(12px);
}

.sites-hero__facts strong {
  color: var(--sites-blue);
  font-size: .9rem;
  line-height: 1.25;
}

.sites-hero__facts small {
  color: rgba(31, 37, 39, .56);
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.35;
}

.location-card--image {
  isolation: isolate;
  min-height: 548px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 253, 247, .96), transparent 13rem),
    radial-gradient(circle at 92% 80%, rgba(183, 147, 85, .14), transparent 16rem),
    linear-gradient(145deg, rgba(232, 238, 245, .96), rgba(255, 253, 247, .86));
}

.location-card--image::before,
.location-card--image::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
}

.location-card--image::before {
  width: 180px;
  height: 180px;
  right: -68px;
  top: -58px;
  background: rgba(183, 147, 85, .14);
  filter: blur(2px);
}

.location-card--image::after {
  width: 230px;
  height: 230px;
  left: -88px;
  bottom: -108px;
  background: rgba(36, 63, 99, .10);
}

.location-card--image .location-card__header {
  z-index: 5;
  align-items: start;
}

.location-card__title {
  display: grid;
  gap: 5px;
}

.location-card__title > span,
.location-card__header > span {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: .05em;
}

.location-card__title small {
  display: block;
  color: rgba(36, 63, 99, .58);
  font-size: .72rem;
  font-weight: 650;
}

.location-card__tag {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(36, 63, 99, .10);
  border-radius: 999px;
  background: rgba(255, 253, 247, .66);
  color: rgba(36, 63, 99, .64);
  font-size: .7rem;
  font-weight: 760;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.context-map--image {
  --map-zoom: 1.07;
  --goto-x: 15%;
  --goto-y: 57%;
  --nagasaki-x: 24%;
  --nagasaki-y: 30%;
  inset: 82px 24px 94px;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(36, 63, 99, .08);
  border-radius: 28px;
  background: #e8fbfb;
  box-shadow:
    inset 0 0 0 12px rgba(255, 253, 247, .54),
    0 20px 42px rgba(28, 34, 38, .08);
}

.context-map--image::before {
  content: none;
}

.context-map--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .04), rgba(36, 63, 99, .07)),
    radial-gradient(circle at var(--goto-x) var(--goto-y), rgba(143, 23, 23, .18), transparent 5.5rem);
  pointer-events: none;
}

.context-map__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  transform: scale(var(--map-zoom));
  transform-origin: center;
}

.context-map__focus {
  position: absolute;
  left: var(--goto-x);
  top: var(--goto-y);
  z-index: 4;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(143, 23, 23, .22);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 12px rgba(143, 23, 23, .07);
  pointer-events: none;
}

.context-map__route {
  position: absolute;
  left: calc(var(--goto-x) + 0px);
  top: calc(var(--goto-y) + 1px);
  z-index: 4;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, rgba(143, 23, 23, .84), rgba(183, 147, 85, .58));
  transform: translateY(-1px) rotate(15deg);
  transform-origin: left center;
  opacity: .86;
  pointer-events: none;
}

.context-map__route::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(183, 147, 85, .72);
  border-right: 2px solid rgba(183, 147, 85, .72);
  transform: translateY(-50%) rotate(45deg);
}

.context-map__label {
  position: absolute;
  z-index: 5;
  padding: 6px 9px;
  border: 1px solid rgba(36, 63, 99, .10);
  border-radius: 999px;
  background: rgba(255, 253, 247, .86);
  color: rgba(36, 63, 99, .72);
  font-size: .72rem;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(28, 34, 38, .08);
  backdrop-filter: blur(10px);
}

.context-map__label--nagasaki {
  left: var(--nagasaki-x);
  top: var(--nagasaki-y);
  transform: translate(-8%, -50%);
}

.context-map__pin {
  position: absolute;
  left: var(--goto-x);
  top: var(--goto-y);
  z-index: 6;
  width: 18px;
  height: 18px;
  border: 4px solid #fffdf7;
  border-radius: 999px;
  background: var(--sites-wine);
  box-shadow: 0 0 0 3px rgba(143, 23, 23, .18), 0 14px 24px rgba(28, 34, 38, .20);
  transform: translate(-50%, -50%);
}

.context-map__pin > span {
  position: absolute;
  left: 24px;
  top: 180%;
  min-width: max-content;
  padding: 8px 10px;
  border: 1px solid rgba(143, 23, 23, .16);
  border-radius: 999px;
  background: rgba(255, 253, 247, .92);
  color: var(--sites-wine);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(28, 34, 38, .10);
  transform: translateY(50%), translateX(-50%);
  backdrop-filter: blur(12px);
}

.location-card__footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.location-card__footer span {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 63, 99, .10);
  border-radius: 16px;
  background: rgba(255, 253, 247, .70);
  color: var(--sites-blue);
  font-size: .82rem;
  font-weight: 760;
  line-height: 1.1;
  box-shadow: 0 12px 24px rgba(28, 34, 38, .06);
  backdrop-filter: blur(12px);
}

.location-card__footer small {
  color: rgba(36, 63, 99, .52);
  font-size: .62rem;
  font-weight: 760;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .sites-hero__facts {
    max-width: none;
  }

  .location-card--image {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  .sites-hero__facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sites-hero__facts span {
    min-height: auto;
    padding: 13px 14px;
  }

  .location-card--image {
    min-height: 470px;
  }

  .location-card--image .location-card__header {
    display: flex;
    align-items: start;
  }

  .location-card__tag {
    white-space: nowrap;
  }

  .context-map--image {
    --map-zoom: 1.04;
    --goto-x: 14%;
    --goto-y: 76%;
    --nagasaki-x: 27%;
    --nagasaki-y: 72%;
    inset: 86px 14px 88px;
    border-radius: 22px;
    box-shadow:
      inset 0 0 0 8px rgba(255, 253, 247, .54),
      0 16px 32px rgba(28, 34, 38, .08);
  }

  .context-map__pin > span,
  .context-map__label {
    font-size: .68rem;
  }

  .context-map__focus {
    width: 58px;
    height: 58px;
  }

  .location-card__footer {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 7px;
  }

  .location-card__footer span {
    min-height: 50px;
    padding: 9px 10px;
    font-size: .74rem;
  }
}

@media (max-width: 430px) {
  .location-card__footer span {
    font-size: .68rem;
    padding-inline: 8px;
  }

  .context-map__pin > span {
    padding: 7px 8px;
  }
}
/* ============================
   Hero orientation inset redesign
   - Main panel keeps the Kyushu/Goto detail map.
   - Inset uses /images/sites/hilightkyushu.* to show Japan-wide context.
============================ */

.location-card--image {
  min-height: 568px;
}

.context-map--with-inset {
  --map-zoom: 1.08;
  --goto-x: 14%;
  --goto-y: 57%;
  --nagasaki-x: 22%;
  --nagasaki-y: 30%;
  background:
    radial-gradient(circle at 22% 58%, rgba(143, 23, 23, .08), transparent 8rem),
    linear-gradient(180deg, #e8fbfb, #f3fcfb);
}

.context-map--with-inset::after {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .04), rgba(36, 63, 99, .07)),
    radial-gradient(circle at var(--goto-x) var(--goto-y), rgba(143, 23, 23, .20), transparent 5.4rem),
    radial-gradient(circle at 77% 24%, rgba(255, 253, 247, .44), transparent 7rem);
}

.context-map__image--main {
  filter: saturate(.92) brightness(1.01) contrast(.98);
}

.context-map__inset {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 7;
  width: clamp(128px, 34%, 184px);
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(36, 63, 99, .12);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .92), rgba(255, 253, 247, .78));
  box-shadow: 0 18px 36px rgba(28, 34, 38, .12);
  backdrop-filter: blur(14px);
}

.context-map__inset::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border-radius: 16px;
  background: rgba(232, 238, 245, .46);
  pointer-events: none;
}

.context-map__inset > * {
  position: relative;
  z-index: 1;
}

.context-map__inset-kicker,
.context-map__inset figcaption {
  display: block;
  color: rgba(36, 63, 99, .62);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.context-map__inset-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 7px 0 6px;
  object-fit: contain;
  border: 1px solid rgba(36, 63, 99, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.context-map__inset figcaption {
  color: var(--sites-wine);
  letter-spacing: .08em;
}

.context-map__zoom-line {
  position: absolute;
  left: calc(var(--goto-x) + 44px);
  top: calc(var(--goto-y) - 24px);
  z-index: 3;
  width: min(38%, 190px);
  border-top: 1px dashed rgba(36, 63, 99, .30);
  transform: rotate(-23deg);
  transform-origin: left center;
  opacity: .72;
  pointer-events: none;
}

.context-map__zoom-line::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(36, 63, 99, .36);
}

.context-map__route {
  width: 15%;
}

.context-map__pin > span {
  white-space: nowrap;
}

.location-card__footer span {
  min-width: 0;
}

@media (max-width: 980px) {
  .location-card--image {
    min-height: 540px;
  }

  .context-map__inset {
    width: clamp(130px, 28%, 176px);
  }
}

@media (max-width: 680px) {
  .location-card--image {
    min-height: 500px;
  }

  .context-map--with-inset {
    --map-zoom: 1.04;
    --goto-x: 14%;
    --goto-y: 76%;
    --nagasaki-x: 27%;
    --nagasaki-y: 72%;
  }

  .context-map__inset {
    right: 10px;
    top: 10px;
    width: min(42%, 148px);
    padding: 8px;
    border-radius: 17px;
  }

  .context-map__inset::before {
    inset: 7px;
    border-radius: 13px;
  }

  .context-map__inset-image {
    margin: 6px 0 5px;
    border-radius: 12px;
  }

  .context-map__zoom-line {
    display: none;
  }

  .context-map__route {
    width: 20%;
  }
}

@media (max-width: 430px) {
  .context-map__inset {
    width: 130px;
  }

  .context-map__inset figcaption {
    display: none;
  }

  .context-map__inset-image {
    margin-bottom: 0;
  }
}

/* ============================
   Hero orientation map: aspect-ratio-safe coordinate layer
   - Keep the labels/pin/focus on a fixed design canvas instead of the visible card box.
   - This prevents object-fit letterboxing from moving the map while the overlays stay behind.
============================ */
.context-map--image {
  container-type: size;
  container-name: hero-orientation-map;
}

.context-map--image::after,
.context-map--with-inset::after {
  content: none;
}

.context-map__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(100cqw, 118cqh);
  aspect-ratio: 1.18 / 1;
  border-radius: 26px;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.context-map__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .04), rgba(36, 63, 99, .07)),
    radial-gradient(circle at var(--goto-x) var(--goto-y), rgba(143, 23, 23, .20), transparent 5.4rem),
    radial-gradient(circle at 77% 24%, rgba(255, 253, 247, .44), transparent 7rem);
  pointer-events: none;
}

.context-map__stage .context-map__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

@supports not (width: 1cqw) {
  .context-map__stage {
    width: min(100%, 465px);
  }
}

@media (max-width: 680px) {
  .context-map--with-inset {
    --map-zoom: 1.08;
    --goto-x: 14%;
    --goto-y: 57%;
    --nagasaki-x: 22%;
    --nagasaki-y: 30%;
  }
}

@media (max-width: 430px) {
  .context-map__stage {
    border-radius: 20px;
  }
}

/* ============================
   Hero map frame fix
   親の伸縮枠ではなく、固定比率の地図レイヤー側に枠を持たせる
============================ */

.context-map--image {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.context-map__stage {
  overflow: hidden;
  border: 1px solid rgba(36, 63, 99, .08);
  background:
    radial-gradient(circle at 22% 58%, rgba(143, 23, 23, .08), transparent 8rem),
    linear-gradient(180deg, #e8fbfb, #f3fcfb);
  box-shadow:
    inset 0 0 0 12px rgba(255, 253, 247, .54),
    0 20px 42px rgba(28, 34, 38, .08);
}

.context-map__stage .context-map__image {
  border-radius: inherit;
}

@media (max-width: 680px) {
  .context-map__stage {
    border-radius: 22px;
    box-shadow:
      inset 0 0 0 8px rgba(255, 253, 247, .54),
      0 16px 32px rgba(28, 34, 38, .08);
  }
}

@media (max-width: 430px) {
  .context-map__stage {
    border-radius: 20px;
  }
}

/* section alt sites-islands の写真枚数表示を非表示 */
.sites-islands [data-gallery-primary-count] {
  display: none;
}