@charset "utf-8";

body:has(.news) .cta {
  display: block;
}

body:has(.news) .lower-fv-txt p{
  padding-left: 2rem;
}

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

.news-cate{
  margin: 0 0 7.5rem;
  display: flex;
  align-items: center;
  gap:1.5rem 3rem;
  flex-wrap: wrap;
}

.news-cate a{
  display: block;
  color:#fff;
  text-align: center;
  line-height: 1;
  font-size:clamp(1rem, 0.917rem + 0.28vw, 1.25rem);
  padding:16px 2.5rem;
  position:relative;
  border-radius:3px;
  background-image: linear-gradient(#6e6e6e, #373737);
  box-shadow:0px 6px 10px rgba(0,0,0,0.16);
}

.news-cate a:hover{
  color:#fff;
  opacity:1;
  box-shadow:0px 3px 5px rgba(0,0,0,0.16);
  transform:translateY(2px);
}

.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{
  max-width:990px;
  margin:0 auto;
}

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

.news-main .webgene-blog article > a{
  width: 100%;
  padding: 2.5rem 5% 1.5rem;
  position: relative;
  background:#EBEBEB;
  box-shadow:0px 6px 10px rgba(0,0,0,0.16);
}

.news-main .webgene-blog article > a:hover{
  opacity:1;
  transform:translateY(2px);
  box-shadow:0px 3px 5px rgba(0,0,0,0.16);
}

.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(1.125rem, 1rem + 0.42vw, 1.5rem);
  line-height: 1.5;
  padding:0 2rem 1rem;
  margin-bottom:1rem;
  border-bottom:0.5px solid #000000;
}

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

.newsItemCate{
  display: block;
  color: #fff;
  text-align: center;
  line-height: 1;
  font-size: 14px;
  padding: 11px 1.75rem;
  position: relative;
  border-radius: 3px;
  background-image: linear-gradient(#6e6e6e, #373737);
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.16);
}

@media screen and (max-width: 1024px) {
  .news-main .webgene-blog article .newsItemTit{
    width:100%;
  }
  .news-cate {
    gap: 2.5rem;
    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 3rem;
    gap: 1.5rem;
  }
  .news-cate .webgene-blog{
    flex-wrap: wrap;
    gap: 1rem;
  }
  .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;
  }
  .thanks-main {
    padding: 3rem 0 0;
  }
  .news-cate a{
    font-size: 14px;
    padding: 12px 1rem;
  }
  .news-main .webgene-blog article .newsItemTit {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 1rem 0.5rem;
  }
  .newsItemCate{
    font-size: 12px;
    padding: 8px 1rem;
  }
  .newsItemText{
    gap:0.5rem;
  }
}

/*ページネーション*/
.webgene-pagination {
  margin-top: 7.5rem;
  width: 100%;
  grid-column: 1 / 3;
  font-family: "Shippori 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:#000000;
  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:#000000 !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:#000000 !important;
}
.webgene-pagination>ul>li:hover{
  color:#000000;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#000000 !important;
}

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

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

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


/*詳細*/

.news-detail{
  margin-top:0;
  text-align:left;
}

.newsDetail-header{
  display: flex;
  margin: 0 0 24px;
  gap: 10px;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding: 0 5%;
}

.news-detail  .newsDetailTit{
  font-size:clamp(1rem, 0.667rem + 1.11vw, 2rem);
  margin: 20px 0 4rem;
  border-bottom:0.5px solid #45584E;
  padding: 0 5% 1rem;
}

.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: 1.5;
  margin:0 5%;
}

@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{
    margin-bottom: 1rem;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 20px;
  }
  .news-detail  .newsDetailTit{
    margin: 0.5rem 0 20px;
  }
  .news-detail .newsDetailTxt{
    margin:0;
  }
  .news-detail .container{
    width: 100%;
    padding: 0px 5% 20px !important;
  }
  .news-detail .btn {
    margin: 40px auto 0;
  }
  .main:has(.news-detail){
    padding-top:0;
  }
}
