.slideshow-container {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 25px;
    user-select: none;
    margin: 0 auto;
    margin-bottom: 60px;
}

/* スライドを重ねてフェード表示 */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

/* アクティブスライドのみ表示 */
.slide.active {
    opacity: 1;
    z-index: 1;
}



/* 画像は中央に縦方向フィット */
.slide img {
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    z-index: 2;
}

/* ナビゲーションボタン常時表示 */
.nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5em;
    cursor: pointer;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background 0.3s ease;
}

.nav:hover {
    transform: scale(1.2);
    background: rgba(0, 0, 0, 0.75);
}

.nav.prev {
    left: 0;
}

.nav.next {
    right: 0;
}

/* ドットナビゲーション */
.dots {
    position: absolute;
    bottom: -5px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background-color: #bbbbbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #333333;
}

@media screen and (max-width:480px) {
    
    .nav {
        display: none;
    }

    .slideshow-container {
        border-radius: 15px;
        margin: 10px;
    }
}