/* ============================================================
   Topway Management Japan — ニュース詳細
   Page-specific selectors are isolated with tw-news-view-*
   ============================================================ */

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

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

.tw-news-view-skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 11px 18px;
    border-radius: 4px;
    color: #fff;
    background: #002656;
    transform: translateY(-160%);
    transition: transform .25s ease
}

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

/* ---------- Section 01: Hero ---------- */

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

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

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

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

/* ---------- Section 02: Article ---------- */

.tw-news-view-article {
    padding: 0 0 118px;
    background: #fff
}

.tw-news-view-article__inner {
    position: relative
}

.tw-news-view-breadcrumb {
    display: flex;
    min-height: 75px;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    color: #666;
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap
}

.tw-news-view-breadcrumb a {
    transition: color .25s ease
}

.tw-news-view-breadcrumb a:hover {
    color: #006bf1
}

.tw-news-view-breadcrumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis
}

.tw-news-view-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 920px) 320px;
    gap: 80px;
    align-items: start
}

.tw-news-view-content__header {
    padding: 47px 0 48px;
    border-top: 1px solid #d9dce2;
    border-bottom: 1px solid #d9dce2
}

.tw-news-view-content__category {
    display: inline-flex;
    min-width: 116px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-right: 17px;
    border-radius: 2px;
    color: #fff;
    background: #172949;
    font-size: 13px;
    font-weight: 500;
    line-height: 1
}

.tw-news-view-content__header time {
    color: #676b72;
    font-size: 14px;
    line-height: 30px
}

.tw-news-view-content__header h2 {
    margin: 27px 0 0;
    color: #172949;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: .02em
}

.tw-news-view-content__visual {
    width: 100%;
    aspect-ratio: 920 / 498;
    margin: 54px 0 0;
    overflow: hidden;
    background: #d7e3f2
}

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

.tw-news-view-content__body {
    padding: 53px 54px 7px;
    color: #333
}

.tw-news-view-content__body p {
    margin-bottom: 27px;
    font-size: 17px;
    line-height: 2;
    letter-spacing: .02em
}

.tw-news-view-content__body .tw-news-view-content__lead {
    margin-bottom: 47px;
    color: #172949;
    font-size: 19px;
    font-weight: 500;
    line-height: 2
}

.tw-news-view-content__body h3 {
    position: relative;
    margin: 61px 0 27px;
    padding: 17px 20px 18px 27px;
    color: #172949;
    border-bottom: 1px solid #d6dce6;
    background: #f3f6fa;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.55
}

.tw-news-view-content__body h3::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(to bottom, #172949 50%, #c57901 50%)
}

.tw-news-view-content__callout {
    margin: 46px 0 54px;
    padding: 33px 40px 30px;
    border-left: 5px solid #c57901;
    background: #f1f6ff
}

.tw-news-view-content__callout strong {
    display: block;
    margin-bottom: 18px;
    color: #172949;
    font-size: 19px;
    font-weight: 600
}

.tw-news-view-content__callout ul {
    margin: 0;
    padding-left: 23px;
    color: #3f4650
}

.tw-news-view-content__callout li {
    padding-left: 5px;
    font-size: 16px;
    line-height: 2
}

.tw-news-view-content__body .tw-news-view-content__note {
    margin: 55px 0 0;
    padding: 22px 25px;
    color: #616771;
    border: 1px solid #dfe4ea;
    font-size: 13px;
    line-height: 1.8
}

.tw-news-view-content__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 64px;
    padding: 31px 0;
    border-top: 1px solid #d9dce2;
    border-bottom: 1px solid #d9dce2
}

.tw-news-view-content__back {
    color: #172949;
    font-size: 15px;
    font-weight: 500;
    transition: color .25s ease
}

.tw-news-view-content__back span {
    display: inline-block;
    margin-right: 10px;
    color: #c57901;
    transition: transform .25s ease
}

.tw-news-view-content__back:hover {
    color: #006bf1
}

.tw-news-view-content__back:hover span {
    transform: translateX(-5px)
}

.tw-news-view-content__share {
    display: flex;
    align-items: center;
    gap: 9px
}

.tw-news-view-content__share>span {
    margin-right: 9px;
    color: #7b7e83;
    font-size: 11px;
    letter-spacing: .16em
}

.tw-news-view-content__share a,
.tw-news-view-content__share button {
    display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d2d8e1;
    border-radius: 50%;
    color: #172949;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease
}

.tw-news-view-content__share a:hover,
.tw-news-view-content__share button:hover {
    color: #fff;
    border-color: #172949;
    background: #172949
}

