/* reservation-system.css */

#reservation-calendar-container {
    text-align: center;
    font-size: 1.3vw;
    font-weight: bold;
}
#current-month-year {
    margin-bottom: 3%;
    font-size: 3vw;
}
#prev-month {
    margin-right: 10%;
    font-size: 1.8vw;
}
#next-month {
    font-size: 1.8vw;
}
#reservation-calendar {
    margin: 3% 10%;
    width: 80%;
    border-collapse: collapse;
}
#reservation-calendar th, #reservation-calendar td {
    border: 1px solid #ddd;
    width: 14.28%;
    vertical-align: middle;
    height: 8vw;
    position: relative;
    text-align: center;
}
#reservation-calendar td {
    vertical-align: top;
    padding: 1%;
}
#reservation-calendar td span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2vw;
}
#reservation-details-date {
    margin-top: 5%;
    margin-bottom: 2%;
    font-size: 2vw;
}
#reservation-details-content h3 {
    margin-bottom: 2%;
    font-size: 2.5vw;
}
.reservation-complete-message {
    font-size: 3vw;
    text-align: center;
    margin-top: 50px;
}
.form-template-content {
    margin-top: 20px;
}
.slot-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2%;
}

/* チェックボックスのカスタムスタイル */
.slot-checkbox {
    position: relative;
    width: 1.5vw; /* サイズを固定 */
    height: 1.5vw; /* サイズを固定 */
    appearance: none; /* デフォルトのスタイルを無効化 */
    background-color: #fff;
    border: 2px solid #0073aa;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.slot-checkbox:checked {
    background-color: #0073aa;
    border-color: #005177;
}

