@charset "utf-8";

.news-cont{
  margin: 5rem auto 5rem 15%;
  width: 80%;
}

.news-cate-title{
  position: relative;
  font-weight: bold;
}

.news-cate-title:before{
  position: absolute;
  content: "";
  bottom: -1rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background-color: #000;
}

.news-cate{
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-cate-box{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.news-cate a{
  padding: 4px 0;
  display: block;
}

.news-cate a:hover{
  color: #005D91;
}
.news-cate a p{
  line-height:1;
}

.news-main{
    width:80%;
    margin: 5rem auto;
    max-width:1200px;
}

.news-img img{
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
}

.webgene-blog{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 2rem;
}

.webgene-item-content{
  max-width: 80vw;
  margin: 0 auto
}


.webgene-item-main-image{
  max-width: 360px;
  height: 240px;
  object-fit: cover;
  margin: 1rem 0;
}

.newsItem{
  min-width: 30%;
}

.newsItemTit{
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

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


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

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

.newsItemCate{
  display: block;
  width: fit-content;
}

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

.Blog-detail-img img{
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 0 2rem;
  max-height: 500px;
}

.newsDetailTit{
  margin-bottom: 2rem;
  font-size: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #000;
}

.newsTextWrap{
  position: relative;
  padding: 1rem 3rem 1rem 1rem;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.newsTextWrap:before{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 30px;
  width: 9px;
  height: 9px;
  margin: auto;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.newsTextWrap:after{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 16px;
  width: 2rem;
  height: 2rem;
  margin: auto;
  border: 1px solid #000;
  border-radius: 50px;
}

.newsLink:hover{
  text-decoration: none;
  
}

.news__btn{
  display: block;
  width: 200px;
}

@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 .webgene-blog article > a{
    flex-direction: column;
    gap: 2rem;
  }
  .news-main{
    width: 90%;
    margin: 0 auto;
  }
  .news-main .newsDetailImg{
    width:100%;
    margin: 0.5rem auto;
  }
  .news-main .newsTextWrap{
    width: 100%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .news-cont{
    margin: 0rem auto;
    width: 90%;
  }
  .webgene-item-content{
    width: 100%;
    max-width: 100vw;
  }
      .news-cate-box {
        width: 100%;
        gap: 1rem;
        flex-direction: row;
        align-items: baseline;
    }
      .news-main .newsDetailImg {
        width: 100%;
    }
  .news-main{
    width: 95%;
    margin: 2rem auto;
  }
  .news-cate {
    flex-wrap: wrap;
    margin: 0.5rem auto;
    width: 90%;
  }
  .news-cate .webgene-blog{
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .news-main .webgene-blog{
     gap: 10px 0;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
      .news-cate a {
        padding: 0.5rem;
        font-size: 1rem;
    }
  .news-main .webgene-blog article > a{
            margin: 2rem auto;
  }
  .webgene-item-main-image{
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    margin: 0 auto;
  }
  .newsDetailTit{
    font-size: 1.25rem;
  }
  .newsItemTit{
    font-size: 1rem!important;
  }
  .newsTextWrap{
    position: relative;
    padding: 0.5rem 3rem 0.5rem 0.5rem;
   flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .news-main .newsTextWrap{
    width: 100%;
    margin: 0 auto;
  }
}



/*ページネーション*/
.webgene-pagination {
  width: 100%;
  grid-column: 1 / 3;
  margin-bottom: 5rem;
}
.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{
    width: 40px;
    height: 40px;
    text-align: center;
    padding: 8px 0;
}

.webgene-pagination>ul>li:hover{
  color: #EBC551;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#EBC551;
}

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

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

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

/*詳細*/
.news-detail {
  width:80%;
  max-width: 100vw;
  margin:0 auto;
  max-width:950px;
}


.news-detail .news-cate {
  margin: 0;
  align-items: baseline;
  gap: 2rem;
  flex-direction: column;
  width:300px;
}

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


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

.newsDetail-header p:nth-child(2){
    color: #F58193 !important;
    padding: 10px 1.5rem;
    display: block;
    border-radius: 20px;
    background-color: #FDEFF2;
    text-align: center;
      line-height: 1;
  font-size:12px;
}

.news-detail .btn-flat{
    margin: 4rem auto 0;
    display: block;
}

.news-detail  .newsDetailTit{
  font-size: 1.5rem;
  margin: 0.5rem 0 2rem;
   line-height: 1.5;
}

.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{
    width: 95%;
    max-width: 95vw;
    margin: 0 auto;
  }
  .newsDetail-header p:nth-child(2) {
    padding: 0.5rem 1rem;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 1.5rem;
}
  .news-detail .btn {
    margin-top: 3rem;
}
}
