@charset "utf-8";

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

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

.news-cate a{
  display: block;
  color:#000000;
  text-align: center;
  line-height: 1;
  font-size:clamp(0.75rem, 0.625rem + 0.42vw, 1.125rem);
  padding:8px;
  font-weight:bold;
  border-top:1px solid #707070;
  border-bottom:1px solid #707070;
  min-width:150px;
}

.news-cate > a{
  background:#0B8607;
  border:none;
  color:#fff;
  font-weight:bold;
}

.news-cate a:hover{
  color:#175534;
}

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

.news-cate .webgene-blog{
  display: flex;
  align-items: center;
  gap:1rem;
  flex-wrap: wrap;
}

.news-cate .webgene-blog .webgene-item:last-child a::before{
  display:none;
}


.news-main .webgene-blog{
  display: flex;
  align-items: stretch;
  gap:0 5%;
  flex-wrap: wrap;
}

.news-main .webgene-blog article{
  width:47.5%;
}

.news-main .webgene-blog article > a{
  width: 100%;
  display: flex;
  padding: 2.5rem 0;
  border-bottom: 1px solid #707070;
  align-items:flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  height: 100%;
}

.news-main  .newsDetailImg{
  position: relative;
  aspect-ratio: 230 / 210;
  overflow: hidden;
  width:38%;
}

.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: 230 / 210;
}

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

.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(0.75rem, 0.625rem + 0.42vw, 1.125rem);
  line-height: 1.5;
  font-family: "Zen Old Mincho", serif;
}

.newsItemText{
  width:calc(100% - 2rem - 38%);
  display:flex;
  gap: 1rem;
  flex-direction:column;
}

.newsTextWrap{
  display:flex;
  gap: 1rem;
  align-items: center;
  font-size:clamp(0.75rem, 0.708rem + 0.14vw, 0.875rem);
}

.newsItemCate{
  padding: 6px 10px;
  display: block;
  border:1px solid #000000;
  text-align: center;
  line-height: 1;
  font-size:clamp(0.625rem, 0.542rem + 0.28vw, 0.875rem);
}

@media screen and (max-width: 1024px) {
  .news-main .webgene-blog article .newsItemTit{
    width:100%;
  }
  .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 div.cate p {
    margin-right: 1rem;
  }
  .news-main .newsTextWrap{
    width:100%;
  }
  .news-main .newsDetailImg{
    width:45%;
  }
  .newsItemText {
    width: 50%;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
  .news-main{
    max-width: 700px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 767px) {
  .news-cate-box {
    width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-cate {
    flex-wrap: wrap;
    width:100%;
    margin: 0 0 4rem;
  }
  .news-cate .webgene-blog{
    flex-wrap: wrap;
    gap: 1rem ;
  }
  .news-main .webgene-blog{
    gap: 1rem 0;
  }
  .news-main{
    width: 95%;
    margin: 0 auto;
  }
  .news {
    margin: 0rem 0 5rem;
  }
  .news-main .webgene-blog article > a::before{
    display:none;
  }
  .news-main .webgene-blog article > a{
    padding: 0 0 1rem;
    align-items: stretch;
  }
  .news-cate .webgene-blog a::before{
    top: 8px;
  }
  .news-main .newsDetailImg {
    width: 35%;
  }
  .newsItemText{
    width: 60%;
    justify-content: space-between;
  }
}

/*ページネーション*/
.webgene-pagination {
  margin-top: 3rem;
  width: 100%;
  grid-column: 1 / 3;
  font-family: "Zen Old Mincho", serif;
}
.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: 27px;
  height: 45px;
  text-align: center;
  color:#BFBFBF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size:clamp(1rem, 0.833rem + 0.56vw, 1.5rem);
  font-weight: 900;
}
.webgene-pagination>ul>li.selected a{
  color:#046F00 !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:#046F00 !important;
}
.webgene-pagination>ul>li:hover{
  color:#BFBFBF;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#BFBFBF !important;
}

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

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

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


/*詳細*/

.news-detail{
  margin:7.5rem 0 7.5rem;
}

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

.newsDetail-header{
  display: flex;
  margin: 0 0 16px;
  gap: 10px;
  align-items: center;
}

.newsDetail-header p:nth-child(2){
  padding: 6px 12px;
  display: block;
  text-align: center;
  line-height: 1;
  font-size: 14px;
}

.single-news-wrap{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #707070;
}

.news-detail  .newsDetailTit{
  font-size:clamp(0.75rem, 0.583rem + 0.56vw, 1.25rem);
  margin: 0 0 1.25rem;
  padding-bottom:2rem;
  border-bottom:1px solid #707070;
  line-height: 1.5;
  font-family: "Zen Old Mincho", serif;
}

.newsDetailImg{
  width:45%;
  position: relative;
  aspect-ratio: 613 / 556;
}

.news-detail .newsDetailImg img{
  aspect-ratio: 613 / 556;
  object-fit: cover;
  max-width:882px;
  display:block;
}

.newsDetailImg span{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.news-detail .newsDetailTxt{
  width: 50%;
}

.single-news-btn{
  font-size:clamp(0.75rem, 0.5rem + 0.83vw, 1.5rem);
  font-weight:900;
  font-family: "Zen Old Mincho", serif;
}

@media screen and (max-width: 1279px) {
  .single-news-wrap{
    flex-direction: column;
    gap: 2.5rem;
  }
  .newsDetailImg,
  .news-detail .newsDetailTxt {
    width: 100%;
  }
  .news-detail {
    margin: 5rem 0 5rem;
  }
}

@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: 0rem 0 20px;
    padding-bottom: 1rem;
  }
  .news-detail .newsDetailTxt{
    font-size:12px;
  }
  .news-detail .container{
    width: 100%;
    padding: 0px 5% 20px !important;
  }
  .news-detail .btn {
    margin: 40px auto 0;
  }
  .webgene-pagination {
    margin-top: 0rem;
  }
  .news-detail {
    margin: 4rem 0 4rem;
  }
  .single-news-wrap {
    gap: 0.5rem;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
  }
}
