:root {
    --menu-index: 999;

    --primary: #00A7E4;
    --secondary: #218EBD;
    --success: #2ECC71;
    --info: #00B8D9;
    --warning: #F5A623;
    --error: #FF0004;
    --dark: #1A1A1A;
    --light: #FAFAFA;
    --primary-gradient: linear-gradient(90deg, var(--primary), var(--secondary));
    --breadcrumb: #9e9e9e;
    --body: #f7f7f7;
}

html,
body {
    font-family: "Noto Sans JP", sans-serif;
    background: var(--body);
}

body {
    min-height: 100vh;
}

body.modal-open {
    overflow-y: scroll !important;
}

body.swal2-shown {
    padding-right: 0 !important;
    overflow-y: scroll !important;
}

.pagination {
    margin-bottom: 0;
}

.air-datepicker-global-container {
    z-index: 2000;
}

.pk-main-content {
    min-height: calc(100vh - 98px);
}

.pk-color-primary {
    color: var(--primary) !important;
}

.pk-color-secondary {
    color: var(--secondary) !important;
}

.pk-text-success {
    color: var(--success) !important;
}

.pk-text-info {
    color: var(--info) !important;
}

.pk-text-warning {
    color: var(--warning) !important;
}

.pk-text-error {
    color: var(--error) !important;
}

.pk-bg-primary {
    background-color: var(--primary) !important;
}

.pk-bg-secondary {
    background-color: var(--secondary) !important;
}

.pk-bg-primary-gradient {
    background: var(--primary-gradient) !important;
}

.text-lg {
    font-size: 24px !important;
}

.text-md {
    font-size: 18px !important;
}

.text-sm {
    font-size: 14px !important;
}

.text-xs {
    font-size: 12px !important;
}

.pk-btn-primary {
    color: white !important;
    background-color: var(--primary);
}

.pk-btn-primary:active,
.pk-btn-primary:hover {
    background-color: var(--primary) !important;
}

.pk-btn-close {
    background-color: var(--breadcrumb);
    border: none;
    color: white !important;
    min-height: 33px;
}

.pk-btn-close:active,
.pk-btn-close:hover {
    background-color: #747474 !important;
}

.pk-btn-close:focus-visible {
    background-color: var(--success);
    color: white;
    box-shadow: 0 0 0 3px rgba(100, 200, 138, 0.5)
}

.pk-text-inactive {
    color: var(--breadcrumb) !important;
}

.pk-text-1-row {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Top Page */
.pk-top-page-title {
    position: relative;
    border-left: 5px solid;
    border-image: var(--primary-gradient) 1;
    font-weight: bold;
    padding: 2px 10px;
}

.pk-card-news {
    border-radius: 5px;
    box-shadow: 0px 3px 15px rgba(44, 71, 146, 0.25);
    border: none;
}

/* End Top Page */

.pk-title-box {
    padding-bottom: 10px;
    border-bottom: 2px solid #e9e9e9;
}

.pk-title-box .pk-title {
    border-left: 5px solid var(--primary);
    font-weight: bold;
    font-size: 1rem;
    padding-left: 10px;
    min-height: 32px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pk-title-box .pk-title a {
    text-decoration: none;
    color: var(--breadcrumb);
}

.pk-title-box .pk-title a.active {
    cursor: default;
}

.pk-title-box .pk-title a:hover,
.pk-title-box .pk-title a.active {
    color: var(--primary);
}

.pk-breadcrumb-divine {
    margin: 0 6px;
    color: #888;
}

.pk-course-item {
    border-radius: 1rem;
    box-shadow: 0px 3px 15px rgba(44, 71, 146, 0.25);
    margin-bottom: 32px;
    padding: .75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.pk-course-item .pk-course-image {
    height: 240px;
    border-radius: 24px;
    margin-bottom: 8px;
}

.pk-course-item .pk-course-image img {
    border-radius: 24px;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.pk-course-item .pk-course-content {
    display: flex;
    flex-direction: column;
    flex: 1 1;
    padding-inline: 8px;
    padding-bottom: 4px;
}

.pk-course-item .pk-course-content p {
    height: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: bold;
    margin-bottom: 0;
}

.pk-lesson-area {
    height: 66px;
}

.pk-lesson-item {
    min-height: 290px;
    border-radius: 8px;
    border: 3px solid var(--primary);
    transition: all 0.2s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0px 3px 15px rgba(44, 71, 146, 0.25);
    margin-bottom: 24px;
}

.pk-lesson-item:last-child {
    margin-bottom: 0;
}

.pk-lesson-item:hover {
    box-shadow: 0px 3px 15px rgba(44, 71, 146, 0.25);
}

.pk-lesson-item-title {
    border-bottom: 2px solid #e9e9e9;
    margin-bottom: 4px;
    display: flex;
}

.pk-lesson-item-title p {
    width: calc(100% - 60px);
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}


.pb-btn-load-more {
    min-height: 44px;
    min-width: 256px;
    border-radius: 32px;
}

#slide-wrapper {
    position: relative;
    z-index: 100;
}

#slide-wrapper.pk-slide-group-wrapper {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.pk-slide-group {
    position: relative;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    background: white;
    scroll-behavior: smooth;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(0, 0, 0, 0.05);
}

.pk-slide-group::-webkit-scrollbar {
    height: 8px;
}

.pk-slide-group::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

.pk-slide-group::-webkit-scrollbar-thumb {
    background: rgba(25, 118, 210, 0.9);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.04);
}

.pk-slide-item {
    position: relative;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    transition: color .25s;
    user-select: none;
}

.pk-slide-item.active {
    color: var(--warning);
    font-weight: bold;
}

.pk-indicator {
    position: absolute;
    height: 3px;
    bottom: 0;
    left: 0;
    width: 0;
    background: var(--primary);
    border-radius: 10px;
    transition: transform 300ms cubic-bezier(.25, .8, .25, 1),
        width 300ms cubic-bezier(.25, .8, .25, 1);
}

.pk-video-card {
    min-height: 200px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 3px 15px rgba(44, 71, 146, 0.25);
}

.pk-video-image {
    width: 100%;
    height: 400px;
    position: relative;
}

.pk-video-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.pk-video-block {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #777;
    opacity: .45;
    border-radius: 8px;
    z-index: 20;
    display: flex;
}

.pk-video-block .fa-lock {
    margin: auto;
    font-size: 100px;
    opacity: .7;
    color: rgb(255, 192, 192);
}

.pk-video-step {
    background-color: rgb(94, 96, 112);
    padding: 4px;
    border-radius: 4px;
    font-size: .75rem;
}

.pk-video-content {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: absolute;
    bottom: 0;
    height: 80px;
    width: 100%;
    padding-inline: 16px;
    background: linear-gradient(
        to top,
        rgba(255,255,255,0.8),
        rgba(0,0,0,0)
    );
    color: white;
    font-weight: bold;
}

.pk-video-content p {
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 1.25rem;
}

.pk-video-content .fa-eye {
    color: black;
}

.pk-video-content .fa-star {
    color: yellow;
}

.pk-pointer {
    cursor: pointer;
}

.pk-text-wrapper {
    font-size: 14px;
    line-height: 1.5;
}

.pk-text-wrapper p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: all .3s ease;
}

