/* ================================================
   Carousel CSS
   ================================================ */

/* カルーセルラッパー - ドットを含む全体 */
.carousel-wrapper {
  width: 100%;
}

/* カルーセル本体 */
.carousel {
  position: relative;
  width: 100%;
  padding: 0 50px; /* 矢印ボタン用のスペース（調整） */
  box-sizing: border-box;
}

/* ビューポート */
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

/* カルーセルコンテナ */
.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

/* カルーセルアイテム */
.carousel-item {
  flex-shrink: 0;
  box-sizing: border-box;
}

/* 1項目表示の場合：ボタンスペースを考慮した幅 */
.carousel[data-items-per-view="1"] .carousel-item {
  min-width: 100%;
  max-width: 100%;
}

/* 複数項目表示の場合は動的に設定（JSで制御） */

/* 矢印ボタン */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, #C4A037 100%);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 45px;
  color: var(--white);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  padding: 0;
  padding-bottom: 3px; /* 矢印文字の視覚的中央補正 */
  text-align: center;
}

.carousel-btn:hover {
  background: linear-gradient(135deg, #E5BF47 0%, #D4AF37 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 5px;  /* 画面内に配置 */
}

.carousel-btn.next {
  right: 5px;  /* 画面内に配置 */
}

/* ドットインジケーター */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
  background: #bbb;
  transform: scale(1.2);
}

.carousel-dots .dot.active {
  width: 30px;
  border-radius: 5px;
  background: var(--gold);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .carousel {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    line-height: 40px;
    padding-bottom: 2px;
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }
}

@media (max-width: 768px) {
  .carousel {
    padding: 0 38px;  /* マイページスライダーと統一 */
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    line-height: 36px;
    padding-bottom: 2px;
  }

  .carousel-btn.prev {
    left: 2px;
  }

  .carousel-btn.next {
    right: 2px;
  }
}

@media (max-width: 480px) {
  .carousel {
    padding: 0 32px;  /* マイページスライダーと統一 */
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    line-height: 30px;
    padding-bottom: 2px;
  }

  .carousel-btn.prev {
    left: 2px;
  }

  .carousel-btn.next {
    right: 2px;
  }
}
/* ================================================
   カルーセル内の予約カード用スタイル
   ================================================ */

/* 予約カードのレスポンシブ対応 */
.carousel .reservation-card {
  padding: 1rem;
}

.carousel .reservation-card .reservation-header {
  margin-bottom: 0.8rem;
}

.carousel .reservation-card .reservation-date {
  font-size: 0.95rem;
}

.carousel .reservation-card .reservation-details p {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

/* タブレット以下 */
@media (max-width: 768px) {
  .carousel .reservation-card {
    padding: 0.8rem;
  }

  .carousel .reservation-card .reservation-date {
    font-size: 0.85rem;
  }

  .carousel .reservation-card .reservation-details p {
    font-size: 0.8rem;
  }

  .carousel .reservation-card .status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

/* スマホ */
@media (max-width: 480px) {
  .carousel .reservation-card {
    padding: 0.7rem;
  }

  .carousel .reservation-card .reservation-date {
    font-size: 0.8rem;
  }

  .carousel .reservation-card .reservation-details p {
    font-size: 0.75rem;
  }

  .carousel .reservation-card .reservation-details strong {
    font-size: 0.75rem;
  }

  .carousel .reservation-card .status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
}