/* モーダルのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: center;
    padding-bottom: 10px;
}

/* 確認リストのスタイルを特定のクラスで上書き */
.confirmation-list {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

.confirmation-list dt {
    font-weight: bold;
    margin: 15px 0 0 0 !important;
    border-bottom: 1px solid #ddd;
    padding: 0 0 5px 0 !important;
    width: 100% !important;
    position: static !important;
}

.confirmation-list dd {
    margin: 10px 0 20px 20px !important;
    padding: 0 !important;
    width: calc(100% - 20px) !important;
    word-break: break-all;
}

.modal-buttons {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.button-primary,
.button-secondary {
    padding: 10px 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button-primary {
    background-color: #00b9ef;
    color: white;
}

.button-secondary {
    background-color: #f0f0f0;
    color: #333;
    margin: 10px 0;
}

.button-primary:hover {
    background-color: #45a049;
}

.button-secondary:hover {
    background-color: #e4e4e4;
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .confirmation-list dd {
        margin: 10px 0 20px 10px !important;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        margin: 5px 0;
    }
}

.error-page {
    padding: 2em;
    text-align: center;
}

.error-page .error-message {
    max-width: 600px;
    margin: 0 auto;
}

.error-page h2 {
    color: #c53030;
    font-size: 1.5em;
    margin-bottom: 1em;
}

.error-page p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.error-page .button-group {
    margin-top: 2em;
}

.error-page .button-primary {
    display: inline-block;
    padding: 1em 2em;
    background-color: #009bde;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.error-page .button-primary:hover {
    background-color: #051e7f;
} 