:root {
  --bg: #f6f6f1;
  --surface: #ffffff;
  --mint: #e4eee2;
  --green: #5c9c67;
  --green-dark: #3d6f47;
  --text: #2f352f;
  --muted: #667066;
  --line: #d5ddd4;
  --accent: #f4cfbf;
  --shadow: 0 18px 40px rgba(33, 53, 37, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 2px, rgba(0,0,0,.15) 2px 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 3px, rgba(0,0,0,.1) 3px 6px);
  mix-blend-mode: screen;
  transform: translateX(0);
}
.noise-overlay.is-active {
  animation: hardNoise .9s steps(3, end) forwards;
}
@keyframes hardNoise {
  0% { opacity: 0; transform: translate(0,0) skew(0deg); filter: contrast(1); }
  10% { opacity: .95; transform: translate(-16px, 6px) skew(-2deg); filter: contrast(1.8); }
  22% { opacity: .8; transform: translate(22px, -8px) skew(2deg); }
  40% { opacity: 1; transform: translate(-30px, 10px) skew(-1.5deg); }
  60% { opacity: .88; transform: translate(25px, -12px) skew(1deg); }
  100% { opacity: 0; transform: translate(0,0) skew(0deg); filter: contrast(1); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 222, 212, 0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
}
.site-logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #8bcf99, #5ea96e);
  color: #fff; font-size: 24px; box-shadow: var(--shadow);
}
.site-logo h1 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.7rem); line-height: 1.3; }
.logo-sub, .section-en, .eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: .9rem;
  letter-spacing: .08em;
}
.global-nav { display: flex; align-items: center; gap: 24px; }
.global-nav a { color: var(--muted); font-weight: 700; }
.global-nav a:hover, .global-nav a:focus-visible { color: var(--green-dark); }
.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 14px;
}

.hero { padding: 44px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(180deg, #ebf4ea 0%, #e3efe1 100%);
  border-radius: 36px;
  padding: clamp(28px, 4vw, 52px);
}
.hero-copy h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.35; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-visual img { border-radius: 28px; box-shadow: var(--shadow); }

.search-section, .spots-section, .map-section, .course-section, .info-section {
  padding: 28px 0 42px;
}
.section-heading { margin-bottom: 22px; }
.section-heading.compact { margin-bottom: 16px; }
.section-heading h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2vw, 2rem); }
.section-heading p:last-child { margin: 0; color: var(--muted); }

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: var(--surface);
  padding: 14px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.search-box input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}
.search-box button, .button-link, .card-link {
  border: 0; border-radius: 14px;
  padding: 14px 18px;
  background: var(--green);
  color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.search-box button:hover, .button-link:hover, .card-link:hover { background: var(--green-dark); }

.search-status {
  margin-top: 12px;
  min-height: 1.8em;
  color: var(--muted);
}
.stage-guide {
  margin-top: 10px;
  color: var(--green-dark);
  font-size: .96rem;
}
.secret-result, .map-clue {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: #f5f4ef;
  border: 1px solid #ddd7c8;
}
.secret-result h3, .secret-result p, .map-clue p { margin-top: 0; }
.secret-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe8d6;
  color: #705f3a;
  font-size: .82rem;
}
.small-note { color: var(--muted); }
code {
  background: #ece8dc;
  padding: 2px 6px;
  border-radius: 8px;
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.spot-card, .info-card, .detail-card, .map-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.spot-card { display: flex; flex-direction: column; }
.spot-image-wrap { position: relative; }
.spot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.spot-card-body { padding: 22px; }
.card-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #edf6ee;
  color: var(--green-dark);
  font-weight: 700;
  font-size: .84rem;
}
.spot-card h3 { margin: 14px 0 10px; font-size: 1.55rem; line-height: 1.4; }
.spot-card p { color: var(--muted); margin-top: 0; }
.tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 18px;
}
.tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: #f2f4ef;
  border: 1px solid var(--line);
  color: #505650;
  font-size: .85rem;
}
.suspicious-marker {
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,26,26,.75) 0 35%, rgba(155,26,26,.18) 36% 100%);
  box-shadow: 0 0 0 8px rgba(255,255,255,.1), 0 0 16px rgba(130,0,0,.45);
  cursor: pointer;
}
.suspicious-marker::after {
  content: "";
  position: absolute;
  inset: -10px;
}
.suspicious-marker[data-spot-id="01"] { right: 16%; top: 60%; }
.suspicious-marker[data-spot-id="02"] { left: 60%; top: 55%; }
.suspicious-marker[data-spot-id="03"] { left: 53%; top: 58%; }
.suspicious-marker:hover { transform: scale(1.08); }

.full-span { grid-column: 1 / -1; }

.map-card { padding: 18px; }
.map-wrap { position: relative; }
.map-card img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.map-anomaly {
  position: absolute;
  right: 24%;
  bottom: 24%;
  width: 110px; height: 110px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 35% 35%, rgba(140,0,0,.9) 0 24%, rgba(30,0,0,.95) 45%, rgba(0,0,0,0) 72%),
    radial-gradient(circle at 65% 60%, rgba(86,0,0,.85) 0 18%, rgba(0,0,0,0) 70%);
  mix-blend-mode: multiply;
  animation: pulseStain 2.2s ease-in-out infinite;
}
@keyframes pulseStain {
  0%,100% { transform: scale(1); filter: blur(0); }
  50% { transform: scale(1.08); filter: blur(.5px); }
}

.course-section {
  background: linear-gradient(180deg, #edf4eb 0%, rgba(237,244,235,0) 100%);
}
.stage-hidden { display: none; }
.course-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.course-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(33,53,37,.04);
}
.course-initial {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.info-card { padding: 26px; }
.info-card h2 { margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #f4f5f0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--muted);
  font-size: .95rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0 18px;
  color: var(--muted);
  font-size: .95rem;
}
.detail-main { padding-bottom: 40px; }
.detail-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 540px;
}
.detail-visual { min-height: 100%; }
.detail-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-content { padding: clamp(24px, 4vw, 44px); }
.detail-content h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.35;
}
.detail-lead { color: var(--muted); margin-bottom: 22px; }
.detail-meta {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.detail-meta strong { color: var(--green-dark); }
.detail-copy p:last-child { margin-bottom: 0; }

.truth-page .detail-card {
  grid-template-columns: 1fr;
  background: #faf8f3;
  border: 1px solid #ddd6c7;
}
.truth-page .detail-content { max-width: 760px; }
.truth-page .detail-content h2 { letter-spacing: .04em; }
.truth-label {
  background: #ece6d8;
  color: #65563d;
}
.truth-page .detail-copy { font-size: 1.03rem; }
.truth-page .site-footer { background: #f8f6ef; }

.fade-flash { animation: flashTitle .8s ease; }
@keyframes flashTitle {
  0% { opacity: 1; }
  40% { opacity: .18; }
  100% { opacity: 1; }
}

@media (max-width: 980px) {
  .spot-grid, .info-grid, .detail-card, .hero-grid {
    grid-template-columns: 1fr;
  }
  .detail-visual { max-height: 360px; }
}
@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }
  .global-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
  }
  .global-nav.is-open, .inline-nav { display: flex; }
  .search-box { grid-template-columns: 1fr; }
  .spot-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
