/* custom-popup-style.css */
#custom-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,9.9);
    z-index: 99999;
}

#custom-popup-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    text-align: center; /* コンテンツを中央揃えに */
}

#custom-popup-modal h2 {
    margin-top: 0;
    color: #333;
}

#custom-popup-modal p {
    color: #666;
    line-height: 1.6;
}

#custom-popup-modal img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    display: inline-block; /* インライン要素を中央揃えするため */
}

#custom-popup-modal .popup-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 15px; /* ボタン上部にマージンを追加 */
}

#custom-popup-modal .popup-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #custom-popup-modal .modal-content {
        width: 90%;
        padding: 15px;
    }
    
    #custom-popup-modal h2 {
        font-size: 1.5em;
    }
    
    #custom-popup-modal p {
        font-size: 0.9em;
    }
    
    #custom-popup-modal .popup-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}