/* News single page */

.page-news {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(134.6rem + 16rem);
    margin-top: calc(41.5rem - 5.8rem);
    margin-inline: auto;
    padding-top: calc(9.5rem + 11.6rem);
    position: relative;
}

.news-title-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.news-title-icon img {
    width: calc(50.2rem + 9rem);
    height: calc(11.6rem + 11.6rem);
}

.news-detail-grid-top,
.news-detail-grid-bottom {
    display: flex;
}

.news-detail-grid-top picture,
.news-detail-grid-bottom picture {
    display: block;
    line-height: 0;
    width: 100%;
}

.top-bg-image,
.bottom-bg-image {
    display: block;
    width: 100%;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.news-detail-grid-top {
    margin-top: -6rem;
}

.news-detail-grid {
    display: grid;
    background-image: url(../../images/list_pages/cast_news_base_middle.webp);
    background-size: 100% 100%;
    padding: 0 12rem;
    min-height: 90rem;
}

.news-date-text {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 22rem;
    gap: 10rem;
    font-size: 3.3rem;
    font-weight: 600;
    color: var(--color-text);
}

.news-date-text img {
    width: 4.2rem;
    height: 4.75rem;
}

.news-title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    font-size: 4.2rem;
    font-weight: 600;
    line-height: 5.6rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 5.2rem;
    padding: 0 7rem;
    margin-top: -6rem;
}

.news-title-text img {
    display: block;
}

.news-content-text {
    color: var(--color-text);
    padding: 0 7rem;
}

.news-content-text h1,
.news-content-text h2,
.news-content-text h3,
.news-content-text h4 {
    margin: 1rem 0;
}

.news-content-text h1 {
    font-size: 3.6rem;
}

.news-content-text h2 {
    font-size: 3.3rem;
}

.news-content-text h3 {
    font-size: 3rem;
}

.news-content-text h4 {
    font-size: 2.8rem;
}

.news-content-text p {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.news-content-text img {
    margin: 1rem 0;
}

main#contents.news + .site-footer {
    margin-top: 6.6rem;
}

@media screen and (max-width: 800px) {

    main#contents {
        width: 80rem;
    }

    .page-news {
        width: 80rem;
        margin-top: 21rem;
        padding-top: 0;
        padding-inline: 0;
    }

    .list-page-header {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .news-title-icon {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
    }

    .news-title-icon img {
        width: calc(25rem + 4rem);
        height: auto;
    }

    .news-detail-list {
        width: 72rem;
    }

    .news-detail-grid-top {
        margin-top: 1rem;
    }

    .news-detail-grid {
        background-image: url(../../images/list_pages/sp/cast_news_base_middle.webp);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding: 0 5.7rem;
        min-height: 64.5rem;
    }

    .news-date-text {
        width: 72rem;
        margin-top: 5.9rem;
        gap: 7.4rem;
        font-size: 3.3rem;
    }

    .news-date-text img {
        width: 2.8rem;
        height: 3.2rem;
    }

    .news-title-text {
        font-size: 4.2rem;
        line-height: 5.6rem;
        padding: 0 2rem;
        margin-top: -2rem;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }

    .news-content-text {
        padding: 0 2rem;
    }

    .news-content-text h1 {
        font-size: 3.6rem;
    }

    .news-content-text h2 {
        font-size: 3.3rem;
    }

    .news-content-text h3 {
        font-size: 3rem;
    }

    .news-content-text h4 {
        font-size: 2.8rem;
    }

    .news-content-text p {
        font-size: 2.5rem;
        margin: 1rem 0;
    }

    .news-content-text img {
        margin: 1rem 0;
    }

    main#contents.news + .site-footer {
        margin-top: 16rem;
    }

}
