@charset "utf-8";

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

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

.news-cate a{
  display: block;
  color:#5A5A5A;
  text-align: center;
  line-height: 1;
  font-size:clamp(1rem, 0.917rem + 0.28vw, 1.25rem);
  position:relative;
}

.news-cate a::before{
  content:"";
  position:absolute;
  width:1.25rem;
  height:1px;
  background:#5A5A5A;
  right: -2rem;
  top: 10px;
  transform: rotate(-45deg);
}

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

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

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

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

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

.news-main .webgene-blog article > a{
  width: 100%;
  display: flex;
  height: 100%;
  padding: 2rem 5% 2rem 2rem;
  border: 0.5px solid #45584E;
  gap: 1rem 3rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.news-main .webgene-blog article > a::before{
  content:"";
  position:absolute;
  width:1rem;
  height:1rem;
  top: 50%;
  right:2.5%;
  transform: translateY(-50%) rotate(45deg);
  -webkit-transform: translateY(-50%) rotate(45deg);
  -ms-transform: translateY(-50%) rotate(45deg);
  filter: brightness(0);
  background:url(https://pillowtec.co.jp/system_panel/uploads/images/20260424094524484213.png) no-repeat center/contain;
}

.news-main  .newsDetailImg{
  position: relative;
  aspect-ratio: 283 / 161;
  overflow: hidden;
}

.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: 370 / 220;
}

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

.news-main .webgene-blog article .newsItemTit{
  font-size:1rem;
  line-height: 1.5;
  font-family: "Zen Old Mincho", serif;
}

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

.newsItemCate{
  padding: 6px 10px;
  display: block;
  background:#45584E;
  text-align: center;
  line-height: 1;
  font-size:14px;
  color:#fff;
}

@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%;
  }
}

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

/*ページネーション*/
.webgene-pagination {
  margin-top: 3rem;
  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: 27px;
  height: 45px;
  text-align: center;
  color:#5A5A5A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size:clamp(1rem, 0.833rem + 0.56vw, 1.5rem);
}
.webgene-pagination>ul>li.selected a{
  color:#175534 !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:#175534 !important;
}
.webgene-pagination>ul>li:hover{
  color:#5A5A5A;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#5A5A5A !important;
}

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

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

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


/*詳細*/

.news-detail{
  margin-top:0;
}

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

.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;
}

.news-detail  .newsDetailTit{
  font-size:clamp(1rem, 0.75rem + 0.83vw, 1.75rem);
  margin: 20px 0 5rem;
  padding-bottom:2rem;
  border-bottom:0.5px solid #45584E;
  line-height: 1.5;
  font-family: "Zen Old Mincho", serif;
}

.newsDetailImg{

}

.news-detail .newsDetailImg img{
  margin:0rem auto 5rem;
  aspect-ratio: 882 / 542;
  object-fit: cover;
  max-width:882px;
  display:block;
}

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

@media screen and (max-width: 1280px) {
  .news-detail .newsDetailImg img {
    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;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 20px;
  }
  .news-detail  .newsDetailTit{
    margin: 0.5rem 0 20px;
  }
  .news-detail .newsDetailTxt{
    font-size:12px;
  }
  .news-detail .container{
    width: 100%;
    padding: 0px 5% 20px !important;
  }
  .news-detail .btn {
    margin: 40px auto 0;
  }
}
