/* 施工事例カルーセル（複数枚画像のbefore/after等） */

.consPhotoSliderWrap {
    width: 100%;
}

.consPhotoSliderSingle {
    display: block;
    width: 100%;
    border: 3px solid #ffffff;
    box-sizing: border-box;
}

.consPhotoSliderSingle img {
    aspect-ratio: 256 / 167;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.consPhotoSlider {
    position: relative;
    width: 100%;
}

.consPhotoSliderTrack {
    width: 100%;
    overflow: hidden;
}

/* JS(KeenSlider)初期化前・または初期化に失敗した場合のフォールバック。
   data-slider-ready が付くまでは1枚目だけを表示し、複数枚が横に並んで
   崩れて見える状態を防ぐ。 */
.consPhotoSlider:not([data-slider-ready]) .consPhotoSliderTrack .consPhotoSlide {
    display: none;
}

.consPhotoSlider:not([data-slider-ready]) .consPhotoSliderTrack .consPhotoSlide:first-child {
    display: block;
}

.consPhotoSliderTrack .consPhotoSlide {
    border: 3px solid #ffffff;
    box-sizing: border-box;
}

.consPhotoSliderTrack .consPhotoSlide img {
    aspect-ratio: 256 / 167;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.consPhotoArrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: #333333;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.15s ease;
}

.consPhotoArrow:hover {
    background: rgba(255, 255, 255, 1);
}

.consPhotoArrow svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.consPhotoArrowPrev {
    left: 8px;
}

.consPhotoArrowNext {
    right: 8px;
}

.consPhotoDots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.consPhotoDot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.consPhotoDot.active {
    background: #00AFEC;
}

/* 画像0〜1枚時、ドット行が無い分カード高さが揃わなくなるのを防ぐための
   非表示プレースホルダー(見た目には出さないが同じ高さを確保する)。 */
.consPhotoDotsPlaceholder {
    visibility: hidden;
}

@media screen and (max-width: 768px) {
    .consPhotoArrow {
        width: 32px;
        height: 32px;
    }

    .consPhotoArrow svg {
        width: 16px;
        height: 16px;
    }

    .consPhotoArrowPrev {
        left: 6px;
    }

    .consPhotoArrowNext {
        right: 6px;
    }

    .consPhotoDots {
        gap: 6px;
        margin-top: 6px;
    }

    .consPhotoDot {
        width: 7px;
        height: 7px;
    }
}
