@charset "utf-8";

.news{
  margin-bottom:7.5rem;
}

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

.news-cate-box{
  display: flex;
  align-items: center;
  gap:2rem;
}


.news-cate a{
  padding: 8px 1.5rem ;
  text-align: center;
  line-height: 1;
  background:#fff;
  color:#040080;
  font-size:clamp(1.125rem, 0.989rem + 0.45vw, 1.5rem);
}

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

.news-cate > a{
  background:#040080;
  color:#fff;
}

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

.news-main{
  margin:5rem auto 0;
}

.news-main a{
  color:#000000 !important;
}

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

.news-main .webgene-item a {
  padding: 1.5rem 5% 1.5rem 1.5rem;
  border: 4px solid #040080;
  position: relative;
}

.news-main .webgene-item a::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 24px;
  top: 50%;
  right: 2.5%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transition: 0.3s;
  z-index: 10;
  background: url(https://nps-express.com/system_panel/uploads/images/20251030085641892707.png) no-repeat center / contain;
}

.news-main .webgene-item a:hover::before {
  background: url(https://nps-express.com/system_panel/uploads/images/20251030085641167072.png) no-repeat center / contain;
}

.news-main .webgene-item a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  transition: 0.3s;
  background: #040080;
  z-index:-1;
}

.news-main .webgene-item a:hover::after {
  width:100%;
}

.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
  font-weight:500;
}

.newsTextWrap{
  display:flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap:wrap;
}

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

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

.newsItemCate{
  padding:8px 1rem;
  color:#fff;
  background:#040080;
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
  line-height:1;
  transition: 0.3s;
}

.news-main .webgene-item a:hover .newsItemTime, 
.news-main .webgene-item a:hover h2{
  color:#fff;
}

.news-main .webgene-item a:hover .newsItemCate{
  color:#040080;
  background:#fff;
}

@media screen and (max-width: 1024px) {
  .news-cate-box{
    width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-cate .webgene-blog {
    gap: 1rem;
    justify-content: start;
  }
  .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-cate-box {
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-cate {
    margin-bottom: 2rem;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
  .news-cate a {
    font-size:14px;
  }
  .news-cate > p {
    margin-bottom: 0.5rem;
  }
  .newsItemCate {
    padding: 4px 8px;
    font-size: 12px;
  }
  .newsItemText{
    font-size: 12px;
    gap: 0.5rem;
  }
  .news-main .webgene-blog .newsTextWrap{
    gap:4px;
  }
  .news-main .webgene-blog article > a{
    gap: 1.5rem;
  }
  .news-main .webgene-item a{
    border: 3px solid #040080;
    padding:1rem;
  }
  .news-main .webgene-item{
    margin-bottom:8px;
  }
  .news-main .webgene-item a::before{
    width: 10px;
    height: 16px;
  }
}

/*ページネーション*/
.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:#040080 !important;
  font-size:18px;
}
.webgene-pagination>ul>li.selected a{
  color:#fff !important;
  background:#040080 !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:2rem;
  gap:1rem;
}

.newsDetailTime{
  color:#040080;
  font-weight:700;
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
}

.newsDetailCate{
  padding:8px 1rem;
  font-size:clamp(0.875rem, 0.739rem + 0.45vw, 1.25rem);
  line-height:1;
  color:#fff;
  background:#040080;
}

.news-detail .webgene-blog{
  margin:0 auto;
  max-width:1200px;
}

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

.newsDetailTit{
  font-size:clamp(1.25rem, 0.977rem + 0.91vw, 2rem);
  line-height: 1.5;
  font-weight:500;
}

.news-detail .newsDetailTxt{
  line-height: 2;
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
}

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

.newsdetail .webgene-blog{
  margin-bottom:2.5rem;
  border-radius: 8px;
  border-top: 8px solid #0881E4;
  padding: 2rem 5%;
  box-shadow:0px 3px 6px rgba(0,0,0,0.16);
}

.newsDetailImg{
  margin: 2.5rem auto;
}

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

.news-detail .btn{
  margin-top:100px;
}

@media screen and (max-width: 767px) {
  .newsDetail-header{
    margin-bottom:1rem;
    font-size: 12px;
  }
  .newsDetailCate{
    padding: 4px 1rem;
    font-size: 12px;
  }
  .newsDetailImg {
    margin: 1.5rem auto;
  }
  .news-detail .btn{
    margin-top:3rem;
  }
}
