/* @media (min-width: 1024px) { */
    #secondary {
        position: sticky;
        top: 100px; /* ヘッダーの高さに合わせて調整 */
    }
/* } */

.secondary-trip-info {
    display: none;
}

/* ツアー詳細ページでのみ適用 */
#primary {
    /* 1. 親要素をフレックスボックスにして横並びを許可 */
    display: flex; 
    flex-direction: row; /* 横並び */
    flex-wrap: wrap;     /* スマホで折り返し許可 */
    gap: 40px;           /* メインとサイドバーの間隔 */
    max-width: 1240px;   /* サイトの最大幅に合わせて調整 */
    margin: 0 auto;
    align-items: flex-start; /* これがないとStickyが効きません */
    width: 100%;
}

/* 左側：メインコンテンツ */
.site-main {
    flex: 1;             /* 残りの幅をすべて占有 */
    min-width: 0;        /* flex崩れ防止 */
}

.wpte-gallery-wrapper__multi-banners .banner-layout-1, .wpte-gallery-wrapper__multi-banners .banner-layout-5, .wpte-gallery-wrapper__multi-banners .banner-layout-default {
    width: 100% !important;
    left: unset !important;
    right: unset !important;
    margin-left: unset !important;
    margin-right: unset !important;
}
/* ギャラリー全体のレイアウト */
.custom-trip-gallery {
    width: 100%;
}

/* メイン画像 */
.main-display-image img {
    width: 100%;
    height: 432px;
    border-radius: 8px;
    display: block;
    margin-bottom: 10px;
    object-fit: cover;
}

/* サムネイルのグリッド（5列） */
.thumbnail-grid-view {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumb-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 3 / 2; /* 比率を固定 */
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.thumb-item:hover img {
    opacity: 0.7;
}

/* スマホでは3列にする */
@media (max-width: 600px) {
    .thumbnail-grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .wpte-gallery-wrapper__multi-banners .banner-layout-default .splide.single-trip-main-carousel img {
        height: 432px !important;
    }
}


/* 右側：サイドバー */
#secondary {
    width: 260px;        /* サイドバーの固定幅 */
    position: -webkit-sticky;
    position: sticky;
    top: 120px;           /* スクロール時に止まる位置 */
    z-index: 10;
}

/* モバイル対応（1024px以下は縦並び） */
@media (max-width: 1024px) {
    #primary {
        display: block;  /* 横並び解除 */
    }
    #secondary {
        width: 100%;
        position: static;
        margin-top: 40px;
    }
}


/* タブを囲むラッパーの余計なスタイルをリセット */
.nav-tab-wrapper, .tab-inner-wrapper {
    background: transparent !important;
    display: flex !important;
    gap: 0 !important; /* タブ同士の間隔 */
    padding: 0 !important;
}

/* 各タブのテキストスタイル */
.wpte-tabs-container .nav-tab {
    font-size: 14px !important;
    text-transform: none !important; /* 勝手に大文字になるのを防ぐ */
    letter-spacing: 0.05em !important;
    color: #9ca3af !important; /* 未選択時のグレー */
    padding: 12px 15px !important; /* 下線との距離 */
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

/* ホバー時 */
.wpte-tabs-container .nav-tab:hover {
    color: #4b5563 !important;
}

/* アクティブ（選択中）のタブ */
.wpte-tabs-container .nav-tab.nav-tab-active {
    color: #000000 !important; /* 真っ黒 */
    font-weight: 700 !important; /* 太字 */
    border-bottom: 2px solid #000000 !important; /* 黒い下線 */
}

/* アイコンが不要な場合は非表示に（画像にないので） */
.wpte-tabs-container .tab-icon {
    display: none !important;
}


/* 編集ボタンを非表示にする */
.post-edit-link {
    display: none !important;
}

/* ===========================
   Tour detail: meta label & value
   =========================== */
   .meta-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .meta-value {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
  }

/* サイドバーのpadding調整 */
/* .wpte-bf-price-wrap {
  padding: 0 24px 0 24px !important;
} */

/* サイドバーの下線を消去 */
.wpte-booking-area .wpte-bf-price-wrap {
    border-bottom: 0px !important;
}

/* サイドバーのボタンのpaddhingを消去 */
.wpte-booking-area .wpte-bf-btn-wrap {
    padding: 0 !important;
}

  /* 値段横のAdult表記を非表示にする */
  /* .wpte-bf-pqty {
    display: none !important;
  } */

  /* 値段表示の表示仕様を変更 */
  /* .wpte-bf-offer-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px !important;
  } */

  /* プラグイン標準の枠線を消す */
/* .wpte-bf-price-wrap, .wpte-booking-inner-wrapper {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
} */

/* 予約ボタンのデザインを変更 */
.wpte-bf-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #2a7ab8 !important;
    color: #ffffff;

    height: 44px;
    border-radius: 99px;

    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;

    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;

    border: none;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;

    text-transform: none !important;
}
.wpte-bf-btn:hover {
    background-color: #235f8f;
}

