@charset "utf-8";

.news{
  padding-bottom:2rem;
}

.news .inner{
  position:relative;
  box-shadow:0px 0px 50px rgba(0,0,0,0.03);
  padding:10rem 5%;
  background:#FFFFFF;
  transform: translateY(-140px);
}

.news .inner .pankuzu{
  position:absolute;
  width: 90%;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
}

.news-detail-inner{
  max-width:1000px;
  margin:0 auto;
}

.news-cate,
.news-main{
  max-width:1000px;
  margin:0 auto;
}

.news-cate-box{
  display: flex;
  align-items: center;
  gap:4rem;
  margin-bottom:90px;
}


.news-cate a{
  font-weight:500;
  position: relative;
}

.news-cate a::before{
  content:"";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  width:1px;
  height:16px;
  background:#707070;
  right:-2rem;
}

.news-cate a:hover{
  opacity:0.7;
}

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

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



.news-main .webgene-item a {
  padding: 2.5rem 3rem 4rem 0;
  border-top: 1px solid #DEDEDE;
  position: relative;
}

.news-main .webgene-item:last-of-type a {
  border-bottom: 1px solid #DEDEDE;
}

.news-main .webgene-item a::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  top: 50%;
  right: 2.5rem;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transition: 0.3s;
  z-index: 10;
  background: url(https://door-style.co.jp/system_panel/uploads/images/20251117170129441264.png) no-repeat center / contain;
}

.news-main .webgene-item a:hover::before {
  right: 2rem;
}


.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(0.938rem, 0.869rem + 0.23vw, 1.125rem);
  width: 100%;
  font-weight: 600;
}

.newsTextWrap{
  display:flex;
  gap: 20px;
  align-items: center;
  flex-wrap:wrap;
}

.newsItemTime{
  color:#726F6F;
  font-size:clamp(0.875rem, 0.83rem + 0.15vw, 1rem);
}

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

.newsItemCate{
  padding:4px 1rem;
  color:#fff;
  background:#726F6F;
  font-size:14px;
  line-height:1;
  transition: 0.3s;
}

@media screen and (max-width: 1024px) {
  .news-main .webgene-blog .newsTextWrap{
    flex-direction: column;
    align-items: flex-start;
    gap:1rem;
  }
  .newsItemText,
  .news-main .webgene-blog article .newsItemTit{
    width: 100%;
  }
  .news-main {
    margin: 3rem auto 0;
  }
}

@media screen and (max-width: 767px) {
  .news {
    padding-bottom: 0rem;
  }
  .news .inner{
    transform: none;
    width: 100%;
    padding: 20px 5% 70px;
  }
  .news-cate-box{
    gap: 30px;
  }
  .news-cate .webgene-blog {
    gap: 30px;
  }
  .news-cate {
    margin-bottom: 2rem;
  }
  .news-main{
    margin:0;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
  .news-cate a {
    font-size:14px;
  }
  .newsItemCate {
    padding: 7px 12px;
    font-size: 13px;
  }
  .newsItemText{
    gap: 1.5rem;
  }
  .news-main .webgene-item a{
    padding:30px 0 50px;
  }
  .news-main .webgene-item{
    margin-bottom:8px;
  }
  .news-main .webgene-item a::before{
    display:none;
  }
  .news .inner .pankuzu{
    position: relative;
    top: auto;
    left: auto;
    transform:none;
    margin-bottom:3rem;
    width: 100%;
  }
  .news-cate a::before{
    display:none;
  }
}

/*ページネーション*/
.webgene-pagination {
  width: 100%;
  margin-top:100px;
}
.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: 48px;
  height: 48px;
  text-align: center;
  display:flex;
  justify-content: center;
  align-items: center;
  background-color:#fff;
  color:#726F6F !important;
  font-size:18px;
}
.webgene-pagination>ul>li.selected a{
  color:#fff !important;
  background:#726F6F !important;
}

.webgene-pagination>ul>li.next a,
.webgene-pagination>ul>li.prev a{
  font-size: 16px;
}

@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: 40px;
    height: 40px;
    padding: 4px 0;
  }
  .webgene-pagination>ul>li.next a, .webgene-pagination>ul>li.prev a{
    font-size:14px;
  }
  .webgene-pagination{
    margin-top: 50px;
  }
}


/*詳細*/

.newsDetail-header{
  display: flex;
  align-items: center;
  margin-bottom:20px;
  gap:2rem;
}


.newsDetailCate{
  padding:4px 1rem;
  font-size:14px;
  line-height:1;
  color:#fff;
  background:#9B9590;
}

.newsDetailTit{
  font-size:clamp(1.5rem, 1.318rem + 0.61vw, 2rem);
  line-height: 1.5;
  font-weight: 600;
}

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

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

.newsDetailImg{
  margin: 70px auto 100px;
}

.news-detail .newsDetailImg img{
  aspect-ratio:16/9;
  object-fit:cover;
}

@media screen and (max-width: 767px) {
  .newsDetail-header{
    font-size: 14px;
    gap: 1rem;
  }
  .newsDetailCate{
    padding: 7px 12px;
    font-size: 13px;
  }
  .newsDetailImg {
    margin: 2.5rem auto 50px;
  }
}
