/* ============================================================
   Topway Management Japan — ニュースセンター
   Page-specific selectors are isolated with tw-newslist-*
   ============================================================ */

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-newslist-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-newslist-page .tw-header__nav a.active::after {
    right: 0
}

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

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

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

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

.tw-newslist-hero__inner {
    height: 100%;
    padding-top: 123px
}

.tw-newslist-hero h1 {
    margin-bottom: 8px;
    font-size: 48px;
    font-weight: 700;
    line-height: 58px;
    letter-spacing: 2px
}

.tw-newslist-hero p {
    width: 540px;
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px
}

/* ---------- Market news ---------- */

.tw-newslist-market {
    position: relative;
    padding: 60px 0 200px;
    background: #fff
}

.tw-newslist-market__inner {
    position: relative
}

.tw-newslist-market__breadcrumb {
    position: absolute;
    top: -44px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #595757;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px
}

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

.tw-newslist-market__breadcrumb a {
    transition: color .25s ease
}

.tw-newslist-market__breadcrumb a:hover {
    color: #006bf1
}

.tw-newslist-market__heading {
    display: flex;
    height: 50px;
    align-items: center;
    gap: 24px;
    padding-left: 6px
}

.tw-newslist-market__accent {
    display: flex;
    width: 5px;
    height: 48px;
    flex-direction: column
}

.tw-newslist-market__accent i {
    display: block;
    width: 5px;
    height: 24px;
    background: #031c44
}

.tw-newslist-market__accent i:last-child {
    background: #c57901
}

.tw-newslist-market__heading h2 {
    margin-bottom: 0;
    color: #172949;
    font-size: 36px;
    font-weight: 500;
    line-height: 50px
}

.tw-newslist-market__divider {
    width: 100%;
    height: 1px;
    margin-top: 39px;
    background: #d9dce2
}

.tw-newslist-market__grid {
    display: grid;
    grid-template-columns: repeat(3, 425px);
    gap: 40px 41px;
    justify-content: center;
    margin-top: 67px
}

/* ---------- News card ---------- */

.tw-newslist-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-newslist-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 36px rgba(31, 42, 104, .22)
}

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

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

.tw-newslist-card:hover .tw-newslist-card__image>img:first-child {
    transform: scale(1.035)
}

.tw-newslist-card__image .tw-newslist-card__external {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: block;
    width: 18px;
    height: 18px
}

.tw-newslist-card__body {
    position: relative;
    height: 327px;
    padding: 15px 39px 30px
}

.tw-newslist-card time {
    display: block;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px
}

.tw-newslist-card h3 {
    min-height: 87px;
    margin: 4px 0 0;
    color: #000;
    font-size: 24px;
    font-weight: 500;
    line-height: 29px
}

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

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

.tw-newslist-card p {
    margin: 18px 0 0;
    color: #4e4e4e;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px
}

.tw-newslist-card__more {
    position: absolute;
    left: 39px;
    bottom: 30px;
    display: inline-flex;
    width: 117px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid #006bf1;
    border-radius: 30px;
    color: #006bf1;
    background: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    transition: color .25s ease, background-color .25s ease
}

.tw-newslist-card__more:hover,
.tw-newslist-card__more:focus-visible {
    color: #fff;
    background: #006bf1
}

@media (max-width: 1480px) {
    .tw-newslist-market__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 30px
    }

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

    .tw-newslist-card h3 {
        min-height: 82px;
        font-size: 21px;
    }

    .tw-newslist-card__body {
        padding-right: 30px;
        padding-left: 30px
    }

    .tw-newslist-card__more {
        left: 30px
    }

    .tw-newslist-market__heading h2 {
        font-size: 32px;
    }
}

@media (max-width: 1100px) {
    .tw-newslist-market {
        padding-bottom: 180px
    }

    .tw-newslist-market__grid {
        grid-template-columns: repeat(2, minmax(0, 425px));
        gap: 40px 32px
    }
}

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

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

    .tw-newslist-hero h1 {
        margin-bottom: 12px;
        font-size: 34px;
        line-height: 1.4;
        letter-spacing: 1px
    }

    .tw-newslist-hero p {
        width: min(330px, 100%);
        font-size: 16px;
        line-height: 1.7
    }

    .tw-newslist-hero p br {
        display: none
    }

    .tw-newslist-market {
        padding: 88px 0 120px
    }

    .tw-newslist-market__breadcrumb {
        top: -60px;
        gap: 12px;
        font-size: 12px
    }

    .tw-newslist-market__heading {
        height: 42px;
        gap: 17px
    }

    .tw-newslist-market__accent {
        width: 4px;
        height: 40px
    }

    .tw-newslist-market__accent i {
        width: 4px;
        height: 20px
    }

    .tw-newslist-market__heading h2 {
        font-size: 28px;
        line-height: 42px
    }

    .tw-newslist-market__divider {
        margin-top: 28px
    }

    .tw-newslist-market__grid {
        grid-template-columns: minmax(0, 425px);
        gap: 32px;
        margin-top: 45px
    }
}

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

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

    .tw-newslist-market {
        padding-bottom: 90px
    }

    .tw-newslist-market__heading h2 {
        font-size: 25px
    }

    .tw-newslist-card {
        height: auto;
        min-height: 590px
    }

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

    .tw-newslist-card__body {
        min-height: 352px;
        padding: 18px 25px 72px
    }

    .tw-newslist-card h3 {
        min-height: 0;
        margin-top: 7px;
        font-size: 20px;
        line-height: 1.5
    }

    .tw-newslist-card p {
        margin-top: 14px;
        font-size: 13px;
        line-height: 1.7
    }

    .tw-newslist-card__more {
        left: 25px;
        bottom: 26px
    }
}

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

    .tw-newslist-card,
    .tw-newslist-card__image>img:first-child,
    .tw-newslist-card__more {
        transition: none
    }
}