@charset "utf-8";

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

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

.news-cate-box{
  display: flex;
  align-items: center;
  gap:20px;
}


.news-cate a{
  border-radius:2rem;
  padding: 1rem ;
  text-align: center;
  width:180px;
  color: #8E8E8E;
  line-height: 1;
  background:#fff;
  border: 2px solid #8E8E8E;
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
}

.news-cate-box > a{
  border: 2px solid #01A0EA;
  color:#01A0EA;
}

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

.news-cate .webgene-item:nth-child(1) a{
  border: 2px solid #DD1D1E;
  color:#DD1D1E;
}

.news-cate .webgene-item:nth-child(2) a{
  border: 2px solid #9D48B1;
  color:#9D48B1;
}

.news-cate .webgene-item:nth-child(3) a{
  border: 2px solid #1EAD4C;
  color:#1EAD4C;
}


.news-cate .webgene-blog{
  display: flex;
  justify-content: center;
  align-items: center;
  gap:20px;
  flex-wrap:wrap;
}

.news-main{
  margin:10rem auto 7.5rem;
}

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

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

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

.news-main .webgene-blog article > a{
  display:flex;
  justify-content: space-between;
  flex-direction: column;
  box-shadow:0 3px 6px rgba(0,0,0,0.16);
}

.news-main .webgene-blog .newsTextWrap{
  padding:1rem 2rem 1rem 1rem;
  box-shadow:0 3px 6px rgba(0,0,0,0.16);
  position:relative;
}

.news-main .webgene-blog .newsTextWrap::before{
  content:"";
position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 9px solid #01A0EA;
    border-right: 0;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transition: 0.3s;
}

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

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


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

.newsItemText{
  display:flex;
  margin: 0 0 0.5rem;
  gap: 1rem;
  align-items: center;
  font-weight:bold;
  font-size:clamp(0.75rem, 0.568rem + 0.61vw, 1.25rem);
  color:#01A0EA;
}

.newsItemCate{
  color:#01A0EA;
  padding:4px 1rem;
  border:1px solid #01A0EA;
  border-radius:10px;
  font-size:clamp(0.75rem, 0.705rem + 0.15vw, 0.875rem);
}


@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;
  }
  .news-main .webgene-blog article {
    width: calc((100% - 2rem) / 2);
  }
  .news-main {
    margin: 5rem auto 7.5rem;
  }
}

@media screen and (max-width: 767px) {
  .news-cate-box {
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-main .webgene-blog article {
    width: 100% ;
  }
  .news-cate {
    width:90%;
    margin-bottom: 2rem;
  }
  .news-cate .webgene-blog{
    gap: 1rem 0.5rem;
    justify-content: flex-start;
  }
  .news-main .webgene-blog{
    gap: 3rem;
  }
  .news-main{
    width:90%;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
  .news-cate a {
    width: 105px;
    padding: 0.8rem 0;
    font-size:14px;
  }
  .news-cate > p {
    margin-bottom: 0.5rem;
  }
}

/*ページネーション*/
.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{
  border-radius:0px;
  width: 64px;
  height: 64px;
  text-align: center;
  padding: 6px 0;
  border-radius:2rem;
  border:1px solid #fff;
  background-color:#fff;
  color:#BEBEBE !important;
  font-size:2rem;
}
.webgene-pagination>ul>li.selected a{
  color:#000 !important;
}

.webgene-pagination>ul>li.next a,
.webgene-pagination>ul>li.prev a{
  font-size: 24px;
  padding: 12px 0;
}

@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: 48px;
    height: 48px;
    font-size: 1.5rem;
    padding: 4px 0;
  }
}


/*詳細*/
.news-detail{
  margin:0 0 10rem;
}


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

.news-detail .webgene-blog{
  width:80%;
  margin:0 auto;
  max-width:940px;
}


.newsDetailTit{
  font-size:2rem;
  line-height: 1.5;
}

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

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

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

.newsDetailCate{
  background:#fff;
  padding:4px 1rem;
  color:#01A0EA;
  border:1px solid #01A0EA;
  font-size:16px;
      border-radius: 2rem;
}

.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: 2rem auto;
  max-width: 70%;
}

.newsDetailTime {
    font-size: 20px;
}

@media screen and (max-width: 767px) {
  .news-detail {
    margin-bottom:4rem;
  }
  .news-detail .webgene-blog{
    width:90%;
  }
  .news-detail .newsDetailImg img {
    margin: 20px 0 1.5rem;
  }
}
