@charset "utf-8";

section {
    position: relative;
    background-color: #fff;
    overflow: hidden;
    padding: 12.5% 0 3.4%;
}
@media print, screen and (max-width: 768px) {
    section {
        padding: 37.3vw 0 13.4vw;
    }
}

/* ==============================
   Background decoration
============================== */
.news-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 63.8%; /* 1225/1920 */
    aspect-ratio: 245 / 93;
    z-index: 0;
    pointer-events: none;
}

.news-bg--bottom {
    top: auto;
    bottom: 0;
    right: 0;
    left: auto;
    width: 65.7%; /* 1263/1920 */
    aspect-ratio: 421 / 138;
}
@media print, screen and (max-width: 768px) {
    .news-bg {
        width: 100%;
        aspect-ratio: unset;
    }
    .news-bg--bottom {
        display: none;
    }
}

/* ==============================
   Section head
============================== */
.news-section-head {
    text-align: center;
    margin-bottom: 3.9%;
}
.news-section-head .news-section-heading {
    font-size: min(4.8rem, 2.5vw);
    font-weight: 500;
    letter-spacing: 0.15em;
    line-height: 1;
}

.news-section-head .news-section-subheading {
    font-size: min(2.4rem, 1.25vw);
    color: #8d8d8d;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 0.66em;
}
@media print, screen and (max-width: 768px) {
    .news-section-head {
        margin-bottom: 12.2vw;
    }
    .news-section-head .news-section-heading {
        font-size: 6.6vw;
    }

    .news-section-head .news-section-subheading {
        margin-bottom: 0.35em;
        font-size: 3.7vw;
    }
}

/* ==============================
   News list (index)
============================== */
.news-list {
    display: flex;
    justify-content: flex-start;
    width: 59.37%; /* 1140/1920 */
    max-width: 1140px;
    margin: 0 auto 5.8%;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.news-item {
    width: 31.4%;
    max-width: 360px;
    margin-right: 2.8%;
}

.news-item:nth-child(3n) {
    margin-right: 0;
}

.news-item:nth-child(n + 4) {
    margin-top: 6.5%;
}

.news-item-link {
    display: block;
    text-decoration: none;
    color: #000;
}

.news-item-link:hover .news-image img {
    transform: scale(1.05);
}

.news-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    transition: transform 0.4s ease;
    /* vertical-align: bottom; */
    position: absolute;
    top: 0;
    left: 0;
}

.news-body {
    padding-top: 1.04em;
}

.news-date {
    font-size: min(1.6rem, 0.83vw);
    letter-spacing: 0.05em;
    color: #000;
}

.news-title {
    font-size: min(2rem, 1.04vw);
    letter-spacing: 0.1em;
    line-height: 1.8;
    color: #000;
}
@media print, screen and (max-width: 768px) {
    .news-list {
        flex-direction: column;
        width: 84.68vw; /* 317.55/375 */
        max-width: 84.68vw;
        margin: 0 auto 13.95vw;
    }

    .news-item {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .news-item + .news-item,
    .news-item:nth-child(n + 4) {
        margin-top: 10.5vw;
    }

    .news-image {
        aspect-ratio: 317 / 211;
    }

    .news-body {
        padding-top: 1.04em;
    }

    .news-date {
        font-size: 3.2vw;
    }

    .news-title {
        font-size: 4.2vw;
        letter-spacing: 0.1em;
        line-height: 1.8;
        color: #000;
    }
}

/* ==============================
   Pagination
============================== */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 1.2em;
    margin-bottom: 9.2%;
}

.news-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: min(2.1rem, 1.09vw);
    width: 1.71em;
    height: 1.9em;
    background-image: url(../images/news/decor-pager.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.news-pagination-link.active {
    color: #FFF;
    background-image: url(../images/news/decor-pager-active.svg);
}
@media print, screen and (max-width: 768px) {
    .news-pagination {
        gap: 7vw;
        margin-bottom: 26.8vw;
    }

    .news-pagination-link {
        font-size: 3.7vw;
        width: 6.5vw;
        height: 7.3vw;
    }
}

/* ==============================
   Back to top
============================== */
.back-to-top {
    text-align: center;
    margin-top: 3.9%;
}

.back-to-top-link {
    display: inline-flex;
    align-items: center;
    gap: 2em;
    font-size: min(2.4rem, 1.25vw);
    font-weight: 500;
    letter-spacing: 0.2em;
}

.back-to-top .more-arrow::before {
    right: auto;
    left: 35%;
    transform: translateY(-50%) rotate(180deg);
    transition: left .3s;
}

.back-to-top-link:hover .more-arrow::before {
    left: 5%;
}
@media print, screen and (max-width: 768px) {

    .back-to-top {
        margin-top: 0;
    }

    .back-to-top-link {
        display: inline-flex;
        align-items: center;
        gap: 1.81em;
        font-size: 4.2vw;
        letter-spacing: 0.25em;
    }
}

/* ==============================
   Detail page
============================== */
#news-detail .news-section-head {
    margin-bottom: 1.6%;
}

.news-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.8%;
}

.news-head {
    display: flex;
    align-items: center;
    margin-bottom: 5.4%;
    padding-bottom: 1%;
    border-bottom: 1px solid #000;
}

.news-head-category {
    font-size: min(2.4rem, 1.25vw);
    color: #8D8D8D;
    margin-right: 1em;
}

.news-head-date {
    font-size: min(1.6rem, 0.83vw);
    color: #000;
}

.news-content p {
    font-size: min(2rem, 1.04vw);
    line-height: 2;
    color: #000;
    letter-spacing: 0.1em;
}

.news-content img + p,
.news-content p + p {
    margin-top: 1.2em;
}

.news-wrapper + .back-to-top {
    margin-top: 14.2%;
}
@media print, screen and (max-width: 768px) {
    #news-detail .news-section-head {
        margin-bottom: 5vw;
    }
    .news-section-head .news-section-heading {
        max-width: 84.8vw;
        margin: 0 auto;
        line-height: 1.2;
    }

    .news-wrapper {
        max-width: 84.8vw;
        margin: 0 auto;
        padding: 0;
    }

    .news-head {
        margin-bottom: 5.3vw;
        padding-bottom: 1.8vw;
    }

    .news-head-category {
        font-size: 3.7vw;
    }

    .news-head-date {
        font-size: 3.2vw;
    }

    .news-content p {
        font-size: 4.2vw;
    }

    .news-content img + p,
    .news-content p + p {
        margin-top: 1.35em;
    }

    .news-wrapper + .back-to-top {
        margin-top: 14.6vw;
    }
}
