/* News list page */

.page-news {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(134.6rem + 11rem);
    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);
}

/* SP panel markup hidden on PC */
.list-page-panel__top,
.list-page-panel__cap--bottom {
    display: none;
}

.list-page-panel__bottom .news-pagination {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
}

.news-item-list {
    background-image: url(../../images/list_pages/cast_news_base.webp);
    height: calc(234rem + 11rem);
    width: 100%;
    padding-top: calc(10.7rem + 5.5rem);
    background-size: 100% 100%;
}

.news-item-grid {
    display: grid;
    grid-template-columns: repeat(3, calc(38.3rem + 1.8rem));
    grid-template-rows: repeat(3, calc(45.8rem + 1.8rem));
    column-gap: 1.8rem;
    row-gap: 4.6rem;
    justify-content: center;
}

.news-item {
    width: calc(38.3rem + 1.8rem);
    height: calc(45.8rem + 1.8rem);
}

.news-item a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.news-item-frame {
    position: absolute;
    inset: 0;
    background-image: url(../../images/list_pages/cast_news_frame.webp);
    background-size: 100% 100%;
}

.news-item-thumb,
.news-item-detail {
    width: 35.3rem;
}

.news-item-thumb {
    height: 28rem;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-detail {
    height: 14.7rem;
    background-color: #d190c0;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    text-align: center;
    overflow: hidden;
}

.news-schedule,
.news-item-title {
    width: calc(39.3rem - 6rem);
    margin-inline: auto;
    font-family: var(--font-family-noto-sans-jp);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.news-schedule {
    flex-shrink: 0;
    font-size: 3.2rem;
    white-space: nowrap;
}

.news-item-title {
    margin-top: 0.8rem;
    flex: 1 1 auto;
    max-height: 8.6rem;
    text-overflow: ellipsis;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.news-item a:hover .news-item-detail {
    background-color: #b40e6f;
}

.news-item a:hover .news-schedule,
.news-item a:hover .news-item-title {
    color: #ffffff;
}

.news-pagination {
    margin-top: 9.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.news-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 3.2rem;
    color: var(--color-text);
}

.news-pagination-pages {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    width: fit-content;
}

.news-pagination-pages .page-numbers {
    color: var(--color-text);
    font-family: var(--font-family-noto-sans-jp);
    font-size: 3rem;
    line-height: 1;
}

.news-pagination-pages .page-numbers.current {
    color: #d53987;
}

.news-pagination-btn-label {
    width: 2.5rem;
    font-family: var(--font-family-uncial-antiqua);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.5rem;
    margin-bottom: -0.5rem;
}

.news-pagination-star {
    width: 2.5rem;
    height: 2.8rem;
    display: inline-block;
    background-image: url(../../images/list_pages/cast_news_star.webp);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.news-pagination-btn.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

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

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

    main#contents {
        width: 80rem;
    }

    .page-news {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80rem;
        margin-top: 21rem;
        padding-top: 0;
        padding-inline: 0;
    }

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

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

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

    .list-page-panel__top {
        display: block;
        width: 72rem;
        line-height: 0;
        margin-top: 4.5rem;
        margin-inline: auto;
    }

    .list-page-panel__bottom {
        position: relative;
        width: 72rem;
        margin-inline: auto;
        line-height: 0;
    }

    .list-page-panel__cap {
        display: block;
        width: 72rem;
        margin-inline: auto;
        height: auto;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }

    .list-page-panel__cap--bottom {
        display: block;
    }

    .list-page-panel__bottom .news-pagination {
        position: absolute;
        left: 0;
        right: 0;
        top: 1rem;
        transform: translateY(-50%);
        z-index: 1;
        margin-top: 0;
        gap: 1.6rem;
        flex-wrap: wrap;
        padding-inline: 5.7rem;
        width: 72rem;
        margin-inline: auto;
        box-sizing: border-box;
        line-height: normal;
    }

    .news-item-list {
        width: 80rem;
        height: auto;
        min-height: 0;
        padding: 0;
        background: none;
    }

    .list-page-panel__body {
        width: 72rem;
        margin-inline: auto;
        box-sizing: border-box;
        padding: 0.1rem 5.7rem;
        background-image: url(../../images/list_pages/sp/cast_news_base_middle.webp);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: top center;
        min-height: 64.6rem;
    }

    .news-item-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
        row-gap: 4rem;
        column-gap: 0;
        width: 100%;
        max-width: 61.2rem;
        margin-inline: auto;
        margin-top: -8rem;
        margin-bottom: 9.6rem;
    }

    .news-item {
        width: 61.2rem;
        max-width: 100%;
        height: auto;
        min-height: 48.6rem;
        margin-inline: auto;
    }

    .news-item-frame {
        background-image: url(../../images/list_pages/sp/news_frame.webp);
    }

    .news-item-thumb,
    .news-item-detail {
        width: 59.1rem;
    }

    .news-item-thumb {
        height: 33rem;
    }

    .news-item-detail {
        height: 13rem;
        padding: 0.5rem 1rem 1rem;
    }

    .news-schedule,
    .news-item-title {
        width: 100%;
        max-width: 56rem;
        font-size: 2.8rem;
    }

    .news-schedule {
        font-size: 2.6rem;
        white-space: normal;
    }

    .news-item-title {
        max-height: 7rem;
    }

    .news-pagination-btn {
        flex: 0 0 auto;
        width: auto;
        gap: 1.6rem;
    }

    .news-pagination-pages {
        gap: 2.5rem;
    }

    .news-pagination-pages .page-numbers {
        font-size: 3rem;
    }

    .news-pagination-btn-label {
        width: 2rem;
        font-size: 2.8rem;
        letter-spacing: -0.5rem;
        margin-bottom: -0.5rem;
    }

    .news-pagination-star {
        width: 2rem;
        height: 2.2rem;
    }

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

}
