@charset "utf-8";


.blog-title{
  width: 80%;
  max-width: 1140px;
  margin: 7.5rem auto 5rem;
  font-size:clamp(1.5rem, 1.136rem + 1.21vw, 2.5rem);
}

.blog-title + .news-cate {
  margin-top:0;
}

.news{
  max-width:1140px;
}

.news-cate{
  width:80%;
  max-width:1140px;
  margin: 7.5rem auto 5rem;
  display: flex;
  flex-direction:column;
  gap:1.5rem;
  align-items: flex-start;
}

.news-cate .btn{
  margin:0;
  padding: 16px 2rem;
}

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


.news-main .newsDetailImg{
  position:relative;
  aspect-ratio: 300 / 225;
}

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


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

.news-main .webgene-blog {
  display:flex;
  gap:2.5rem;
  flex-wrap:wrap;
}

.news-main .webgene-blog .webgene-item > a{
  display:block;
    width:100%;
}

.news-main .webgene-blog .webgene-item{
  width:calc((100% - 5rem)/3);
}

.news-main .webgene-blog .webgene-item img{
  aspect-ratio:300/225;
  object-fit:cover;
}

.news-main .webgene-blog .webgene-item h2{
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
  margin:1rem 0 8px;
}

.news-main .webgene-blog .webgene-item .d-flex{
  font-size:clamp(0.75rem, 0.705rem + 0.15vw, 0.875rem);
}

.news-main .webgene-blog .webgene-item .category{
  background:#F7F4EE;
  width:fit-content;
  padding:2px 8px;
  margin-top:10px;
  font-size:clamp(0.75rem, 0.705rem + 0.15vw, 0.875rem);
}

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

@media screen and (max-width: 1024px) {
  .news-cate {
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
}

@media screen and (max-width: 767px) {
}

/*ページネーション*/
.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{
  border-radius:4px;
  width: 40px;
  height: 40px;
  text-align: center;
  padding: 8px 0;
  border:none;
  background-color: transparent;
  box-shadow: 2px 2px 2px rgba(59, 59, 59, 0.16);
}
.webgene-pagination>ul>li.selected a{
  background-color: transparent !important;
  color:#3B3B3B !important;
  box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.16);
}

.webgene-pagination>ul>li.selected a,
.webgene-pagination>ul>li.selected a:hover,
.webgene-pagination>ul>li.selected:hover a{
  color: #3B3B3B !important;
  box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.16);
  opacity:1;
  pointer-events:none;
}
.webgene-pagination>ul>li:hover{
  color: #3B3B3B;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  color:#3B3B3B !important;
}

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

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

@media screen and (min-width: 768px) {
  .webgene-pagination {
    width: 100%;
    grid-column: 1 / 4;
  }
}
@media screen and (max-width: 767px) {
  .webgene-pagination>ul>li {
    height: 40px;
    max-width: 40px;
    margin: 30px 5px 0;
  }
  .webgene-pagination>ul>li a {
    width: 35px;
    height: 35px;
    padding: 6px 0;
  }
}


/*詳細*/

.works-detail-btn{
  margin-bottom:140px;
}

.news-detail .newsDetailImg{
  margin-bottom:2.5rem;
}

.news-detail table{
  width: 100% !important;
  table-layout: auto;
}

.news-detail .news-cate {
  margin: 0;
  align-items: baseline;
  gap: 2rem;
  flex-direction: column;
  width:300px;
}

.newsDetail-header{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}


.news-detail-box .btn{
  margin-top:3rem;
}

.newsDetail-header p:nth-child(2){
  color: #F58193 !important;
  padding: 10px 1.5rem;
  display: block;
  border-radius: 20px;
  background-color: #FDEFF2;
  text-align: center;
  line-height: 1;
  font-size:12px;
}

.news-detail .btn-flat{
  margin: 4rem auto 0;
  display: block;
}

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

.news-detail .newsDetailImg img{
  margin:0rem 0 2.5rem;
}

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

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

@media screen and (max-width: 1024px) {
  .news-main .webgene-blog .webgene-item {
    width: calc((100% - 2.5rem) / 2);
  }
}

@media screen and (max-width: 767px) {
  .news-main .webgene-blog .webgene-item {
    width: 100%;
  }
  .news-cate {
    width: 90%;
    margin: 4rem auto;
  }
  .news-detail{
    width: 100%;
  }
  .newsDetail-header p:nth-child(2) {
    padding: 0.5rem 1rem;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 1.5rem;
  }
  .news-detail .btn {
    margin-top: 3rem;
  }
  .news-cate .webgene-blog {
    justify-content: flex-start;
    gap: 1rem .5rem;
  }
  .news-main .webgene-blog {
    gap: 2rem;
  }
}
