.component-wrapper {
    width: 100%;
    max-width: 700px;
    overflow: hidden;
    user-select: none;
}

.comparison-container {
    border-radius: 15px;
    position: relative;
    width: 100%;
    height: 188px;
    overflow: hidden;
    background-color: #eee;
    /* width: 100%;
    aspect-ratio: 16 / 9; */
    /* 画像読み込み前の背景 */
}

/* Before画像とAfter画像に共通のスタイル */
.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.comparison-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-after {
    /* 初期状態で左半分だけ表示 */
    clip-path: inset(0 50% 0 0);
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background-color: white;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    cursor: ew-resize;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 10;
    background-image: url(/cms/contents/feature/img/comparison_bar.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.label-container {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    background-color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #343A3F;
}

@media (max-width: 767px) {
    .comparison-container {
        max-width: 231.15;
        height: auto;
        margin: auto;
        aspect-ratio: 231.15 / 112;
    }

    .label-container {
        padding-top: 8px;
        font-size: 10px;
    }
}