/* ==========================================
   シークレットミュージアム周辺観光案内セクション
   =========================================== */
.splide {
    display: block;
}
#guide {
    width: 100%;
    background: #fff9d7;
    padding: 1.5rem 0;
    margin: 0;
}

/* ガイドイントロセクション */
.guide-intro {
    background: linear-gradient(135deg, #fffacd 0%, #fff8dc 100%);
    padding: 1rem 0;
    text-align: center;
}

.guide-banner {
    max-width: 1000px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
}

.guide-banner img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.guide-lead {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.guide-lead p {
    margin: 10px 0;
    font-weight: 600;
    color: #000066;
    font-size: 1.2rem;
    line-height:1.4;
}

/* ガイドカテゴリセクション */
.guide-category {
    padding: 1rem 2rem 2rem;
    margin: 0;
}
.guide-category {
    display: none;
}

.guide-category.active {
    display: block;
    background: #fea400;
    margin: 0 auto;
}
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.guide-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000066;
    position: relative;
    padding-bottom: 0.5rem;
    margin: 0;
}

.guide-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #fea400;
    border-radius: 2px;
}

/* 第一段階タブ */
.guide-primary-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    margin-bottom: -3px;
}

.guide-primary-tab-btn {
    padding: 1.5rem 3.5rem 1rem;
    border: 2px solid #fea400;
    background: #000066;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    /* border-radius: 8px; */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0px;
}

.guide-primary-tab-btn:hover {
    border-color: #fea400;
    color: #fea400;
    transform: translateY(-2px);
}

.guide-primary-tab-btn.active {
    background: #fea400;
    color: #000066;
    border-color: #fea400;
}
.guide-tabs {
    display: flex;
    justify-content: left;
    gap: 0px;
    margin-bottom: -0.1rem;
    flex-wrap: wrap;
    
}
.guide-tab-label {
    font-size: 16px;
}

.guide-tab-count {
    font-size: 14px;
    opacity: 0.8;
    background: rgba(255, 165, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}
.guide-tab-btn {
    background: #000066;
    color: #fff;
    padding: 1rem 1.1rem;
    border: 1px solid #ffffff;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.guide-tab-btn.active {
    background: #ffffff;
    color: #fea400;
    padding: 0.5rem 1.2rem;
    border: 1px solid #ffffff
;
}
.guide-tab-btn.active .guide-tab-count {
    background: rgba(255, 255, 255, 0.3);
}

/* コンテンツエリア */
.guide-content {
    position: relative;
    background: #fff;
    padding: 1rem 6rem 1rem
}

.guide-subtabs-wrapper {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.guide-subtabs-wrapper.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Splideスライダー */
.guide-slider {
    width: 100%;
    background: white;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.guide-slider{
display:block !important;
}
.splide__track {
    height: 100%;
    overflow: hidden;
}
.guide-slider .splide__track {
    /* height: 500px; */
}

@media (max-width: 768px) {
    .guide-slider .splide__track {
        /* height: 250px; */
    }
}

.slider-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* スライダーコントロール */
.splide__pagination {
    bottom: 20px !important;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.splide__pagination__page {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
    background: white !important;
    transform: scale(1.2);
}

.splide__arrow {
    background: rgba(255, 165, 0, 0.8) !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.splide__arrow:hover {
    background: #fea400 !important;
}

.splide__arrow--prev {
    left: 20px;
}

.splide__arrow--next {
    right: 20px;
}

.splide__arrow svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* 説明テキスト */
.guide-description {
    text-align: left;
    padding: 1rem 0;
}

.guide-description h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #fea400;
}

.guide-description p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    color: #000066;
    font-weight: 600;
}

/* ナビゲーションバー */
.guide-nav {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guide-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #333;
}

.guide-nav-item.active {
    background: #001f3f;
    color: white;
}
.slide-caption {
    background: #000000;
    color: #fff;
    text-align: center;
    padding: 0.4rem;
    font-size: 1rem;
    font-weight: bold;
    opacity: 80%;
    margin-top: -47px;
}

.guide-thumbnail{
    margin-top:15px;
}

.guide-thumbnail .splide__slide{
    cursor:pointer;
    opacity:.5;
    transition:.3s;
}

.guide-thumbnail .splide__slide.is-active{
    opacity:1;
}

.guide-thumbnail img{
    width:100%;
    height:80px;
    object-fit:cover;
    display:block;
}
.material-icons {
    vertical-align: middle;
    font-size: 2rem !important;
    font-family: 'Material Icons' !important;
    line-height: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #guide {
        margin: 0px 0;
        padding: 0rem 0 2rem;
    }
    .guide-lead {
        max-width: 900px;
        margin: 0 auto;
        font-size: 1rem;
        line-height: 1.2;
    }

    .guide-lead p {
        margin: 0px 0;
        font-weight: 600;
        font-size: 1rem;
    }
    /* コンテンツエリア */
    .guide-content {
        padding: 1rem 1rem 1rem
    }
    /* ガイドカテゴリセクション */
    .guide-category {
        padding: 1rem 0.5rem 2rem;
        margin: 0;
    }
    .guide-intro {
        padding:1rem 0;
    }

    .guide-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .guide-tabs {
        gap: 10px;
    }

    .guide-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .guide-description {
        padding: 30px 20px;
    }

    .guide-description h3 {
        font-size: 20px;
    }

    .guide-description p {
        font-size: 14px;
    }


    .splide__arrow {
        width: 40px;
        height: 40px;
    }

    .splide__arrow--prev {
        left: 10px;
    }

    .splide__arrow--next {
        right: 10px;
    }
    
    .slide-caption {
        background: #000066;
        text-align: center;
        padding: 0.3rem;
        font-size: 0.8rem;
        font-weight: bold;
        opacity: 1;
        margin-top: 0rem;
    }

    /* 第一段階タブ */
    .guide-primary-tabs {
        gap: 0;
        justify-content: space-between;
    }
    .guide-primary-tab-btn {
        padding: 0.5rem 1.5rem 0.6rem;
        font-size: 0.9rem;
        display: flex;          /* 中身を並べる設定をON */
        flex-direction: column; /* 横並びではなく「縦並び」にする */
        align-items: center;    /* 左右の真ん中に揃える */
        justify-content: center;/* 上下の真ん中に揃える */
    }
    .material-icons {
        font-size: 2rem !important;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .guide-title {
        font-size: 20px;
        margin-bottom: 0;
    }

    .guide-tabs {
        gap: 0px;
    }

    .guide-tab-btn {
        padding: 0.5rem 0.7rem;
        font-size: 12px;
    }

    .guide-tab-label {
        font-size: 14px;
    }

    .guide-tab-count {
        font-size: 12px;
    }


    .guide-description {
        padding: 1rem 0 1rem;
    }

    .guide-description h3 {
        font-size: 1.2rem;
    }

    .guide-description p {
        font-size: 1rem;
        line-height: 1.4;
    }
}
