/* 新規追加コンテンツ用のスタイル */
.open-bus-tour {
    margin-top: 20px;
    padding: 10px 20px 20px 20px;
    margin-top: 20px;
    background-color: #bd76c3;
    border-radius: 5px;
}

/* ▼▼▼ メイン画像とテキストの新しいスタイル ▼▼▼ */
.main-image-with-text {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 300px;
    /* 画像の高さに合わせて調整してください */
    background-image: url('/ticket/individual/img/hatobus_main2.jpg');
    /* メイン画像のパス */
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    /* 文字色を白に */
    padding: 15px;
    /* テキストと端の余白 */
    box-sizing: border-box;
    /* paddingを含めてwidth/heightを計算 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    /* 文字の視認性を高める影 */
}

.open-bus-tour .main-image {
    width: 100%;
    margin-bottom: 20px;
}

.main-image-with-text h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.main-image-with-text p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.open-bus-title {
    color: #da5e6f;
    font-size: 24px;
    font-weight: bold;
    border-bottom: solid 2px #bd76c3;
    margin-bottom: 15px;
    text-align: left !important;
    margin-left: 5px;
}

.open-bus-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.open-bus-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.open-bus-right {
    flex: 1;
    text-align: center;
}

.intro-text {
    margin-top: 12px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    background: #fff;
}

.price {
    font-size: 22px;
    font-weight: bold;
    text-align: right;
    margin-bottom: 20px;
    color: red;
    margin-right: 18px;
}

.tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 auto 25px auto;
}

.tags li {
    background-color: #ffd700;
    padding: 4px 4px;
    width: 80px;
    height: 48px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 12px;
    display: flex;
    text-align: center;
    align-items: center;
    /* 上下中央ぞろえ */
    justify-content: center;
    /* 左右中央ぞろえ */
}

