/* 予約モーダル */
.reserve_modal_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reserve_modal_overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
}

.reserve_modal_content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.reserve_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #ff52b3;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.reserve_modal_header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.reserve_modal_close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.reserve_modal_body {
    padding: 15px 20px;
}

.reserve_modal_item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.reserve_modal_item:last-child {
    border-bottom: none;
}

.reserve_modal_item_label {
    width: 100px;
    min-width: 100px;
    font-size: 13px;
    color: #666;
    padding-top: 4px;
}

.reserve_modal_item_value {
    flex: 1;
    font-size: 14px;
}

.reserve_modal_price {
    font-size: 18px;
    font-weight: bold;
    color: #ff52b3;
}

.reserve_modal_item_value select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.reserve_modal_input_number {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.reserve_modal_input_text {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.reserve_modal_radio_label {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    cursor: pointer;
}

.reserve_modal_radio_label input[type="radio"] {
    margin-right: 5px;
}

.reserve_modal_user_info p {
    margin: 3px 0;
    font-size: 13px;
}

.reserve_modal_footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    justify-content: center;
}

.reserve_modal_btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

.reserve_modal_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reserve_modal_btn_confirm {
    background: #ff52b3;
    color: #fff;
    width: 100%;
}

.reserve_modal_btn_confirm:hover {
    background: #e04aa0;
}

.reserve_modal_btn_back {
    background: #999;
    color: #fff;
}

.reserve_modal_btn_back:hover {
    background: #777;
}

.reserve_modal_btn_submit {
    background: #ff52b3;
    color: #fff;
    flex: 1;
}

.reserve_modal_btn_submit:hover {
    background: #e04aa0;
}

/* スマホ対応 */
@media screen and (max-width: 640px) {
    .reserve_modal_overlay.active {
        padding: 10px 5px;
    }

    .reserve_modal_item {
        flex-direction: column;
    }

    .reserve_modal_item_label {
        width: auto;
        min-width: auto;
        margin-bottom: 4px;
        font-weight: bold;
    }

    .reserve_modal_header h3 {
        font-size: 13px;
    }

    .reserve_modal_body {
        padding: 10px 15px;
    }
}
