/* zoroya.css — zoroya構想店ジオラマの案件別スタイル（gx.css の後に読む） */

:root {
  --gx-key: #E8C87A;        /* 電球色クリーム */
  --gx-accent: #8E2F3C;     /* ワインレッド */
  --gx-bg: #0A0F1E;         /* 夜の紺藍 */
  --gx-sub: #9AA8C0;
}

body { background: var(--gx-bg); }

h1, h2, .gx-gate__title { font-family: 'Shippori Mincho', serif; letter-spacing: .04em; }

/* ---- 幕：背後で外観が回る3Dが見えるよう透明。中央はENTERだけ ---- */
.gx-gate {
  background: radial-gradient(ellipse at 50% 50%, rgba(5, 8, 15, 0) 30%, rgba(5, 8, 15, .55) 100%);
}
.gx-gate .gx-meta { color: var(--gx-key); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.gx-gate__title {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .85); margin-bottom: 4svh;
}
.gx-gate__enter {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.05rem; letter-spacing: .42em; text-indent: .42em;
  padding: 1.05em 2.6em; border-radius: 999px;
  border: 1px solid rgba(232, 200, 122, .75); color: var(--gx-key);
  background: rgba(8, 12, 24, .45); backdrop-filter: blur(4px);
  cursor: pointer; transition: background .4s, box-shadow .4s;
  animation: zr-breathe 3.2s ease-in-out infinite;
}
.gx-gate__enter:hover {
  background: rgba(232, 200, 122, .18);
  box-shadow: 0 0 34px rgba(232, 200, 122, .35);
}
@keyframes zr-breathe {
  0%, 100% { box-shadow: 0 0 14px rgba(232, 200, 122, .18); }
  50% { box-shadow: 0 0 30px rgba(232, 200, 122, .38); }
}
@media (prefers-reduced-motion: reduce) { .gx-gate__enter { animation: none; } }
/* 幕が透明になったぶん、ENTER前は本文とHUDを伏せる（外観の3Dだけを見せる） */
html.is-locked:not(.no-3d) .gx-shell,
html.is-locked:not(.no-3d) .gx-hud { opacity: 0; pointer-events: none; }

