/* ===============
   画像拡大モーダル用 CSS
   =============== */
.image-modal {
    display: none;
    /* 初期状態は非表示 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.image-modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 高齢者にもわかりやすい「閉じる」ボタン */
.modal-close-btn {
    margin-top: 20px;
    padding: 15px 40px;
    background-color: #d4af37;
    /* ゴールド */
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.modal-close-btn:hover {
    background-color: #c49f27;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 一覧用の画像をクリック可能にする */
.image-box {
    cursor: pointer;
    position: relative;
}

.image-box::after {
    content: "拡大";
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    pointer-events: none;
}