

:root {
  --gx-bg: #07090E;
  --gx-ink: #E8EAF0;
  --gx-sub: #9AA3B5;
  --gx-key: #E8C87A;
  --gx-max: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--gx-bg);
  color: var(--gx-ink);
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  line-height: 1.9;
  word-break: auto-phrase;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; }


.gx-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.gx-stage canvas { display: block; width: 100%; height: 100%; }
.no-3d .gx-stage { display: none; }

.no-3d body, .no-3d .gx-shell {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(232, 200, 122, .18), transparent 70%),
    var(--gx-bg);
}


.gx-shell { position: relative; z-index: 1; }
.gx-station {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 12svh 6vw;
}
.gx-station__inner { max-width: var(--gx-max); margin: 0 auto; width: 100%; }
.gx-meta { font-size: .78rem; letter-spacing: .14em; color: var(--gx-sub); }
.gx-station h2 { font-size: clamp(1.6rem, 4.2vw, 2.8rem); line-height: 1.5; margin: .4em 0; }
.gx-station p { max-width: 40em; }


.gx-sub {
  font-size: clamp(.92rem, 1.9vw, 1.06rem);
  color: #D8DCE6; margin: .2em 0 1.4em;
  max-width: 26em;
}

.gx-more {
  min-height: 44px; padding: 8px 0;
  border: 0; background: none; color: var(--gx-sub);
  font: inherit; font-size: .82rem; letter-spacing: .06em;
  text-decoration: underline; text-underline-offset: 5px; cursor: pointer;
}
.gx-more:hover, .gx-more:focus-visible { color: var(--gx-ink); }

html:not(.has-3d) .gx-more, .is-tour .gx-more { display: none; }


.has-3d .gx-station__inner {
  position: relative;
}
.has-3d .gx-station__inner::before {
  content: "";
  position: absolute; inset: -6% -8%;
  background: radial-gradient(80% 80% at 40% 50%, rgba(4, 6, 10, .62), transparent 75%);
  z-index: -1;
  border-radius: 24px;
}


.has-js .gx-locked {
  opacity: .14;
  filter: blur(2px) grayscale(.4);
  pointer-events: none;
  user-select: none;
  transition: opacity .8s ease, filter .8s ease;
}


.gx-hotspot {
  min-width: 44px; min-height: 44px;
  padding: 10px 22px;
  border: 1px solid rgba(232, 200, 122, .55);
  border-radius: 999px;
  background: rgba(232, 200, 122, .08);
  color: var(--gx-key);
  font: inherit; font-size: .92rem; letter-spacing: .08em;
  cursor: pointer;
}
.gx-hotspot:hover, .gx-hotspot:focus-visible { background: rgba(232, 200, 122, .2); }
.gx-hotspot.is-hint { animation: gx-pulse 1.2s ease-in-out infinite; }
@keyframes gx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 200, 122, .45); }
  50%      { box-shadow: 0 0 0 12px rgba(232, 200, 122, 0); }
}


:root {
  --gx-mk-rgb: 255, 232, 176;        
  --gx-mk-hi-rgb: 255, 244, 214;     
  --gx-mk-dim-rgb: 232, 200, 122;   
  --gx-mk-ink: #FFF4DC;       
  --gx-pad-rgb: 8, 10, 14;      
  --gx-pad2-rgb: 20, 14, 6;
  --gx-panel-rgb: 10, 12, 17;  
  --gx-sub-rgb: 154, 163, 181;
}


.gx-hotspot.is-pinned {
  position: fixed; left: 0; top: 0; z-index: 20;
  margin: 0; padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transform: translate(-50%, -50%) translate(var(--mx, 50vw), var(--my, 50vh)) scale(var(--ms, 1));
  color: var(--gx-mk-ink);
  filter: drop-shadow(0 2px 10px rgba(var(--gx-pad-rgb), .9));
}

