@charset "utf-8";

.news{
  margin:5rem 0 10rem;
}

.news .container{
  max-width:1345px;
}

.news-cate{
  margin: 0 0 2.5rem;
  display: flex;
  align-items: center;
  gap:2.5rem;
  flex-wrap: wrap;
}

.news-cate a{
  padding: 8px 1.5rem;
  display: block;
  border-radius:16px;
  background-color:#FFFFFF;
  text-align: center;
  line-height: 1;
  font-weight:bold;
  font-size:clamp(0.875rem, 0.739rem + 0.45vw, 1.25rem);
}

.news-cate a:hover{
  opacity:0.7;
}
.news-cate a p{
  line-height:1;
}

.news-cate .webgene-blog{
  display: flex;
  align-items: center;
  gap:2.5rem;
  flex-wrap: wrap;
}

.news-main .webgene-blog{
  display:flex;
  gap:2.5rem 5%;
  flex-wrap: wrap;
  align-items: stretch;
}

.news-main .webgene-blog article{
  width:calc( 85% / 4 ) ;
}

.news-main .webgene-blog article > a{
  width: 100%;
  display: block;
  height: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid;
}

.news-main  .newsDetailImg{
  position: relative;
  aspect-ratio: 283 / 161;
  overflow: hidden;
}

.news-main .newsDetailImg > img{
  position: relative;
  z-index:10;
}

.news-main  .newsDetailImg span{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.news-main  .newsDetailImg img{
  object-fit:cover;
  aspect-ratio: 370 / 220;
}

.news-main .webgene-blog article > a:hover{
  opacity:0.7;
}

.news-main .webgene-blog article .newsItemTit{
  font-size:1rem;
  line-height: 1.5;
}

.newsItemTime{
  font-size:14px;
}

.newsItemText{
  display:flex;
  margin: 20px 0 10px;
  gap: 1rem;
  align-items: center;
}

.newsItemCate{
  padding: 4px 1rem;
  display: block;
  border-radius:12px;
  background-color:#FFFFFF;
  font-size:10px;
  line-height: 1;
}

@media screen and (max-width: 1279px) {
  .news-main .webgene-blog article {
    width: 47.5%;
  }
}

@media screen and (max-width: 1024px) {
  .news-cate {
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-cate-box{
    width: 100%;
    gap: 1rem;
  }
  .news-cate a{
    width:fit-content;
  }
  .news-cate .webgene-blog {
    gap: 1rem;
  }
  .news-cate div.cate p {
    margin-right: 1rem;
  }
  .news-main .newsTextWrap{
    width:100%;
  }
}

@media screen and (max-width: 767px) {
  .news-cate-box {
    width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-main .newsDetailImg {
    width: 100%;
  }
  .news-cate {
    flex-wrap: wrap;
    width:100%;
  }
  .news-cate .webgene-blog{
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
  .news-main .webgene-blog{
    gap: 2rem 0;
  }
  .news-main{
    width: 95%;
    margin: 0 auto;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
  .news-cate a {
    padding: 0.5rem;
    min-width: 150px;
  }
  .lower-fv{
    margin-bottom:1.5rem;
  }
  .news{
    margin:1.5rem 0 10rem;
  }
}

/*ページネーション*/
.webgene-pagination {
  width: 100%;
  grid-column: 1 / 3;
}
.webgene-pagination>ul {
  display: flex;
  padding: 0;
  justify-content: center;
}
.webgene-pagination>ul>li {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 10px 0;
  list-style: none;
}
.webgene-pagination>ul>li a{
  width: 27px;
  height: 27px;
  text-align: center;
  color:#000000;
}
.webgene-pagination>ul>li.selected a{
  color:#0064EB !important;
  border-bottom:1px solid;
}

.webgene-pagination>ul>li.selected a,
.webgene-pagination>ul>li.selected a:hover,
.webgene-pagination>ul>li.selected:hover a{
  color:#0064EB !important;
}
.webgene-pagination>ul>li:hover{
  color:#000000;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#000000 !important;
}

.webgene-pagination>ul>li.next a,
.webgene-pagination>ul>li.prev a{
  color:#000000 !important;
  font-size: 14px;
}

.webgene-pagination>ul>li.next a:hover,
.webgene-pagination>ul>li.prev a:hover{
  color:#000000 !important;
}

@media screen and (min-width: 768px) {
  .webgene-pagination {
    width: 100%;
    grid-column: 1 / 4;
  }
}
@media screen and (max-width: 767px) {
}


/*詳細*/

.news-detail{
  max-width: 1152px;
  margin: 0 auto;
  padding:2rem 5% 5rem;
  background:#fff;
}

.news-detail .arrow-btn{
  margin-top:2.5rem;
}

.news-detail > div{
  max-width:840px;
  margin:0 auto;
}

.news-detail .webgene-blog{
  padding:2rem 0 2.5rem;
  border-bottom:2px solid #004EA4;
}

.newsDetail-header{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.newsDetail-header p:nth-child(2){
  padding: 4px 1rem;
  display: block;
  border-radius: 10px;
  border:1px solid #004EA4;
  font-size: 14px;
  line-height: 1;
}

.news-detail  .newsDetailTit{
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
  margin: 1rem 0 2rem;
  line-height: 1.5;
  padding-bottom:1.5rem;
  border-bottom:1px solid #004EA4;
}

.news-detail .newsDetailImg img{
  margin:0rem 0 2.5rem;
  aspect-ratio: 320 / 180;
  object-fit: cover;
}

.news-detail .newsDetailTxt{
  line-height: 2;
}

@media screen and (max-width: 1400px) {
  .news-main .webgene-blog article {
    width: calc(90% / 3);
  }
}

@media screen and (max-width: 1279px) {

}

@media screen and (max-width: 1024px) {
  .news-main .webgene-blog article {
    width: calc(95% / 2);
  }
}

@media screen and (max-width: 767px) {
  .news-main .webgene-blog article {
    width: 100%;
  }
  .newsDetail-header p:nth-child(2) {
    padding: 3px 0.8rem;
    font-size: 12px;
  }
  .newsDetail-header{
    gap:1rem;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 20px;
  }
  .news-detail  .newsDetailTit{
    margin: 0.5rem 0 20px;
  }
  .news-detail .newsDetailTxt{
    font-size:12px;
  }
  .news-detail{
    padding: 2rem 5% 3rem;
  }
}
