/* reserve calendar */
.reservation-calendar-box div.calendar-box {
    display: inline-block;
    width: 100%;
}
.reservation-calendar-box .calendar-section.hide {
    display: none!important;
}

.reservation-calendar-box .calendar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* margin-bottom: 10px; */
    padding-bottom: 10px;
    position: relative;
    border-bottom: 1px solid #707070;
}
.reservation-calendar-box .calendar-section-title {
    color: #707070;
    font-size: 33px;
    line-height: 33px;
    font-weight: normal;
    text-align: center;
    margin: 0 auto;
}
/* pc / next prev button / デフォルト全て非表示*/
.reservation-calendar-box .calendar-box.pc .calendar-section .prev-month.hide-pc,
.reservation-calendar-box .calendar-box.pc .calendar-section .next-month.hide-pc {
    display: none;
}
/* sp / next prev button / 初月のprev・最後月のnext → 非表示*/
.reservation-calendar-box .calendar-box.sp .calendar-section:first-of-type .prev-month,
.reservation-calendar-box .calendar-box.sp .calendar-section:last-of-type .next-month {
    display: none;
}
.reservation-calendar-box .prev-month, .reservation-calendar-box .next-month {
    color: #707070;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    line-height: 20px;
    font-size: 16px;
}
.reservation-calendar-box .prev-month {
    left: 0;
    padding-left: 30px;
    margin-bottom: 10px;
    background: url(../img/prev.png) no-repeat left;
}
.reservation-calendar-box .next-month {
    right: 0;
    padding-right: 30px;
    margin-bottom: 10px;
    background: url(../img/next.png) no-repeat right;
}
.reservation-calendar-box .calendar-section-select .button {
    height: 36px;
    width: 110px;
    margin-left: 4px;
    font-size: 14px;
}
.reservation-calendar-box .calendar-section-select .button.holiday {
    color: #cc887f;
}

.reservation-calendar-box .calendar-section-date {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}
.reservation-calendar-box .calendar-section-date th,
.reservation-calendar-box .calendar-section-date td {
    /* height: 50px; */
    height: 65px;
    /* width: 65px; */
    width: 14%;
    font-weight: normal;
    text-align: center !important;
    vertical-align: middle;
    cursor: pointer;
}
.reservation-calendar-box .calendar-section-date thead th,
.reservation-calendar-box .calendar-section-date thead tr {
    border: none!important;
    font-size: 10px;
    cursor: default;
}
.reservation-calendar-box .calendar-section-date th.sunday,
.reservation-calendar-box .calendar-section-date td.sunday,
.reservation-calendar-box .calendar-section-date th.holiday,
.reservation-calendar-box .calendar-section-date td.holiday,
.reservation-calendar-box .calendar-section-date th.sunday a,
.reservation-calendar-box .calendar-section-date td.sunday a,
.reservation-calendar-box .calendar-section-date th.holiday a,
.reservation-calendar-box .calendar-section-date td.holiday a {
    color: #cc887f;
}
.reservation-calendar-box .calendar-section-date th.saturday,
.reservation-calendar-box .calendar-section-date td.saturday,
.reservation-calendar-box .calendar-section-date th.saturday a,
.reservation-calendar-box .calendar-section-date td.saturday a {
    color: #2a7fb9;
}
.reservation-calendar-box .calendar-section-date th.disable,
.reservation-calendar-box .calendar-section-date td.disable,
.reservation-calendar-box .calendar-section-date th.disable a,
.reservation-calendar-box .calendar-section-date td.disable a {
    color: #eeeeee!important;
}
.reservation-calendar-box .calendar-section-date th.disable .calendar-label,
.reservation-calendar-box .calendar-section-date td.disable .calendar-label,
.reservation-calendar-box .calendar-section-date th.disable .calendar-label a,
.reservation-calendar-box .calendar-section-date td.disable .calendar-label a {
    cursor: not-allowed!important;
}

.reservation-calendar-box .calendar-label {
    display: block;
    height: 95%;
    width: 95%;
    border: 1px solid #dbdbdb;
}
@media screen and (min-width:769px) {
    .reservation-calendar-box .calendar-label:hover {
        cursor: pointer;
        background: #FFFFF3;
        color: #E0CEA3;
        opacity: 0.7;
        -webkit-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }
}
.reservation-calendar-box .calendar-label input[type="radio"] {
    display: none;
}
.reservation-calendar-box .calendar-label input[type="radio"]:checked + span {
    background-color: #FFFFF3;
    color: #C9A966;
}
/* checked時のカレンダーカラー(残席側) */
.reservation-calendar-box .calendar-label input[type="radio"]:checked ~ span.stock {
    background-color: #FFFFF3;
    color: #C9A966;
}
.reservation-calendar-box .calendar-label span,
.reservation-calendar-box .calendar-label a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 100%; */ /*残席表示不要時*/
    height: 50%; /*残席表示利用時*/
    width: 100%;
}
.reservation-calendar-box .calendar-label span.stock {
    font-size: 10px;
    font-family: Osaka,"ＭＳ Ｐゴシック","MS PGothic",Sans-Serif;
}

