@charset "utf-8";

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

.news-cate{
  width:80%;
  margin: 0 auto 4rem;
  max-width:1345px;
}

.news-cate > p{
  font-weight:bold;
  padding: 0 0 0 1.5rem;
  position: relative;
  margin-bottom:2rem;
}

.news-cate > p::after {
  position: absolute;
  content: "";
  width: 8px;
  height: 26px;
  background: #243374;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

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

.news-cate a{
  padding: 21px ;
  text-align: center;
  width:180px;
  border: 2px solid;
  position: relative;
  line-height: 1;
}

.news-cate a::before {
  content: "";
  position: absolute;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.news-cate a:hover{
  opacity:0.7;
}

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

.news-main{
  width:80%;
  margin:0 auto;
  max-width:1345px;
}

.news-main a{
  color:#000000 !important;
}

.news-main .webgene-blog{
  display: flex;
  gap:5rem 2rem;
  flex-wrap:wrap;
}

.news-main .webgene-blog article{
  width:calc((100% - 4rem)/3)
}

.news-main .webgene-blog article > a{
  border-bottom: 1px solid #000000;
  padding: 0 0 10px;
  display:flex;
  justify-content: space-between;
  flex-direction: column;
}

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

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


.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(1rem, 0.955rem + 0.15vw, 1.125rem);
  padding: 0px 10px 0px 1.5rem;
  position: relative;
}

.news-main .webgene-blog article .newsItemTit::after {
  position: absolute;
  content: "";
  width: 8px;
  height: 26px;
  background: #243374;
  top: 2px;
  left: 0%;
}

.newsItemText{
  display:flex;
  margin: 20px 0 1rem;
  gap: 1rem;
  align-items: center;
  color:#243374;
  font-weight:bold;
}


@media screen and (max-width: 1024px) {
  .news-cate-box{
    width: 100%;
    gap: 1rem;
  }
  .news-cate .webgene-blog {
    gap: 1rem;
  }
  .news-main .webgene-blog article {
    width: calc((100% - 2rem) / 2);
}
}

@media screen and (max-width: 767px) {
  .news-cate-box {
    width: 90%;
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
    .news-main .webgene-blog article {
    width: 100% ;
}
  .news-cate {
    width:90%;
  }
  .news-cate .webgene-blog{
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .news-main .webgene-blog{
        gap: 3rem;
  }
  .news-main{
    width:90%;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
  .news-cate a {
        width: 140px;
        padding: 1.2rem 0;
  }
}

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

.webgene-pagination>ul>li.selected a,
.webgene-pagination>ul>li.selected a:hover,
.webgene-pagination>ul>li.selected:hover a{
  color: #243374 !important;
}
.webgene-pagination>ul>li:hover{
  color: #243374;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color: #243374 !important;
  border:2px solid  #243374;
}

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

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

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


/*詳細*/
.news-detail{
  background:#FAFAFA;
  padding:5rem 0 7.5rem;
}


.newsDetail-header{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color:#243374;
  font-weight:bold;
  margin-bottom:1.5rem;
}


.news-detail .border-btn{
  margin:3rem auto 0;
}

.news-detail .webgene-blog{
  background:#fff;
  width:80%;
  margin:0 auto;
  padding:3rem 5%;
  max-width:1345px;
}


.news-detail  .newsDetailTit{
  font-size:clamp(1.125rem, 0.989rem + 0.45vw, 1.5rem);
  margin: 0.5rem 0 2rem;
  line-height: 1.5;
  padding:0 10px 10px 2rem;
  border-bottom:1px solid #000000;
  position:relative;
}

.news-detail  .newsDetailTit::after {
    position: absolute;
    content: "";
    width: 8px;
    height: 26px;
    background: #243374;
    top: 4px;
    left: 0%;
}

.news-detail .newsDetailImg img{
  margin:0rem 0 2.5rem;
}

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

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

@media screen and (max-width: 767px) {
  .news-detail {
    padding: 3rem 0 5rem;
  }
.news-detail .webgene-blog{
  width:90%;
  }
}