/* サイドバーのpadding調整 */
/* .wpte-booking-area .wpte-booking-inner-wrapper {
    position: relative;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
} */

/* Featured Toursのマージン修正 */
.wte-related-trips-wrapper {
    margin: 48px 0 0 !important;
}

/* Overview */
/* タイトルのスタイル変更 */
.wpte-overview-title {
    font-size: 20px !important;
    font-family: 'Roboto', sans-serif;
    margin-top: 0.5rem !important;
}

/* 本文のスタイル変更 */
.tab-content .overview {
    font-size: 15px !important;
}
.tab-content .overview figure {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.tab-content .overview figure img {
    overflow: hidden;
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.tab-content .overview h3 {
    font-weight: 700;
    font-size: 20px !important;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif !important;
}
.tab-content .overview h5 {
    font-weight: 700;
    font-size: 15px !important;
    line-height: 1.7;
    margin-bottom: 0.25rem;
    font-family: 'Roboto', sans-serif !important;
}
.tab-content .overview h6 {
    color: rgb(56 56 56 / var(--tw-text-opacity, 1));
}


/* Itineray */
/* 左のアイコンと縦線を削除 */
.itinerary-row .title::before {
    content: none !important;
}
.itinerary-row:not(:last-child)::before {
    content: none !important;
}
.itinerary-row {
    margin: 0 0 24px 0 !important;
}

/* Expand allのスイッチボタンを非表示 */
.expand-all-button {
    display: none !important;
}

/* 閉じるボタンの色を変更 */
.accordion-tabs-toggle.active .rotator {
    background-color: rgb(116 116 116 / var(--tw-text-opacity, 1)) !important;
}

/* paddingトップを削除 */
.itinerary {
    padding: 0 0 12px !important;
}

/* Day部分のフォント変更 */
.itinerary-row .title {
    color: rgb(89 81 70 / var(--tw-text-opacity, 1)) !important;
    font-style: italic;
    font-size: 20px !important;
    font-family: 'Cormorant', Georgia, serif !important;
    font-weight: 600 !important;
    margin-right: 15px !important;
}

/* Dayの内容にあるリストをタグ化 */
.itinerary-row .wp-block-list {
    display: flex;
    gap: 8px;
}
.itinerary-row .wp-block-list li {
   width: fit-content;
   color: rgb(56 56 56 / var(--tw-text-opacity, 1));
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(225 210 190 / var(--tw-bg-opacity, 1));
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

/* Dayの内容の本文下にマージン追加 */
.itinerary-content p {
    margin-bottom: 0.75rem;
}

/* Dayの内容の説明書きのフォント設定 */
h6 {
    --tw-text-opacity: 1;
    color: rgb(116 116 116 / var(--tw-text-opacity, 1));
    font-size: 13px !important;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.75rem !important;
}

/* Dayの内容の本文下にマージン追加 */
.itinerary-content figure {
    margin-top: 0.75rem;
}

/* Map */
/* タイトルのスタイル変更 */
.tab-content .wpte-map-title {
    font-weight: 700;
    font-size: 20px !important;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif !important;
    margin-top: 0.5rem !important;
}

/* Details */
.details h3 {
    font-weight: 700;
    font-size: 20px !important;
    line-height: 1.3;
    margin-bottom: 1rem !important;
    font-family: 'Roboto', sans-serif !important;
    margin-top: 0.5rem !important;
}
.details h5 {
    font-weight: 700;
    font-size: 15px !important;
    line-height: 1.7;
    margin-bottom: 0.25rem;
    font-family: 'Roboto', sans-serif !important;
}
.details h6 {
    color: #747474;
    margin-top: -1rem;
}
.details p {
    font-size: 15px !important;
    margin-bottom: 1rem;
}
.details .wp-block-list {
    gap: 0.5rem;
    flex-direction: column;
    display: flex;
    margin-bottom: 2.5rem;
}
.details .wp-block-list li {
    font-size: 15px !important;
    line-height: 1.7;
    font-family: 'Roboto', sans-serif;
}