/* ============================================================
   Topway Management Japan — 講義の詳細
   Page-specific selectors are isolated with tw-course-view-*
   ============================================================ */

.tw-course-view-page #main-content {
    padding-top: var(--header-h)
}

h1,
h2,
p,
dl,
dd,
figure {
    margin-top: 0
}

dd,dt{
	margin:0px;
}


#main-content {
    padding-top: var(--header-h);
}


.tw-course-view-page .tw-header__nav a.active::after {
    right: 0
}

.tw-course-view-page .tw-course-view-skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 11px 18px;
    border-radius: 4px;
    color: #fff;
    background: #002656;
    box-shadow: 0 8px 24px rgba(0, 27, 67, .24);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transform: translateY(-160%);
    transition: transform .25s ease
}

.tw-course-view-page .tw-course-view-skip-link:focus {
    outline: 3px solid #d4a23c;
    outline-offset: 3px;
    transform: translateY(0)
}

.tw-course-view-page #main-content:focus {
    outline: none
}

/* ---------- Course overview ---------- */

.tw-course-view-overview {
    height: 520px;
    overflow: hidden;
    color: #fff;
    background: #002341
}

.tw-course-view-overview__inner {
    display: grid;
    grid-template-columns: 475px minmax(0, 1fr);
    column-gap: 95px;
    height: 100%;
    padding: 89px 14px 0
}

.tw-course-view-overview__media {
    width: 475px;
    height: 330px;
    margin-bottom: 0;
    overflow: hidden;
    background: #d9d9d9
}

.tw-course-view-overview__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.tw-course-view-overview__content {
    min-width: 0
}

.tw-course-view-overview__back {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: -6px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    transition: opacity .25s ease
}

.tw-course-view-overview__back:hover {
    opacity: .72
}

.tw-course-view-overview__back img {
    display: block;
    width: 22px;
    height: 22px
}

.tw-course-view-overview h1 {
    margin: 34px 0 0;
    font-size: 26px;
    font-weight: 400;
    line-height: 45px
}

.tw-course-view-overview__lead {
    max-width: 588px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .60);
    font-size: 18px;
    font-weight: 500;
    line-height: 30px
}

.tw-course-view-overview__rating {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 63px;
    color: rgba(255, 255, 255, .60);
    font-size: 21px;
    font-weight: 500;
    line-height: 24px
}

.tw-course-view-overview__stars {
    display: flex;
    align-items: center
}

.tw-course-view-overview__stars img {
    display: block;
    width: 29px;
    height: 29px
}

/* ---------- Enrollment information ---------- */

.tw-course-view-enrollment {
    display: flex;
    height: 235px;
    flex-direction: column;
    align-items: center;
    padding-top: 42px;
    border-bottom: 2px solid #dfe5eb;
    background: #f5f7fa
}

.tw-course-view-enrollment__panel {
    display: grid;
    width: 898px;
    height: 75px;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 8px;
    background: #d9e6f9
}

.tw-course-view-enrollment__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0
}

.tw-course-view-enrollment__item + .tw-course-view-enrollment__item::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 0;
    width: 1px;
    height: 28px;
    background: #a9b5c5
}

.tw-course-view-enrollment__item img {
    display: block;
    width: 28px;
    height: 28px
}

.tw-course-view-enrollment__item dt {
    font-size: 15px;
    font-weight: 400;
    line-height: 24px
}

.tw-course-view-enrollment__item dd {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
	margin-left:0px;
}

.tw-course-view-enrollment__button {
    display: inline-flex;
    width: 263px;
    height: 56px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 32px;
    border-radius: 8px;
    color: #fff;
    background: #006bf1;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease
}

.tw-course-view-enrollment__button:hover,
.tw-course-view-enrollment__button:focus-visible {
    background: #0058cc;
    box-shadow: 0 10px 26px rgba(0, 107, 241, .25);
    transform: translateY(-2px)
}

.tw-course-view-enrollment__button img {
    display: block;
    width: 28px;
    height: 28px
}