.gx-hotspot.is-pinned::before {
  content: "";
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(var(--gx-mk-rgb), .95);
  background:
    radial-gradient(circle, rgba(var(--gx-mk-rgb), .95) 0 3.5px, rgba(var(--gx-mk-rgb), 0) 4px),
    radial-gradient(circle, rgba(var(--gx-mk-dim-rgb), .30), rgba(var(--gx-mk-dim-rgb), .04) 72%);
  animation: gx-ring 2.1s cubic-bezier(.2, .7, .3, 1) infinite;
}

.gx-hotspot.is-pinned { font-size: 0; letter-spacing: 0; line-height: 1.2; }
.gx-hotspot.is-pinned::after {
  content: attr(data-label);
  font-size: .82rem; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(var(--gx-pad-rgb), .74);
  border: 1px solid rgba(var(--gx-mk-rgb), .28);
  white-space: nowrap;
}
.gx-hotspot.is-pinned:hover::before,
.gx-hotspot.is-pinned:focus-visible::before {
  background:
    radial-gradient(circle, rgba(var(--gx-mk-hi-rgb), 1) 0 5px, rgba(var(--gx-mk-rgb), 0) 5.5px),
    radial-gradient(circle, rgba(var(--gx-mk-dim-rgb), .55), rgba(var(--gx-mk-dim-rgb), .08) 72%);
  transform: scale(1.12);
}
.gx-hotspot.is-pinned:hover::after,
.gx-hotspot.is-pinned:focus-visible::after { background: rgba(var(--gx-pad2-rgb), .92); }
@keyframes gx-ring {
  0%   { box-shadow: 0 0 0 0 rgba(var(--gx-mk-rgb), .55); }
  70%  { box-shadow: 0 0 0 22px rgba(var(--gx-mk-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--gx-mk-rgb), 0); }
}

.gx-hotspot.is-pinned.is-found::before {
  border-color: rgba(var(--gx-mk-rgb), .55);
  background: radial-gradient(circle, rgba(var(--gx-mk-rgb), .55) 0 6px, rgba(var(--gx-mk-rgb), .05) 7px);
  animation: none;
}
.gx-hotspot.is-pinned.is-found { opacity: .5; }


.gx-hotspot.is-pinned[data-marker="drag"]::before {
  width: 190px; height: 52px; border-radius: 999px;
  border: 2px solid rgba(var(--gx-mk-rgb), .95);
  background:
    linear-gradient(90deg, rgba(var(--gx-mk-rgb), .55) calc(var(--q, 0) * 100%),
                            rgba(var(--gx-mk-dim-rgb), .10) calc(var(--q, 0) * 100%));
  animation: gx-swipe 1.8s ease-in-out infinite;
}
.gx-hotspot.is-pinned[data-marker="drag"]::after {
  content: "← " attr(data-label) " →";
  letter-spacing: .12em;
}
@keyframes gx-swipe {
  0%, 100% { box-shadow: inset 26px 0 26px -26px rgba(var(--gx-mk-hi-rgb), .9); }
  50%      { box-shadow: inset -26px 0 26px -26px rgba(var(--gx-mk-hi-rgb), .9); }
}