/* ---------- Article sidebar ---------- */

.tw-news-view-sidebar {
    padding-top: 48px
}

.tw-news-view-sidebar__block {
    margin-bottom: 58px
}

.tw-news-view-sidebar__block>h2 {
    position: relative;
    margin-bottom: 25px;
    padding: 0 0 17px 18px;
    color: #172949;
    border-bottom: 1px solid #cfd5df;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.4
}

.tw-news-view-sidebar__block>h2::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 19px;
    left: 0;
    width: 5px;
    background: linear-gradient(to bottom, #172949 50%, #c57901 50%)
}

.tw-news-view-sidebar nav a {
    display: flex;
    min-height: 55px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    color: #424750;
    border-bottom: 1px solid #e1e5ea;
    font-size: 14px;
    transition: color .25s ease, padding .25s ease, background-color .25s ease
}

.tw-news-view-sidebar nav a::after {
    content: "›";
    order: 2;
    color: #c57901;
    font-size: 30px
}

.tw-news-view-sidebar nav a span {
    order: 1;
    margin-left: auto;
    margin-right: 13px;
    color: #999;
    font-size: 12px
}

.tw-news-view-sidebar nav a:hover,
.tw-news-view-sidebar nav a.is-current {
    padding-left: 23px;
    color: #006bf1;
    background: #f3f6fa
}

.tw-news-view-sidebar__latest article {
    padding: 16px 0;
    border-bottom: 1px solid #e1e5ea
}

.tw-news-view-sidebar__latest article a {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 15px;
    color: #242a34
}

.tw-news-view-sidebar__latest article img {
    display: block;
    width: 100px;
    height: 72px;
    object-fit: cover
}

.tw-news-view-sidebar__latest article span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    transition: color .25s ease
}

.tw-news-view-sidebar__latest article time {
    display: block;
    margin-bottom: 3px;
    color: #888;
    font-size: 13px;
    font-weight: 400
}

.tw-news-view-sidebar__latest article a:hover span {
    color: #006bf1
}

/* ---------- Section 03: Previous / next ---------- */

.tw-news-view-navigation {
    border-top: 1px solid #d9dce2;
    border-bottom: 1px solid #d9dce2;
    background: #fff
}

.tw-news-view-navigation__inner {
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    min-height: 164px;
    align-items: stretch
}

.tw-news-view-navigation__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 50px;
    color: #172949;
    transition: color .25s ease, background-color .25s ease
}

.tw-news-view-navigation__item:hover {
    color: #006bf1;
    background: #f6f8fb
}

.tw-news-view-navigation__item small {
    margin-bottom: 10px;
    color: #bbbbbb;
    font-size: 14px;
    font-weight: 500;
}

.tw-news-view-navigation__item span {
    max-width: 440px;
    font-size: 18px;
    line-height: 1.6
}

.tw-news-view-navigation__item--prev {
    border-right: 1px solid #d9dce2
}

.tw-news-view-navigation__item--next {
    align-items: flex-end;
    border-left: 1px solid #d9dce2;
    text-align: right
}

.tw-news-view-navigation__list {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    grid-auto-rows: 5px;
    gap: 5px;
    align-content: center;
    justify-content: center
}

.tw-news-view-navigation__list i {
    width: 5px;
    height: 5px;
    background: #172949;
    transition: background-color .25s ease
}

.tw-news-view-navigation__list:hover i {
    background: #c57901
}

/* ---------- Section 04: Related articles ---------- */

.tw-news-view-related {
    padding: 105px 0 150px;
    background: #f4f7fa
}

.tw-news-view-related__heading {
    display: flex;
    align-items: center;
    gap: 23px
}

.tw-news-view-related__accent {
    display: flex;
    width: 5px;
    height: 48px;
    flex-direction: column
}

.tw-news-view-related__accent i {
    display: block;
    width: 5px;
    height: 24px;
    background: #172949
}

.tw-news-view-related__accent i:last-child {
    background: #c57901
}

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

.tw-news-view-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 53px
}

.tw-news-view-related-card {
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(31, 42, 104, .1);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease
}

.tw-news-view-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 17px 36px rgba(31, 42, 104, .16)
}

.tw-news-view-related-card>a {
    display: block;
    aspect-ratio: 410 / 222;
    overflow: hidden
}

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

.tw-news-view-related-card:hover img {
    transform: scale(1.035)
}

.tw-news-view-related-card>div {
    min-height: 168px;
    padding: 21px 28px 25px
}

.tw-news-view-related-card time {
    display: block;
    margin-bottom: 8px;
    color: #777;
    font-size: 12px
}

