@charset "utf-8";

.news.container{
  max-width:1152px;
  margin-bottom:7.5rem;
}

.news-cate{
  border-bottom:1px solid #939393;
  padding-bottom:3rem;
  margin-bottom:3rem;
}

.news-cate > p{
  font-size:14px;
  font-weight:bold;
  color:#1F2C5C;
  margin-bottom:2rem;
}

.news-cate-box{
  display: flex;
  align-items: flex-start;
  gap: 2rem 3rem;
  flex-direction: column;
}


.news-cate a{
  padding: 0.7rem 3rem ;
  text-align: center;
  min-width:120px;
  line-height: 1;
  border:2px solid #1F2C5C;
  color:#1F2C5C;
  font-weight:bold;
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
}

.news-cate-box > a p{
  line-height:1;
}


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

.news-main{
  margin:8rem auto 0;
}

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

.news-main .webgene-blog article > a{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
}

.news-main .webgene-item{
  margin-bottom:20px;
}

.news-main .webgene-blog .newsDetailImg {
  margin: 0;
  width: 30%;
  position:relative;
  overflow:hidden;
  aspect-ratio: 345 / 195;
}

.news-main .webgene-blog .newsDetailImg img{
  transition:0.3s;
  aspect-ratio: 345 / 195;
  object-fit:cover;
}

.news-main .webgene-blog article > a:hover .newsDetailImg img{
  transform:scale(1.1);
}

.news-main .webgene-blog .newsDetailImg > img{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  z-index:10;
}

.news-main .webgene-blog .newsTextWrap{
  width:65%;
  color:#1F2C5C;
  border-bottom:2px solid #1F2C5C;
  padding-bottom:20px;
}

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


.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
}

.newsItemText{
  display:flex;
  gap: 20px;
  align-items: center;
  font-weight:bold;
  margin-bottom:20px;
  font-size:12px;
}

.newsItemCate{
  padding:4px 1rem;
  border:2px solid ;
  font-size:12px;
  line-height:1;
}


@media screen and (max-width: 1024px) {
  .news-cate-box{
    width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-cate .webgene-blog {
    gap: 1rem;
    justify-content: start;
  }
  .news-main .webgene-blog .newsTextWrap{
    flex-direction: column;
    align-items: flex-start;
    gap:1rem;
  }
  .newsItemText,
  .news-main .webgene-blog article .newsItemTit{
    width: 100%;
  }
  .news-main {
    margin: 3rem auto 0;
  }
}

@media screen and (max-width: 767px) {
  .news-cate-box {
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-cate {
    margin-bottom: 2rem;
  }
  .news-main .webgene-blog article{
    width:100%;
    margin-bottom: 2rem;
  }
  .news-cate a {
    padding: 0.8rem 0.5rem;
    font-size:14px;
  }
  .news-cate > p {
    margin-bottom: 0.5rem;
  }
  .bg-gray h1 {
    margin-bottom: 4rem;
  }
  .newsItemCate {
    padding: 6px 1rem;
    font-size: 12px;
  }
  .newsItemText{
    font-size: 12px;
    gap: 1rem;
    margin-bottom: 12px;
  }
  .news-main .webgene-blog .newsDetailImg {
    width: 100%;
  }
  .news-main .webgene-blog .newsTextWrap{
    gap:0.5rem;
    width: 100%;
  }
  .news-main .webgene-blog article > a{
    gap: 1.5rem;
    flex-direction: column;
  }
}

/*ページネーション*/
.webgene-pagination {
  width: 100%;
  margin-top:100px;
}
.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{
  border-radius:0px;
  width: 30px;
  height: 48px;
  text-align: center;
  display:flex;
  justify-content: center;
  align-items: center;
  background-color:transparent;
  color:#1F2C5C !important;
  font-weight:bold;
  font-size:clamp(1.25rem, 0.977rem + 0.91vw, 2rem);
}
.webgene-pagination>ul>li.selected a{
  color:#1F2C5C !important;
  border-bottom:2px solid #1F2C5C;
}

.webgene-pagination>ul>li.next a,
.webgene-pagination>ul>li.prev a{
  font-size: 16px;
}

@media screen and (min-width: 768px) {
  .webgene-pagination {
    width: 100%;
    grid-column: 1 / 4;
  }
}
@media screen and (max-width: 767px) {
  .webgene-pagination>ul>li {
    margin-top:1rem;
  }
  .webgene-pagination>ul>li a {
    width: 40px;
    height: 40px;
    padding: 4px 0;
  }
  .webgene-pagination>ul>li.next a, .webgene-pagination>ul>li.prev a{
    font-size:14px;
  }
  .webgene-pagination{
    margin-top: 50px;
  }
}


/*詳細*/

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

.news-detail .webgene-blog{
  margin:0 auto 4rem;
  padding-bottom:5rem;
  border-bottom:2px solid #1F2C5C;
}


.newsDetailTit{
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
  line-height: 1.5;
  padding-bottom:2rem;
  color:#1F2C5C;
  border-bottom:2px solid #1F2C5C;
}

.news-detail .newsDetailTxt{
  line-height: 2;
  color:#1F2C5C;
}

.newsDetailTxt img {
  width: auto;
  display: inline;
}

.newsDetailCate{
  padding:6px 1.5rem;
  font-size:12px;
  border:2px solid;
  line-height:1;
}

.newsdetail .webgene-blog{
  margin-bottom:2.5rem;
  border-radius: 8px;
  border-top: 8px solid #0881E4;
  padding: 2rem 5%;
  box-shadow:0px 3px 6px rgba(0,0,0,0.16);
}

.newsDetailImg{
  margin: 2.5rem auto;
}

.news-detail .newsDetailImg img{
  aspect-ratio:16/9;
  object-fit:cover;
}

.news-detail .btn{
  margin-top:100px;
}

@media screen and (max-width: 767px) {
  .newsDetail-header{
    margin-bottom:1rem;
    font-size: 12px;
  }
  .newsDetailCate{
    padding: 4px 1rem;
    font-size: 12px;
  }
  .newsDetailImg {
    margin: 1.5rem auto;
  }
  .news-detail .btn{
    margin-top:3rem;
  }
}
