/*
 * OryTour（ガイドツアー）ページの予約導線の改善（2026-10）
 * guide_tour_jp.css の後に読み込む。日本語版・英語版で共通。
 * スマホは guide_tour_jp.css と同じく 814px 以下。
 */

/* ---------- PC: 固定ヘッダー（ロゴ・言語切り替え・予約ボタン） ---------- */
/* guide_tour_jp.css で html・body に overflow-x: hidden があり sticky が効かないため、fixed で固定する */
.gt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 #e3e3e3, 0 4px 14px rgba(0, 0, 0, 0.06);
}
/* 固定したヘッダーの高さの分、ページの上をあける */
body.gt-page {
  padding-top: 76px;
}
.gt-header-in {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 白地のヘッダーには、カラーの OryTour ロゴ（logo-orytour-color.svg）を使う */
.gt-header-logo {
  display: block;
  height: 30px;
  width: auto;
}
.gt-header-r {
  display: flex;
  align-items: center;
  gap: 28px;
}
.gt-header-reserve {
  background: #59290b;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 30px;
  text-decoration: none !important;
}
.gt-header-reserve:hover {
  opacity: 0.85;
  transition: opacity 0.3s;
}
/* PCではロゴがヘッダーにあるので、写真の上のロゴは出さない */
.g-logo {
  display: none;
}

/* ---------- 言語の切り替え（JP | EN。今の言語を太字＋下線） ---------- */
.gt-lang {
  display: inline-flex;
  align-items: center;
  font-family: "Montserrat", sans-serif;
}
.gt-lang a,
.gt-lang span {
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.gt-lang a + span,
.gt-lang span + a {
  border-left: 1px solid #cfcfcf;
}
.gt-header .gt-lang a {
  color: #9a9a9a;
}
.gt-header .gt-lang a:hover {
  color: #262626;
}
.gt-lang .is-current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.gt-header .gt-lang .is-current {
  color: #262626;
}
/* スマホ: 写真の右上に白い文字で置く */
.gt-lang--hero {
  display: none;
}

/* ---------- PC: メインビジュアルを白いカードにまとめる ---------- */
.g-hero {
  position: relative;
}
.g-cont.gt-card {
  left: 40px;
  bottom: 48px;
  width: 520px;
  background: rgba(255, 255, 255, 0.95);
  padding: 32px 36px 28px;
}
.gt-card .g-sub-copy {
  color: #748681;
  font-size: 14px;
  margin: 0 0 8px;
  letter-spacing: 0.06em;
}
.gt-card .g-lead {
  color: #222;
  font-size: 36px;
}
.gt-card .g-lead-en {
  font-size: 32px;
}
.gt-card .main-white {
  background: #f2f2f2;
  margin-top: 18px;
  padding: 10px 22px;
}
.gt-card .main-white p {
  white-space: nowrap;
  font-size: 15px;
}
.gt-price {
  margin-top: 22px;
  font-size: 30px;
  font-weight: bold;
  color: #59290b;
  line-height: 1.3;
}
.gt-hero-cta {
  margin-top: 16px;
}
.gt-hero-cta .tour-btn {
  display: block;
  text-align: center;
}
/* カードのどこを押しても予約ボタンと同じリンクになるようにする（カードや人数・時間のアイコンが押されていたため） */
.gt-card .gt-hero-cta .tour-btn::after {
  content: "";
  position: absolute;
  inset: 0;
}
.gt-card {
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.gt-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.gt-card:hover .tour-btn {
  background: #2d1405;
}

/* ---------- 「ツアーの様子」の写真（全部並べる。クリックで拡大） ---------- */
.gt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.gt-gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}
.gt-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gt-gallery-grid a:hover img {
  transform: scale(1.04);
}
.gt-gallery-grid a:focus-visible {
  outline: 3px solid #59290b;
  outline-offset: 2px;
}
.gt-gallery-note {
  text-align: center;
  font-size: 13px;
  color: #4c5c57;
  margin-top: 14px;
}
/* PC: 今のサイトと同じく、ページ下部に画面幅いっぱいで並べる（欠けなし） */
.gt-gallery--pc {
  margin-top: 55px;
  padding: 0 12px;
}
.gt-gallery--pc .gt-gallery-grid {
  gap: 12px;
}
/* スマホ: 「体験できること」の直後に、緑のセクションの中で並べる */
.gt-gallery--sp {
  display: none;
}

/* ---------- 料金に含まれるもの（カード）と予約ボタン ---------- */
.gt-inc-h {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-top: 64px;
}
.gt-inc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}
/* ボタンに見えないよう、白い箱にせず線で区切った一覧にする（スマホで項目がタップされていたため） */
.gt-inc li {
  padding: 20px 4px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid rgba(89, 41, 11, 0.25);
}
.gt-inc svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: #59290b;
}
.gt-center {
  text-align: center;
  margin-top: 36px;
}
/* 「料金に含まれるもの」の一覧と予約ボタンの間は広めにあける */
.gt-inc + .gt-center {
  margin-top: 56px;
}

