@charset "utf-8";

.news-contents{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.news-contents .news-cate,
.news-contents .news-cate .webgene-blog{
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.news-contents .news-cate a{
  background: transparent;
  padding: 0px;
  min-width: auto;
  border-radius: 0px;
  border: none;
  color:#6F6F6F;
  font-size:14px;
  display: flex;
  align-items:center;
  gap:4px;
}

.news-contents .news-cate a:hover{
  border:none;
  color:#000;
}

.news-contents .news-cate a::before{
  content:">";
  display:block;
}

.news-contents .news-cate > p{
  margin-bottom:20px;
  font-size:clamp(0.875rem, 0.792rem + 0.28vw, 1.125rem);
  padding-bottom:1rem;
  position:relative;
  line-height: 1;
}

.news-contents .news-cate > p::before{
  content:"";
  position:absolute;
  width:2rem;
  height:1px;
  background:#000000;
  left:0;
  bottom:0;
}

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

.news-cate a{
  padding: 20px;
  display: block;
  border-radius:18px;
  background:#FFFFFF;
  color:#000000;
  border-radius:40px;
  min-width:230px;
  text-align: center;
  border:1px solid #fff;
  line-height: 1;
  font-size:clamp(0.875rem, 0.784rem + 0.3vw, 1.125rem);
}

.news-cate a:hover{
  opacity:1;
  border:1px solid #000;
  color:#000;
}
.news-cate a p{
  line-height:1;
}

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


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

.category-box{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.category-box .category{
  font-size:14px;
}

.category-box + h2{
  font-size:clamp(0.875rem, 0.792rem + 0.28vw, 1.125rem);
  font-family: "Zen Old Mincho", serif;
  font-weight:400;
}

.blog .news-main .webgene-item > a {
  position: relative;
  display: block;
  padding: 0px 4rem 20px 0;
  color: #000000;
  text-decoration: none;
}

.blog .news-main .arrow-btn__icon {
  position: absolute;
  top: 50%;
  right: 0;
  width: 34px;
  height: 34px;
  border: 1px solid #791818;
  transform: translateY(-50%);
}


/* 矢印の横線 */
.blog .news-main .arrow-btn__arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 14px;
  height: 1px;
  background: #791818;
  transform: translate(-50%, -50%);
  transition: 0.4s ease;
}

/* 矢印の先端 */
.blog .news-main .arrow-btn__arrow::after {
  width: 6px;
  height: 6px;
}

/* 記事全体をhover */
.blog .news-main .webgene-item > a:hover{
  opacity:1;
}

.blog .news-main .webgene-item > a:hover .arrow-btn__icon::before {
   clip-path: polygon(0 0, 130% 0, 70% 100%, 0 100%);
}

.blog .news-main .webgene-item > a:hover .arrow-btn__arrow {
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.blog .news-main .webgene-item > a:hover .arrow-btn__arrow::after {
  border-color: #ffffff;
}

.newsItemText{
  display:flex;
  margin:0 0 16px;
  gap: 10px;
  align-items: center;
  font-size:14px;
}

.newsItemCate{
  display: block;
  text-align: center;
  line-height: 1;
}

.news-right{
  width:calc(100% - 200px);
  max-width:960px;
}

.news-contents .webgene-blog{
  display: flex;
  flex-wrap: wrap;
  gap: 5rem 5%;
}

.news-contents .news-main .webgene-item{
  width:30%;
  margin:0;
}


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

.blog .news-main .webgene-blog article > a{
  padding-bottom: 20px;
  border-bottom: 1px solid;
}

.news-main  .newsDetailImg{
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.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: 1 / 1;
  transition: 0.5s;
}

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

.news-main .webgene-blog article > a:hover  .newsDetailImg img{
  transform: scale(1.05);
}

.news-right .newsDetailTime{
  margin-bottom:8px;
  font-size:clamp(0.875rem, 0.792rem + 0.28vw, 1.125rem);
}

.news-right .webgene-blog article h2,
.news-main.news-right .webgene-blog article h3 {
  font-size:clamp(0.875rem, 0.833rem + 0.14vw, 1rem);
  font-weight:500;
  word-break: break-all;
}

.news-right .category{
  margin:1rem 0 12px;
  background:#626262;
  color:#fff;
  border-radius:1rem;
  width:fit-content;
  padding:6px 14px;
  font-size:14px;
}

@media screen and (max-width: 1279px) {
  .news-contents{
    flex-direction: column;
  }
  .news-right {
    width: 100%;
    max-width: none;
  }
}

@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%;
    margin: 0 0 4rem;
  }
  .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{
    margin-bottom: 2rem;
  }
  .news-cate a {
    width: fit-content;
    min-width: 150px;
    padding: 12px 20px;
  }
  .news-contents .news-main .webgene-item {
    width: 100%;
  }
  .news-contents .news-main {
    width: 85%;
  }
  .news .news-main .webgene-blog article > a{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .news-left-contents{
    width:45%;
  }
  .news-right-contents{
    width:50%;
  }
  .news-right .category{
    margin: 1rem 0 8px;
    font-size: 12px;
  }
}

/*ページネーション*/
.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{
  width: 56px;
  height: 56px;
  text-align: center;
  color:#000000;
  border-radius:999vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.webgene-pagination>ul>li.selected a{
  color: #000 !important;
  background:#fff;
  border:1px solid #000000;
}

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

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

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

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


/*詳細*/

.news-detail{
  max-width:960px;
  margin:0 auto;
}

.newsDetail-header{
  display: flex;
  margin: 0 0 16px;
  gap: 10px;
  align-items: center;
}

.newsDetail-header p:nth-child(2){
  display: block;
  text-align: center;
  line-height: 1;
}

.news-detail  .newsDetailTit{
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
  margin: 16px 0 2rem;
  line-height: 1.5;
  padding-bottom: 1rem;
  border-bottom: 1px solid #000000;
}

.news-detail .newsDetailImg img{
  margin:0rem auto 2rem;
  aspect-ratio: 960 / 630;
  object-fit: cover;
  display:block;
}

.news-detail .webgene-blog{
  padding-bottom:5rem;
  border-bottom:1px solid #000000;
}

.newsDetailTxt{
  line-height: 2;
}

.newsDetailTxt h2, .newsDetailTxt h3, .newsDetailTxt h4{
  font-weight: 500;
  margin:1rem 0;
}

.newsDetailTxt h2{
  padding: 1rem .5rem 1rem 1.5rem;
  border-left: 6px solid #B2863A;
  background-color: #F0F0F0;
  font-size: clamp(1.125rem, 1rem + 0.42vw, 1.5rem);
  margin:2rem 0;
}

.single-news .newsItemCate{
  background: #626262;
  color: #fff;
  border-radius: 1rem;
  width: fit-content;
  padding: 6px 14px;
  font-size: 14px;
}

.news-detail.single-news .newsDetailTit{
  margin-bottom: 0.5rem;
}

.single-news .newsDetailTime{
  text-align: right;
  margin-bottom: 1rem;
  font-size: 14px;
}

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

@media screen and (max-width: 767px) {
  .news-main .webgene-blog article {
    width: 100%;
  }
  .newsDetail-header p:nth-child(2) {
    padding: 3px 0.8rem;
    font-size: 12px;
  }
  .newsDetail-header{
    gap:1rem;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 20px;
  }
  .news-detail  .newsDetailTit{
    margin: 0.5rem 0 20px;
  }
  .news-detail .newsDetailTxt{
    font-size:12px;
  }
  .news-detail .container{
    width: 100%;
    padding: 0px 5% 20px !important;
  }
}