/* ---- 模型MAP（右上・箱を捨てて「品書き」の佇まいに） ---- */
.gx-map {
  position: fixed; top: 44px; right: 0; z-index: 30;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-end;
  padding: 18px 22px 16px 44px;
  background: linear-gradient(270deg, rgba(5, 8, 15, .62) 55%, rgba(5, 8, 15, 0) 100%);
}
.gx-map__title {
  display: block; margin: 0 0 10px;
  font-family: 'Shippori Mincho', serif;
  font-size: .64rem; letter-spacing: .5em; text-indent: .5em;
  color: rgba(232, 200, 122, .8);
}
.gx-map__title::after {
  content: ''; display: block; margin-top: 8px; margin-left: auto;
  width: 46px; height: 1px;
  background: linear-gradient(270deg, rgba(232, 200, 122, .7), rgba(232, 200, 122, 0));
}
.gx-map__pin {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: #A9B4CC; font-family: 'Shippori Mincho', serif; font-size: .8rem;
  letter-spacing: .16em; text-align: right;
  padding: 5px 18px 5px 8px; position: relative;
  transition: color .35s, letter-spacing .35s;
}
.gx-map__pin::before {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(169, 180, 204, .4); transition: background .35s, box-shadow .35s;
}
.gx-map__pin:hover { color: #F2E3B8; letter-spacing: .2em; }
.gx-map__pin.is-done::before { background: rgba(232, 200, 122, .8); }
.gx-map__pin.is-here { color: var(--gx-key); }
.gx-map__pin.is-here::before {
  background: var(--gx-key); box-shadow: 0 0 9px 2px rgba(232, 200, 122, .6);
}
.no-3d .gx-map, .is-tour .gx-map { display: none; }
html.is-locked .gx-map { opacity: 0; pointer-events: none; }

/* ---- スキップボタンは出さない（2026-08-10 内田指示。状態機械のスキップ経路は温存） ---- */
.gx-hud__skip { display: none !important; }

/* ---- 部屋のノート（お品書き／テイスティングノート風の物語ウィンドウ） ---- */
.gx-station--note .gx-station__inner { max-width: 34em; margin: 0 0 0 max(4vw, 24px); }
.has-3d .gx-station--note .gx-station__inner::before { display: none; }   /* 既定のベールは使わない */
.zr-note {
  background:
    radial-gradient(140% 90% at 12% 0%, rgba(255, 250, 236, .06), transparent 60%),
    linear-gradient(168deg, #F7EFDC 0%, #F1E6CC 55%, #EADCBC 100%);
  color: #3A2C1C;
  border-radius: 6px;
  padding: 2.1em 2.3em 1.7em;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .5),
    inset 0 0 0 1px rgba(140, 108, 58, .35),
    inset 0 0 0 5px rgba(247, 239, 220, 1),
    inset 0 0 0 6px rgba(140, 108, 58, .22);
  transform: rotate(-0.5deg);
  max-width: 30em;
}
.zr-note__meta {
  font-size: .68rem; letter-spacing: .22em; color: #8E2F3C; margin: 0 0 .9em;
}
.zr-note__title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem) !important;
  color: #2E2112; margin: 0 0 .7em !important; line-height: 1.6;
}
.zr-note p { color: #4A3A26; font-size: .92rem; line-height: 2; margin: 0 0 1em; }
.zr-note__lead {
  font-size: .7rem !important; letter-spacing: .3em; color: #8C6C3A !important;
  margin: 1.4em 0 .5em !important;
}
.zr-note__lead::after {
  content: ''; display: block; margin-top: 6px; width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(140, 108, 58, .5), rgba(140, 108, 58, 0));
}
.zr-menu {
  list-style: none; margin: 0 0 1.2em; padding: 0;
  font-family: 'Shippori Mincho', serif; font-size: .88rem; color: #3A2C1C;
}
.zr-menu li { display: flex; align-items: baseline; gap: .7em; padding: .34em 0; }
.zr-menu li i { flex: 1; border-bottom: 1px dotted rgba(140, 108, 58, .55); transform: translateY(-4px); }
.zr-menu li span:last-child { text-align: right; }
/* 栞ボタン */
.zr-bookmark {
  border: 0 !important; border-radius: 0 !important;
  background: none !important; color: #8E2F3C !important;
  font-family: 'Shippori Mincho', serif; letter-spacing: .14em;
  padding: .35em .2em !important; position: relative;
}
.zr-bookmark::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, #8E2F3C, rgba(142, 47, 60, 0));
  transition: height .25s;
}
.zr-bookmark:hover { background: rgba(142, 47, 60, .07) !important; }
.zr-bookmark.is-found, .zr-bookmark.is-chosen { color: #8C6C3A !important; }
[data-station="choice"] .gx-actions { gap: 2px; }

/* ---- 本文パネル ---- */
.gx-station h3 { font-size: 1.05rem; margin: 2.2em 0 .5em; color: var(--gx-key); }
.gx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gx-hotspot { border-color: rgba(232, 200, 122, .5); }
.gx-secret p { border-left: 2px solid rgba(232, 200, 122, .45); padding-left: 1em; color: #D9DEEA; }

/* choice の3択は縦積みで大きめに */
[data-station="choice"] .gx-actions { flex-direction: column; align-items: flex-start; }

/* ---- 読み物（後半・常時可視） ---- */
.gx-station--reading { background: rgba(6, 9, 17, .88); }
.has-3d .gx-station--reading .gx-station__inner::before { background: none; }
.gx-station--reading strong { color: var(--gx-key); font-weight: 600; }

/* ---- BGMボタン微調整（bgm-widget.css の後で効かせる） ---- */
.zbgm { --zbgm-height: 92px; }
.zbgm .zbgm__hint { display: none; }   /* 「クリックで音楽」の文字は出さない（2026-08-10） */

/* ---- overviewは3D中は無言（模型とラベルだけ）。tour・縮退では読める ---- */
.has-3d:not(.is-tour) .gx-station--silent .gx-station__inner > *:not(.gx-actions) { display: none; }
.has-3d:not(.is-tour) .gx-station--silent .gx-station__inner::before { display: none; }

/* ---- ロック中の駅は完全に見せない（2026-08-10 内田「余計な文字」＝14%の透け表示が正体） ---- */
.has-js .gx-locked { opacity: 0; filter: none; }

/* ---- スクリーンリーダー用の見出し（画面には出さない） ---- */
.zr-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---- 左上ロゴ（クリックで全景へ） ---- */
.zr-logo {
  position: fixed; top: 18px; left: 22px; z-index: 30;
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  transition: opacity 1.4s ease, filter .35s ease;
}
.zr-logo img {
  display: block; height: 108px; width: auto;
  /* ロゴ画像は黒地→アルファ変換済みの透過webp */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .65));
  pointer-events: none;
}
.zr-logo:hover { filter: drop-shadow(0 0 14px rgba(232, 200, 122, .45)); }
/* ロゴは常時表示（2026-08-10 内田指示）。伏せるのは導入の間だけ */
html.is-locked .zr-logo, html.is-intro .zr-logo { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .zr-logo img { height: 76px; } .zr-logo { top: 10px; left: 12px; } }
html.is-locked .zbgm, html.is-intro .zbgm { opacity: 0; pointer-events: none; }
.zbgm { transition: opacity 1.4s ease; }

