div.calendar-box {
    display: inline-block;
    width: 550px;
}
.calendar-section.hide {
    display: none!important;
}

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

.calendar-section-date {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}
.calendar-section-date th,
.calendar-section-date td {
    height: 65px;
    width: 78px;
    font-weight: normal;
    text-align: center !important;
    vertical-align: middle;
    cursor: pointer;
}
.calendar-section-date tbody th,
.calendar-section-date tbody td {
    vertical-align: bottom;
}
.calendar-section-date thead th {
    font-size: 11px;
    cursor: default;
    height: 30px;
    border-bottom: 1px solid #707070;
}
.calendar-section-date thead tr {
    border: none!important;
    font-size: 11px;
    cursor: default;
}
.calendar-section-date th.sunday,
.calendar-section-date td.sunday,
.calendar-section-date th.holiday,
.calendar-section-date td.holiday,
.calendar-section-date th.sunday a,
.calendar-section-date td.sunday a,
.calendar-section-date th.holiday a,
.calendar-section-date td.holiday a {
    color: #cc887f;
}
.calendar-section-date th.saturday,
.calendar-section-date td.saturday,
.calendar-section-date th.saturday a,
.calendar-section-date td.saturday a {
    color: #2a7fb9;
}
.calendar-section-date th.disable,
.calendar-section-date td.disable,
.calendar-section-date th.disable a,
.calendar-section-date td.disable a {
    color: #eeeeee!important;
}
.calendar-section-date th.disable .calendar-label,
.calendar-section-date td.disable .calendar-label,
.calendar-section-date th.disable .calendar-label a,
.calendar-section-date td.disable .calendar-label a {
    cursor: not-allowed!important;
}

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

/* pc */
@media screen and (min-width:769px){
    .calendar-box.sp {
        display: none!important;
    }
    .calendar-section-date thead tr.pc {
        display: table-row;
    }
    /* 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: 20px;
        top: 0px;
        font-size: 40px;
        color: #707070;
    }
    /* modalカレンダー(他の開催日を見るボタン) */
    .reservation-calendar-box .calendar-box.pc {
        display: inline-block;
        width: 100%;
    }
    .reservation-calendar-box .calendar-box.pc .calendar-section {
        width: calc(33% - 10px);
        display: inline-block;
        margin: 3px;
    }
}

/* modalカレンダー(他の開催日を見るボタン) */
.reservation-calendar-box {
    display: none;
    width: 90%;
    max-height: 95%;
    max-width: 1200px; /*widow幅に比例して大きくなりすぎる為*/
    background-color: #ffffff;
    position:fixed;
    z-index: 999999;
    padding: 20px;
    overflow: auto;
    margin: 0 auto;
}
.reservation-calendar-box .button-box {
    position: relative;
    margin: 50px 15px 50px auto;
    width: 250px;
}
.reservation-calendar-box .calendar-box.pc .prev-month,
.reservation-calendar-box .calendar-box.pc .next-month {
    display: none; /* "他の開催日を見る" ボタンクリック時に開かれるカレンダー(pc)ではnextもprevも不要(*3ヵ月分開いている為) */
}
.reserve-on-calendar-button {
    display: inline-block;
    text-align: center;
    width: 100%;
    padding: 5px 10px;
    background-color: #D19A8B;
    border: 1px solid #D19A8B;
    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;
}

/* sp */
@media screen and (max-width:768px){
    .calendar-box.pc {
        display: none!important;
    }
    .calendar-box.sp thead.week {
        border-bottom: 1px solid #707070;
    }
    .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;
    }
    .bridal-fair-subttl {
        font-size: 15px;
        padding: 0 0 8px 10px;
    }
    .calendar-section-title {
        font-size: 28px;
        line-height: 28px;
    }
    .calendar-section-date th, .calendar-section-date td {
        width: 50px;
        height: 50px;
    }
    .next-month {
        padding-right: 25px;
    }
    .prev-month {
        padding-left: 25px;
    }
    .prev-month, .next-month {
        line-height: 15px;
        font-size: 12px;
    }
    .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 {
        max-height: 75%;
    }
    .reservation-calendar-box .button-box {
        margin: 20px 15px 0 auto;
    }
}
