/* 基本スタイル */

.main-content {
/*    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
*/
}

/* モーダルオーバーレイ（背景の暗幕） */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* モーダルを非表示にするクラス */
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* クリックも無効化 */
}

/* モーダル本体 */
.modal-container {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.modal-container h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.modal-container p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* ボタンの配置 */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background-color: #004d99;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #ccc;
}

.error-message {
    color: #d9534f;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}