.ec-pageHeader h1 {
    padding-top: 20px !important;
    margin-bottom: 20px !important;
}

/* タイトル画像の背景を透過 */
.camp-top-section-title {
    background: transparent !important;
}

/* トップエリア（ページヘッダー＋カルーセル）画面幅いっぱい */
.camp-top-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

/* キャンプ一覧トップカルーセル（横いっぱい）※左右対称マージンで右ズレ防止 */
.camp-top-carousel-wrap {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: auto;
    right: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: visible;
    box-sizing: border-box;
}

/* SP時：スクロールでヘッダー下に固定＋閉じるボタン（fixed + JS で制御） */
@media (max-width: 768px) {
    .camp-carousel-spacer {
        display: none;
        height: 0;
    }
    .camp-carousel-spacer.is-active {
        display: block;
    }
    .camp-top-carousel-wrap {
        position: relative;
        z-index: auto; /* 固定解除後はヘッダーより下に */
        background-color: #daf9f5;
        left: auto;
        right: auto;
        transition: box-shadow 0.2s ease;
    }
    /* JS で .is-fixed 付与時：ヘッダー直下に固定（top は JS で --camp-header-height に設定） */
    .camp-top-carousel-wrap.is-fixed {
        position: fixed;
        z-index: 100; /* 固定時のみヘッダーより上に */
        top: var(--camp-header-height, 0);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        /* background: rgba(0, 0, 0, 0.35); */
    }

    /* ×ボタン：固定時（スクロール時）のみ表示 */
    .camp-carousel-close-btn {
        display: none;
        position: absolute;
        top: 0px;
        right: 0px;
        left: auto;
        z-index: 10;
        width: 50px;
        height: 50px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .camp-top-carousel-wrap.is-fixed .camp-carousel-close-btn {
        display: block;
    }
    .camp-carousel-close-btn img {
        width: 100%;
        height: 100%;
        display: block;
        margin: 0 auto;
        filter: brightness(0) invert(1);
    }
}
@media (min-width: 769px) {
    .camp-carousel-close-btn { display: none; }
}
/* 高さは vw + clamp で比率を再現（aspect-ratio を使わない） */
.camp-top-carousel {
    margin-block: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: clamp(160px, 20vw, 320px); /* 5:1 に近い（幅の20%） */
    padding-bottom: 44px;
    line-height: 0;
    font-size: 0; /* インライン要素の隙間を防ぐ */
    box-sizing: border-box;
}
.camp-top-carousel .slick-list {
    margin: 0 -6px;
    overflow: hidden;
}
.camp-top-carousel .slick-track {
    height: 100% !important;
    overflow: hidden;
}
/* タブレット以下：高さは 3:1 に近く、flex で隙間を防ぐ */
@media (max-width: 1024px) {
    .camp-top-carousel {
        display: flex;
        flex-direction: column;
        height: clamp(160px, 33.33vw, 280px); /* 3:1 に近い */
    }
    .camp-top-carousel .slick-list {
        flex: 1 1 0;
        min-height: 0;
        height: auto !important;
    }
}
.camp-top-carousel .slick-slide {
    float: left;
    height: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}
.camp-top-carousel .slick-slide > div {
    height: 100%;
}
.camp-top-carousel .camp-carousel__slide {
    outline: none;
    position: relative;
    height: 100%;
}
.camp-top-carousel .camp-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    vertical-align: top;
}
/* SP: やや縦長の比率に */
@media (max-width: 640px) {
    .camp-top-carousel {
        height: 300px;
    }
}
/* SP・centerMode時：左右のスライドがはみ出して見えるよう overflow を緩める（実機で切れないように） */
@media (max-width: 480px) {
    .camp-top-carousel-wrap {
        overflow: visible;
    }
    .camp-top-carousel {
        overflow: visible;
    }
    .camp-top-carousel .slick-list {
        overflow: visible;
    }
}
/* 矢印を画像の間に出すためのラッパー（カルーセルと同幅で上に重ねる） */
.camp-carousel-arrows {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.camp-carousel-arrows .slide-arrow {
    pointer-events: auto;
}
.camp-top-carousel-wrap {
    overflow: hidden;
}
.camp-top-carousel-wrap .camp-top-carousel {
    position: relative;
}
/* 矢印ボタン共通（slide-arrow） */
.camp-carousel-arrows .slide-arrow {
    position: absolute;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: #38b6aa;
    background-image: var(--carousel-arrow);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35px auto;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
    top: 50%;
    margin-top: -24px;
    opacity: 0.7;
}
.camp-carousel-arrows .slide-arrow:hover {
    opacity: 0.6;
}
.camp-carousel-arrows .slide-arrow.prev-arrow {
    transform: translateY(-50%) scaleX(-1);
}
.camp-carousel-arrows .slide-arrow.next-arrow {
    transform: translateY(-50%);
}
/* SP・タブレット: 左右端 */
.camp-carousel-arrows .slide-arrow.prev-arrow {
    left: 12px;
}
.camp-carousel-arrows .slide-arrow.next-arrow {
    right: 12px;
    left: auto;
}
/* PC: 画像の間 [1]prev[2][3][4]next[5] */
@media (min-width: 1025px) {
    .camp-carousel-arrows .slide-arrow.prev-arrow {
        left: 20%;
        right: auto;
        transform: translate(-50%, -50%) scaleX(-1);
    }
    .camp-carousel-arrows .slide-arrow.next-arrow {
        left: 80%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

/* ドット（カルーセル下に表示） */
.camp-top-carousel .slick-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    z-index: 2;
    padding-top: 12px;
    font-size: 0; /* 親の font-size:0 を維持（ボタン内は個別指定） */
}
.camp-top-carousel .slick-dots li {
    display: inline-block;
    margin: 0 4px;
}
.camp-top-carousel .slick-dots li button {
    font-size: 0;
    line-height: 0;
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
    transition: background 0.2s;
}
.camp-top-carousel .slick-dots li button:hover {
    background: #999;
}
.camp-top-carousel .slick-dots li.slick-active button {
    background: #666;
    transform: scale(1.2);
}
@media (max-width: 640px) {
    /* 中央以外のスライド */
    .slick-slide img {
        height: auto;
        opacity: .3;
        transform: scale(0.9);
        transition: opacity .5s, transform .5s;
        width: 100%;
    }
    /* 中央のスライド */
    .slick-slide.slick-current img {
        opacity: 1;
        transform: scale(1.1);
    }
}
