/* styles/tour-slider.css */

/* ✅ セクション全体 */
.scroll-slider-section {
  position: relative;
  /* 固定高さをやめてコンテンツに合わせる */
  height: auto;
  overflow: visible;
  background-color: #f5faff;
  margin-top: 3rem;
  padding: 3rem 3rem 3rem;
}

/* ✅ 横スクロールコンテナ（中身を中央寄せするだけ） */
..horizontal-scroll-container {
  width: 100%;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-scroll-container {
  width: 100%;
  overflow: hidden;
}

/* ✅ 横スクロールトラック */
.horizontal-scroll-track {
  display: flex;
  gap: 24px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  cursor: grab;
}
/* スクロールバー非表示 */
.horizontal-scroll-track::-webkit-scrollbar {
  display: none;
}
.horizontal-scroll-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-scroll-container.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.horizontal-scroll-container.is-dragging * {
  cursor: grabbing !important;
}
/* ✅ スライダーカード共通スタイル */
.slider-card {
  flex: 0 0 auto;
  width: 1000px;
  height: 500px;              /* ← やまさん指定の高さ */
  display: flex;
  flex-direction: row;
  align-items: stretch;       /* 子要素の高さをカードいっぱいに */
  justify-content: center;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 0;
  margin: 0;
  user-select: none;
  cursor: default;
}

.slider-card img {
  width: 50%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-right: 1px solid #eee;
}

.slider-card .slider-text {
  width: 50%;
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
}

.slider-card .slider-text h3 {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  color: #333;
}

.slider-card .slider-text p {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

.slider-card .slider-text ul {
  padding-left: 1.2em;
  margin-top: 0.5em;
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

.slider-card .slider-text ul li {
  margin-bottom: 0.3em;
}

/* 料金だけ赤くする用 */
.slider-card .slider-text .price {
  color: #e60012;
  font-weight: bold;
}

/* クリック可能なカードがあれば */
.slider-card.active {
  cursor: pointer;
  user-select: none;
}

/* ✅ 観光セクションの余白調整（タイトルとの兼ね合い） */
#tour-banner {
  background-color: #f5faff;
  padding-top: 10rem;
  padding-bottom: 8rem;
}

#tour-banner .section-title-wrapper {
  margin-bottom: 2rem;
}

/* ✅ レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .scroll-slider-section {
    padding: 2rem 1rem 3rem;
  }

  .horizontal-scroll-container {
    justify-content: flex-start;
  }

  .slider-card {
    flex-direction: column;
    height: auto;     /* スマホは縦積みなので自動高さ */
    width: 90%;
  }

  .slider-card img,
  .slider-card .slider-text {
    width: 100%;
    height: auto;
  }

  .horizontal-scroll-track .slider-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  #tour-banner {
    padding-bottom: 5rem;
  }
}
/* --------------------------------------------------
   観光カードリンク
-------------------------------------------------- */
.slider-card-link {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.slider-card-link:hover {
  text-decoration: none;
}

.slider-card-link .slider-card,
.slider-card-link .slider-card * {
  cursor: pointer;
}

.horizontal-scroll-container.is-dragging .slider-card,
.horizontal-scroll-container.is-dragging .slider-card * {
  cursor: grabbing !important;
}