/* スコープ用：プラグイン内だけで色が完結するようにデフォルト値を持たせる */
.nbsc-calendar {
    --main: #2C3E50;
    --link: #2962ff;
}

/* Full width wrapper */
.nbsc-calendar.full-width-calendar-wrapper {
    width: 100%;
    max-width: none !important;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}
.nbsc-calendar #schedule-calendar {
    width: 100% !important;
    max-width: none !important;
}
.nbsc-calendar #schedule-calendar .fc-scrollgrid,
.nbsc-calendar #schedule-calendar .fc {
    width: 100% !important;
}

/* セル＆イベント */
.nbsc-calendar #schedule-calendar .fc-daygrid-day-frame {
    position: relative;
}
.nbsc-calendar #schedule-calendar .fc-daygrid-event:hover {
    opacity: 0.6;
}
.nbsc-calendar .schedule-icon {
    margin-right: 4px;
    vertical-align: middle;
}
.nbsc-calendar .fc-daygrid-event {
    padding: 2px 3px !important;
}
.fc-offday-label {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%);
    color: #d32f2f;
    font-size: 1.6rem !important;
}

/* 祝日・定休日ラベル */
.nbsc-calendar .fc-holiday-label {
    position: absolute;
    top: 3px !important;
    left: 5px;
    max-width: 68px;
    color: #fff !important;
    font-size: 0.6em;
    padding: 2px 5px;
    border-radius: 12px;
    background: #d32f2f;
    pointer-events: none;
}
.nbsc-calendar .fc-offday-label {
    position: absolute;
    top: 2px;
    right: 2px;
    color: #d32f2f;
    font-size: 0.6em;
    pointer-events: none;
}

/* 日付リンクの色 */
.nbsc-calendar a.fc-daygrid-day-number:hover {
    color: var(--link) !important;
    opacity: 1 !important;
}
.nbsc-calendar .fc .fc-daygrid-day-number {
    color: #2C3E50;
}

/* ポップオーバーの位置補正 */
.nbsc-calendar .fc .fc-popover {
    position: absolute !important;
}

/* モーダル（ポップアップ） */
.nbsc-calendar .schedule-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.nbsc-calendar .schedule-modal-close {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    color: #fff;
    font-size: 30px;
    line-height: 55px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    background: #f90;
    transition: .3s;
}
.nbsc-calendar .schedule-modal-close:hover {
    background: #f60;
}
.nbsc-calendar .schedule-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    max-height: 90%;
}
.nbsc-calendar .schedule-modal-content h3 {
    color: var(--main);
    font-size: 2.6rem;
}
.nbsc-calendar .schedule-modal-content .box {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.nbsc-calendar .schedule-modal-content .box span {
    color: #f30;
    font-size: 2rem;
}
.nbsc-calendar .schedule-modal-content .time {
    color: #f30;
    font-size: 2rem;
}
.nbsc-calendar .schedule-modal-content .text {
    text-align: left;
    padding: 20px;
    border-radius: 8px;
    background: #f8f8f8;
}
.fc-icon-x:before {
    content: "\f00d";
}

/* 補助テキスト（スマホ向け） */
.nbsc-calendar .calendar-note {
    display: none;
}

/* レスポンシブ */
@media (max-width: 900px) {
    .nbsc-calendar .fc .fc-view-harness {
        width: 90vw;
        overflow-x: auto;
        min-height: 758px !important;
    }
    .nbsc-calendar .fc-daygrid {
        min-width: 1024px;
        min-height: 758px !important;
    }
    .nbsc-calendar .calendar-note {
        display: block;
        color: #f30;
        font-size: 1.4rem;
        text-align: center;
        margin: 10px auto 20px;
    }
    .nbsc-calendar .schedule-modal-content {
        padding: 10px;
    }
    .nbsc-calendar .schedule-modal-content h3 {
        font-size: 2.2rem;
        line-height: 1.6;
    }
}

@media (max-width: 700px) {
    .nbsc-calendar .schedule-modal-content .box {
        display: block;
    }
    .nbsc-calendar .schedule-modal-content .time {
        margin-bottom: 0;
    }
    .nbsc-calendar .schedule-modal-content .time:last-child {
        margin-bottom: 10px;
    }
    .nbsc-calendar .schedule-modal-content .box span {
        display: block;
        line-height: 1;
        margin: -5px auto;
    }
}

@media (max-width: 600px) {
    .nbsc-calendar .fc .fc-toolbar {
        display: block !important;
        text-align: center;
    }
}

/* 月めくりのフォントアイコンが表示されない場合 */
.fc-icon-chevron-left::before,
.fc-icon-chevron-right::before {
    font-family: 'FCIcons' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
}
.fc-icon-chevron-left::before {
    content: "\e900";
}
.fc-icon-chevron-right::before {
    content: "\e901";
}