@charset "utf-8";

/*==========================
コンテンツ
==========================*/
.NewsNav {
    display: flex;
    justify-content: center;
    margin: 35px 0;
    gap: 10px;
}

.NewsNav a {
    position: relative;
    color: var(--primary-grayLow);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.NewsNav a::after {
    content: "";
    position: absolute;
    left: calc(50% - 15px);
    /* 中央配置 */
    bottom: -5px;
    /* 文字のすぐ下に配置 */
    width: 0;
    /* 初期状態では非表示 */
    height: 2px;
    background-color: var(--primary-black);
    transition: width 0.3s ease;
}

.NewsNav a:hover,
.NewsNav a.active {
    color: var(--primary-black);
}

.NewsNav a:hover::after,
.NewsNav a.active::after {
    width: 30px;
    /* ホバー・選択時に左から右へ伸びる */
}

/*==========================
news
==========================*/
.section-topNews {
    padding-bottom: 50px;
}

.topNews__list {
    margin-top: 30px;
}

.topNews__item {
    border-bottom: 2px solid var(--primary-gray);
    position: relative;
    width: 100%;
}

.topNews__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
}

.topNews__link:hover {
    background-color: #CDD9E3;
}

.topNews__contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
}

/* 
.topNews__head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
} */

.topNews__category,
.post-categories a {
    padding: 0px 5px;
    border-radius: 7px;
    border: 1px solid var(--primary-grayLow);
    color: var(--primary-grayLow);
    text-align: center;
    font-size: 1.5rem;
    margin-left: 15px;
}


.btnArrow--topNewsContents {
    /* border: 1px solid #DC4405; */
    background-color: transparent;
}

.topNews__link:hover .btnArrow--topNewsContents svg:first-child {
    left: 200%
}

.topNews__link:hover .btnArrow--topNewsContents svg:last-child {
    left: 50%
}

/* btn */
.topNews__btn {
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
}

.topNews__btn--link {
    width: 300px;
    background: var(--primary-white);
    position: relative;
    box-shadow:
        2px 8px 14px 0px rgba(0, 48, 87, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px 15px 34px;
    border-radius: 50px;
    background-color: var(--primary-white);
    transition-duration: .5s;
    transition-timing-function: cubic-bezier(.165, .84, .44, 1)
}

.topNews__btn--link:hover {
    background: #CDD9E3;
    box-shadow: 8px 8px 14px 0px rgba(0, 48, 87, 0.03);
}

.topNews__btn--link:hover .btnArrow svg:first-child {
    left: 200%
}

.topNews__btn--link:hover .btnArrow svg:last-child {
    left: 50%
}

/* paagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 65px 0 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 7px;
    background: #F3F3F3;
}

.pagination .current {
    /* font-weight: bold; */
    background: #CDD9E3;
}

.pagination a.prev,
.pagination a.next {
    background: none;
}



/*------pc 1100------*/
@media screen and (min-width: 1100px) {

    .NewsNav {
        gap: 30px;
        margin: 50px 0;
    }

    /* topNews */
    .section-topNews {
        padding-bottom: 100px;
    }

    .topNews__list {
        margin-top: 50px;
    }

    .topNews__contents {
        flex-direction: row;
        justify-content: space-between;
        padding: 30px 10px;
        gap: 30px;
    }

    .topNews__category {
        gap: 15px;
    }

    .topNews__btn {
        margin-top: 30px;
    }

}