/* ============================================================
   Topway Management Japan — 金融教育・コース一覧
   ============================================================ */

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

.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-course-list-page #main-content {
    padding-top: var(--header-h)
}

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

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

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

.tw-course-list-page .tw-course-list-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-list-page .tw-course-list-skip-link:focus {
    outline: 3px solid #d4a23c;
    outline-offset: 3px;
    transform: translateY(0)
}

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

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

.tw-course-list-hero {
    height: 400px;
    overflow: hidden;
    color: #fff;
    background: #002441 url(../img/course-list/course-list-hero.jpg) center/cover no-repeat
}

.tw-course-list-hero__inner {
    height: 100%;
    padding-top: 126px
}

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

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

/* ---------- Course catalog ---------- */

.tw-course-list-catalog {
    position: relative;
    padding: 80px 0 241px;
    background: #fff
}

.tw-course-list-catalog__inner {
    position: relative
}

.tw-course-list-catalog__breadcrumb {
    position: absolute;
    top: -49px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 17px;
    color: #595757;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px
}

.tw-course-list-catalog__breadcrumb span[aria-hidden="true"] {
    width: 1px;
    height: 15px;
    background: #595757
}

.tw-course-list-catalog__breadcrumb a {
    transition: color .25s ease
}

.tw-course-list-catalog__breadcrumb a:hover {
    color: #006bf1
}

.tw-course-list-catalog__lead {
    max-width: 760px;
    min-height: 95px;
    margin: 0 auto;
    color: #060606;
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    text-align: center
}

.tw-course-list-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 425px);
    gap: 57px 41px;
    justify-content: center;
    margin-top: 57px
}

/* ---------- Course card ---------- */

.tw-course-list-card {
    position: relative;
    width: 425px;
    height: 557px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 20px rgba(31, 42, 104, .20);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease
}

.tw-course-list-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 36px rgba(31, 42, 104, .22)
}

.tw-course-list-card__image {
    display: block;
    width: 425px;
    height: 230px;
    overflow: hidden;
    background: #a4c2e4
}

.tw-course-list-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1)
}

.tw-course-list-card:hover .tw-course-list-card__image img {
    transform: scale(1.035)
}

.tw-course-list-card__body {
    position: relative;
    height: 327px;
    padding: 35px 39px 30px
}

.tw-course-list-card h3 {
    margin: 0;
    color: #000;
    font-size: 24px;
    font-weight: 500;
    line-height: 29px
}

.tw-course-list-card h3 a {
    transition: color .25s ease
}

.tw-course-list-card h3 a:hover {
    color: #006bf1
}

.tw-course-list-card p {
    margin: 19px 0 0;
    color: #4e4e4e;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px
}

.tw-course-list-card__rating {
    position: absolute;
    left: 39px;
    bottom: 122px;
    display: flex;
    align-items: center;
    gap: 17px;
    color: #828282;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px
}

.tw-course-list-card__stars {
    display: flex;
    align-items: center;
    gap: 0
}

.tw-course-list-card__stars img {
    display: block;
    width: 24px;
    height: 24px
}

.tw-course-list-card__button {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    width: 280px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    color: #000;
    background: #edf2f8;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transform: translateX(-50%);
    transition: color .3s ease, background-color .3s ease, box-shadow .3s ease
}

.tw-course-list-card__button:hover,
.tw-course-list-card__button:focus-visible {
    color: #fff;
    background: #002c4d;
    box-shadow: 0 8px 20px rgba(0, 44, 77, .20)
}

@media (max-width: 1439px) {
    .tw-course-list-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 44px 28px
    }

    .tw-course-list-card,
    .tw-course-list-card__image {
        width: 100%
    }
}

@media (max-width: 1100px) {
    .tw-course-list-catalog {
        padding-bottom: 170px
    }

    .tw-course-list-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 425px));
        gap: 44px 32px
    }
}

@media (max-width: 767px) {
    .tw-course-list-hero {
        height: 300px;
        background-position: 62% center
    }

    .tw-course-list-hero__inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 0;
        padding-bottom: 12px
    }

    .tw-course-list-hero h1 {
        margin-bottom: 12px;
        font-size: 34px;
        letter-spacing: 1px
    }

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

    .tw-course-list-catalog {
        padding: 90px 0 120px
    }

    .tw-course-list-catalog__breadcrumb {
        top: -62px;
        right: 0;
        gap: 12px;
        font-size: 12px
    }

    .tw-course-list-catalog__lead {
        min-height: 0;
        font-size: 20px;
        line-height: 1.8
    }

    .tw-course-list-catalog__lead br {
        display: none
    }

    .tw-course-list-catalog__grid {
        grid-template-columns: minmax(0, 425px);
        gap: 32px;
        margin-top: 48px
    }
}

@media (max-width: 480px) {
    .tw-course-list-hero {
        height: 270px
    }

    .tw-course-list-hero h1 {
        font-size: 30px
    }

    .tw-course-list-catalog {
        padding-bottom: 90px
    }

    .tw-course-list-catalog__lead {
        font-size: 18px;
        line-height: 1.8
    }

    .tw-course-list-card {
        height: 530px
    }

    .tw-course-list-card__image {
        height: auto;
        aspect-ratio: 425 / 230
    }

    .tw-course-list-card__body {
        height: calc(530px - (100vw - 48px) * .5412);
        min-height: 302px;
        padding: 26px 25px 24px
    }

    .tw-course-list-card h3 {
        font-size: 20px;
        line-height: 1.5
    }

    .tw-course-list-card p {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.7
    }

    .tw-course-list-card__rating {
        left: 25px;
        bottom: 92px;
        gap: 12px;
        font-size: 16px
    }

    .tw-course-list-card__stars img {
        width: 21px;
        height: 21px
    }

    .tw-course-list-card__button {
        bottom: 24px;
        width: calc(100% - 50px)
    }
}

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

    .tw-course-list-card,
    .tw-course-list-card__image img,
    .tw-course-list-card__button {
        transition: none
    }
}