/* ================================================
   tour-detail.css — ツアー詳細ページ専用

   【カンプとの照合で修正した箇所】
   ・情報バーの各セルに padding-left を追加（カンプ準拠）
   ・OVERVIEW 本文から br を削除し、自然な折り返しに統一
   ・ギャラリーグリッドの高さバランスを min-height で安定化
   ・SP予約バーのレイアウトをカンプ準拠に微調整
   ・SP情報バーの padding を左寄せに合わせて調整
   ・タイムライン縦線の接続精度を向上
   ・CTA帯のボタン余白をカンプ準拠に微調整
   ================================================ */


/* ================================
   パンくず
   ================================ */


/* ================================
   ファーストビュー
   ================================ */


/* POPULARバッジ — tour-badgeはstyle.css定義を流用。
   ここでは td-hero 内での位置調整のみ */


/* ================================
   情報バー
   【修正】カンプではテキストが各セル左端から
   少し内側に入っているため、padding-left を追加
   ================================ */
.td-info-bar {
	margin-top: 25px;
  /*background-color: #fff;
  border-top: 1px solid rgba(45, 45, 45, 0.08);
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);*/
}

.td-info-bar-inner {
  display: flex;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
	gap: 10px;
}

.td-info-item {
display:block;
	background: #fff;
  flex: 1;
	width: 200px;
	height: 80px;
  padding-left: 30px;
  border: 1px solid #3D3D3D;
}

/*.td-info-item:last-child {
  border-right: none;
}*/

.td-info-label {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #bf8a24;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.td-info-value {
  display: block;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  color: #2d2d2d;
  letter-spacing: 0.04em;
}


/* ================================
   SP予約バー（PCでは非表示）
   ================================ */
.td-sp-reserve-bar {
  display: none;
}


/* ================================
   2カラムレイアウト
   ================================ */
.td-main-wrap {
  background-color: #faf7f2;
  padding: 56px 0 80px;
}

.td-main-inner {
  display: flex;
  gap: 60px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.td-content {
  flex: 1;
  min-width: 0;
}

.td-sidebar {
  flex: 0 0 320px;
  width: 320px;
  position: sticky;
  top: 88px;
}


/* ================================
   セクション共通（左カラム内）
   ================================ */
.td-section {
  margin-bottom: 64px;
}

.td-section:last-child {
  margin-bottom: 0;
}

.td-section-label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.td-section-label-en {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #bf8a24;
  text-transform: uppercase;
  white-space: nowrap;
}

.td-section-label-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background-color: #bf8a24;
  margin-left: 10px;
}

.td-section-heading {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #2d2d2d;
  margin-bottom: 24px;
}


/* ================================
   OVERVIEW
   【修正】br を使わず自然な折り返しに統一
   ================================ */
.td-overview-text {
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: #444;
}


/* ================================
   ITINERARY（タイムライン）
   【修正】縦線の接続精度を向上
   ================================ */
.td-timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}

.td-timeline-item:last-child {
  padding-bottom: 0;
}

.td-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
  position: relative;
}

.td-timeline-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #a23b2c;
  color: #faf7f2;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

/* 最終行の小さな丸マーカー */
.td-timeline-number-end {
  background-color: #faf7f2;
  border: 2px solid #bbb;
  width: 16px;
  height: 16px;
}

.td-timeline-time {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #888;
  white-space: nowrap;
}

/* 縦線：番号マーカーの下から次の行の番号まで */
.td-timeline-item:not(:last-child) .td-timeline-marker::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% - 34px);
  background-color: #ddd;
  z-index: 1;
}

.td-timeline-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.td-timeline-title {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2d2d2d;
  margin-bottom: 2px;
  line-height: 1.4;
}

.td-timeline-en {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  color: #8b8075;
  margin-bottom: 8px;
}

.td-timeline-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  letter-spacing: 0.03em;
}

