/* 画像モーダル */
.image-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.image-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.image-modal .modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    display: block;
}

.image-modal .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

.image-modal .modal-close:hover {
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .image-modal .modal-close {
        top: -35px;
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
}
