body {
    color: #181E3D
}

#header {
    z-index: 9999;
}

.c-btn__01:disabled {
    background: #c6c6c6;
    pointer-events: none
}

.loading {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #fff
}

.loading:before {
    display: none;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 0 2px 2px 0;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #198bce;
    animation: progressAnimation 3s linear forwards;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.loading-sub {
    background: #ffffffc9
}

.is-hello.active .loading {
    display: none
}


.mv-time__list .mv-time__list-item:nth-child(n + 1):nth-child(-n + 7) {
    display: none;
}

.mv-time__list.is-back .mv-time__list-item:nth-child(n + 1):nth-child(-n + 7) {
    display: block;
}

.mv-time__list.is-back .mv-time__list-item:nth-child(n + 8) {
    display: none;
}

.mv-time__list-item.today .mv-time__list-day {
    color: #fff57e;
    background: transparent;
}

.chart-block {
    /*background: #007FCD;*/
    padding: 15px 0;
}

.relative .box-note.active {
    color: #181E3D;
}

.target-tab li {
    cursor: pointer;
}

.c-btn__01 a, .c-ttl__03 a {
    color: inherit;
}

.pure-list__input span {
    display: inline-block;
}

.pure-list__input.disabled span:after {
    background: #C6C6C6;
}

.pure-list__input.disabled span:before {
    border-color: #C6C6C6;
}

.check-question__list-item.has-error .question-lv,
.check-question__list-item.has-error .note-small {
    color: #c12e2a !important;
}

/*.pure-list.correct li.is-true span {*/
/*    background: url(../img/check.png) no-repeat 100%;*/
/*    background-size: 14px;*/
/*}*/

.pure-list.wrong li.is-true span {
    color: red;
    font-weight: 700;
}

.pure-list img {
    display: none;
}

.pure-list.correct li.is-true img {
    display: inline-block;
    padding-bottom: 3px;
}

#finish-lesson {
    display: none;
}

.notice_date_div p, h3 {
    padding: 0 10px 10px;
}

.notice_date_div_para {
    color: #707070 !important;
}

.notice_datetime_para{
    color: #707070 !important;
    font-size: 1.1rem;
}

.notice_postedname_para {
    font-size: 1.2rem;
    font-weight: bold;
}

.notice_title_para{
    font-size: 1.3rem;
    font-weight: bold;
}

.notice_details_para{
    padding-top: 2% !important;
    margin: 0 3%;
    font-size: 1.2rem;
}

.notice_title_para a{
    color: #000 !important;
}

.previous_notice_para{
    margin: 0 3%;
    padding: 3% 3% 0 3%;
    border: 1px solid #EAEAEA;
    box-shadow: 0 8px 6px -6px #D6D6D6;
}

.previous_notice_pagination{
    text-align: center;
    padding-top: 2%;
    font-size: 3rem;
    color: #D6D6D6;
}

.previous_notice_pagination a, .previous_notice_pagination span {
    margin: 0 10px;
}

.previous_notice_pagination a{
    color: #198BCE;
}

.notices_one_area {
    padding-bottom: 15px;
}
.notices_datetime_para{
    color: #707070 !important;
    font-size: 1.0rem;
}

.notices_title_para{
    font-size: 1.2rem;
    font-weight: bold;
}

.sec-learning-plan {
    padding-top: 50px;
    * {
        font-family: 'Noto Sans JP', sans-serif;
    }
}

