*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.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;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #131722;
  color: #e4e4de;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease;
}

body[data-theme="morning"] {
  background-color: #566777;
}

.stage-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

#storefront-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}

#storefront-canvas.is-dragging {
  cursor: grabbing;
}

#storefront-canvas.is-hover-hotspot:not(.is-dragging) {
  cursor: pointer;
}

.door-hint-canvas,
.birds-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.door-hint-canvas[hidden] {
  display: none;
}

/* デザイン確認用の控えめな朝・夜モード切り替えボタン（非表示時は config.js で切替可） */
.mode-switcher {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  z-index: 20;
  display: inline-flex;
  border: 1px solid rgba(232, 230, 218, 0.34);
  border-radius: 2px;
  background: rgba(20, 24, 31, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
}

.mode-switcher[hidden] {
  display: none;
}

.mode-switcher__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(228, 226, 214, 0.72);
  font-family: "Yomogi", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mode-switcher__btn + .mode-switcher__btn {
  border-left: 1px solid rgba(232, 230, 218, 0.24);
}

.mode-switcher__btn[aria-pressed="true"] {
  background: rgba(236, 231, 214, 0.90);
  color: #161922;
  font-weight: 600;
}

.mode-switcher__btn:hover:not([aria-pressed="true"]) {
  background: rgba(255, 255, 255, 0.08);
  color: #f2efe4;
}

/* ===== ザ・シンプル × 黒板のチョーク文字の質感の中央ビュー ===== */
.spot-sheet {
  margin: auto;
  width: min(90vw, 348px);
  max-height: min(88dvh, 660px);
  border: 1px solid rgba(226, 230, 224, 0.26);
  border-radius: 2px;
  background-color: #222524;
  background-image: radial-gradient(
    ellipse at 50% 42%,
    rgba(220, 226, 220, 0.04) 0%,
    rgba(220, 226, 220, 0) 72%
  );
  color: rgba(232, 235, 230, 0.9);
  padding: 0;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.62);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.spot-sheet--map {
  width: min(92vw, 420px);
}

.spot-sheet::backdrop {
  background: rgba(8, 10, 14, 0.56);
}

.spot-sheet__inner {
  padding: 24px 22px 18px;
}

.spot-sheet--center .spot-sheet__inner,
.spot-sheet--phone .spot-sheet__inner {
  text-align: center;
  padding: 26px 22px 18px;
}

.spot-sheet__title[hidden],
.spot-sheet__hours[hidden],
.spot-sheet__body[hidden],
.spot-sheet__note[hidden],
.spot-sheet__custom[hidden] {
  display: none;
}

.spot-sheet__title {
  font-family: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: rgba(234, 237, 232, 0.92);
  text-shadow: 0 0 1px rgba(234, 237, 232, 0.22);
}

.spot-sheet--map .spot-sheet__title {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 4px;
}

.spot-sheet__hours {
  width: min(100%, 168px);
  margin: 2px auto 18px;
  font-family: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 0.98rem;
  line-height: 1.68;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: rgba(236, 239, 234, 0.93);
  text-shadow: 0 0 1px rgba(236, 239, 234, 0.22);
}

.spot-sheet__hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.spot-sheet__hours-divider {
  text-align: center;
  line-height: 1.25;
  color: rgba(226, 230, 224, 0.72);
  margin: 1px 0;
}

.spot-sheet__body {
  font-family: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 0.92rem;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: rgba(228, 232, 226, 0.88);
  white-space: pre-line;
  text-wrap: pretty;
  word-break: auto-phrase;
  margin-bottom: 18px;
}

.spot-sheet__title[hidden] ~ .spot-sheet__body {
  font-size: 0.96rem;
  color: rgba(234, 237, 232, 0.92);
  margin-top: 2px;
  margin-bottom: 20px;
}

.spot-sheet__hours:not([hidden]) + .spot-sheet__body {
  font-size: 0.91rem;
  color: rgba(228, 232, 226, 0.88);
  margin-top: 0;
}

.spot-sheet__body:has(+ .spot-sheet__note:not([hidden])) {
  margin-bottom: 14px;
}

.spot-sheet__note {
  font-family: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 0.83rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(220, 224, 218, 0.84);
  white-space: pre-line;
  text-wrap: pretty;
  word-break: auto-phrase;
  margin-bottom: 20px;
}

.spot-sheet--map .spot-sheet__body {
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(216, 220, 214, 0.78);
  margin-bottom: 13px;
}

.spot-sheet__custom {
  margin-bottom: 16px;
}

/* チョークの細い白線だけで囲んだ飾らないボタン */
.spot-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  appearance: none;
  border: 1px solid rgba(228, 232, 226, 0.58);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(236, 239, 234, 0.94);
  font-family: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 11px 14px;
  text-shadow: 0 0 1px rgba(236, 239, 234, 0.2);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.spot-action-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(236, 239, 234, 0.82);
}

.spot-action-btn:active {
  background: rgba(255, 255, 255, 0.11);
}

.spot-action-btn--map {
  margin-top: 14px;
}

/* 埋め込みGoogleマップ枠 */
.map-embed-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 40dvh;
  border: 1px solid rgba(226, 230, 224, 0.24);
  border-radius: 1px;
  overflow: hidden;
  background: #1a1d1c;
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* iOS等（OS標準の地図選択シートがない端末）で静かに出る最小限のリンク欄 */
.map-chooser {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(226, 230, 224, 0.22);
}

.map-chooser[hidden] {
  display: none;
}

.map-chooser__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-chooser__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid rgba(226, 230, 224, 0.34);
  border-radius: 2px;
  background: transparent;
  color: rgba(232, 235, 230, 0.9);
  font-family: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  transition: background-color 0.15s ease;
}

.map-chooser__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.map-chooser__arrow {
  font-size: 0.8rem;
  color: rgba(226, 230, 224, 0.55);
}

.spot-sheet__footer {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.spot-sheet__close {
  display: inline-block;
  appearance: none;
  border: none;
  border-bottom: 1px solid rgba(226, 230, 224, 0.28);
  background: transparent;
  color: rgba(214, 218, 212, 0.72);
  font-family: "Yomogi", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  cursor: pointer;
}

.spot-sheet__close:hover {
  color: rgba(236, 239, 234, 0.95);
  border-bottom-color: rgba(236, 239, 234, 0.6);
}