.gx-modal {
  position: fixed; z-index: 60;
  inset: auto 3vw 12vh auto;          
  width: min(400px, 88vw);
  max-height: 62svh; overflow-y: auto;
  margin: 0; padding: 20px 22px 24px;
  border: 1px solid rgba(var(--gx-mk-dim-rgb), .34);
  border-radius: 16px;
  background: rgba(var(--gx-panel-rgb), .93);
  color: var(--gx-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}
.gx-modal.is-in { opacity: 1; transform: none; }
.gx-modal::backdrop { background: none; }
.gx-modal__head { display: flex; align-items: flex-start; gap: 12px; }
.gx-modal__title {
  margin: 0; flex: 1;
  font-size: .82rem; letter-spacing: .14em; color: var(--gx-key);
}
.gx-modal__close {
  flex: none; width: 44px; height: 44px; margin: -10px -10px 0 0;
  border: 0; background: none; color: var(--gx-sub);
  font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.gx-modal__close:hover { color: var(--gx-ink); }
.gx-modal__body p { margin: .5em 0 0; max-width: none; font-size: .95rem; }

html.gx-doc-open .gx-hud__objective { visibility: hidden; }


@media (max-width: 700px) {
  .has-3d .gx-station { align-items: flex-end; padding-bottom: 13svh; }
}

@media (max-width: 640px) {
  
  .gx-modal { inset: auto 0 0 0; width: auto; max-height: 46svh;
              border-radius: 16px 16px 0 0; border-width: 1px 0 0; }
  
  html.gx-doc-open .gx-hud { opacity: 0; pointer-events: none; }
}


.gx-logo {
  position: fixed; top: 0; left: 0; z-index: 35;
  display: flex; align-items: center; gap: 11px;
  margin: 0; padding: 16px 22px;
  border: 0; background: none; color: var(--gx-ink);
  font: inherit; cursor: pointer;
  text-align: left;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .85));
}
.gx-logo__mark { width: 38px; height: 38px; flex: none; overflow: visible; }
.gx-logo__sun { fill: var(--gx-key); }

.gx-logo__roof-l, .gx-logo__roof-r { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.gx-logo:hover .gx-logo__roof-l, .gx-logo:focus-visible .gx-logo__roof-l { transform: translateX(-2.6px); }
.gx-logo:hover .gx-logo__roof-r, .gx-logo:focus-visible .gx-logo__roof-r { transform: translateX(2.6px); }
.gx-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.gx-logo__name { font-size: .96rem; letter-spacing: .08em; }
.gx-logo__sub {
  font-size: .58rem; letter-spacing: .34em; color: var(--gx-key);
  margin-top: 3px;
}

html.is-overview .gx-logo::after {
  content: "もう一度押すと戻ります";
  font-size: .68rem; letter-spacing: .1em; color: var(--gx-sub);
  padding-left: 12px; border-left: 1px solid rgba(var(--gx-sub-rgb), .35);
}
html.is-overview .gx-logo__roof-l { transform: translateX(-2.6px); }
html.is-overview .gx-logo__roof-r { transform: translateX(2.6px); }
.no-3d .gx-logo, html.is-tour .gx-logo { position: absolute; }


html.is-overview .gx-shell,
html.is-overview .gx-hud,
html.is-overview .gx-modal { opacity: 0; pointer-events: none; }
html.is-overview .gx-hotspot.is-pinned { opacity: 0; pointer-events: none; }


.has-js .gx-docs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.is-tour .gx-docs, .no-3d .gx-docs {
  position: static; width: auto; height: auto; overflow: visible; clip-path: none;
  max-width: var(--gx-max); margin: 0 auto; padding: 8svh 6vw;
}
.is-tour .gx-docs h2, .no-3d .gx-docs h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); margin: 1.6em 0 .4em; }


.gx-gate {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  background: var(--gx-bg);
  transition: opacity .9s ease;
}
.gx-gate.is-gone { opacity: 0; pointer-events: none; }


.gx-gate::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/gate.webp") center/cover no-repeat;
}
.gx-gate::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 42%, rgba(6,8,12,.20), rgba(6,8,12,.82) 78%);
}
.gx-gate__title { font-size: clamp(1.4rem, 3.4vw, 2.2rem); margin: 0; }
.gx-gate__enter {
  min-width: 44px; min-height: 44px;
  padding: 14px 44px;
  border: 1px solid var(--gx-key); border-radius: 999px;
  background: transparent; color: var(--gx-key);
  font: inherit; font-size: 1rem; letter-spacing: .2em;
  cursor: pointer;
}
.gx-gate__enter:hover { background: rgba(232, 200, 122, .14); }

