@charset "UTF-8";

/* 背景 */
.panorama-modal::backdrop {
  background: rgba(11, 11, 11, 0.8);
}

/* モーダル本体 */
.panorama-modal {
  width: calc(100% - 16px);
  max-width: 896px;
  max-height: none;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible; /* 閉じるボタンを枠の外に出すため */
}

/* パノラマ表示枠 */
.panorama-modal__viewer {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* 閉じるボタン（枠の右上の外側） */
.panorama-modal__close {
  position: absolute;
  right: 0;
  bottom: 100%;
  height: clamp(32px, calc(40 / 1200 * 100vw), 40px);
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-family: Arial, Baskerville, monospace;
  font-size: clamp(24px, calc(28 / 1200 * 100vw), 28px);
  line-height: 1;
  opacity: 0.65;
  cursor: pointer;
}

.panorama-modal__close:hover,
.panorama-modal__close:focus-visible {
  opacity: 1;
}

.plan_panorama-box .plan_panorama-viewer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #AEAEAE;
}