/* ============================================================
   Topway Management Japan — オンライン講座
   ============================================================ */

html.lenis,
html.lenis body {
    height: auto
}

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

.lenis.lenis-smooth {
    scroll-behavior: auto !important
}

.lenis.lenis-stopped {
    overflow: hidden
}

.lenis.lenis-autoToggle {
    transition-duration: 1ms;
    transition-property: overflow;
    transition-behavior: allow-discrete
}

.lenis [data-lenis-prevent] {
    overscroll-behavior: contain
}

.lenis.lenis-smooth iframe {
    pointer-events: none
}

.tw-online-course-page [data-online-course-animate] {
    isolation: isolate
}

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

.tw-online-course-page h1,
.tw-online-course-page h2,
.tw-online-course-page p {
    margin-top: 0
}

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

.tw-online-course-page .tw-online-course-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;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .25s ease
}

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

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

/* ---------- Hero ---------- */

.tw-online-course-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    color: #fff;
    background-color: #002441;
    background-image: url(../img/online-course/online-course-hero.jpg),
        linear-gradient(180deg, #002441 0%, #002c4d 50%, #001d32 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover
}

.tw-online-course-hero__inner {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 30px
}

.tw-online-course-hero h1 {
    margin-bottom: 9px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px
}

.tw-online-course-hero p {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45
}

/* ---------- Education introduction ---------- */

.tw-online-course-intro {
    padding: 90px 0 130px;
    background: #fff
}

.tw-online-course-intro__inner {
    text-align: center
}

.tw-online-course-intro h2 {
    margin-bottom: 35px;
    color: #060606;
    font-size: 42px;
    font-weight: 500;
    line-height: 56px
}

.tw-online-course-intro h2 span {
    color: #c57804
}

.tw-online-course-intro__lead {
    margin-bottom: 0;
    color: #333;
    font-size: 21px;
    font-weight: 400;
    line-height: 36px
}

.tw-online-course-intro__image {
    display: block;
    width: 100%;
    height: 357px;
    margin-top: 76px;
    border-radius: 12px;
    object-fit: cover
}

/* ---------- Alternating education stages ---------- */

.tw-online-course-stage {
    background: #fff
}

.tw-online-course-stage__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
    justify-content: center
}

.tw-online-course-stage__content {
    width: 100%;
    max-width: 520px;
    padding-top: 34px;
    padding-left: 16px
}

.tw-online-course-stage__content h2 {
    margin-bottom: 30px;
    color: #000;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4
}

.tw-online-course-stage__content h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 30px;
    background: #dfdfdf
}

.tw-online-course-stage__content p {
    margin-bottom: 0;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4
}

.tw-online-course-stage__media {
    width: 640px;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
}

.tw-online-course-stage:not(.tw-online-course-stage--reverse) .tw-online-course-stage__media {
    transform: translateX(-7px)
}

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

.tw-online-course-stage__link {
    display: inline-flex;
    width: 249px;
    height: 40px;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
    padding: 0 16px 0 27px;
    border-radius: 30px;
    color: #000;
    background: #f2f5f6;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: 13px;
    line-height: 28px;
    transition: color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .3s ease
}

.tw-online-course-stage__link img {
    width: 22px;
    height: 22px;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1)
}

.tw-online-course-stage__link:hover,
.tw-online-course-stage__link:focus-visible {
    color: #fff;
    background: #002656;
    box-shadow: 0 10px 24px rgba(0, 38, 86, .18);
    outline: none;
    transform: translateY(-2px)
}

.tw-online-course-stage__link:hover img,
.tw-online-course-stage__link:focus-visible img {
    filter: invert(1);
    transform: translateX(4px)
}

.tw-online-course-stage--reverse .tw-online-course-stage__content {
    grid-column: 2;
    padding-top: 36px;
    padding-left: 57px
}

.tw-online-course-stage--reverse .tw-online-course-stage__media {
    grid-row: 1;
    grid-column: 1;
    transform: translateX(14px)
}

.tw-online-course-stage--approach {
    padding-bottom: 78px
}

.tw-online-course-stage--personalized {
    padding-bottom: 105px
}

.tw-online-course-stage--technology {
    padding-bottom: 78px
}

.tw-online-course-stage--network {
    padding-bottom: 298px
}

.tw-online-course-stage--personalized .tw-online-course-stage__content h2,
.tw-online-course-stage--technology .tw-online-course-stage__content h2,
.tw-online-course-stage--network .tw-online-course-stage__content h2 {
    line-height: 56px
}

.tw-online-course-stage--approach .tw-online-course-stage__link {
    margin-top: 65px
}

.tw-online-course-stage--personalized .tw-online-course-stage__media {
    width: 620px;
}

.tw-online-course-stage--network .tw-online-course-stage__content {
    padding-top: 16px;
    padding-left: 62px
}

.tw-online-course-stage--network .tw-online-course-stage__link {
    margin-top: 60px
}