.td-timeline-photos {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.td-timeline-photo {
  width: 180px;
  height: 120px;
  object-fit: cover;
  background-color: #e8e2d8;
}


/* ================================
   INCLUDES
   ================================ */
.td-includes-list {
  display: flex;
  flex-direction: column;
}

.td-includes-item {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
  background-color: rgba(45, 45, 45, 0.015);
}

.td-includes-item:first-child {
  border-top: 1px solid rgba(45, 45, 45, 0.06);
}


/* ================================
   GALLERY（3枚）
   PC: 上に大1枚全幅 ＋ 下に小2枚横並び
   カンプ準拠：上下2段構成
   ================================ */
.td-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
}

.td-gallery-main {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #e8e2d8;
}

.td-gallery-sub {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: #e8e2d8;
}


/* ================================
   NOTES
   ================================ */
.td-notes-box {
  border: 1px solid rgba(45, 45, 45, 0.1);
  padding: 28px 24px;
  background-color: #faf7f2;
}

.td-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.td-notes-list li {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}


/* ================================
   予約ボックス（サイドバー）
   ================================ */
.td-reserve-box {
  border: 1px solid rgba(45, 45, 45, 0.1);
  background-color: #fff;
  margin-bottom: 48px;
  overflow: hidden;
}

.td-reserve-top-bar {
  height: 4px;
  background-color: #a23b2c;
}

.td-reserve-inner {
  padding: 28px 24px 24px;
}

.td-reserve-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.td-reserve-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

.td-reserve-yen {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 600;
  color: #2d2d2d;
}

.td-reserve-per {
  font-size: 14px;
  color: #888;
}

.td-reserve-field {
  margin-bottom: 18px;
}

.td-reserve-field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.td-reserve-input-wrap {
  position: relative;
}

.td-reserve-input {
  width: 100%;
  padding: 12px 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  color: #888;
  border: 1px solid #ddd;
  background-color: #fff;
  outline: none;
}

.td-reserve-input:focus {
  border-color: #bf8a24;
}

.td-reserve-select-wrap {
  position: relative;
}

.td-reserve-select {
  width: 100%;
  padding: 12px 14px;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 15px;
  color: #2d2d2d;
  border: 1px solid #ddd;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

.td-reserve-select:focus {
  border-color: #bf8a24;
}

.td-reserve-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #bbb;
  pointer-events: none;
}

.td-reserve-btn {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #faf7f2;
  background-color: #a23b2c;
  border: none;
  margin-bottom: 16px;
  transition: background-color 0.3s ease;
}

.td-reserve-btn:hover {
  background-color: #8a3225;
  opacity: 1;
}

.td-reserve-notes {
  margin-bottom: 18px;
}

.td-reserve-notes p {
  font-size: 12px;
  line-height: 1.8;
  color: #888;
}

.td-reserve-inquire {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #555;
  border: 1px solid #ddd;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.td-reserve-inquire:hover {
  border-color: #999;
  color: #2d2d2d;
  opacity: 1;
}


/* ================================
   他のツアー（サイドバー）
   ================================ */
.td-other-tours-heading {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2d2d2d;
  margin-bottom: 24px;
}

.td-other-tours-list {
  display: flex;
  flex-direction: column;
}

.td-other-card {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
}

.td-other-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.td-other-card-thumb {
  flex: 0 0 90px;
  width: 90px;
  height: 70px;
  overflow: hidden;
}

.td-other-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #e8e2d8;
}

.td-other-card-body {
  flex: 1;
  min-width: 0;
}

.td-other-card-title {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 15px;
  font-weight: 600;
  color: #2d2d2d;
  line-height: 1.4;
  margin-bottom: 1px;
}

.td-other-card-en {
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  color: #8b8075;
  margin-bottom: 4px;
}

