@charset "utf-8";

.news{
  width:80%;
  margin:0 auto;
}

.news-cate{
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  gap:1rem;
}

.news-cate a{
  color:#292D32 !important;
  padding: 8px ;
  display: block;
  border-radius:10px;
  background-color:transparent;
  text-align: center;
  line-height: 1;
  min-width:140px;
  font-size:clamp(0.875rem, 0.739rem + 0.45vw, 1.25rem);
}

.news-cate a:hover{
  background-color:#A7C9CB;
  color:#fff !important;
}
.news-cate a p{
  line-height:1;
}

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

.news-main{
  background: #A7C9CB;
  border-radius: 40px;
  padding: 7.5rem 5%;
  position:relative;
}

.news-main .webgene-blog{
  max-width:900px;
  margin:0 auto;
}

.newsLink:hover{
  opacity:0.7;
}

.newsTextWrap{
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom:2.5rem;
}

.newsItemText{
  display: flex;
  flex-direction: row-reverse;
  width: fit-content;
  gap: 1rem;
  align-items: center;
}

.newsItemCate{
  padding: 8px;
  background: #F2EEEA;
  border-radius: 10px;
  text-align: center;
  min-width: 130px;
}

.newsItemTit{
  font-size:1rem;
  padding-top: 8px;
  line-height:1.5;
}

@media screen and (max-width: 1024px) {
  .news{
    width:90%;
  }
  .news-cate {
    gap: 1rem;
    flex-direction: column;
    align-items: baseline;
  }
  .news-cate-box{
    width: 100%;
    gap: 1rem;
  }
  .news-cate a{
    min-width: 120px;
    text-align: left;
  }
  .news-cate .webgene-blog {
    gap: 1rem;
  }
  .news-cate div.cate p {
    margin-right: 1rem;
  }
  .news-main .webgene-blog article > a{
    flex-direction: column;
    gap: 2rem;
  }
  .news-main .newsDetailImg{
    width:70%;
    margin:0 auto;
  }
  .news-main .newsTextWrap{
    flex-direction: column;
    gap: 1rem;
  }
  .newsItemTit {
    padding-top: 0px;
  }
}

@media screen and (max-width: 767px) {
  .news{
    width:95%;
  }
  .news-main .newsDetailImg {
    width: 100%;
  }
  .news-cate {
    flex-wrap: wrap;
    margin:0 0 1.5rem;
    width:100%;
  }
  .news-cate .webgene-blog{
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
  }
  .news-main .webgene-blog{
    gap: 10px 0;
  }
  .news-main{
    border-radius: 20px;
    padding: 2rem 5% 12.5rem;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
  .newsTextWrap {
    margin-bottom: 1.5rem;
  }
  .news-cate a {
    padding: 0.5rem;
    font-size: 12px;
    min-width: 100px;
  }
  .newsItemCate {
    min-width: 110px;
  }
}

/*ページネーション*/
.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:999vh;
  width: 50px;
  height: 50px;
  text-align: center;
  padding: 12px 0;
  color:#529EA3;
  background-color:#F2EEEA;
}
.webgene-pagination>ul>li.selected a{
  color:#fff !important;
}

.webgene-pagination>ul>li.selected a,
.webgene-pagination>ul>li.selected a:hover,
.webgene-pagination>ul>li.selected:hover a{
  color: #292D32 !important;
  opacity:1;
}
.webgene-pagination>ul>li:hover{
  color: #F39F14;
}
.webgene-pagination>ul>li:hover a,
.webgene-pagination>ul>li a:hover{
  opacity:0.7;
}

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

.webgene-pagination>ul>li.next a:hover,
.webgene-pagination>ul>li.prev a:hover{
  opacity:0.7;
}

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


/*詳細*/
.news-detail {
  padding:7.5rem 5%;
  background:#A7C9CB;
  border-radius:3rem;
  position:relative;
}

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

.newsDetail-header{
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.newsDetail-header p:nth-child(2){
  padding: 8px 1.5rem;
  display: block;
  border-radius: 10px;
  background-color: #F2EEEA;
  text-align: center;
  line-height: 1;
}


.news-detail  .newsDetailTit{
  font-size:clamp(1.125rem, 0.852rem + 0.91vw, 1.875rem);
  margin:2.5rem 0 5rem;
  line-height: 1.5;
}

.news-detail .newsDetailImg img{
  margin:0rem 0 2.5rem;
  max-height: 800px;
}

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

.news-detail .newsDetailTxt a{
  color:#0000ff;
  text-decoration:underline;
}

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

.news-logo{
  position:absolute;
  width:14%;
  max-width:180px;
  right:5%;
  bottom:2rem;
}

@media screen and (max-width: 767px) {
  .news-detail{
    padding: 4rem 5% 12.5rem;
  }
  .newsDetail-header{
    gap: 0.5rem;
  }
  .newsDetail-header p:nth-child(2) {
    padding: 0.5rem 1rem;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 1.5rem;
  }
  .news-detail .btn {
    margin-top: 5rem;
  }
  .news-detail .newsDetailTit {
    margin: 2rem 0 1rem;
  }
  .news-logo{
    width:115px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    right: auto;
  }
}