/* ---------- 予約の前に ---------- */
.gt-info {
  background: #fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 40px;
}
.gt-info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  /* 見出し（集合場所など）と中身の1行目の文字の高さを揃える */
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #e3e3e3;
}
.gt-info-row:last-child {
  border-bottom: 0;
}
.gt-info dt {
  font-weight: bold;
  color: #59290b;
  font-size: 15px;
  line-height: 1.7;
}
.gt-info dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}
.gt-info dd small {
  display: block;
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}
.gt-info a {
  text-decoration: underline;
}

/* ---------- スマホ: 画面下に固定の予約ボタン ---------- */
.gt-sp-bar {
  display: none;
}

/* ---------- 写真の拡大表示 ---------- */
.gt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}
.gt-lightbox[hidden] {
  display: none;
}
/* 画面に合わせて大きく表示する。写真の実際の大きさ（横876px）より大きくは引き伸ばさない */
.gt-lightbox-img {
  width: min(84vw, 876px);
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}
.gt-lightbox-btn {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: 400 38px/64px sans-serif;
  width: 64px;
  height: 64px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.gt-lightbox-btn:hover,
.gt-lightbox-btn:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}
.gt-lightbox-prev {
  left: 40px;
  top: calc(50% - 32px);
}
.gt-lightbox-next {
  right: 40px;
  top: calc(50% - 32px);
}
.gt-lightbox-close {
  top: 30px;
  right: 40px;
}
.gt-lightbox-count {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font: 600 18px "Montserrat", sans-serif;
  letter-spacing: 0.08em;
}
body.gt-noscroll {
  overflow: hidden;
}

/* ================= スマホ ================= */
@media screen and (max-width: 814px) {
  .gt-header {
    display: none;
  }
  .g-logo {
    display: block;
  }
  .gt-lang--hero {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 10px;
    z-index: 5;
  }
  .gt-lang--hero a,
  .gt-lang--hero span {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  }
  .gt-lang--hero a + span,
  .gt-lang--hero span + a {
    border-left-color: rgba(255, 255, 255, 0.7);
  }
  .gt-lang--hero .is-current {
    color: #fff;
  }

  .gt-price {
    margin-top: 18px;
    font-size: 24px;
  }

  /* 予約ボタン: セクションの幅いっぱい、文字の左右に余白 */
  .gt-cta {
    padding: 22px 14px !important;
    font-size: 17px !important;
  }
  .gt-center .tour-btn {
    display: block;
    margin: 0;
  }

  /* 料金は「区分／金額 ／1人あたり／注記」の行に分ける */
  .cost.gt-cost {
    display: grid;
    grid-template-areas: "label label" "price per" "note note";
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: baseline;
    column-gap: 6px;
  }
  .gt-cost-label {
    grid-area: label;
    font-size: 16px;
  }
  .gt-cost-price {
    grid-area: price;
    font-size: 28px;
    line-height: 1.3;
  }
  .gt-cost-per {
    grid-area: per;
    font-size: 14px;
    font-weight: normal;
  }
  .gt-cost-note {
    grid-area: note;
    font-size: 13px !important;
    font-weight: normal;
    color: #4c5c57;
  }
  .cost.gt-cost + .cost.gt-cost {
    margin-top: 18px;
  }

  .gt-gallery--pc {
    display: none;
  }
  .gt-gallery--sp {
    display: block;
  }
  .gt-gallery--sp .gt-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  /* 縦に長くなりすぎないよう、最初の4枚だけ並べる。残りは拡大表示で順に見られる */
  .gt-gallery--sp .gt-gallery-grid a:nth-child(n + 5) {
    display: none;
  }
  .gt-gallery--sp .gt-gallery-grid a:nth-child(4) {
    position: relative;
  }
  .gt-gallery--sp .gt-gallery-grid a:nth-child(4)::after {
    content: "+6";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font: 700 26px "Montserrat", sans-serif;
    letter-spacing: 0.04em;
  }

  .gt-inc {
    grid-template-columns: 1fr;
    margin: 24px 20px 0;
  }

  .gt-info {
    margin: 0 20px;
    padding: 8px 18px;
  }
  .gt-info-row {
    display: block;
  }

  .gt-sp-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #fff;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.14);
  }
  .gt-sp-bar a {
    display: block;
    background: #59290b;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 17px;
    padding: 15px 0;
    text-decoration: none !important;
  }
  /* スマホはヘッダーを出さない。固定の予約ボタンでフッターが隠れないように下をあける */
  body.gt-page {
    padding-top: 0;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .gt-lightbox-img {
    width: 100vw;
  }
  .gt-lightbox-btn {
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 44px;
  }
  .gt-lightbox-prev {
    left: 10px;
    top: calc(50% - 22px);
  }
  .gt-lightbox-next {
    right: 10px;
    top: calc(50% - 22px);
  }
  .gt-lightbox-close {
    top: 14px;
    right: 14px;
  }
  .gt-lightbox-count {
    bottom: 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gt-gallery-grid img {
    transition: none;
  }
}
