/* ==========================================
   Room Hall 共通CSS（衝突回避版）
   File: rh-modal.css
   - Modal: .rh-modal ...
   - Slider: .rh-slider ...
========================================== */

/* =========================
   Modal
========================= */

/* 表示制御 */
.rh-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.rh-modal.is-open { display: block; }

/* 背景 */
.rh-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* 画面いっぱい表示（余白あり） */
.rh-modal__content {
  position: absolute;
  inset: 0;                /* ←余白リセット */
  display: flex;
  justify-content: center;
  align-items: center;
}


/* 画像 */
.rh-modal__img {
  width: auto;
  max-width: 90vw;
  max-height: 85vh;
  image-rendering: auto;
}

/* 右上 × */
.rh-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;

  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rh-modal__close:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: scale(1.05);
}
.rh-modal__close:active { transform: scale(0.98); }

/* 左右矢印 */
.rh-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;

  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rh-modal__nav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.05);
}
.rh-modal__nav:active {
  transform: translateY(-50%) scale(0.98);
}
.rh-modal__nav--left  { left: 20px; }
.rh-modal__nav--right { right: 20px; }

/* フォーカス可視化 */
.rh-modal__close:focus-visible,
.rh-modal__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

/* iOSタップハイライト抑制 */
.rh-modal__close,
.rh-modal__nav {
  -webkit-tap-highlight-color: transparent;
}

/* モバイル */
@media (max-width: 600px) {
  .rh-modal__content { inset: 10px; }

  .rh-modal__nav {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .rh-modal__close {
    top: 10px;
    right: 10px;
  }

  .rh-modal__nav--left  { left: 10px; }
  .rh-modal__nav--right { right: 10px; }
}

/* =========================
   Slider (fade)
   - メイン画像エリアをスライダー化する用
========================= */

.rh-slider {
  position: relative;
  width: 100%;
  max-width: 980px; /* 好みで調整 */
  margin: 0 auto;
}

.rh-slider__viewport {
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

/* フェード式（重ねて切替） */
.rh-slide {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  cursor: zoom-in;

  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 550ms ease;

  pointer-events: none;
  z-index: 1;
}
.rh-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}


/* スライダー矢印 */
/* =========================
   Slider Arrow（おしゃれ版）
========================= */

.rh-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;              /* 小さめ */
  height: 36px;
  border-radius: 999px;
  border: none;

  background: rgba(0, 0, 0, 0.35);  /* 半透明 */
  backdrop-filter: blur(4px);       /* ほんのりガラス感 */
  color: #fff;

  font-size: 18px;          /* 小さめ矢印 */
  line-height: 36px;
  cursor: pointer;
  z-index: 5;

  display: grid;
  place-items: center;

  transition: background 0.2s ease,
              transform 0.2s ease,
              opacity 0.2s ease;

  opacity: 0.7;
}

/* 左右位置を少し内側へ */
.rh-slider__arrow--left  { left: 12px; }
.rh-slider__arrow--right { right: 12px; }

/* hoverで少し強調 */
.rh-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

/* 押した時 */
.rh-slider__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* ドット */
.rh-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.rh-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
}

.rh-slider__dot.is-active {
  background: rgba(0,0,0,0.75);
}

/* スマホ */
@media (max-width: 600px) {
  .rh-slider { max-width: 100%; }

  .rh-slider__arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