.details-button {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 18px;
    background-color: #92d050;
    color: white !important;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.details-button:hover {
    opacity: 0.8;
    text-decoration: none;
}

.open-bus-right .image-container {
    margin-bottom: 15px;
}

.open-bus-right img {
    width: 100%;
    max-width: 350px;
    margin-bottom: 5px;
}

.image-caption {
    font-size: 14px;
    font-weight: bold;
}

/* ▼▼▼ UPDATED DROPDOWN STYLES ▼▼▼ */
.related-tours {
    /* details tag */
    margin-top: 0px;
    border: none;
    /* Removed the top border */
}

.related-tours[open] {
    padding-bottom: 15px;
}

.related-tours-title {
    /* summary tag */
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    list-style: none;
    /* Removes the default marker */
    padding-bottom: 10px;
    color: #da5e6f;
}

.related-tours-title::-webkit-details-marker {
    display: none;
}

.related-tours-title:focus {
    outline: none;
}

.related-tours-title::before {
    content: '▼';
    color: #d70000;
    /* Icon color changed to red */
    margin-right: 8px;
    margin-left: 8px;
    font-size: 14px;
}

.related-tours[open]>.related-tours-title::before {
    content: '▲';
}

.related-tours-list {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    list-style: none;
    padding: 0;

}

/* Individual tour item box styles */
.related-tours-list li {
    flex: 1;
    background-color: #ffff00;
    /* Yellow background */
    border: 1px solid #000;
    /* Black border */
    padding: 24px 8px 8px 8px;
    text-align: left;
    width: 275px;
    height: 600px;
    margin: 4px;
}

.tour-item-title {
    font-weight: bold;
    margin-bottom: 4px;
    min-height: 40px;
    font-size: 0.9rem;
}

/* Price as a link/button */
.tour-item-price-link {
    color: red !important;
    /* Red text */
    font-weight: bold;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.3s;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}



/*リンクの設定*/
.related-tours-list a {
    text-decoration: none;
    color: #59564f;
}

.related-tours-list a:hover {
    text-decoration: none;
    opacity: 0.8;
    color: #59564f;
}

/* White box for intro text */
.tour-item-intro {
    background-color: #fff;
    border: 1px solid #333;
    min-height: 120px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 0.9rem;
}

/* Beige box for image */
.tour-item-image {
    background-color: #fbe5e5;
    border: 1px solid #333;
    border-radius: 10px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.sp_br {
    display: none;
}

/* ▲▲▲ END OF UPDATED STYLES ▲▲▲ */

/* Styles for mobile view */
@media (max-width: 768px) {
    .open-bus-title {
        font-size: 18px;
    }

    .open-bus-content,
    .related-tours-list {
        /* Stack items vertically on mobile */
        flex-direction: column;

    }

    .related-tours-list li {
        width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .open-bus-right {
        display: block;
        /* Flexboxを有効にする */
        flex-direction: column;
        /* 子要素を縦に並べる */
        align-items: center;
        /* 子要素を水平方向の中央に配置 */
    }

    .open-bus-right img {
        max-width: 100%;
    }

    .intro-text {
        min-height: 100px;
    }

    .price {
        font-size: 20px;
    }

    .details-button {
        font-size: 18px;
        padding: 15px;
    }

    .open-bus-title {
        text-align: center !important;
    }

    .price {
        text-align: center;
    }

    .tour-item-price-link {
        display: flex;
        justify-content: center;
    }

    .tags {
        gap: 4px;
    }

    .tags li {
        padding: 2px 2px;
        width: 72px;
        height: 40px;
        font-weight: bold;
        border-radius: 5px;
        font-size: 10px;
    }

    .related-tours-title {
        /* summary tag */
        font-size: 13px;
    }

    .main-image-with-text h3 {
        font-size: 13px;
    }

    .main-image-with-text p {
        font-size: 11px;
    }

    .sp_br {
        display: block;
    }

    .main-image-with-text {
        padding: 6px;
    }


    /* スライダーの親要素のスタイル */
    .related-tours-list {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        list-style: none;
        /* 変更点：上下のpaddingを削除し、左右の余白だけにする */
        margin: 0;
        gap: 15px;
    }

    /* 全てのスライド（カード）の外枠(li)のスタイル */
    .related-tours-list li {
        flex: 0 0 80%;
        /* 変更点：paddingを追加して、中のaタグが拡大するスペースを確保する */
        padding: 20px 0;
        /* 変更点：liからはtransformとopacityを削除 */
        background-color: transparent;
        /* 背景色はaタグに移す */
        border: none;
        /* ボーダーもaタグに移す */
        height: 700px;
    }

    /* カードの中身(a)の基本スタイル */
    .related-tours-list li a {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: #333;
        background-color: #ffff00;
        /* 背景色をこちらに移動 */
        border: 1px solid #000;
        /* ボーダーをこちらに移動 */
        padding: 15px;
        /* 変更点：transformとtransitionをこちらに移動 */
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        transform: scale(0.9);
        /* 通常時は少しだけ小さく */
        opacity: .6 !important;
        filter: grayscale(90%);
        transition: opacity .5s, transform .5s;
        /*スライド透過率と拡大のアニメーション時間を0.5秒に設定*/
    }

    .related-tours-list li a:hover {
        opacity: 1;
        /* ホバー時は透明度をなくす */
    }

    /* ★★★ 中央に表示されているスライドの中身（.slick-center a）だけの特別スタイル ★★★ */
    .related-tours-list .slick-center a {
        transform: scale(1);
        /* 中央のカードを元のサイズに戻す（他が小さいので相対的に大きく見える） */
        opacity: 1 !important;
        /*中央のスライドは透過しない*/
        filter: grayscale(0%);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }

    /* スクロールバーを非表示にする */
    .related-tours-list::-webkit-scrollbar {
        display: none;
    }

    .related-tours-list {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* ▲▲▲ 置き換えここまで ▲▲▲ */

    .related-tours {
        position: relative;
        /* 矢印を配置する際の基準点になります */
        overflow: visible;
        /* はみ出した矢印が見えるようにします */
    }

    /* 親要素にoverflow:visibleを指定し、はみ出した矢印を表示させる */
    .related-tours {
        position: relative;
        overflow: visible;
    }

    /* スライダーの矢印の基本スタイル */
    .slick-prev,
    .slick-next {
        /* ★★★ 追加：ここから3行で上下中央に配置 ★★★ */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);

        width: 30px;
        height: 30px;

        border-radius: 50%;
        z-index: 20;
        font-size: 0;
        border: none;
    }


    /* 矢印のアイコン（‹ › の部分）のスタイル */
    .slick-prev:before,
    .slick-next:before {
        font-family: sans-serif;
        color: #333333db;
        opacity: 1;
        font-size: 13px;
        line-height: 1;
    }

    .slick-prev:before {
        content: '◀';
    }

    .slick-next:before {
        content: '▶';
    }

    ▶

    /* 前へ（<）ボタンの位置調整 */
    .slick-prev {
        left: 3px;
    }

    /* 次へ（>）ボタンの位置調整 */
    .slick-next {
        right: 3px;
    }

}