/* News
-------------------------------------------*/

/* 一覧ページ */

.sec_news{
  width: 100%;
  padding: var(--sec-margin) 0;
  background: rgba(var(--bg-color2-rgb),.7);
}
.sec_news .sec__in{
  width: var(--page-width);
  margin: 0 auto;
  text-align: left;
}
.news__list ul{
  padding-bottom: 6%;
}
.news__list li a{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 10px;
  padding: 3% 0;
  border-bottom: 1px solid #cfcac2;
}
.news__list li a .news_list__head{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 30%;
}
.news__list li a .news_list__head .date,
.news__list li a .news_list__head .cate{
  width: 46%;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: .075em;
}
.news__list li a .news_list__head .cate{
  height: 34px;
  line-height: 32px;
  border-radius: 17px;
  font-size: clamp(10px,1.538vw,13px);
  text-align: center;
  border: 1.5px solid;
  background-color: #fff;
}
.news__list li a .tit{
  width: calc(70% - 10px);
  font-weight: 500;
}
.news__list li a:hover{
  color: var(--red);
}
.news__list li a:hover .tit{
  text-decoration: underline;
}
.top_news .morebtn a{
  margin: 0 0 0 auto;
}

@media screen and (max-width:800px){
  
  .news__list li a .news_list__head{
    width: 15%;
    row-gap: 4px;
    align-content: flex-start;
  }
  .news__list li a .news_list__head .date{
    width: 100%;
  }
  .news__list li a .news_list__head .cate{
    width: auto;
    padding: 0 14px;
    height: 28px;
    line-height: 26px;
    border-radius: 14px;
  }
  .news__list li a .tit{
    width: calc(85% - 10px);
  }
}

@media screen and (max-width:650px){
  
  .news__list li a{
    padding: 6% 0;
  }
  .news__list li a .news_list__head{
    width: 20%;
  }
  .news__list li a .news_list__head .cate{
    padding: 0 10px;
    height: 24px;
    line-height: 22px;
    border-radius: 12px;
  }
  .news__list li a .tit{
    width: calc(80% - 20px);
  }
}

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

.pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-family: var(--font-en);
  margin-top: 40px;
}
.page-numbers{
  text-decoration: none;
  position: relative;
}
.page-numbers:hover{
  opacity: var(--hover);
}
.page-numbers.current{
  color: var(--red);
  font-weight: bold;
}
.page-numbers.current::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--red);
}
.prev.page-numbers,
.next.page-numbers{
  line-height: 1;
}
.prev.page-numbers:hover,
.next.page-numbers:hover{
  opacity: var(--hover);
}

@media screen and (max-width: 650px){
  .pagination{
    width: 100%;
    margin: 40px auto;
  }
  .nav-links{
    gap: 20px 8px;
  }
}

/* 個別ページ */

.sec_news__in{
  width: min(740px,84%);
  margin: 0 auto;
  text-align: left;
}
.sec_news__in .news_head{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 20px;
  width: 100%;
}
.sec_news__in .news_head .date,
.sec_news__in .news_head .cate{
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: .075em;
}
.sec_news__in .news_head .cate{
  height: 34px;
  line-height: 32px;
  border-radius: 17px;
  padding: 0 24px;
  font-size: clamp(10px,1.538vw,13px);
  text-align: center;
  border: 1.5px solid;
  background-color: #fff;
}
.sec_news__in .tit{
  width: 100%;
  font-weight: 500;
  line-height: 1.75;
  font-size: clamp(14px,2.154vw,21px);
  padding: 4% 0 3%;
  border-bottom: 1px solid #ccc;
}
.news_article{
  width: 100%;
  padding: 5% 0;
}
.news_article p + .wp-block-image,
.news_article .wp-block-image + p{
  padding: 3% 0;
}
.news_article img + img{
  padding: 3% 0;
}
.wp-block-gallery{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 3% 0;
}
.wp-block-gallery .wp-block-image{
  width: 32%;
}
.sec_news__in .morebtn{
  padding-top: 5%;
}

@media screen and (max-width: 650px){
  
  .sec_news__in .news_head .cate{
    padding: 0 10px;
    height: 24px;
    line-height: 22px;
    border-radius: 12px;
  }
  .sec_news__in .tit{
    padding: 4% 0;
  }
  .news_article{
    width: 100%;
    padding: 5% 0;
  }
  .news_article p + .wp-block-image,
  .news_article .wp-block-image + p{
    padding: 3% 0;
  }
  .news_article img + img{
    padding: 3% 0;
  }
  .wp-block-gallery .wp-block-image{
    width: 100%;
  }
  .sec_news__in .morebtn{
    padding: 6% 0 10%;
  }
}