.guide,
.guide-open {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif;
}

.guide {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 24px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  box-sizing: border-box;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.22s ease;
}

.guide[hidden] { display: none; }
.guide.is-visible { opacity: 1; }
.guide.guide--moving { background: rgba(0, 0, 0, 0.8); }
.guide.guide--hotspot-focus { background: rgba(0, 0, 0, 0.8); }

.guide__glow {
  position: fixed;
  z-index: 0;
  top: var(--guide-glow-top, 0);
  left: var(--guide-glow-left, 0);
  width: var(--guide-glow-size, 0);
  height: var(--guide-glow-size, 0);
  border-radius: 50%;
  box-sizing: border-box;
  background: transparent;
  box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.72);
  opacity: 0;
  pointer-events: none;
}

.guide--glow .guide__glow { opacity: 1; }

.guide__target {
  position: fixed;
  z-index: 1;
  top: var(--guide-target-top, 0);
  left: var(--guide-target-left, 0);
  width: var(--guide-target-size, 0);
  height: var(--guide-target-size, 0);
  opacity: 0;
  pointer-events: none;
}

.guide--target-visible .guide__target { opacity: 1; }

.guide-open {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.18s ease;
}

.guide__card {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-sizing: border-box;
  color: #fff;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.guide__content {
  opacity: 1;
  transition: opacity 0.16s ease;
}

.guide__content.is-fading {
  opacity: 0;
  pointer-events: none;
}

.guide__count {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  letter-spacing: 0.14em;
}

.guide__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.guide__text {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.guide__next {
  min-width: 142px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.guide__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.guide__actions .guide__next { grid-column: 2; }

.guide__finish {
  grid-column: 3;
  justify-self: end;
  align-self: end;
  min-width: 72px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.guide__next:hover,
.guide__next:focus-visible,
.guide__finish:hover,
.guide__finish:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.guide-open:hover,
.guide-open:focus-visible {
  background: rgba(103, 111, 122, 0.78);
  outline: none;
}

.guide-open {
  position: fixed;
  z-index: 27;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 34px;
  height: 34px;
  padding: 0;
  font: 600 18px/1 Georgia, serif;
  font-style: italic;
}

.vr-note {
  position: fixed;
  z-index: 27;
  right: calc(max(16px, env(safe-area-inset-right)) + 42px);
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 17px);
  max-width: calc(100vw - 90px - env(safe-area-inset-left) - env(safe-area-inset-right));
  margin: 0;
  color: #fff;
  font-family: "Zen Kaku Gothic New", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 3px #000;
  transform: translateY(50%);
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.guide-open[hidden] { display: none; }

body.is-guide-active #selection-summary {
  opacity: 0.24;
  transition: opacity 0.18s ease;
}

body.is-guide-active #map-open,
body.is-guide-active #map-close,
body.is-guide-active .guide-open,
body.is-guide-active .vr-note {
  opacity: 0;
  pointer-events: none;
}

body.is-guide-active[data-guide-focus="hotspot"] #selection-summary {
  z-index: 101;
  opacity: 0.24;
  transition: none;
}

body.is-guide-active[data-guide-focus="map"] #selection-summary {
  opacity: 0.24;
  transition: none;
}

body.is-guide-active[data-guide-focus="summary"] #selection-summary {
  z-index: 20;
  opacity: 1;
}

@media (max-width: 700px) {
  .guide {
    padding: 18px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .guide__card { padding: 16px 16px 14px; }
  .guide__title { font-size: 18px; }
  .guide__text { margin: 7px 0 14px; font-size: 13px; }
  .guide-open { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .vr-note {
    right: calc(max(12px, env(safe-area-inset-right)) + 42px);
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 17px);
    max-width: calc(100vw - 64px - env(safe-area-inset-left) - env(safe-area-inset-right));
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
  }

  .vr-note__line {
    display: block;
    white-space: nowrap;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .vr-note {
    right: calc(max(12px, env(safe-area-inset-right)) + 42px);
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 17px);
    max-width: calc(100vw - 64px - env(safe-area-inset-left) - env(safe-area-inset-right));
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    white-space: nowrap;
  }

  .vr-note__line {
    display: inline;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide { transition-duration: 0.01ms; }
}
