.info-div {
    margin-bottom: 10px;
}

/* モーダルのスタイル */
#reservationModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none;
    z-index: 1000;
    width: 300px;
}

#reservationModal.open {
    display: block;
}

#reservationModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    pointer-events: none;
}

#reservationModalOverlay.open {
    display: block;
    pointer-events: auto;
}

.modal-close {
    float: right;
    cursor: pointer;
    font-size: 18px;
}

button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

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


#reservationModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#reservationModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1010;
}

#reservationModal h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#reservationForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#reservationForm label {
    font-weight: bold;
}

#reservationForm input,
#reservationForm select,
#reservationForm textarea,
#reservationForm button {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#reservationForm .check input,
#reservationForm .custom-radio input,
#reservationForm .custom-radio input+label,
#reservationForm .custom-radio input[type="text"] {
    width: auto;
    padding: 0;
    font-size: inherit;
}

#reservationForm .custom-radio-label {
    display: block;
    margin-bottom: 5px;
}

#reservationForm .custom-radio input.custom-radio-other {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#reservationForm textarea {
    resize: none;
}

#reservationForm button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

#reservationForm button:hover {
    background-color: #0056b3;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.required::after {
    content: '*';
    color: red;
    margin-left: 0.25rem;
}

h1 {
    background: #9DE7FF;
}

/* 事前準備日用 */
#preparationCalendarModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1100;
    display: none;
}

#preparationCalendarModalOverlay.open {
    display: block;
}

#preparationCalendarModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none;
    z-index: 1101;
    width: 90%;
    max-width: 500px;
}

#preparationCalendarModal.open {
    display: block;
}

#preparationCalendarModal .modal-close {
    float: right;
    cursor: pointer;
    font-size: 18px;
}

/* 事前準備日予約モーダルの描画時画面崩れ対応用 */
.fc-scrollgrid-sync-table {
    width: 100% !important;
    height: auto !important;
}

.fc-col-header {
    width: 100% !important;
}

.fc-daygrid-body {
    width: 100% !important;
}

#need-preparation .check input {
    width: auto;
    padding: 0;
    font-size: inherit;
}

#reservationForm #select-preparation-day {
    width: 20%;
}

#reservationForm #select-preparation-day.disabled {
    background-color: gray;
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.preparation-day-container {
    display: flex;
    align-items: center;
    gap: 10px;
}



.saturday {
    background-color: #d0e8ff !important;
    border: 1px solid #7fbfff !important;
}

.sunday {
    background-color: #ffcccc !important;
    border: 1px solid #ff8888 !important;
}

.past-date {
    background-color: #e0e0e0 !important;
    color: #a0a0a0 !important;
    border: 1px solid #c0c0c0 !important;
}

.preparation-detail {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.preparation-detail.open {
    display: block;
}

#add_reserve_event label {
    display: flex;         
    align-items: center;
    margin-bottom: 4px;
    font-size: 14px;
    flex-wrap: wrap;
}

#add_reserve_event input[type="checkbox"] {
    width: auto;
}