/* ================================================================
   共通ナビゲーション：下部中央のMENUボタン＋オーバーレイメニュー
   （2026-08-10 内田指示。下部中央の三本線＋枠）
   index.html と固定ページ（about/reservation/menu-info/food/wine）で共有
   ================================================================ */
.zr-menu-btn {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  appearance: none; cursor: pointer;
  padding: 11px 28px 10px;
  border: 1.5px solid var(--gx-accent);
  border-radius: 999px;
  background: rgba(8, 12, 24, .58);
  backdrop-filter: blur(6px);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, opacity 1.2s ease;
}
.zr-menu-btn:hover {
  background: rgba(142, 47, 60, .22);
  border-color: #B85068;
  box-shadow: 0 0 22px rgba(142, 47, 60, .4);
}
.zr-menu-btn__icon { display: flex; flex-direction: column; gap: 4px; }
.zr-menu-btn__icon i {
  display: block; height: 2px; background: var(--gx-key); border-radius: 2px;
  transition: transform .35s ease, opacity .35s ease, width .35s ease;
}
.zr-menu-btn__icon i:nth-child(1) { width: 24px; }
.zr-menu-btn__icon i:nth-child(2) { width: 17px; align-self: center; }
.zr-menu-btn__icon i:nth-child(3) { width: 24px; }
.zr-menu-btn__label {
  font-family: 'Shippori Mincho', serif; font-size: .68rem;
  letter-spacing: .34em; text-indent: .34em; color: var(--gx-key);
}
/* 開いている間はアイコンが×に、ラベルがCLOSEに（テキストはHTML側で入れ替え） */
.zr-menu-btn[aria-expanded="true"] .zr-menu-btn__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 22px; }
.zr-menu-btn[aria-expanded="true"] .zr-menu-btn__icon i:nth-child(2) { opacity: 0; }
.zr-menu-btn[aria-expanded="true"] .zr-menu-btn__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 22px; }
/* index.html でのみ：導入中は伏せる（伏せる先が無い固定ページでは無効化されない） */
html.is-locked .zr-menu-btn, html.is-intro .zr-menu-btn { opacity: 0; pointer-events: none; }

.zr-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8vh 6vw;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(35, 24, 16, .5), transparent 60%),
    linear-gradient(180deg, rgba(5, 8, 15, .97) 0%, rgba(6, 4, 3, .99) 100%);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.zr-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .5s ease; }
