* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #1f1915;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

body { overflow-x: hidden; }

.house {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1f1915;
}

.stage {
  position: relative;
  width: 100%;
  line-height: 0;
}

.room-picture,
.room {
  display: block;
  width: 100%;
  height: auto;
}

.room {
  user-select: none;
  -webkit-user-drag: none;
}

.hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  display: block;
  pointer-events: auto;
  border-radius: 8px;
  background: rgba(255,255,255,.001);
  -webkit-tap-highlight-color: transparent;
}

/* 押した場所が分かる程度にだけ、ふわっと光る */
.hotspot:hover,
.hotspot:focus-visible,
.hotspot:active {
  background: rgba(255, 244, 197, .12);
  box-shadow: 0 0 18px rgba(255,223,152,.30);
  outline: none;
}

.hotspot.disabled {
  pointer-events: none;
}

/*
PC新画像 1672 × 941 の案内札位置に合わせて調整。
*/
.hotspot.desktop.tales {
  left: 10.0%; top: 31.7%; width: 16.7%; height: 9.3%;
}
.hotspot.desktop.youtube {
  left: 63.8%; top: 31.7%; width: 17.2%; height: 9.2%;
}
.hotspot.desktop.music {
  left: 39.6%; top: 39.7%; width: 16.5%; height: 10.2%;
}
.hotspot.desktop.note {
  left: 39.4%; top: 67.7%; width: 16.9%; height: 10.0%;
}
.hotspot.desktop.about {
  left: 78.7%; top: 17.4%; width: 14.3%; height: 9.8%;
}
.hotspot.desktop.contact {
  left: 68.8%; top: 68.0%; width: 13.8%; height: 16.0%;
}

.hotspot.mobile { display: none; }

.hint {
  align-self: center;
  margin: .65rem 0 max(.7rem, env(safe-area-inset-bottom));
  padding: .42rem .78rem;
  border-radius: 999px;
  background: rgba(248,239,223,.88);
  color: rgba(55,42,31,.92);
  font-size: .78rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .house {
    justify-content: flex-start;
    background: #241c17;
  }

  .hotspot.desktop { display: none; }
  .hotspot.mobile { display: block; }

  /*
  スマホ新画像 941 × 1670 の案内札位置に合わせて調整。
  */
  .hotspot.mobile.tales {
    left: 5.2%; top: 25.5%; width: 33.0%; height: 6.4%;
  }
  .hotspot.mobile.about {
    left: 59.0%; top: 27.1%; width: 35.0%; height: 6.5%;
  }
  .hotspot.mobile.youtube {
    left: 58.0%; top: 39.3%; width: 35.7%; height: 6.3%;
  }
  .hotspot.mobile.music {
    left: 23.5%; top: 42.6%; width: 32.0%; height: 6.5%;
  }
  .hotspot.mobile.note {
    left: 23.5%; top: 60.9%; width: 32.5%; height: 6.5%;
  }
  .hotspot.mobile.contact {
    left: 52.0%; top: 71.3%; width: 34.0%; height: 9.3%;
  }

  .hint {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 5;
  }
}

/* v6: スマホは必ず画像上端から自然に縦スクロール */
@media (max-width: 720px) {
  html, body {
    scroll-behavior: auto;
    overflow-y: auto;
  }

  .house {
    min-height: auto;
    justify-content: flex-start;
    align-items: stretch;
  }

  .stage,
  .room-picture,
  .room {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .room {
    object-fit: contain;
    object-position: top center;
  }
}