.td-other-card-meta {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.td-other-card-btn {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #faf7f2;
  background-color: #a23b2c;
  border: 1px solid #a23b2c;
  padding: 5px 14px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.td-other-card-btn:hover {
  background-color: #8a3225;
  border-color: #8a3225;
  opacity: 1;
}


/* ================================
   CTA帯
   【修正】ボタン余白をカンプ準拠に微調整
   ================================ */
/* ================================
   CTA帯
   カンプ寄せ調整版
   ================================ */
.td-cta-section {
  padding: 64px 5% 58px;
  background-color: #a23b2c;
  text-align: center;
}

.td-cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.td-cta-heading {
  margin: 0 0 10px;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #faf7f2;
}

.td-cta-sub {
  margin: 0 0 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: rgba(250, 247, 242, 0.75);
}

.td-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.td-cta-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 42px;
  box-sizing: border-box;
  padding: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  color: #faf7f2;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid rgba(250, 247, 242, 0.85);
  box-shadow: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  /* ④ シマーエフェクト用（既存スタイルに追加） */
  position: relative;
  overflow: hidden;
}

.td-cta-btn:hover {
  background-color: rgba(250, 247, 242, 0.08);
  border-color: #faf7f2;
  color: #faf7f2;
  opacity: 1;
}

.td-cta-btn:visited,
.td-cta-btn:active,
.td-cta-btn:focus {
  color: #faf7f2;
  background-color: transparent;
  text-decoration: none;
}

.td-cta-info {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(250, 247, 242, 0.62);
}

/* SP */
@media screen and (max-width: 768px) {
  .td-cta-section {
    padding: 48px 5% 44px;
  }

  .td-cta-heading {
    font-size: 24px;
    letter-spacing: 0.06em;
  }

  .td-cta-sub {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .td-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .td-cta-btn {
    width: min(260px, 80%);
    height: auto;
    padding: 13px 24px;
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .td-cta-info {
    font-size: 12px;
    line-height: 1.8;
  }
}

/* ================================
   タブレット（1024px以下）
   ================================ */
@media screen and (max-width: 1024px) {

  .td-main-inner {
    gap: 40px;
  }

  .td-sidebar {
    flex: 0 0 280px;
    width: 280px;
  }


  .td-cta-heading {
    font-size: 36px;
  }
}


/* ================================
   SP（768px以下）
   ================================ */
@media screen and (max-width: 768px) {

  /* パンくず */


  /* ファーストビュー */


  /* 情報バー 2×2 ダーク背景（カンプ準拠） */
  .td-info-bar {
    background-color: #3d3d3d;
    margin-top: 0;
  }

  .td-info-bar-inner {
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
  }

  .td-info-item {
    flex: 0 0 50%;
    padding: 14px 16px;
    border: none;
    border-right: none;
    background: #3d3d3d;
    height: auto;
    width: auto;
    padding-left: 16px;
  }

  .td-info-item:nth-child(1),
  .td-info-item:nth-child(2) {
    border-bottom: 1px solid rgba(250, 247, 242, 0.12);
  }

  .td-info-item:nth-child(odd) {
    border-right: 1px solid rgba(250, 247, 242, 0.12);
  }

  .td-info-label {
    margin-bottom: 4px;
    color: #d4a84b;
    font-size: 9px;
  }

  .td-info-value {
    font-size: 16px;
    color: #faf7f2;
  }

  /* SP予約バー
     【修正】カンプ準拠でレイアウト調整
     カンプ：左に「料金（税込）¥12,800 〜/1名」、右に「BOOK NOW」ボタン
     下段に注記テキスト */
  .td-sp-reserve-bar {
    display: block;
    background-color: #fff;
    border-bottom: 1px solid rgba(45, 45, 45, 0.08);
    padding: 16px 5%;
  }

  .td-sp-reserve-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .td-sp-reserve-price-area {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .td-sp-reserve-label {
    font-size: 11px;
    color: #888;
  }

  .td-sp-reserve-yen {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 600;
    color: #2d2d2d;
  }

  .td-sp-reserve-per {
    font-size: 12px;
    color: #888;
  }

  .td-sp-reserve-note {
    font-size: 10px;
    color: #888;
    width: 100%;
    order: 3;
  }

  .td-sp-reserve-btn {
    font-family: "Cormorant Garamond", serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #faf7f2;
    background-color: #a23b2c;
    padding: 10px 20px;
    border: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
  }

  .td-sp-reserve-btn:hover {
    background-color: #8a3225;
    opacity: 1;
  }

  /* 1カラム化 */
  .td-main-wrap {
    padding: 32px 0 48px;
  }

  .td-main-inner {
    flex-direction: column;
    gap: 0;
  }

  /* サイドバー → 下に移動、予約ボックスは非表示 */
  .td-sidebar {
    flex: none;
    width: 100%;
    position: static;
    margin-top: 40px;
  }

  .td-reserve-box {
    display: none;
  }

  /* セクション共通 */
  .td-section-heading {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .td-section {
    margin-bottom: 44px;
  }

  /* OVERVIEW */
  .td-overview-text {
    font-size: 14px;
    line-height: 2;
  }

  /* タイムライン */
  .td-timeline-item {
    gap: 14px;
    padding-bottom: 24px;
  }

  .td-timeline-marker {
    width: 40px;
  }

  .td-timeline-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .td-timeline-title {
    font-size: 17px;
  }

  .td-timeline-desc {
    font-size: 13px;
  }

  .td-timeline-photo {
    width: 120px;
    height: 80px;
  }

  .td-timeline-item:not(:last-child) .td-timeline-marker::after {
    top: 30px;
    height: calc(100% - 30px);
  }

  /* INCLUDES */
  .td-includes-item {
    font-size: 13px;
    padding: 12px 14px;
  }

  /* GALLERY SP: 大1枚全幅＋下に小2枚横並び（PC同様の構成） */
  .td-gallery-grid {
    gap: 6px;
  }

  .td-gallery-main {
    aspect-ratio: 16 / 10;
  }

  .td-gallery-sub {
    aspect-ratio: 4 / 3;
  }

  /* NOTES */
  .td-notes-box {
    padding: 20px 16px;
  }

  .td-notes-list li {
    font-size: 12px;
    line-height: 1.75;
  }

  /* 他のツアー SP: 横スクロールスライダー */
  .td-other-tours-heading {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .td-other-tours-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 14px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .td-other-tours-list::-webkit-scrollbar {
    height: 3px;
  }

  .td-other-tours-list::-webkit-scrollbar-track {
    background: rgba(45, 45, 45, 0.05);
  }

  .td-other-tours-list::-webkit-scrollbar-thumb {
    background: rgba(45, 45, 45, 0.15);
    border-radius: 2px;
  }

  .td-other-card {
    flex-direction: column;
    flex: 0 0 220px;
    min-width: 220px;
    gap: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    background-color: #fff;
    scroll-snap-align: start;
    overflow: hidden;
  }

  .td-other-card-thumb {
    flex: none;
    width: 100%;
    height: 140px;
  }

  .td-other-card-body {
    padding: 12px 14px 16px;
  }

  .td-other-card-title {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .td-other-card-meta {
    font-size: 12px;
    margin-bottom: 8px;
  }

  /* CTA帯 */
  .td-cta-section {
    padding: 48px 5%;
  }

  .td-cta-heading {
    font-size: 26px;
  }

  .td-cta-sub {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .td-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .td-cta-btn {
    width: min(260px, 80%);
    height: auto;
    padding: 13px 24px;
    font-size: 13px;
  }

  .td-cta-info {
    font-size: 12px;
  }
}

/* ================================
   ④ CTAボタン シマーエフェクト
   ホバー時に光が左→右へ走る高級感演出
   prefers-reduced-motion 対応済み
   ================================ */
@media not (prefers-reduced-motion: reduce) {
  .td-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
      105deg,
      transparent,
      rgba(250, 247, 242, 0.18),
      transparent
    );
    transform: skewX(-20deg);
    pointer-events: none;
  }

  .td-cta-btn:hover::after {
    animation: td-btn-shimmer 0.55s ease forwards;
  }

  @keyframes td-btn-shimmer {
    to { left: 160%; }
  }
}