.pk-text-wrapper p.show {
    -webkit-line-clamp: unset;
    max-height: none;
}

.pk-read-more-btn {
    color: var(--primary);
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.pk-no-resize {
    resize: none;
}

.pk-comment-textarea {
    padding: 10px;
    border-radius: .75rem;
    box-shadow: 0px 3px 15px rgba(44, 71, 146, 0.25);
    position: relative;
}

.pk-comment-textarea .pk-comment-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #9e9e9e;
    opacity: .55;
    border-radius: .75rem;
    display: flex;
    z-index: 3;
    align-items: center;
    justify-content: center;
}

.pk-comment-textarea .fa-paper-plane {
    rotate: 45deg;
}

.pk-comment-textarea .pk-comment-count {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 12px;
}

.pk-comment {
    border-radius: .75rem;
    padding: 10px;
    box-shadow: 0px 3px 15px rgba(44, 71, 146, 0.25);
    margin-bottom: 16px;
}

.pk-comment-time {
    font-size: 12px;
    width: 113px;
}

.pk-comment-content {
    position: relative;
    display: inline-block;
}

.pk-comment-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all .3s ease;
}

.pk-comment-read-more {
    position: absolute;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent, var(--body) 50%);
    padding-left: 20px;
    font-weight: bold;
}

.pk-step-item {
    display: flex;
    margin-right: 10px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
    font-size: 12px;
}

.pk-step-item>div {
    padding: 6px;
}

.pk-step-item div:nth-child(2) {
    background-color: var(--secondary);
    border-right: 1px solid black;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.pk-step-item div:nth-child(3) {
    background-color: var(--secondary);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pk-step-item.active div:nth-child(3) {
    background-color: var(--warning);
}

.pk-step-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #9e9e9e;
    opacity: .55;
    border-radius: 8px;
    display: flex;
    z-index: 3;
    align-items: center;
    justify-content: center;
}

.pk-step-overlay .fa-lock {
    font-size: 20px;
    color: black;
}

@media screen and (min-width: 576px) {
    .splide__slide+.splide__slide {
        padding-inline: 10px;
    }
}

.splide__slide img {
  width: 100%;
  height: 244px;
}

.splide__slide h5 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 32px;
}

.splide__pagination {
    position: relative !important;
}

.splide__pagination__page {
    background-color: var(--breadcrumb);
}

.splide__pagination__page.is-active {
    background-color: var(--primary) !important;
}

.splide__arrow {
    display: none !important;
}

#rating-modal-star {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: space-evenly;
    margin-top: 1rem;
}

#rating-modal-star .pk-star-item {
    filter: grayscale(1);
    border-radius: .75rem;
    padding: 1rem .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rating-modal-star .pk-star-item span {
    margin-left: 8px;
    width: 80px;
}

@media screen and (min-width: 576px) {
    #rating-modal-star {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        background-color: rgba(0, 0, 0, .3);
        border-radius: 1rem;
        padding: 1rem;
        gap: 0;
        flex-wrap: nowrap;
    }

    #rating-modal-star .pk-star-item {
        flex: 1 1;
        color: #fff;
        font-size: 13px;
        cursor: pointer;
        flex-direction: column;
    }

    #rating-modal-star .pk-star-item span {
        width: auto;
        text-align: center;
        margin-left: 0;
    }

}



#rating-modal-star input[type="radio"] {
    display: none;
}


#rating-modal-star .pk-star-item.active {
    filter: none;
    background-color: var(--primary);
}

#rating-modal-star .pk-star-item .pk-star-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

#rating-modal-star .pk-star-item .pk-star-item-icon img {
    width: 100% !important;
    height: 100% !important;
}

#rating-modal-text {
    position: relative;
}

#rating-modal-text .pk-rating-comment-count {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 12px;
}

.pk-completed-image {
    width: 100%;
}

.pk-completed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}