/**
 * 料金ページ - 「湯気が晴れる」スライダーギャラリー
 */

/* ========================================
   スライダーコンテナ
   ======================================== */

.steam-gallery {
  position: relative;
  margin: 2rem 0;
  padding: 20px 0 60px;
  overflow: visible;
}

.steam-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

/* Swiperコンテナ */
.steam-gallery .swiper {
  overflow: visible;
  padding: 20px 0;
}

.steam-gallery .swiper-wrapper {
  align-items: center;
}

/* ========================================
   スライドアイテム
   ======================================== */

.steam-gallery-item {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(0.85);
  opacity: 0.6;
}

/* PC: より大きく表示 */
@media (min-width: 1024px) {
  .steam-gallery-item {
    aspect-ratio: 16 / 10;
  }
}

.steam-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(0.5);
  transform: scale(1.1);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* アクティブスライド（中央） */
.swiper-slide-active .steam-gallery-item {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.swiper-slide-active .steam-gallery-item img {
  filter: blur(0) saturate(1);
  transform: scale(1);
}

/* 前後のスライド */
.swiper-slide-prev .steam-gallery-item,
.swiper-slide-next .steam-gallery-item {
  transform: scale(0.9);
  opacity: 0.7;
}

.swiper-slide-prev .steam-gallery-item img,
.swiper-slide-next .steam-gallery-item img {
  filter: blur(4px) saturate(0.6);
}

/* ゴールドのグロー効果（アクティブ時） */
.swiper-slide-active .steam-gallery-item::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent, rgba(212, 175, 55, 0.2));
  border-radius: 14px;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* ホバー効果（アクティブスライドのみ） */
.swiper-slide-active .steam-gallery-item:hover img {
  transform: scale(1.05);
}

/* 隠しアイテム（モーダル用） */
.steam-gallery-item.hidden {
  display: none !important;
}

/* ========================================
   ナビゲーションボタン
   ======================================== */

.steam-gallery .swiper-button-prev,
.steam-gallery .swiper-button-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.steam-gallery .swiper-button-prev::after,
.steam-gallery .swiper-button-next::after {
  font-size: 18px;
  color: #D4AF37;
  font-weight: bold;
}

.steam-gallery .swiper-button-prev:hover,
.steam-gallery .swiper-button-next:hover {
  background: #D4AF37;
  border-color: #D4AF37;
}

.steam-gallery .swiper-button-prev:hover::after,
.steam-gallery .swiper-button-next:hover::after {
  color: #fff;
}

/* ========================================
   ページネーション
   ======================================== */

.steam-gallery .swiper-pagination {
  bottom: 10px !important;
}

.steam-gallery .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(212, 175, 55, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.steam-gallery .swiper-pagination-bullet-active {
  background: #D4AF37;
  transform: scale(1.3);
}

/* ========================================
   カウンター表示
   ======================================== */

.steam-gallery-counter {
  text-align: center;
  margin-top: 15px;
  color: rgba(100, 100, 100, 0.8);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.steam-gallery-counter .current {
  color: #D4AF37;
  font-weight: 600;
}

/* ========================================
   「すべての写真を見る」ボタン
   ======================================== */

.steam-gallery-more {
  text-align: center;
  margin-top: 25px;
}

.steam-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 4px;
  color: #D4AF37;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.steam-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.6s ease;
}

.steam-more-btn:hover::before {
  left: 100%;
}

.steam-more-btn:hover {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.05);
}

.steam-more-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.steam-more-btn:hover svg {
  transform: translateX(4px);
}

/* ========================================
   おすすめボックス
   ======================================== */

.recommend-box {
  background: linear-gradient(135deg, #fffbf5 0%, #fff 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 28px 24px;
  margin-top: 2.5rem;
  position: relative;
}

.recommend-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 40px;
  height: 3px;
  background: #D4AF37;
}

.recommend-box h5 {
  font-size: 13px;
  color: #D4AF37;
  margin: 0 0 16px 0;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.recommend-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.recommend-box li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.recommend-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #D4AF37;
  border-radius: 50%;
}

/* ========================================
   モーダル / ライトボックス
   ======================================== */

.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #D4AF37;
  border-color: #D4AF37;
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-nav:hover {
  background: #D4AF37;
  border-color: #D4AF37;
}

.modal-prev { left: -80px; }
.modal-next { right: -80px; }

.modal-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 0.2em;
}

/* サムネイル一覧 */
.modal-thumbnails {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: 90vw;
  overflow-x: auto;
  padding: 10px 0;
}

.modal-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.modal-thumb.active {
  opacity: 1;
  border-color: #D4AF37;
}

.modal-thumb:hover {
  opacity: 0.8;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 768px) {
  .steam-gallery {
    padding: 15px 0 50px;
  }

  .steam-gallery .swiper-button-prev,
  .steam-gallery .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .steam-gallery .swiper-button-prev::after,
  .steam-gallery .swiper-button-next::after {
    font-size: 14px;
  }

  .recommend-box ul {
    grid-template-columns: 1fr;
  }

  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }

  .modal-thumbnails {
    display: none;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .steam-gallery-item {
    aspect-ratio: 16 / 10;
  }

  .recommend-box {
    padding: 24px 20px;
  }

  .recommend-box li {
    font-size: 13px;
  }

  .steam-more-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}
