@charset "utf-8";

.bg-gray h1{
  margin-bottom:5rem;
}

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


.news-cate a{
  padding: 1rem ;
  text-align: center;
  min-width:150px;
  line-height: 1;
  background:#fff;
  position:relative;
}

.news-cate a::before, .news-cate a::after {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border-color: #848580;
  content: "";
  pointer-events: none;
  transition-property: -webkit-clip-path;
  transition-property: clip-path;
  transition-property: clip-path, -webkit-clip-path;
}

.news-cate a::before {
  border-top: 1px solid;
  border-bottom: 1px solid;
  -webkit-clip-path: polygon(100% 100%, 0 0, 0 0, 100% 100%);
  clip-path: polygon(100% 100%, 0 0, 0 0, 100% 100%);
  transition: .26s ease-in-out;
}

.news-cate a::after {
  border-right: 1px solid;
  border-left: 1px solid;
  -webkit-clip-path: polygon(0 100%, 0 100%, 100% 0, 100% 0);
  clip-path: polygon(0 100%, 0 100%, 100% 0, 100% 0);
  transition: .32s ease-in-out;
}

.news-cate a:hover::before, .news-cate a:hover::after {
  -webkit-clip-path: polygon(0 100%, 0% 0, 100% 0, 100% 100%);
  clip-path: polygon(0 100%, 0% 0, 100% 0, 100% 100%);
}

.news-cate-box > a p{
  line-height:1;
}


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

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

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

.news-main .webgene-blog{
}

.news-main .webgene-blog article{
}

.news-main .webgene-blog article > a{
  display:flex;
  justify-content: space-between;
  flex-direction: column;
  padding:2rem 0;
  border-bottom:1px solid #848580;
}

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

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


.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
  width: calc(100% - 340px);
}

.newsItemText{
  display:flex;
  gap: 1.5rem;
  align-items: center;
  width: 320px;
}

.newsItemCate{
  padding:8px 1.5rem;
  border:1px solid ;
  font-size:14px;
  line-height:1;
}


@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 {
    padding: 0.8rem 0;
    font-size:14px;
    min-width: 140px;
  }
  .news-cate > p {
    margin-bottom: 0.5rem;
  }
  .bg-gray h1 {
    margin-bottom: 4rem;
  }
  .newsItemCate {
    padding: 6px 1rem;
    font-size: 12px;
  }
  .newsItemText{
    font-size: 12px;
    gap: 1rem;
  }
  .news-main .webgene-blog .newsTextWrap{
    gap:0.5rem;
  }
  .news-main .webgene-blog article > a{
    gap: 1.5rem;
  }
}

/*ページネーション*/
.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:#282828 !important;
  font-size:18px;
}
.webgene-pagination>ul>li.selected a{
  color:#282828 !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;
  justify-content: space-between;
}

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


.newsDetailTit{
  font-size:clamp(1rem, 0.818rem + 0.61vw, 1.5rem);
  line-height: 1.5;
}

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

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

.newsDetailCate{
  padding:8px 1.5rem;
  font-size:14px;
  border:1px solid;
  line-height:1;
}

.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;
  }
}