.today-plan-sec {
    .today-plan-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        .sub-title {
            font-size: 16px;
            font-weight: bold;
        }
        .today-plan-date {
            font-size: 14px;
            color: #3b82f6;
        }
    }

    .today-plan-list {
        display: flex;
        flex-direction: column;
        gap: 12px;

        .today-plan-collapse {
            .today-plan-collapse-header {
                .plan-title {
                    font-size: 13px;
                    color: #64748b;
                    span {
                        font-weight: bold;
                    }
                }
                .plan-description-wrapper {
                    display: flex;
                    align-items: center;
                    gap: 20px;
                }

                .plan-description {
                    font-size: 13px;
                    color: #ef4444;
                }
            }

            .today-plan-collapse-body {
                .today-plan-collapse-body-content {
                    margin-top: 12px;
                    .today-plan-collapse-body-content-item {
                        .course-title {
                            font-size: 14px;
                            color: #6b7280;
                            display: flex;
                            align-items: center;
                            line-height: 20px;
                            cursor: pointer;
                            &.in-progress {
                                color: #f59e0b;
                                &:before {
                                    background-color: #f59e0b;
                                }
                            }

                            &.completed {
                                color: #16a34a;
                                &:before {
                                    background-color: #16a34a;
                                }
                            }

                            &:before {
                                content: "";
                                display: inline-block;
                                width: 4px;
                                height: 4px;
                                border-radius: 50%;
                                background-color: #6b7280;
                                margin-right: 8px;
                            }
                        }

                        .lesson-list {
                            margin-top: 8px;
                            display: flex;
                            flex-direction: column;
                            gap: 6px;

                            .lesson-item {
                                padding: 8px;
                                color: #6b7280;
                                font-size: 14px;
                                border-radius: 6px;
                                border: 1px solid #e5e7eb;
                                background-color: #f8fafc;
                                display: flex;
                                align-items: center;
                                gap: 8px;
                                cursor: pointer;

                                .lesson-item-icon {
                                    width: 16px;
                                    height: 16px;
                                    border-radius: 50%;
                                    background-color: #9ca3af;
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;

                                    &::after {
                                        content: "";
                                        display: block;
                                        width: 10px;
                                        height: 10px;
                                        border-radius: 50%;
                                        background-color: #9ca3af;
                                        box-shadow: inset 0 0 0 1px #ffffff;
                                    }
                                }
                                .lesson-progress {
                                    color: #9ca3af;
                                }

                                &.in-progress {
                                    background-color: #fef3c7;
                                    border: 2px solid #fed7aa;
                                    color: #d97706;

                                    .lesson-item-icon {
                                        background-color: #f59e0b;
                                        &::after {
                                            background-color: #ffffff;
                                            box-shadow: none;
                                        }
                                    }
                                    .lesson-progress {
                                        color: #d97706;
                                    }
                                }

                                &.completed {
                                    background-color: #dcfce7;
                                    border: 2px solid #16a34a7c;
                                    color: #16a34a;
                                    .lesson-item-icon {
                                        background-color: #16a34a;
                                        &::after {
                                            background-color: #ffffff;
                                            box-shadow: none;
                                        }
                                    }
                                    .lesson-progress {
                                        color: #16a34a;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.learning-plan-sec {
    margin-top: 16px;
    .learning-plan-header {
        margin-bottom: 16px;
        .sub-title {
            font-size: 16px;
            font-weight: bold;
        }
    }
    .learning-plan-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .learning-plan-collapse {
        .learning-plan-collapse-header {
            .learning-plan-title {
                font-size: 16px;
                font-weight: bold;
            }
            .learning-plan-description-wrapper {
                display: flex;
                align-items: center;
                gap: 16px;
            }
            .learning-plan-description {
                font-size: 12px;
                font-weight: medium;
                color: #ef4444;
            }
        }

        .learning-plan-collapse-body {
            .learning-plan-collapse-body-content {
                margin-top: 16px;
                display: flex;
                flex-direction: column;
                gap: 8px;

                .learning-plan-collapse-body-content-item {
                    padding: 12px;
                    border-radius: 8px;
                    border: 1px solid #e2e8f0;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 8px;
                    cursor: pointer;

                    .course-info-wrapper {
                        flex: 1;
                    }

                    .course-title {
                        font-size: 14px;
                        color: #6b7280;
                    }
                    .course-time {
                        font-size: 14px;
                        color: #9ca3af;
                    }
                    .lesson-progress-label {
                        margin-top: 8px;
                        font-size: 14px;
                        color: #9ca3af;
                    }
                    .lesson-progress-percentage {
                        font-size: 14px;
                        color: #9ca3af;
                    }
                    .progress-badge {
                        font-size: 14px;
                        color: #6b7280;
                        padding: 0px 8px;
                        border-radius: 8px;
                        background-color: #f3f4f6;
                        white-space: nowrap;
                    }

                    .progress-bar {
                        width: 80%;
                        height: 6px;
                        background-color: #e2e8f0;
                        border-radius: 3px;
                        margin-top: 2px;
                        margin-bottom: 2px;
                    }
                    .progress-fill {
                        height: 100%;
                        background-color: #268bce;
                        border-radius: 3px;
                    }

                    &.in-progress {
                        .course-title {
                            color: #1e293b;
                        }
                        .course-time {
                            color: #64748b;
                        }
                        .lesson-progress-label {
                            color: #64748b;
                        }
                        .lesson-progress-percentage {
                            color: #f59e0b;
                        }
                        .progress-badge {
                            background-color: #fef3c7;
                            color: #d97706;
                        }
                    }

                    &.completed {
                        .course-title {
                            color: #1e293b;
                        }
                        .course-time {
                            color: #64748b;
                        }
                        .lesson-progress-label {
                            color: #64748b;
                        }
                        .lesson-progress-percentage {
                            color: #16a34a;
                        }
                        .progress-badge {
                            background-color: #dcfce7;
                            color: #16a34a;
                        }
                    }
                }
            }
        }
    }

    .progress-container {
        margin-bottom: 8px;
        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            .label {
                font-size: 12px;
                color: #64748b;
            }
            .percent {
                font-size: 12px;
                color: #268bce;
                font-weight: bold;
            }
        }
        .progress-bar {
            width: 100%;
            height: 6px;
            background-color: #e2e8f0;
            border-radius: 3px;
        }
        .progress-fill {
            height: 100%;
            background-color: #268bce;
            border-radius: 3px;
        }
    }
}

.collapse-wrapper {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    .collapse-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .collapse-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    &.active {
        .collapse-body {
            max-height: 1000px;
            overflow: auto;
        }
        .collapse-header {
            .arrow-down {
                transform: rotate(180deg);
                transition: transform 0.3s ease-in-out;
            }
        }
    }
}

.page-tutorial {
    .page-title {
        h3 {
            font-size: 20px;
            font-weight: bold;
            padding-left: 0;
        }
        p {
            font-size: 14px;
            color: #6b7280;
        }
    }
    .divider {
        height: 1px;
        background-color: #e5e7eb;
        margin-bottom: 20px;
    }
    .tutorial-video {
        margin-top: 20px;
        margin-bottom: 20px;
        .video-title {
            display: flex;
            align-items: center;
            gap: 10px;
            h3 {
                font-size: 16px;
                font-weight: bold;
                padding: 0;
            }
            img {
                width: 20px;
                height: 20px;
            }
        }
        .video-content {
            margin-top: 20px;
            video {
                width: 100%;
                border-radius: 8px;
            }
        }
    }

    .tutorial-pdf {
        margin-top: 20px;
        .pdf-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            .pdf-title {
                display: flex;
                align-items: center;
                gap: 10px;
                h3 {
                    font-size: 16px;
                    font-weight: bold;
                    padding: 0;
                }
            }

            .pdf-controls {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 8px;
                .pdf-btn {
                    background: none;
                    border: none;
                    cursor: pointer;
                    border-radius: 4px;

                    &:hover {
                        background-color: #f5f5f5;
                    }

                    &:disabled {
                        cursor: not-allowed;
                    }

                    img {
                        width: 16px;
                        height: 16px;
                    }
                    &:disabled {
                        img {
                            filter: grayscale(100%);
                        }
                    }
                }

                .pdf-page-info {
                    font-size: 12px;
                    color: #9ca3af;
                    font-weight: 500;

                    background-color: #f3f4f6;
                    padding: 4px 8px;
                    border-radius: 4px;

                    .pdf-page-num {
                        color: #4f46e5;
                    }
                }
            }
        }
        .pdf-content {
            margin-top: 20px;
            .pdf-viewer-container {
                border: 1px solid #e0e0e0;
                border-radius: 8px;
                overflow: hidden;
                background: #f5f5f5;
                .pdf-viewer-title {
                    width: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 11px;
                    padding: 8px;
                    padding-bottom: 0;
                    background: #e5e7eb;
                    color: #6b7280;
                    border-bottom: 1px solid #e5e7eb;

                    .title {
                        width: 100%;
                        text-align: center;
                        padding: 8px 0;
                        background-color: #f8f9fa;
                    }
                }
            }

            .pdf-canvas-wrapper-inner {
                padding: 8px;
                padding-top: 0;
                background: #e5e7eb;
                width: 100%;
                aspect-ratio: 3 / 4;
                max-height: 70dvh;
                display: flex;
                justify-content: center;
            }

            .pdf-canvas-wrapper {
                overflow-y: auto;

                #pdf-pages-container {
                    width: 100%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    overflow: auto;
                }
                .pdf-page-container {
                    position: relative;
                    display: inline-block;
                    canvas {
                        max-width: 100%;
                        height: auto;
                        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.0823529);
                        display: block;
                    }
                }
                .pdf-annotation-overlay {
                    position: absolute;
                    top: 0;
                    left: 0;
                    pointer-events: none;
                }
                .pdf-link {
                    position: absolute;
                    pointer-events: auto;
                    background: transparent;
                    transition: background-color 0.2s;
                    &:hover {
                        background-color: rgba(43, 39, 123, 0.1);
                    }
                }
            }
        }
    }
}

.tutorial-popup__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    flex-direction: column;

    .tutorial-popup__inner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: 12px;
        width: calc(100% - 40px);
        max-width: 500px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        z-index: 0;
    }

    .page-title {
        position: relative;
        z-index: 1;
        margin-bottom: 20px;
        width: 100%;
        max-width: 500px;
        padding: 0 24px;
        padding-top: 24px;

        h3 {
            font-size: 20px;
            font-weight: bold;
            padding: 0;
            color: #181e3d;
        }
        p {
            font-size: 14px;
            color: #6b7280;
        }
    }

    .tutorial-video {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 500px;
        padding: 0 20px;
        padding-bottom: 20px;

        .video-content {
            margin-top: 0;
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            width: 100%;

            video {
                width: 100%;
                border-radius: 8px;
                display: block;
            }
        }

        .tutorial-popup__skip {
            position: absolute;
            bottom: 80px;
            right: 36px;
            border: none;
            border-radius: 6px;
            padding: 6px 12px;
            font-size: 14px;
            font-weight: 600;
            color: #ffffff;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            z-index: 10;
            background-color: rgba(0, 0, 0, 0.6);
            transition: opacity 0.3s, cursor 0.3s;
            opacity: 0;
            pointer-events: none;

            &:disabled {
                transition: opacity 0.3s, cursor 0.3s;
                cursor: not-allowed;
            }

            &:hover:not(:disabled) {
                opacity: 1 !important;
            }

            &::after {
                margin-top: 6px;
                content: url("/img/icons/skip-forward.svg");
                font-size: 14px;
            }
        }
    }
}
