/* スライドショーモーダル */
.slideshow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow: hidden;
}
.slideshow-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slideshow-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    user-select: none;
    transition: transform 0.3s ease;
}
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2em;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10000;
}
.slideshow-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}
.slideshow-nav.prev {
    left: 10px;
}
.slideshow-nav.next {
    right: 10px;
}
.slideshow-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10000;
}
.slideshow-close:hover {
    background: rgba(255, 255, 255, 0.5);
}
.slideshow-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2em;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 10000;
}

/* スマホ版の調整 */
@media (max-width: 768px) {
    .slideshow-nav {
        font-size: 1.5em;
        padding: 15px;
        background: rgba(255, 255, 255, 0.2);
    }
    .slideshow-close {
        font-size: 1.5em;
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    .slideshow-counter {
        font-size: 1em;
        padding: 8px 16px;
        bottom: 10px;
    }
}
