*, body, ul {
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
}

/* スライドの外枠（高さは画像のアスペクト比に追従） */
.slide-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    background-color: #eaf2fb;
}

/* スライド全体 */
.slide {
    width: 300%;
    height: 100%;
    display: flex;
    transition: transform 0.4s ease;
}
.slide > div {
    width: 33.33%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide1 { transform: translateX(0); }
.slide2 { transform: translateX(-33.33%); }
.slide3 { transform: translateX(-66.66%); }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 左右ボタン: タップ範囲を広く */
.next, .prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    z-index: 10;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.next { right: 16px; }
.prev { left: 16px; }
.next:hover, .prev:hover {
    background-color: rgba(255, 255, 255, 0.9);
}
.next::before, .prev::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: solid 3px #fc0000;
    border-right: solid 3px #fc0000;
    display: block;
}
.next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}
.prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

/* インジケーター */
.indicator {
    width: 100%;
    position: absolute;
    bottom: 20px;
    display: flex;
    column-gap: 18px;
    z-index: 10;
    justify-content: center;
    align-items: center;
}
.indicator li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.indicator li:first-of-type {
    background-color: #fc0000;
}

@media (max-width: 600px) {
    .slide-wrapper {
        aspect-ratio: 4 / 3;
    }
    .next, .prev {
        width: 40px;
        height: 40px;
    }
}
