.font-weight-500 {
    font-weight: 500;
}

.mainvisual-section {
    margin-bottom: 60px;
}

.mainvisual-section__bg {
    width: 100%;
    height: 320px;
    background-image: url(../images/4news/news_mainvisual.jpg);
    background-position: 0 15%;
    background-repeat: no-repeat;
    background-size: cover;
}

.mainvisual-section__filter {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    position: relative;
}

.mainvisual-section__filter h1 {
    width: 100%;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 3.0rem;
    color: #fff;
    font-size: 4.5rem;
    font-weight: 400;
}

@media(max-width:600px) {
    .mainvisual-section {
        margin-bottom: 40px;
    }
    .mainvisual-section__filter h1 {
        line-height: 2.4rem;
        font-size: 3.2rem;
    }
}

.article-area {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 160px;
}

.category {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 112px;
    font-size: 2.0rem;
    font-weight: 500;
}

.category li p {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.category-hover p:after {
    position: absolute;
    bottom: -5px;
    left: 0%;
    content: "";
    width: 100%;
    height: 5px;
    background: #2F7B38;
    border-radius: 5px;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform .3s;
}

.category-hover p:hover::after {
    transform: scale(1, 1);
}

.display p::after {
    position: absolute;
    bottom: -5px;
    left: 0%;
    content: "";
    width: 100%;
    height: 5px;
    background: #2F7B38;
    border-radius: 5px;
}

.article-flex {
    margin-bottom: 80px;
}

.article {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 50px;
    row-gap: 80px;
    list-style: none;
}

.article-img {
    width: 100%;
}

.article-img-area {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
    position: relative;
}

.article-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-category {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.4rem;
    font-weight: 500;
    background-color: #fff;
    padding: 0 10px;
    border: #59423C 1px solid;
}

.article-img p {
    text-align: left;
}

.time {
    font-size: 1.4rem;
}

.pagenation__list {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 15px;
    list-style: none;
    justify-content: center;
    align-items: center;
}

.pagenation__list img {
    width: 8px;
}

.number,
.arrow {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border: #59423C 2px solid;
}

.number {
    padding-top: 3px;
}

.arrow {
    padding-top: 5px;
}

.selected {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding-top: 5px;
    color: #fff;
    background-color: #2F7B38;
}

.number:hover,
.arrow:hover {
    opacity: .5;
}

.article a:hover {
    opacity: .5;
}


/* ページネーション */

.nav-links {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 0;
    line-height: 1;
}

.nav-links a {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    background-color: #59423C;
    color: #fff;
    box-sizing: border-box;
    border: 2px solid #59423C;
    margin: 10px;
    transition: 0.5s;
}

.nav-links a:hover {
    background-color: rgba(0, 0, 0, 0);
    color: #59423c;
    margin: 10px;
}

.nav-links span {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    color: #59423c;
    border: 2px solid #59423C;
    margin: 10px;
}

.page-numbers.dots {
    display: inline-block;
    width: auto;
    color: #59423c;
    border: none;
    padding: 10px 0;
    margin: 10px;
}

@media (max-width:1080px) {
    .category {
        margin: 0 auto 68px;
    }
    .article-area {
        width: 70vw;
    }
    .article {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }
    .pagination {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        padding: 0;
        line-height: 1;
    }
}

@media (max-width:600px) {
    .article-area {
        width: 100%;
        box-sizing: border-box;
        padding: 0 24px;
        margin-bottom: 80px;
    }
    .category {
        font-size: 1.6rem;
        width: 100%;
        max-width: 350px;
        column-gap: 15px;
        margin: 0 auto 68px;
    }
    .article {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }
    .pagination {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        padding: 0;
        line-height: 1;
    }
}

@media (max-width:362px) {
    .category {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
    }
}