.tw-news-view-related-card h3 {
    margin-bottom: 0;
    color: #172949;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.65
}

.tw-news-view-related-card h3 a {
    transition: color .25s ease
}

.tw-news-view-related-card h3 a:hover {
    color: #006bf1
}

@media (max-width: 1439px) {
    .tw-news-view-article__layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 55px
    }

    .tw-news-view-content__header h2 {
        font-size: 34px
    }

    .tw-news-view-content__body {
        padding-right: 38px;
        padding-left: 38px
    }
}

@media (max-width: 1100px) {
    .tw-news-view-article__layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 35px
    }

    .tw-news-view-content__header h2 {
        font-size: 30px
    }

    .tw-news-view-content__body {
        padding-right: 18px;
        padding-left: 18px
    }

    .tw-news-view-sidebar__latest article a {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px
    }

    .tw-news-view-sidebar__latest article img {
        width: 82px;
        height: 64px
    }

    .tw-news-view-navigation__item {
        padding-right: 28px;
        padding-left: 28px
    }

    .tw-news-view-related__grid {
        gap: 25px
    }
}

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

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

    .tw-news-view-hero h1 {
        margin-bottom: 12px;
        font-size: 34px;
        line-height: 1.4
    }

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

    .tw-news-view-hero p br {
        display: none
    }

    .tw-news-view-article {
        padding-bottom: 80px
    }

    .tw-news-view-breadcrumb {
        min-height: 64px;
        font-size: 11px
    }

    .tw-news-view-article__layout {
        display: block
    }

    .tw-news-view-content__header {
        padding: 35px 0 36px
    }

    .tw-news-view-content__header h2 {
        margin-top: 21px;
        font-size: 25px;
        line-height: 1.65
    }

    .tw-news-view-content__header h2 br {
        display: none
    }

    .tw-news-view-content__visual {
        margin-top: 35px
    }

    .tw-news-view-content__body {
        padding: 36px 0 0
    }

    .tw-news-view-content__body p {
        margin-bottom: 23px;
        font-size: 15px;
        line-height: 1.95
    }

    .tw-news-view-content__body .tw-news-view-content__lead {
        margin-bottom: 35px;
        font-size: 16px;
        line-height: 1.95
    }

    .tw-news-view-content__body h3 {
        margin: 45px 0 24px;
        padding: 14px 15px 15px 21px;
        font-size: 20px
    }

    .tw-news-view-content__callout {
        margin: 36px 0 43px;
        padding: 25px 22px 23px
    }

    .tw-news-view-content__callout strong {
        font-size: 17px
    }

    .tw-news-view-content__callout li {
        font-size: 14px;
        line-height: 1.9
    }

    .tw-news-view-content__body .tw-news-view-content__note {
        margin-top: 42px;
        padding: 18px;
        font-size: 12px
    }

    .tw-news-view-content__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 27px;
        margin-top: 47px
    }

    .tw-news-view-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 75px
    }

    .tw-news-view-sidebar__block {
        margin-bottom: 0
    }

    .tw-news-view-sidebar__block>h2 {
        font-size: 21px
    }

    .tw-news-view-sidebar__latest article a {
        grid-template-columns: 100px minmax(0, 1fr)
    }

    .tw-news-view-sidebar__latest article img {
        width: 100px;
        height: 72px
    }

    .tw-news-view-navigation__inner {
        grid-template-columns: 1fr 60px 1fr;
        min-height: 138px;
        width: 100%
    }

    .tw-news-view-navigation__item {
        padding: 20px 16px
    }

    .tw-news-view-navigation__item span {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.65;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3
    }

    .tw-news-view-navigation__item small {
        font-size: 9px
    }

    .tw-news-view-related {
        padding: 75px 0 95px
    }

    .tw-news-view-related__heading h2 {
        font-size: 29px
    }

    .tw-news-view-related__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 40px
    }

    .tw-news-view-related-card>div {
        min-height: 0
    }
}

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

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

    .tw-news-view-content__header h2 {
        font-size: 22px
    }

    .tw-news-view-content__category {
        min-width: 105px
    }

    .tw-news-view-content__share>span {
        display: none
    }

    .tw-news-view-navigation__inner {
        grid-template-columns: 1fr 50px 1fr
    }

    .tw-news-view-navigation__item {
        padding-right: 11px;
        padding-left: 11px
    }

    .tw-news-view-navigation__item span {
        -webkit-line-clamp: 2
    }
}

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

    .tw-news-view-page *,
    .tw-news-view-page *::before,
    .tw-news-view-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important
    }
}