.gx-gate__wait {
  width: min(200px, 44vw); height: 2px; margin: 0;
  background: rgba(232, 200, 122, .18); overflow: hidden; border-radius: 2px;
}
.gx-gate__wait::after {
  content: ""; display: block; width: 42%; height: 100%;
  background: var(--gx-key);
  animation: gx-wait 1.5s ease-in-out infinite;
}
@keyframes gx-wait {
  0%   { transform: translateX(-105%); }
  100% { transform: translateX(240%); }
}
.gx-gate__tour { background: none; border: none; color: var(--gx-sub); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline; }
.no-3d .gx-gate { display: none; }
html.is-locked { overflow: hidden; }
.no-3d.is-locked, html.no-3d { overflow: auto; }


.gx-hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  pointer-events: none;
  font-size: .8rem; color: var(--gx-sub);
}
.gx-hud > * { pointer-events: auto; }
.gx-hud__dots { display: flex; gap: 8px; }
.gx-hud__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(154, 163, 181, .4); border: 0; padding: 0; cursor: pointer; }
.gx-hud__dot.is-cleared { background: var(--gx-key); }
.gx-hud__dot.is-active { outline: 2px solid rgba(232, 200, 122, .6); outline-offset: 2px; }
.gx-hud__right { display: flex; gap: 14px; align-items: center; }
.gx-hud__skip {
  min-height: 44px; padding: 8px 18px;
  border: 1px solid rgba(232, 200, 122, .5); border-radius: 999px;
  background: rgba(7, 9, 14, .7); color: var(--gx-key);
  font: inherit; font-size: .82rem; cursor: pointer;
}
.no-3d .gx-hud { display: none; }


.has-3d:not(.is-tour) .gx-stealth .gx-hotspot {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
  min-width: 0; min-height: 0; padding: 0;
}
.has-3d:not(.is-tour) .gx-stealth .gx-hotspot:focus-visible {
  position: static; width: auto; height: auto;
  clip-path: none; opacity: 1; pointer-events: auto;
  min-width: 44px; min-height: 44px; padding: 10px 22px;
}
.gx-actions { position: relative; }


.has-js .gx-secret {
  display: none;
}
.has-js .gx-secret.is-open {
  display: block;
  animation: gx-open .9s ease both;
}
.no-3d .gx-secret, .is-tour .gx-secret { display: block !important; }
@keyframes gx-open {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}


.gx-hotspot.is-found, .gx-hotspot.is-chosen {
  background: rgba(232, 200, 122, .3);
  color: #FFF3D6;
  border-color: var(--gx-key);
  animation: none;
}
.gx-hotspot:disabled { cursor: default; opacity: .85; }


.is-tour .gx-locked {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}
.is-tour .gx-hud__skip { display: none; }

.is-tour .gx-hud__objective { display: none; }


.gx-footer { position: relative; z-index: 1; padding: 10svh 6vw; border-top: 1px solid rgba(154, 163, 181, .2); }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .gx-locked { opacity: 1 !important; filter: none !important; pointer-events: auto !important; }
  .gx-secret { display: block !important; }
  .gx-gate { display: none !important; }
  html.is-locked { overflow: auto !important; }
}


.gx-openline {
  position: fixed; inset: 0; z-index: 6; margin: 0;
  display: grid; place-items: center; text-align: center;
  pointer-events: none; opacity: 0;
  
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
  color: var(--gx-ink, #F2E6CC);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem); letter-spacing: .12em; line-height: 1.7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .92), 0 0 44px rgba(0, 0, 0, .8);
}
.gx-openline.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s ease .15s, visibility 0s; }
.no-3d .gx-openline, html.is-tour .gx-openline { display: none; }

.gx-map, .gx-fab, .gx-hud, .gx-shell { transition: opacity 1.4s ease; }
html.is-intro .gx-map,
html.is-intro .gx-fab,
html.is-intro .gx-hud,
html.is-intro .gx-shell { opacity: 0; pointer-events: none; }


@media (max-width: 700px) {
  .gx-hotspot.is-pinned::after {
    white-space: normal; max-width: 64vw; text-align: center; line-height: 1.35;
  }
}