/* pc */
@media screen and (min-width:769px){
    .reservation-calendar-box .calendar-box.sp {
        display: none!important;
    }
    .reservation-calendar-box .calendar-section {
        width: calc(50% - 10px);
        display: inline-block;
        margin: 3px;
    }
    .reservation-calendar-box .calendar-section-date thead tr.pc {
        display: table-row;
    }
}

/* sp */
@media screen and (max-width:768px){
    .reservation-calendar-box .calendar-box.pc {
        display: none!important;
    }
    .reservation-calendar-box .calendar-box.sp thead.week {
        border-bottom: 1px solid #707070;
    }
    .reservation-calendar-box .calendar-box.sp thead th {
        height: 30px;
    }
    .for-scroll {
        position: relative;
        padding-right: 5px;
    }
    .scroll-calendar {
        overflow: scroll;
        height: 200px; /* 40px x 5 (.calendar-section-date th, .calendar-section-date td の height)*/
        margin-top: 5px;
    }
    .scroll-calendar:-webkit-scrollbar {
        display: none;
        -webkit-appearance: none;
    }
    .reservation-calendar-box .bridal-fair-subttl {
        font-size: 15px;
        padding: 0 0 8px 10px;
    }
    .reservation-calendar-box .calendar-section-title {
        font-size: 28px;
        line-height: 28px;
    }
    .reservation-calendar-box .calendar-section-date th, .reservation-calendar-box .calendar-section-date td {
        width: 50px;
        height: 50px;
    }
    .reservation-calendar-box .next-month {
        padding-right: 25px;
    }
    .reservation-calendar-box .prev-month {
        padding-left: 25px;
    }
    .reservation-calendar-box .prev-month, .reservation-calendar-box .next-month {
        line-height: 15px;
        font-size: 12px;
    }
    .reservation-calendar-box .calendar-section-date thead tr.sp {
        display: table-row;
    }
    #scrollbar {
        width: 5px;
        height: calc(100% - 5px);
        overflow: hidden;
        position: absolute;
        top: 0; /* 後でJSで変更 */
        right: 0;
        background-color: #fff;
        border: 1px solid #707070;
        border-radius: 5px;
        margin-top: 5px;
    }
    #scrollbar-handle {
        width: 100%;
        position: absolute;
        top: 0;    /* 後でJSで変更 */
        left: 0;
        height: 0; /* 後でJSで変更 */
        background-color: #333;
        border: 1px solid #333;
        border-radius: 5px;
    }
}

.reservation-calendar-box {
    display: none;
    width: 90%;
    max-height: 95%;
    max-width: 1000px; /*widow幅に比例して大きくなりすぎる為*/
    background-color: #ffffff;
    position:fixed;
    z-index: 999999;
    padding: 20px;
    overflow: scroll;
    margin: 0 auto;
}
.reservation-calendar-box .button-box {
    position: relative;
    margin: 50px 15px 50px auto;
    width: 250px;
}
.reserve-on-calendar-button {
    display: inline-block;
    text-align: center;
    width: 100%;
    padding: 5px 10px;
    background-color: #a18b3c;
    border: 1px solid #a18b3c;
    color: #fff;
    cursor: pointer;
}
.reserve-on-calendar-button:hover {
    opacity: 0.7;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

/* modal */
 #modal-bg {
     display:none;
     width:100%;
     height:100%;
     background-color: rgba(0,0,0,0.5);
     position:fixed;
     top:0;
     left:0;
     z-index: 999998;
 }
 .modal-hide {
     display: none!important;
 }
 .close-modal-button {
     cursor: pointer;
     position: absolute;
     right: 10px;
     top: 0px;
     font-size: 40px;
     color: #707070;
 }

@media screen and (max-width:768px) {
    /*--------------------------------------------
     sp design option
    --------------------------------------------*/
    .reservation-calendar-box {
        display: none;
        width: 90%;
        max-height: 95%;
        background-color: #ffffff;
        position:fixed;
        z-index: 999999;
        padding: 20px;
        overflow: scroll;
        margin: 0 auto;
    }
    .reservation-calendar-box div.calendar-box {
        width: 100%;
        display: block;
    }
    .reservation-calendar-box .button-box {
        margin-top: 20px;
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }
    .reserve-on-calendar-button {
        display: inline-block;
        width: 80%;
        padding: 5px 0;
        margin: 0 0 20px;
        font-size: 14px;
        white-space: nowrap;
    }
    .reserve-on-calendar-button:hover {
        opacity: 0.7;
        -webkit-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }
   /* modal */
    #modal-bg {
        width:100%;
        height:130%; /*sp用 微調整*/
        z-index: 999998;
    }
    .close-modal-button {
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 25px;
        color: #707070;
    }
}