/* ---------- Course description ---------- */

.tw-course-view-description {
    min-height: 788px;
    padding: 82px 0 230px;
    background: #fff
}

.tw-course-view-description__inner {
    width: min(810px, calc(100% - 48px));
    margin-inline: auto
}

.tw-course-view-description__intro {
    max-width: 735px;
    margin: 0 auto;
    color: #000;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px
}

.tw-course-view-description__list {
    display: flex;
    flex-direction: column;
    gap: 38px;
    margin: 50px 0 0;
    padding: 0;
    list-style: none
}

.tw-course-view-description__list li {
    display: grid;
    min-height: 56px;
    grid-template-columns: 10px minmax(0, 1fr);
    column-gap: 0;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.tw-course-view-description__list img {
    display: block;
    width: 12px;
    height: 12px;
    margin-top: 8px;
}

.tw-course-view-description__closing {
    max-width: 760px;
    margin: 30px 0 0 10px;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .tw-course-view-overview {
        height: auto
    }

    .tw-course-view-overview__inner {
        grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
        gap: 54px;
        min-height: 500px;
        align-items: center;
        padding: 70px 0
    }

    .tw-course-view-overview__media {
        width: 100%;
        height: auto;
        aspect-ratio: 475 / 330
    }

    .tw-course-view-overview h1 {
        margin-top: 25px
    }

    .tw-course-view-overview__rating {
        margin-top: 40px
    }

    .tw-course-view-enrollment__panel {
        width: min(898px, calc(100% - 48px))
    }
}

@media (max-width: 767px) {
    .tw-course-view-overview__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 38px;
        padding: 48px 0 62px
    }

    .tw-course-view-overview__media {
        order: 2
    }

    .tw-course-view-overview__content {
        order: 1
    }

    .tw-course-view-overview__back {
        margin-left: 0;
        font-size: 14px
    }

    .tw-course-view-overview h1 {
        margin-top: 25px;
        font-size: 25px;
        line-height: 1.5
    }

    .tw-course-view-overview__lead {
        margin-top: 10px;
        font-size: 16px;
        line-height: 1.9
    }

    .tw-course-view-overview__rating {
        margin-top: 28px;
        gap: 16px;
        font-size: 18px
    }

    .tw-course-view-overview__stars img {
        width: 25px;
        height: 25px
    }

    .tw-course-view-enrollment {
        height: auto;
        padding: 32px 24px 38px
    }

    .tw-course-view-enrollment__panel {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr
    }

    .tw-course-view-enrollment__item {
        min-height: 75px;
        justify-content: flex-start;
        padding: 0 25px
    }

    .tw-course-view-enrollment__item + .tw-course-view-enrollment__item::before {
        top: 0;
        right: 25px;
        left: 25px;
        width: auto;
        height: 1px
    }

    .tw-course-view-enrollment__button {
        width: min(100%, 320px);
        margin-top: 26px
    }

    .tw-course-view-description {
        min-height: 0;
        padding: 80px 0 120px
    }

    .tw-course-view-description__intro {
        font-size: 20px;
        line-height: 1.8
    }

    .tw-course-view-description__intro br {
        display: none
    }

    .tw-course-view-description__list {
        gap: 28px;
        margin-top: 42px
    }

    .tw-course-view-description__list li,
    .tw-course-view-description__closing {
        font-size: 17px;
        line-height: 1.85
    }

    .tw-course-view-description__closing {
        margin: 38px 0 0
    }
}

@media (max-width: 480px) {
    .tw-course-view-overview__inner {
        padding-top: 36px
    }

    .tw-course-view-overview__lead {
        font-size: 15px
    }

    .tw-course-view-description {
        padding: 64px 0 90px
    }

    .tw-course-view-description__intro {
        font-size: 18px
    }

    .tw-course-view-description__list li,
    .tw-course-view-description__closing {
        font-size: 16px
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-course-view-overview__back,
    .tw-course-view-enrollment__button {
        transition: none
    }
}