.slot-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5vw;
    height: 1vw;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.unit-input {
    display: flex;
    align-items: center;
    width: 10vw;
}
.unit-input label {
    width: 5vw;
}
.unit-number {
    width: 5vw;
    border: solid 2px #000;
    border-radius: 5px;
}
@media (max-width: 767px) {
    /* reservation-system.css */
    #reservation-calendar-container {
        text-align: center;
        font-family: "Zen Kaku Gothic New", serif;
        font-size: 4vw;
        font-weight: bold;
    }
    #current-month-year {
        margin-bottom: 5%;
        font-size: 6vw;
    }
    #prev-month {
        margin-right: 30%;
        font-size: 4vw;
    }
    #next-month {
        font-size: 4vw;
    }
    #reservation-calendar {
        margin: 8% 5%;
        width: 90%;
        border-collapse: collapse;
    }
    #reservation-calendar th, #reservation-calendar td {
        border: 1px solid #ddd;
        width: 14.28%;
        vertical-align: middle;
        height: 18vw;
        position: relative;
        text-align: center;
    }
    #reservation-calendar td {
        vertical-align: top;
        padding: 1%;
    }
    #reservation-calendar td span {
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 4vw;
    }
    #reservation-details-date {
        margin-bottom: 3%;
        font-size: 4vw;
    }
    #reservation-details-content h3 {
        margin-bottom: 2%;
        font-size: 5vw;
    }
    .reservation-complete-message {
        font-size: 3vw;
        text-align: center;
        margin-top: 50px;
    }
    .form-template-content {
        margin-top: 20px;
    }
    .slot-item {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 4%;
        font-size: 5vw;
    }

    /* チェックボックスのカスタムスタイル */
    .slot-checkbox {
        position: relative;
        width: 5vw; /* サイズを固定 */
        height: 5vw; /* サイズを固定 */
        appearance: none; /* デフォルトのスタイルを無効化 */
        background-color: #fff;
        border: 2px solid #0073aa;
        border-radius: 4px;
        cursor: pointer;
        margin-right: 5px;
        transition: background-color 0.3s, border-color 0.3s;
    }

    .slot-checkbox:checked {
        background-color: #0073aa;
        border-color: #005177;
    }

    .slot-checkbox:checked::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.5vw;
        height: 4vw;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .unit-input {
        display: flex;
        align-items: center;
        width: 25vw;
    }
    .unit-input label {
        width: 15vw;
    }
    .unit-number {
        width: 10vw;
        border: solid 1px #000;
        border-radius: 5px;
    }
}
/*---------------------------------------------
予約フォームページ 
---------------------------------------------*/
#primary {
    margin: 10vw auto;
    width: 50vw;
}
.reservation-form-container {
    width: 50vw;
    font-size: 1.5vw;
    text-align: center;
}
.reservation-form-container h2 {
    margin-bottom: 5%;
    font-size: 3vw;
    font-weight: bold;
}
.reservation-form-container p {
    display: flex; 
    align-items: center;
}
.reservation-title01 {
    justify-content: center;
    margin-bottom: 2%;
}
.reservation-title03 {
    margin: 5% 0;
}
.reservation-title03 label {
    text-align: left;
    width: 12vw;
}
.reservation-btn-area {
    display: flex;
    flex-direction: column;
}
#name, #email, #phone, #comment {
    border: solid 2px #000;
    padding: 0.5% 1%;
    text-align: left;
    background-color: #fff;
    border-radius: 5px;
    width: 38vw;
}
#comment {
    max-width: 38vw;
    height: 20vh;
}
#name:focus, #email:focus, #phone:focus, #comment:focus {
    outline: none;
    border: 2px solid #e63946;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.8);
}
.button-primary {
    margin-top: 3%;
    padding: 1.5vw 5vw;
    background-color: #0073aa;
    color: #fff;
    border-radius: 10px;
}
.button-cancel {
    margin-top: 3%;
    font-size: 1vw;
    background-color: #ff0000;
    color: #fff;
    padding: 1vw 3vw;
    border-radius: 10px;
}
@media (max-width: 767px) {
    #primary {
        margin: 10vw auto;
        width: 80vw;
    }
    .reservation-form-container {
        margin: 20vw auto;
        width: 80vw;
        font-size: 4vw;
        font-weight: bold;
        text-align: center;
    }
    .reservation-form-container h2 {
        margin-bottom: 6%;
        font-size: 8vw;
        font-weight: bold;
    }
    .reservation-form-container p {
        display: flex; 
        flex-direction: column;
        align-items: center;
    }
    .reservation-title01 {
        justify-content: center;
        margin-bottom: 2%;
    }
    .reservation-title03 {
        margin: 10% 0;
    }
    .reservation-title03 label {
        text-align: left;
        width: 80vw;
    }
    .reservation-btn-area {
        display: flex;
        flex-direction: column;
    }
    #name, #email, #phone, #comment {
        border: solid 2px #000;
        padding: 2% 1%;
        text-align: left;
        background-color: #fff;
        border-radius: 5px;
        width: 80vw;
    }
    #comment {
        max-width: 80vw;
        height: 20vh;
    }
    .button-primary {
        margin-top: 3%;
        padding: 3.5vw 10vw;
        background-color: #0073aa;
        color: #fff;
        font-size: 6vw;
        border-radius: 10px;
    }
    .button-cancel {
        margin-top: 8%;
        font-size: 4vw;
        background-color: #ff0000;
        color: #fff;
        padding: 2.5vw 8vw;
        border-radius: 10px;
    }
}
.ajax-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.reservation-modal .modal-overlay {
    position: fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%;
    background: rgba(0,0,0,0.6); 
    z-index:9999999;
}
.reservation-modal .modal-content {
    position: fixed;
    top: 50%; 
    left: 50%;
    transform: translate(-50%,-50%);
    background:#fff; 
    padding: 2vw; 
    border-radius:8px;
    width: 30vw;
    overflow:auto; 
    z-index:99999999;
}
.reservation-modal .modal-content h2 {
    margin: 1vw 0;
    text-align: center;
    font-size: 1.5vw;
    font-weight: bold;
}
.reservation-modal .title-block h3 {
    text-align: center;
    font-size: 1.2vw;
    font-weight: bold;
}
.reservation-modal .slot-picker {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1vw 0;
}
.reservation-modal .slot-select {
    padding: 2%;
    text-align: center;
    border: solid 2px #000;
    border-radius: 5px;
}
.reservation-modal .unit-select {
    margin: 0 1vw;
    padding: 2%;
    text-align: center;
    border: solid 2px #000;
    border-radius: 5px;
}
.reservation-modal .add-slot-btn {
    width: 5vw;
    padding: 1% 0;
    background-color: #e63946;
    text-align: center;
    color: #fff;
    border-radius: 5px;
}
.reservation-modal .chip-area {
    display: flex;
    flex-direction: column;
}
.reservation-modal .chip-area div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5vw 0;
}
.reservation-modal .chip-area div button {
    width: 3.5vw;
    padding: 1% 0;
    text-align: center;
    background-color: #bcbcbc;
}
.reservation-modal .modal-close {
    position:absolute; 
    top:8px; 
    right:12px;
    background:none; 
    border:none; 
    font-size:24px; 
    cursor:pointer;
}
#proceed-reservation {
    margin: 0 auto;
    background-color: #0073aa;
    font-size: 1.3vw;
    color: #fff;
    margin-top: 2vw;
    padding: 0.5vw 1vw;
    border-radius: 10px;
}
@media (max-width: 767px) {
    .ajax-detail {
        font-size: 3vw;
        font-weight: bold;
    }
    .reservation-modal .modal-content {
        padding: 5vw; 
        border-radius: 5px;
        width: 90vw;
    }
    .reservation-modal .modal-content h2 {
        margin: 2vw 0;
        font-size: 4vw;
    }
    .reservation-modal .title-block h3 {
        font-size: 3.5vw;
    }
    .reservation-modal .slot-picker {
        margin: 3vw 0;
    }
    .reservation-modal .slot-select {
        padding: 3%;
        font-size: 3.5vw;
        font-weight: bold;
    }
    .reservation-modal .unit-select {
        margin: 0 2vw;
        padding: 3%;
        font-size: 3.5vw;
        font-weight: bold;
    }
    .reservation-modal .add-slot-btn {
        width: 20vw;
        padding: 1% 0;
        font-size: 3.5vw;
        border-radius: 3px;
    }
    .reservation-modal .chip-area div {
        margin: 1.5vw 0;
    }
    .reservation-modal .chip-area div button {
        width: 10vw;
        padding: 2% 0;
        font-weight: bold;
    }
    #proceed-reservation {
        font-size: 4.5vw;
        color: #fff;
        padding: 2vw 4vw;
        border-radius: 5px;
    }
}