@media (max-width: 1500px) and (min-width: 1025px) {
    .tw-online-course-stage__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 54px
    }

    .tw-online-course-stage__media {
        width: 100%;
        transform: none !important
    }

    .tw-online-course-stage__content {
        padding-left: 18px
    }

    .tw-online-course-stage--reverse .tw-online-course-stage__content {
        padding-left: 42px
    }
}

@media (max-width: 1200px) {
    .tw-online-course-intro h2 {
        font-size: 36px;
        line-height: 1.5
    }

    .tw-online-course-intro__lead {
        font-size: 18px;
        line-height: 1.85
    }

    .tw-online-course-stage__content h2 {
        font-size: 31px;
        line-height: 1.45
    }

    .tw-online-course-stage--personalized .tw-online-course-stage__content h2,
    .tw-online-course-stage--technology .tw-online-course-stage__content h2,
    .tw-online-course-stage--network .tw-online-course-stage__content h2 {
        line-height: 1.45
    }

    .tw-online-course-stage__content p {
        font-size: 18px;
        line-height: 1.75
    }
}

@media (max-width: 1024px) {
    .tw-online-course-stage__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px
    }

    .tw-online-course-stage__media {
        width: 100%;
        height: auto;
        aspect-ratio: 640 / 420
    }

    .tw-online-course-stage--personalized .tw-online-course-stage__media {
        width: 100%;
        height: auto;
        aspect-ratio: 645 / 430
    }

    .tw-online-course-stage__content,
    .tw-online-course-stage--reverse .tw-online-course-stage__content {
        padding-right: 0;
        padding-left: 0
    }
}

@media (max-width: 768px) {
    .tw-online-course-page #main-content {
        padding-top: 68px
    }

    .tw-online-course-hero {
        height: 280px;
        background-position: 61% center
    }

    .tw-online-course-hero h1 {
        margin-bottom: 8px;
        font-size: 32px;
        line-height: 1.35;
        letter-spacing: 1px
    }

    .tw-online-course-hero p {
        max-width: 300px;
        font-size: 16px;
        line-height: 1.7
    }

    .tw-online-course-intro {
        padding: 62px 0 72px
    }

    .tw-online-course-intro h2 {
        margin-bottom: 25px;
        font-size: 27px;
        line-height: 1.55
    }

    .tw-online-course-intro__lead {
        font-size: 15px;
        line-height: 1.9;
        text-align: left
    }

    .tw-online-course-intro__lead br {
        display: none
    }

    .tw-online-course-intro__image {
        height: auto;
        margin-top: 42px;
        aspect-ratio: 1360 / 357;
        border-radius: 8px
    }

    .tw-online-course-stage,
    .tw-online-course-stage--approach,
    .tw-online-course-stage--personalized,
    .tw-online-course-stage--technology,
    .tw-online-course-stage--network {
        padding: 0 0 72px
    }

    .tw-online-course-stage--network {
        padding-bottom: 100px
    }

    .tw-online-course-stage__inner {
        display: flex;
        flex-direction: column;
        gap: 34px
    }

    .tw-online-course-stage__content,
    .tw-online-course-stage--reverse .tw-online-course-stage__content,
    .tw-online-course-stage--network .tw-online-course-stage__content {
        order: 1;
        max-width: none;
        padding: 0
    }

    .tw-online-course-stage__media,
    .tw-online-course-stage--reverse .tw-online-course-stage__media {
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 640 / 420;
        border-radius: 8px;
        transform: none
    }

    .tw-online-course-stage__content h2,
    .tw-online-course-stage--personalized .tw-online-course-stage__content h2,
    .tw-online-course-stage--technology .tw-online-course-stage__content h2,
    .tw-online-course-stage--network .tw-online-course-stage__content h2 {
        margin-bottom: 18px;
        font-size: 26px;
        line-height: 1.5
    }

    .tw-online-course-stage__content h2 br {
        display: none
    }

    .tw-online-course-stage__content h2::after {
        margin-top: 16px
    }

    .tw-online-course-stage__content p {
        font-size: 15px;
        line-height: 1.9
    }

    .tw-online-course-stage__link,
    .tw-online-course-stage--personalized .tw-online-course-stage__link,
    .tw-online-course-stage--technology .tw-online-course-stage__link,
    .tw-online-course-stage--network .tw-online-course-stage__link {
        width: 230px;
        margin-top: 30px
    }

    .tw-online-course-stage--approach .tw-online-course-stage__link {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .tw-online-course-hero {
        height: 230px;
        background-position: 63% center
    }

    .tw-online-course-hero h1 {
        font-size: 28px
    }

    .tw-online-course-hero p {
        max-width: 255px;
        font-size: 14px
    }

    .tw-online-course-intro h2 {
        font-size: 24px
    }

    .tw-online-course-stage__content h2,
    .tw-online-course-stage--personalized .tw-online-course-stage__content h2,
    .tw-online-course-stage--technology .tw-online-course-stage__content h2,
    .tw-online-course-stage--network .tw-online-course-stage__content h2 {
        font-size: 23px
    }
}

@media (prefers-reduced-motion: reduce) {

    .tw-online-course-page .tw-online-course-skip-link,
    .tw-online-course-stage__link,
    .tw-online-course-stage__link img {
        transition: none
    }
}