@charset "utf-8";

.news-cate-box .webgene-blog{
  display: flex;
  flex-direction: column;
  gap:10px;
  flex-wrap: wrap;
}

.news-cate section{
  margin-bottom:1.5rem;
  padding-bottom:1.5rem;
  border-bottom:1px solid #E4E4E4;
}

.news-cate-box .webgene-blog article > a,
.blog-cate-a{
  font-size:14px;
  position: relative;
  padding-left: 1rem;
}

.blog-cate-a{
  margin-bottom: 12px;
}

.news-cate .webgene-blog article > a::before,
.blog-cate-a::before{
  content:"";
  position:absolute;
  width:8px;
  height:10px;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  background:url(https://renhadensetsu.com/system_panel/uploads/images/20260401095915766101.png) no-repeat center/contain;
}

.news-main{
  max-width:1200px;
  margin:0 auto;
}

.news-main .webgene-item{
  margin-bottom:1.5rem;
}

.news-main .webgene-blog article > a{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  height: 100%;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid #5A5A5A;
}

.news-side-box .webgene-blog article > a {
  width: 100%;
  display: flex;
  align-items: center;
  gap:1rem;
  flex-wrap: wrap;
  margin-bottom:20px;
}

.news-side-box .newsItemTime{
  margin:0;
  padding-left:1rem;
  position:relative;
}

.news-side-box .newsItemTime::before{
  content:"";
  position:absolute;
  width:8px;
  height:10px;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  background:url(https://renhadensetsu.com/system_panel/uploads/images/20260401095915766101.png) no-repeat center/contain;
}

.news-side-box .webgene-blog article > a .newsItemText{
  width:calc(100% - 92px - 1rem);
}

.news-main  .newsDetailImg{
  position: relative;
  aspect-ratio: 223 / 149;
  overflow: hidden;
  width: 220px;
}

.news-side-box .newsDetailImg{
  position: relative;
  aspect-ratio: 92 / 82;
  overflow: hidden;
  width: 92px;
}

.news-main .newsDetailImg > img,
.news-cate .newsDetailImg > img{
  position: relative;
  z-index:10;
}

.news-main  .newsDetailImg span,
.news-cate .newsDetailImg span{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.news-side-box  .newsDetailImg img{
  object-fit:cover;
  aspect-ratio: 92 / 82;
}


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

.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(1rem, 0.87rem + 0.43vw, 1.25rem);
  line-height: 1.5;
}

.news-cate .webgene-blog article .newsItemTit{
  font-size:14px;
}

.newsItemTime{
  font-size:14px;
  margin-bottom: 8px;
}

.newsItemText{
  display:flex;
  gap: 4px;
  align-items: flex-start;
  flex-direction: column;
  width: calc(100% - 220px - 2rem);
}

.newsItemText .newsDetailTxt{
  width:100%;
}

.newsItemText .newsDetailTxt p{
  line-height: 1.5;
}

.newsDetailTxt h2{
  padding: 1rem .5rem 1rem 1.5rem;
  border-left: 6px solid #FEB711;
  background-color: #FEF5E4;
  font-size: 1.5rem;
  margin: 1rem 0;
}

.newsItemCate{
  padding: 6px 12px;
  display: block;
  border: 0.5px solid #FFFFFF;
  text-align: center;
  line-height: 1;
  font-size:12px;
  min-width:5rem;
}

.blog-wrap{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 4rem;
}

.news-cate{
  width:275px;
}

.news-main{
  width:calc(100% - 275px - 60px);
  margin: 0;
}

.news-cate .news-side-box .webgene-blog article > a::before{
  display:none;
}

@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;
  }
  .blog-cate-a{
    margin-bottom:1rem;
  }
  .news-cate .webgene-blog {
    gap: 1rem;
  }
  .news-cate div.cate p {
    margin-right: 1rem;
  }
  .news-main .newsTextWrap{
    width:100%;
  }
  .blog-wrap{
    flex-direction: column;
    gap: 3rem;
  }
  .news-main{
    width:100%;
  }

  .news-main .webgene-blog article:first-child > a{
    border-top: 0.5px solid #5A5A5A;
    padding-top: 1rem;
  }
}

@media screen and (max-width: 767px) {
  .news-cate-box {
    width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-main .newsDetailImg {
    width: 80px;
    aspect-ratio: 1 / 1;
  }
  .news-main .newsDetailImg img{
    aspect-ratio: 1 / 1;
  }
  .news-cate {
    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{
    margin-bottom: 1rem;
  }
  .newsItemText{
    width: calc(100% - 80px - 1rem);
  }
  .newsItemTime{
    margin:0;
  }
  .news-main .webgene-blog article > a{
    gap:1rem;
    padding-bottom: 1rem;
    flex-direction: row-reverse;
  }
  .newsItemText .newsDetailTxt{
    display:none;
  }
}

/*ページネーション*/
.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: 48px;
  height: 48px;
  text-align: center;
  color:#000;
  font-size:1rem;
  border:1px solid #FEB711;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.webgene-pagination>ul>li.selected a{
  color:#FEB711 !important;
  background:#fff;
}

.webgene-pagination>ul>li.selected a,
.webgene-pagination>ul>li.selected a:hover,
.webgene-pagination>ul>li.selected:hover a{
  color:#FEB711 !important;
}
.webgene-pagination>ul>li:hover{
  color:#000;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#000 !important;
}

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

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

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


/*詳細*/

.news-detail{

}

.newsDetail-header{
  display: flex;
  margin: 0 0 16px;
  gap: 1.5rem;
  align-items: center;
  font-size: 14px;
}

.newsDetail-header p:nth-child(2){
  padding: 6px 12px;
  display: block;
  border: 1px solid #fff;
  text-align: center;
  line-height: 1;
}

.news-detail  .newsDetailTit{
  font-size:clamp(1rem, 0.87rem + 0.43vw, 1.25rem);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.news-main.news-detail .newsDetailImg{
  width: 100%;
}

.newsDetailTime{

}

.news-detail .newsDetailImg{
  margin:0rem auto 5rem;
  aspect-ratio: auto;
}

.news-detail .newsDetailImg img{
  aspect-ratio: 1200 / 740;
  object-fit: cover;
  display:block;
}

.news-detail .newsDetailTxt{
  line-height: 2;
  margin:0 auto;
  font-family: "Noto Sans JP", sans-serif;
}

.back-blog{
  padding:1rem 10px;
  border:1px solid #B1B1B1;
  margin:2.5rem auto 0;
  display: block;
  width: fit-content;
}

.news-detail-bg .container{
  max-width:1200px;
}

.news-cate h2{
  background:#FEB711;
  color:#fff;
  font-size:1rem;
  width:100%;
  padding:8px 1rem;
  display: block;
  margin-bottom: 1rem;
}

.news-cate h2 strong{
  font-size:12px;
}

@media screen and (max-width: 1280px) {
  .news-detail .container{
    padding: 40px 5% 100px !important;
  }
  .news-detail .newsDetailImg{
    margin: 0rem auto 3rem;
  }
}

@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;
    margin:0;
  }
  .news-detail .newsDetailTxt{
    font-size:12px;
  }
  .news-detail .container{
    width: 100%;
    padding: 0px 5% 20px !important;
  }
  .news-detail .btn {
    margin: 40px auto 0;
  }
  .news-detail .newsDetailImg {
    margin: 1rem auto;
  }
}
