@charset "utf-8";

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

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

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

.news-cate a{
  padding: 12px 1.5rem;
  display: block;
  border-radius:70px;
  background-color:#F7F6F2;
  min-width: 200px;
  text-align: center;
  line-height: 1;
  box-shadow:0 3px 6px rgba(0,0,0,0.16);
  font-weight:bold;
}

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

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

.news-main .webgene-blog{
  display:flex;
  gap:5rem 5%;
  flex-wrap: wrap;
  align-items: stretch;
}

.news-main .webgene-blog article{
  width:30%;
}

.news-main .webgene-blog article > a{
  padding: 20px;
  border-radius:1.5rem;
  box-shadow:0px 3px 6px rgba(0,0,0,0.16);
  background:#fff;
  width: 100%;
  display: block;
  height: 100%;
}

.news-main  .newsDetailImg{
  position: relative;
  aspect-ratio: 370 / 220;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 1rem;
}

.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;
  margin-bottom: 8px;
}

.newsItemTime{
  color:#FF8238;
  font-size:clamp(0.75rem, 0.614rem + 0.45vw, 1.125rem);
}

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

.newsItemCate{
  padding: 6px 1.5rem;
  display: block;
  border-radius:14px;
  background-color:#F7F6F2;
  font-size:clamp(0.625rem, 0.534rem + 0.3vw, 0.875rem);
  line-height: 1;
}

.news-main  .newsDetailTxt{
  font-size: 14px;
}

@media screen and (max-width: 1279px) {
  .news-main .webgene-blog article {
    width: 47.5%;
  }
}

@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;
  }
  .news-cate .webgene-blog {
    gap: 1rem;
  }
  .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%;
  }
  .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{
    width:100%;
  }
  .news-cate a {
    padding: 0.5rem;
    min-width: 150px;
  }
  .lower-fv{
    margin-bottom:1.5rem;
  }
  .news{
    margin:1.5rem 0 10rem;
  }
  .news-main .webgene-blog article > a{
    padding: 8px 1rem 1rem;
    border-radius:10px;
  }
}

/*ページネーション*/
.webgene-pagination {
  width: 100%;
  grid-column: 1 / 3;
}
.webgene-pagination>ul {
  display: flex;
  padding: 0;
}
.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:999vh;
  width: 40px;
  height: 40px;
  text-align: center;
  padding: 8px 0;
  background-color: #fff;
  color: #FF8238;
}
.webgene-pagination>ul>li.selected a{
  background-color: #FF8238 !important;
  color:#fff !important;
}

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

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

.webgene-pagination>ul>li.next a:hover,
.webgene-pagination>ul>li.prev a:hover{
  color:#FF8238 !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;
  }
}


/*詳細*/

.news-detail .webgene-blog{
  max-width: 1230px;
  margin: 0 auto;
  padding:4rem 5% 5rem;
  background:#fff;
  border-radius:20px;
  box-shadow:0 3px 6px rgba(0,0,0,0.16);
}

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

.newsDetailTime{
  font-size:clamp(0.75rem, 0.614rem + 0.45vw, 1.125rem);
  color:#FF8238;
  font-weight:bold;
}

.newsDetail-header p:nth-child(2){
  padding: 6px 2rem;
  display: block;
  border-radius: 14px;
  background-color: #F7F6F2;
  font-size: clamp(0.625rem, 0.534rem + 0.3vw, 0.875rem);
  line-height: 1;
}

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

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

.news-detail .newsDetailImg img{
  margin:0rem 0 2.5rem;
  border-radius: 10px;
  aspect-ratio: 320 / 180;
  object-fit: cover;
}

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

@media screen and (max-width: 767px) {
  .newsDetail-header p:nth-child(2) {
    padding: 6px 1rem;
  }
  .newsDetail-header{
    gap:1rem;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 20px;
  }
  .news-detail .webgene-blog {
    padding: 1rem 5% 2rem;
    border-radius: 10px;
  }
.news-detail  .newsDetailTit{
  margin: 0.5rem 0 20px;
}
  .news-detail .newsDetailTxt{
    font-size:12px;
  }
}
