/* モーダル共通 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    max-width: 90%;
    width: 400px;
    box-sizing: border-box;
    text-align: left;
}

.modal-content h2 {
    margin-top: 0;
    text-align: center;
}

.modal-text p {
    margin: 8px 0;
}

.modal-content button {
    margin: 8px;
    padding: 8px 16px;
    cursor: pointer;
}

/* モーダル全体 */
#confirmationModal {
    display: none; /* JavaScript で表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* モーダル内コンテンツ */
#confirmationModal .modal-content {
    background: #fff;
    margin: 100px auto;
    padding: 20px;
    max-width: 500px;
    border-radius: 5px;
    text-align: center;
    overflow: scroll;
}


#confirmationModal .modal-content h2 {
    background: none;
    border-bottom: 1px solid #1843cb;
    border-radius: 0;
    color: #1843cb;
    margin: 0 0 20px;
    padding: 20px 0;
}

#confirmationModal .modal-content h2::before {
    display: none;
}

/* モーダル内のボタン */
#confirmationModal .modal-content button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 1em;
    border: 0.5px solid;
    border-radius: 5px;
    cursor: pointer;
}

#confirmationModal button#confirmSubmit {
    color: #F2F2F2;
    background-color: #1843cb;
    border: none;
}

/* エラーメッセージ */
#formMessage {
    color: red;
    margin-top: 10px;
}

#confirmationModal div#toc {
    display: none;
}

/* トグルチェックボックス（期間設定） */
#duration {
    margin-right: 6px;
}

/* 繰り返しフィールド */

.form-repeater {
    font-size: 80%;
}
.form-repeater .repeater-row {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 5px;
    border-bottom: 1px solid #ccc;
}
.form-control {
    border-right: 1px solid #eee;
    padding-right: 8px;
}
.form-repeater table {
    width: 100%;
    border-collapse: collapse;
    font-size: 85%;
}
.body .form-repeater .scrollable-table {
    margin-bottom: 0;
}
.form-repeater table th {
    text-align: left;
    padding-right: 8px;
    white-space: nowrap;
    color: #3f3f3f;
    width: 30%;
    background: none;
    line-height: 1.2;
    font-weight: 400;
}
.form-repeater td {
    background: none;
}
.form-repeater table tr:nth-of-type(2n) {
    background: none;
}
.form-repeater table:not(.has-border-color) :where(th, td) {
    border-left: none;
    border-right: none;
    padding: 3px;
}
.customForm .form-repeater input,
.customForm .form-repeater select {
    margin-bottom: 0;
    padding: 5px;
}
.form-repeater input[type="text"]{
    width: 90px;
}
.form-repeater input[type="number"] {
    width: 60px;
}
.customForm .form-repeater input.note {
    width: 100%;
}
.form-repeater .add-row,
.form-repeater .remove-row {
    margin-left: 4px;
    margin-bottom: 40px;
    width: 20px;
    font-size: 16px;
}
.form-guide {
    margin-left: 4px;
    font-size: 0.85em;
}
