/* --------------------------------------------------
   トップビジュアルスライドショー（観光案内）
-------------------------------------------------- */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slideshow img {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow img.active {
  opacity: 1;
  z-index: 1;
}

/* ▼ 中央のテキスト（メインキャッチコピー） */
.slideshow-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  font-size: 1.5rem;
  z-index: 2;
  text-align: center;
  padding: 1rem;
}

/* ▼ メインタイトル（小さめH1） */
.slideshow-text .main-title {
  font-size: 1.8rem; /* H1を2段階小さく調整 */
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* ▼ サブタイトル（補足説明） */
.slideshow-text .sub-title {
  font-size: 1.1rem;
  font-weight: normal;
}

/* ▼ モバイル対応 */
@media (max-width: 768px) {
  .slideshow-text {
    font-size: 1.2rem;
  }
  .slideshow-text .main-title {
    font-size: 1.4rem;
  }
  .slideshow-text .sub-title {
    font-size: 1rem;
  }
}
/* --------------------------------------------------
   背景白を適用
-------------------------------------------------- */
body.tour-page {
  background-color: #fff !important;
}

body.tour-page main {
  background-color: #fff !important;
}
/* --------------------------------------------------
   観光案内ページ：セクションレイアウト
-------------------------------------------------- */
.tours-section {
  background-color: transparent; /* 背景なし */
  padding: 6rem 1rem;
  max-width: 960px;
  margin: 0 auto;
  border: none; /* 罫線なし */
  box-shadow: none;
}

/* セクション間の余白調整 */
.tours-section + .tours-section {
  margin-top: 8rem;
}

/* --------------------------------------------------
   モデルコース一覧（グリッド表示＆中央寄せ＋T字）
-------------------------------------------------- */
.tour-grid-section {
  background-color: #fff;
  padding: 4rem 2rem;
	margin-top: 4rem; /* ← タイトルとカードの間に余白追加 */
}
.tour-grid {
  display: grid;
  grid-template-columns: 1fr; /* ← 1列のみ */
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
/* ▼ カードの横幅いっぱいにする */
.tour-card {
	 position: relative;
  background: #fff;
  padding: 2rem;
  margin-bottom: 4rem;
  text-align: center;
  width: 100%; /* ← 横幅100% */
  box-sizing: border-box;
}

.tour-card img {
  width: 100%;
  height: 240px; /* ← 画像を大きく */
  object-fit: cover;
    margin-bottom: 1.2rem;
}
.tour-card h3 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}
.tour-card .subtitle {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1rem;
}
.tour-card hr {
  margin: 1rem auto;
  border: none;
  border-top: 1px solid #ccc;
  width: 100%;
}

.tour-meta-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  gap: 1.5rem;
}

.meta-item {
  font-size: 1rem;
  color: #333;
}

.vertical-line {
  width: 1px;
  height: 1.6rem;
  background-color: #ccc;
}
/* --------------------------------------------------
   モデルコース：スポットカード（2〜5項目対応）
-------------------------------------------------- ①*/
.spot-flow-card {
  display: grid;
  gap: 5px;
  align-items: start;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
/* ▼ 各スポット数に応じたグリッド構成（幅広写真用） */
.spot-flow-card.two-cols {
  grid-template-columns: 320px 60px 320px; /* spot → arrow → spot */
}

.spot-flow-card.three-cols {
  grid-template-columns: 280px 40px 280px 40px 280px; /* spot → arrow → spot → arrow → spot */
}

.spot-flow-card.four-cols {
  grid-template-columns: 260px 30px 260px 30px 260px 30px 260px; /* spot → arrow → ... */
}

.spot-flow-card.five-cols {
  grid-template-columns: 200px 20px 200px 20px 200px 20px 200px 20px 200px;
}
/* --------------------------------------------------
   7時間コース用：6カラムレイアウト
-------------------------------------------------- */
.spot-flow-card.six-cols {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
}

/* 各スポットカード（6枚を横一列に収める） */
.spot-flow-card.six-cols .spot-item {
  flex: 1 1 0;
  min-width: 0; /* テキスト折り返し用 */
}

/* 矢印部分（→） */
.spot-flow-card.six-cols .arrow {
  flex: 0 0 auto;
  align-self: center;
  font-size: 1.8rem;
  line-height: 1;
}

/* 画像の比率を揃えて、縦に潰れないように */
.spot-flow-card.six-cols .spot-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
}

/* タイトルと説明文のサイズを少し抑えめに */
.spot-flow-card.six-cols .spot-title {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.spot-flow-card.six-cols .spot-caption {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* レスポンシブ対応：スマホでは縦並び */
@media (max-width: 768px) {
  .spot-flow-card.six-cols {
    flex-direction: column;
  }

  .spot-flow-card.six-cols .arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }
}

/* ▼ 各スポット項目の共通スタイル */
.spot-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spot-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.spot-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.3em;
}

.spot-caption {
  font-size: 0.9em;
  color: #444;
  line-height: 1.5;
}

/* ▼ 矢印スタイル */
.arrow {
  font-size: 1.8em;
  text-align: center;
  align-self: center;
  color: #888;
}