.zr-overlay__close {
  position: absolute; top: 20px; right: 24px;
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--gx-sub); font-family: 'Shippori Mincho', serif;
  font-size: .74rem; letter-spacing: .3em; text-indent: .3em;
  padding: 10px; transition: color .25s;
}
.zr-overlay__close:hover { color: var(--gx-key); }
.zr-overlay__nav {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-bottom: 6vh;
}
.zr-overlay__link {
  position: relative;
  display: flex; align-items: baseline; gap: .9em;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: #E7DFCE; text-decoration: none; letter-spacing: .06em;
  padding: .38em .3em;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, color .3s ease;
}
.zr-overlay.is-open .zr-overlay__link { opacity: 1; transform: translateY(0); }
.zr-overlay.is-open .zr-overlay__link:nth-child(1) { transition-delay: .06s; }
.zr-overlay.is-open .zr-overlay__link:nth-child(2) { transition-delay: .12s; }
.zr-overlay.is-open .zr-overlay__link:nth-child(3) { transition-delay: .18s; }
.zr-overlay.is-open .zr-overlay__link:nth-child(4) { transition-delay: .24s; }
.zr-overlay.is-open .zr-overlay__link:nth-child(5) { transition-delay: .30s; }
.zr-overlay.is-open .zr-overlay__link:nth-child(6) { transition-delay: .36s; }
.zr-overlay__num {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: .58rem; letter-spacing: .1em; color: rgba(232, 200, 122, .55);
}
.zr-overlay__link::after {
  /* 点＋斜め線（模型ラベルと同じ意匠を、メニューにも一筆） */
  content: ''; position: absolute; left: 0; right: 0; bottom: .18em;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gx-accent), transparent);
  transform: scaleX(0); transform-origin: 50% 50%; transition: transform .4s ease;
}
.zr-overlay__link:hover { color: var(--gx-key); }
.zr-overlay__link:hover::after,
.zr-overlay__link.is-current::after { transform: scaleX(1); }
.zr-overlay__link.is-current { color: var(--gx-key); }
.zr-overlay__foot {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; transition: opacity .6s ease .4s;
}
.zr-overlay.is-open .zr-overlay__foot { opacity: 1; }
.zr-overlay__tag { font-size: .72rem; letter-spacing: .1em; color: var(--gx-sub); margin: 0; }
/* SNSアイコンはブランドロゴを模写せず、頭文字の刻印にする（商標再現の回避・意匠は統一） */
.zr-social { display: flex; gap: 14px; }
.zr-social__icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(154, 168, 192, .4);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Zen Kaku Gothic New', sans-serif; font-size: .58rem; letter-spacing: .02em;
  color: rgba(154, 168, 192, .7); opacity: .55; cursor: default;
  transition: opacity .25s, border-color .25s, color .25s;
}
.zr-social__icon:hover { opacity: .9; border-color: var(--gx-key); color: var(--gx-key); }
html.zr-menu-open .gx-map, html.zr-menu-open .zr-logo,
html.zr-menu-open .zbgm, html.zr-menu-open .gx-hud { opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) {
  .zr-overlay, .zr-overlay__link, .zr-menu-btn__icon i { transition: none !important; }
}

/* ---- スマホ ---- */
@media (max-width: 700px) {
  /* BGMボタン（右下・高さ72px＋ヒント文）と重ならない高さまで上げる */
  .gx-map { top: auto; bottom: 170px; right: 8px; padding: 8px; }
  .gx-map__pin { font-size: .72rem; padding: 2px 6px 2px 14px; }
  .zbgm { --zbgm-height: 72px; }
  .zr-menu-btn { bottom: 14px; padding: 9px 22px 8px; }
  .zr-menu-btn__icon i:nth-child(1), .zr-menu-btn__icon i:nth-child(3) { width: 20px; }
  .zr-menu-btn__icon i:nth-child(2) { width: 14px; }
  .zr-overlay__nav { gap: 0; }
}

/* SPでは本文からMAPを離し、必要な時に開く。 */
.zr-map-toggle{display:none}
@media(max-width:700px){
 .zr-map-toggle{display:block;position:fixed;right:12px;top:76px;z-index:32;min-height:44px;padding:8px 18px;color:#f2e3b8;background:rgba(6,9,17,.95);border:1px solid #b59a60;font:500 14px inherit;letter-spacing:.12em}
 .gx-map{display:none;top:128px;bottom:auto;right:12px;background:rgba(6,9,17,.97);padding:14px 18px;border:1px solid rgba(232,200,122,.45);max-height:calc(100dvh - 180px);overflow:auto}
 html.zr-map-open .gx-map{display:block}
 .gx-map__pin{min-height:40px;font-size:.85rem}
 html.is-locked .zr-map-toggle,html.no-3d .zr-map-toggle,html.is-tour .zr-map-toggle,html.zr-menu-open .zr-map-toggle{display:none}
}
