/* ----------------------------------------
   thumb-carousel
---------------------------------------- */
.thumb-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.thumb-carousel__slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.thumb-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.thumb-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.thumb-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-carousel__slide iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.thumb-carousel__slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* フッター：スライド下部に重ねて配置 */
.thumb-carousel__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 0 0 0;
}

.thumb-carousel__dots {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0 12px 6px;
}

.thumb-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
}

.thumb-carousel__dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: #6dc8e8;
    box-shadow: none;
}

.thumb-carousel__dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 1);
}

.thumb-carousel__progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.thumb-carousel__progress-bar {
    height: 100%;
    width: 0;
    background: #6dc8e8;
}
