/* ========================================================================== 
   premium-layout.css + premium-slider.css - プレミアム客室専用フル幅対応版
   JS制御最適化・途切れ防止アップデート済み（SP/PC画像大型化・特別仕様版）
   ========================================================================== */

/* -------------------------
   セクション全体
------------------------- */
.premium-room-section {
  padding: 80px 0;
  background-color: #fff;
  overflow-x: hidden; 
}

/* 各部屋の塊 */
.premium-room-item {
  width: 100%;
  margin: 0 auto 120px auto;
  padding: 0;
}

.premium-room-item:last-child {
  margin-bottom: 0;
}

/* テキストと画像のコンテナ */
.premium-room-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* テキスト要素幅制限 */
.premium-room-title,
.premium-room-catch,
.premium-room-description,
.premium-room-spec,
.room-plan-buttons {
  max-width: 1000px;
  width: 90%; 
  margin-left: auto;
  margin-right: auto;
}

/* タイトル */
.premium-room-title {
  display: block;
  width: fit-content;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0054a6;
  letter-spacing: 0.1em;
  line-height: 1.2;
  border-bottom: 1px solid #0054a6;
  padding-bottom: 8px;
}

/* キャッチコピー */
.premium-room-catch {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0054a6;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* 説明文 */
.premium-room-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
}

/* プレミアム用スペック表 */
.premium-room-spec {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

.premium-room-spec li {
  padding: 0 30px;
  margin: 5px 0;
  text-align: center;
  border-right: 1px solid #eee;
  min-width: 160px;
}

.premium-room-spec li:last-child {
  border-right: none;
}

.premium-room-spec li span {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* -------------------------
   宿泊プランボタン（PC共通定義：デザインベース）
------------------------- */
.room-plan-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  width: 100%;
}

.btn-plan {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}

.btn-plan .btn-text {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.btn-plan .btn-arrow {
  display: block;
  width: 20px;
  height: 1px;
  background-color: #333;
  position: relative;
  transition: all 0.4s ease;
}

.btn-plan .btn-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  transform: rotate(-45deg);
}

.btn-plan:hover {
  border-color: #0054a6;
  background-color: #f9fafc;
}

.btn-plan:hover .btn-text { color: #0054a6; }
.btn-plan:hover .btn-arrow { background-color: #0054a6; width: 30px; }
.btn-plan:hover .btn-arrow::after { border-color: #0054a6; }

/* -------------------------
   スライダー親コンテナ（PC/SP大型化）
------------------------- */
.premium-room-img {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  height: 500px !important; /* PC: 圧倒的な高さを確保 */
  position: relative !important;
  padding: 0 !important;
  overflow: hidden !important;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* スライダー外枠 */
.premium-slider {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  overflow: hidden !important;
  background: #fff;
  z-index: 10;
  display: block !important;
}

/* アニメーションコンテナ（JS制御） */
.premium-slide-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
  width: max-content !important;
  will-change: transform;
  transform: translateX(0);
}

/* 各スライド（PC/SP大型化） */
.premium-slide {
  flex: 0 0 850px !important; /* PC: スライド1枚のインパクトを最大化 */
  width: 850px !important;
}

/* 画像コンテナ */
.premium-slide-img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  padding: 0 15px; 
  box-sizing: border-box !important;
}

/* 画像表示 */
.premium-slide-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* -------------------------
   レスポンシブ
------------------------- */
@media (min-width: 768px) {
  .premium-room-section { padding: 120px 0; }
  .premium-room-title { font-size: 2.6rem; margin-bottom: 40px; padding-bottom: 12px; }
  .premium-room-catch { font-size: 1.6rem; margin-bottom: 25px; }
  .premium-room-description { font-size: 1.1rem; }
}

@media (max-width: 767px) {
  .premium-room-item { margin-bottom: 80px; }
  .premium-room-title { font-size: 1.5rem; }
  .premium-room-description { font-size: 0.95rem; text-align: left; }
  .premium-room-spec li { width: 50%; border-right: none; padding: 0 10px; margin: 10px 0; min-width: auto; }
  .premium-room-spec li:nth-child(odd) { border-right: 1px solid #eee; }

  /* プランボタンSP修正：横並びを維持し、サイズを最適化 */
  .room-plan-buttons {
    flex-direction: row; 
    gap: 8px;
    margin-top: 30px;
    width: 95%;
  }

  .btn-plan {
    padding: 12px 8px;
  }

  .btn-plan .btn-text {
    font-size: 11px;
    letter-spacing: -0.02em;
  }

  .btn-plan .btn-arrow {
    width: 12px;
  }

  /* スマホ版スライダー設定 */
  .premium-room-img {
    height: 320px !important; 
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .premium-slider {
    width: 100vw !important;
    left: 0 !important;
  }

  .premium-slide {
    flex: 0 0 520px !important; 
    width: 520px !important;
  }

  .premium-slide-img {
    padding: 0 5px; 
  }
}

/* 極小デバイス用 */
@media (max-width: 350px) {
  .btn-plan .btn-text { font-size: 10px; }
  .btn-plan .btn-arrow { display: none; }
}