@charset "utf-8";

.policy p{
  margin:1rem 0;
  line-height: 2;
}

.policy h2{
  font-size:clamp(1.125rem, 0.989rem + 0.45vw, 1.5rem);
  margin:2.5rem 0 1rem;
}

.policy a{
  color: #000 !important;
}


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

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

.news-cate a{
  padding: 8px 1.5rem;
  min-width:160px;
  display: block;
  border-radius:13px;
  text-align: center;
  line-height: 1;
  font-weight:bold;
  border:1px solid #FFFFFF;
  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:5rem 5%;
  flex-wrap: wrap;
  align-items: stretch;
}

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

.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: 408 / 250;
  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: 408 / 250;
}

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

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

.newsItemTime{
  font-size:14px;
}

.newsItemText{
  display:flex;
  margin: 20px 0 10px;
  gap: 1rem;
  align-items: center;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.newsItemCate{
  padding: 2px 1rem;
  display: block;
  border-radius:12px;
  border:1px solid #fff;
  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;
  }
}

/*ページネーション*/
.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: 26px;
  height: 50px;
  text-align: center;
  color:#fff;
  font-size:clamp(1.5rem, 1.318rem + 0.61vw, 2rem);
}
.webgene-pagination>ul>li.selected a{
  color:#fff !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:#fff !important;
}
.webgene-pagination>ul>li:hover{
  color:#fff;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#fff !important;
}

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

.webgene-pagination>ul>li.next a:hover,
.webgene-pagination>ul>li.prev a:hover{
  color:#fff !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:2.5rem 5% 5rem;
  background:#fff;
  color:#000;
}

.newsDetail-header{
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

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

.news-detail  .newsDetailTit{
  font-size:clamp(1.125rem, 0.989rem + 0.45vw, 1.5rem);
  margin: 20px 0 2.5rem;
  line-height: 1.5;
}

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

.news-detail .newsDetailTxt{
  line-height: 2;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

@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;
  }
}
