@charset "UTF-8";

/* =============================
main
============================= */
body {
    display: none;
}

.main {
    margin: 45px 0 0;
    width: 100%;
}

.main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 100vw;
    height: 100vh;
    background-image: url(../images/color_bg.png);
    background-repeat: no-repeat;
    background-size: 72.1vh auto;
    background-position: center center;
}

.contents {
    padding: 0 10.6% 80px;
}

.news__topic {
    width: 38%;
    max-width: 150px;
    margin-bottom: 30px;
}

.news__contents {
    display: flex;
    justify-content: space-between;
    width: fit-content;
    gap: 10px;
}

.news__contents--item {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.198px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.news__contents--item.active {
    opacity: 1;
    font-weight: bold;
}

.newsList__item {
    padding: 3.69vh 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.70);
}

.newsList__cd {
    display: flex;
    gap: 2.37%;
}

.newsList__category {
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.16px;
    font-weight: 400;
    padding: 0 1.69%;
    border: 1px solid #000;
}

.newsList__date {
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.16px;
}

.newsList__topic {
    margin-top: 1.84vh;
}

.newsList__topic p {
    font-size: 1.1rem;
    line-height: 1.5;
    letter-spacing: 0.22px;
}

.arrow {
    margin: 3.44% auto 0;
    width: fit-content;
}

.arrow img {
    height: 1.84vh;
}

.pager {
    display: none;
}

/* main pc */
@media screen and (min-width:769px) {
    .main {
        background-image: url(../images/color_bg.png);
        background-size: auto 82.7vh;
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed;
        margin: 22px 0;
        padding-top: 32px;
        width: 100%;
        min-height: 81.5vh;
    }

    .main::before {
        display: none;
    }

    .contents {
        padding: 0 0 30px;
    }

    .contents__flex {
        height: inherit;
        margin: 0 9.72% 2.63vh;
        padding-right: 2.94%;
        display: flex;
        gap: 3%;
    }

    .newsBar {
        width: 10%;
        position: fixed;
    }

    .news__topic {
        margin-bottom: 70px;
        min-width: 183px;
        width: fit-content;
    }

    .news__topic img {
        height: 30px;
    }

    .news__contents {
        display: block;
        width: 200px;
        margin-left: auto;
    }

    .news__contents--item {
        width: fit-content;
        margin-bottom: 2.44vh;
        font-size: 1.7rem;
        line-height: 1.5;
        letter-spacing: -0.352px;
    }

    .newsList {
        padding: 2.92vh 0;
        width: 78.62%;
        margin-left: 20%;
    }

    .newsList__item {
        position: static;
        display: flex;
        padding: 0 0;
        height: 90px;
        gap: 8%;
        align-items: center;
    }

    .newsList__cd {
        align-items: center;
        justify-content: space-between;
        gap: 0;
        flex: 194;
        width: max-content;
    }

    .newsList__category {
        font-size: 1.4rem;
        line-height: 1.5;
        letter-spacing: 0.28px;
        width: fit-content;
        padding: 0 5px;
        /* padding: 0 1.69%;  */
    }

    .newsList__date {
        width: inherit;
    }

    .newsList__date time {
        font-size: 1.6rem;
        line-height: 1.5;
        letter-spacing: 0.32px;
    }

    .newsList__topic {
        margin-top: 0;
        flex: 419;
    }

    .newsList__topic p {
        font-size: 1.7rem;
        line-height: 1.5;
        letter-spacing: 0.36px;
    }

    .arrow {
        display: none;
    }

    .pager {
        position: absolute;
        bottom: 50px;
        margin-left: 26.94vw;
        display: flex;
        gap: 3.12vw;
        justify-content: space-evenly;
        width: 51.8vw;
    }

    .pagers {
        font-size: 2rem;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: 0.4px;
    }
}

@media screen and (min-width:1200px) {
    .newsList__item {
        gap: 12.5%;
    }
}




/* --- 共通設定 --- */
.newsList__item {
    display: none; /* 初期は全非表示 */
}

/* --- SP（デフォルト）: 10件表示 --- */
@media screen and (max-width: 768px) {
    .newsList__item:nth-child(-n+10) {
        display: block; /* SPはブロック */
    }
}

/* --- PC（769px以上）: 8件表示（リクエストに合わせて8に調整） --- */
@media screen and (min-width: 769px) {
    .newsList__item:nth-child(-n+8) {
        display: flex; /* PCはフレックス */
    }
}

/* --- JSで追加表示される時のクラス --- */
/* 最初は透明にしておき、animationで表示させる */
.newsList__item.is-visible {
    opacity: 0; 
    visibility: hidden;
    animation: fadeInUp 0.8s ease forwards;
}

/* SP用の表示 */
@media screen and (max-width: 768px) {
    .newsList__item.is-visible {
        display: block !important;
        visibility: visible;
    }
}

/* PC用の表示 */
@media screen and (min-width: 769px) {
    .newsList__item.is-visible {
        display: flex !important;
        visibility: visible;
    }
}

/* フェードインアニメーション */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* =============================
footer
============================= */
/* footer pc 縦レイアウト */
@media screen and (min-width:769px) {
    .footer {
        padding: 0 0;
        display: flex;
        /* gap: 0.76%; */
        position: fixed;
        bottom: 12.69vh;
        left: 90.8vw;
        /* right: 5.27%; */
        width: max-content;
        transform: translateX(0);
    }

    .sns {
        margin-bottom: 0;
        flex-direction: column;
        gap: 2.92vh;
        width: fit-content;
    }

    .copy {
        position: absolute;
        left: 58.5px;
        transform-origin: top left;
        transform: rotate(90deg);
        /* transform-origin: 1.56vw; */
        color: var(--primary-lightGrey);
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: -0.286px;
        /* height: fit-content; */
        width: max-content;
    }
}

/* pc 769px */