/* レスポンシブ対応：スマホでは縦並び */
@media screen and (max-width: 1100px) {
  .spot-flow-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .spot-item {
    max-width: 100%;
  }

  .arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .spot-item img {
    height: 160px;
  }
}
/* --------------------------------------------------
   モデルコース共通カードラッパー（枠線付き）
-------------------------------------------------- */
.spot-flow-card-wrapper {
  border: 1px solid #ccc;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 8px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
/* --------------------------------------------------
   モデルコース一覧（カード3枚並び・表レイアウト風）
-------------------------------------------------- */
.course-card-section {
  background-color: #fff;
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.course-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  overflow: visible; /* transformが見えるように */
  position: relative; /* hover浮かせのz-indexのため */
}

/* 各カード */
.course-card {
  border-top: 0.5px solid #ccc;
  border-left: 0.5px solid #ccc;
  padding: 0;
  text-align: center;
  background: #fff;
  box-sizing: border-box;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
  position: relative;
  z-index: 0;
}

/* ホバー時に浮く */
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* カード浮き上がり（PCのみ） */
@media (hover: hover) and (pointer: fine) {
  .course-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
  }
}

/* 表示時アニメーション */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 表レイアウト右・下ボーダー追加 */
.course-card:nth-child(3n) {
  border-right: 0.5px solid #ccc;
}
.course-card:nth-last-child(-n+3) {
  border-bottom: 0.5px solid #ccc;
}
.course-card:last-child {
  border-right: 0.5px solid #ccc;
}
/* タグ（#3時間など） */
.course-card .card-tag {
  color: red;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* タイトル */
.course-card h4 {
  font-size: 1.1rem;
  margin: 1rem 0.4rem;
  font-weight: bold;
  color: #333;
}

/* スポット内容 */
.course-card .spot-summary {
  font-size: 0.7rem;
  color: #555;
  margin: 1rem 0 1rem;
  line-height: 1.4;
  --lh: 1.6;
  line-height: var(--lh);
  height: calc(3 * 1em * var(--lh));  /* 例：3行ぶんで固定 */
  overflow: auto;             
}

/* 所要時間と料金 */
.course-meta {
  font-size: 0.9rem;
  color: #444;
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid #ccc;
  padding-top: 0.6rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* 画像 */
.course-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 8px; /* 画像とタグの間隔 */
}
/* --------------------------------------------------
   観光モデルコースカードのリンクスタイル
-------------------------------------------------- */

.course-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.course-card-link:hover {
  text-decoration: none;
}

/* --------------------------------------------------
   コースカードホバーアニメーション（PCのみ）
-------------------------------------------------- */
/* レスポンシブ対応：スマホでは無効 */
@media (hover: hover) and (pointer: fine) {
  .course-card:hover {
    transform: translateY(-4px) scale(1.02); /* ← 浮かび感 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* ← 浮かぶ影 */
    z-index: 1;
  }
}

/* --------------------------------------------------
   レスポンシブ対応：スマホでは縦並び
-------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .course-card-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

@media screen and (max-width: 600px) {
  .course-card-grid {
    grid-template-columns: 1fr;
    max-width: 90%;
  }

  .course-card img {
    height: 180px;
  }
}

/* --------------------------------------------------
   モデルコース一覧（サブタイトル）
-------------------------------------------------- */
.course-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin: 1rem 0 2rem;
}

/* --------------------------------------------------
   コースカテゴリータイトル
-------------------------------------------------- */
.course-category {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 5px solid #007acc;
  color: #333;
}

/* tour-card に relative 追加 */
.tour-card {
  position: relative;
}


/* --------------------------------------------------
   観光ルート横並び（スポット＋矢印）写真大きくなるコード
--------------------------------------------------------------------------------------------------------------------- ②*/
/* ▼ スポットの全体横並び（画像 + 矢印 + 画像） */
/*.spot-flow-card {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem; /* ← 間隔を広げる */
 /* flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tour-flow-card {
  border: 2px dashed #aaa;
  
  background-color: #fff;
  padding: 2rem;
  margin-bottom: 3rem;
}
/* ▼ 各スポット */
/*.spot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 400px; 
}

/* ▼ 各スポットの画像サイズを統一 */
/*.spot-item img {
  width: 400px;
  height: 300px;
  object-fit: cover;
 }/*

/* ▼ スポットの説明 */
/*.spot-title {
  font-weight: bold;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* ▼ スポットキャプション */
/*.spot-caption {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.5;
  padding: 0 10px;
  box-sizing: border-box;
}
/* ▼ 矢印 */
/*.arrow {
  font-size: 2.5rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* リボン装飾 */
/*.tour-flow-card .ribbon {
  position: absolute;
  top: -12px;
  left: -12px;
  background-color: #d9534f;
  color: white;
  padding: 4px 12px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 4px;
}
/* ▼ コース全体の説明（中央揃え） */
/*.course-info {
  text-align: center;
  margin-top: 2rem;
}

.course-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.course-summary {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}
/*
/* --------------------------------------------------
   ご利用案内・Q&A・お問い合わせ（汎用スタイル）
-------------------------------------------------- */
.faq-item {
  margin-bottom: 15px;
}

.contact-box {
  text-align: center;
  font-size: 18px;
}

/* --------------------------------------------------
   その他：旧型のヘッダー画像セクション（非推奨）
-------------------------------------------------- */
.page-hero {
  position: relative;
  margin-top: 90px;
}

.page-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.page-hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
}
/* --------------------------------------------------
   トップ画像の高さ（観光案内用）
-------------------------------------------------- */
.tours-page .top-image {
  height: 400px;
  object-fit: cover;
}

/* --------------------------------------------------
   ヒーローテキストの見出し（観光案内用）
-------------------------------------------------- */
.tours-page .page-hero-text h1 {
  font-size: 2rem;
  color: #fff;
  text-align: center;
}
/* --------------------------------------------------
   モデルコース共通リボン（汎用 .ribbon）
-------------------------------------------------- */
.course-ribbon {
  display: inline-block;
  background-color: #d9534f;
  color: white;
  padding: 4px 12px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 1rem;
}