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;
    /* margin-bottom: 10px; */
    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: 50px; */
    height: 65px;
    width: 78px;
    font-weight: normal;
    text-align: center !important;
    vertical-align: middle;
    /* border: 1px solid #dbdbdb; */
    cursor: pointer;
}
.calendar-section-date thead th,
.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;
    background-color: #fff;
}
@media screen and (min-width:769px) {
    .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;
    }
}
.calendar-label input[type="checkbox"] {
    display: none;
}
.calendar-label input[type="checkbox"]:checked + span {
    background-color: #FFFFF3;
    color: #C9A966;
}
.calendar-label span,
.calendar-label a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 100%; */
    height: 50%;　/*残席表示利用時*/
    width: 100%;
    background: #fff;
}
.calendar-label span.stock {
    font-size: 10px
}

/* pc */
@media screen and (min-width:769px){
    .calendar-box.sp {
        display: none!important;
    }
    .calendar-section-date thead tr.pc {
        display: table-row;
    }
}

/* 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: 40px;
        /* 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;
    }
}

/* ---------------------for iframe------------------------ */
@media screen and (min-width:769px){
    section.faircalender .calendar-box {
        width: 500px;
    }
}
@media screen and (max-width:768px){
    section.faircalender .calendar-box {
        width: 100%;
    }
}
