/* モーダル背景 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none; /* 初期状態 */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

/* モーダルコンテンツ */
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

/* 確認テーブル */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
.confirm-table th, .confirm-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 14px;
}
.confirm-table th {
    background: #f8f9fa;
    width: 30%;
    color: #333;
}
.confirm-table td {
    white-space: pre-wrap; /* 改行を反映 */
}

/* ボタンエリア */
.modal-buttons {
    display: flex;
    gap: 15px;
}
.close-modal {
    flex: 1;
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
}
.modal-buttons .wpcf7-submit {
    flex: 2;
    margin: 0 !important; /* CF7標準のマージンをリセット */
}
/* 既存のCSSに追加 */
.notes-box {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

.modal-content h3 {
    margin-top: 0;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}