@charset "utf-8";

.news{
  width:85%;
  margin:0 auto;
  max-width:1600px;
}

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

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

.news-cate a:hover{
  background:#333333;
  color:#fff;
}

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


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

.news-main{
  margin:5rem auto 0;
  padding:7.5rem 5%;
  background:#fff;
}

.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:2.5rem 5% 2.5rem 2.5%;
  border-bottom:1px solid #BFBFBF;
  position:relative;
  z-index:1;
}

.news-main .webgene-blog article > a::before{
  content:"";
  aspect-ratio:22/17;
  position:absolute;
  width:22px;
  right:1%;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  background:url(https://fkrelations.co.jp/system_panel/uploads/images/20251202143245199488.png) no-repeat center/contain;
}

.news-main .webgene-blog article > a::after{
  content:"";
  position:absolute;
  width:0;
  height:100%;
  background:#dcd6cd;
  top:0;
  left:0;
  transition:0.5s;
  z-index:-1;
}

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

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


.news-main .webgene-blog article .newsItemTit{
  font-size:clamp(1rem, 0.955rem + 0.15vw, 1.125rem);
  width: calc(100% - 250px);
}

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

.newsItemCate{
  padding:8px 1rem;
  background:#333333;
  color:#fff;
  font-size:clamp(0.75rem, 0.682rem + 0.23vw, 0.938rem);
  line-height:1;
}

.newsItemTime{
  font-size:clamp(0.875rem, 0.852rem + 0.08vw, 0.938rem);
}



@media screen and (max-width: 1024px) {
  .news-cate-box{
    width: 100%;
  }
  .news-cate .webgene-blog {
    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{
    width:100%;
  }
  .news-cate-box {
    width: 90%;
    margin: 0 auto;
  }
  .news-main {
    margin: 2rem auto 0;
    width:100%;
    padding: 20px 0;
  }
  .news-main .webgene-blog article{
    width:100%;
  }
  .news-cate a {
    padding: 8px 20px;
    font-size:14px;
  }
  .news-cate > p {
    margin-bottom: 0.5rem;
  }
  .bg-gray h1 {
    margin-bottom: 4rem;
  }
  .newsItemCate {
    padding: 5px 0.8rem;
    font-size: 12px;
  }
  .newsItemText{
    font-size: 12px;
    gap: 20px;
  }
  .news-main .webgene-blog .newsTextWrap{
    gap:1rem;
  }
  .news-main .webgene-blog article > a{
    padding: 1.5rem 5% 1.5rem 5%;
  }
  .news-main .webgene-blog article > a::before{
    display:none;
  }
  .news-main .webgene-blog article:first-child > a{
    border-top: 1px solid #BFBFBF;
  }
}

/*ページネーション*/
.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: 40px;
  height: 40px;
  text-align: center;
  display:flex;
  justify-content: center;
  align-items: center;
  background-color:#fff;
  border:1px solid #6A6A6A;
  color:#0E0E0E !important;
  font-size:18px;
}
.webgene-pagination>ul>li a:hover{
  opacity:0.7;
}
.webgene-pagination>ul>li.selected a{
  color:#fff !important;
  background: #6A6A6A;
}

.webgene-pagination>ul>li.selected a:hover{
  opacity:1;
}

.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:2.5rem;
  justify-content: space-between;
}

.newsDetailTit{
  font-size:clamp(1.25rem, 0.795rem + 1.52vw, 2.5rem);
  line-height: 1.5;
}

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

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

.newsDetailCate{
  padding:8px 1rem;
  background:#333333;
  line-height:1;
  color:#fff;
}

.news-detail .webgene-blog article{
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom:130px;
  border-bottom:1px solid #BFBFBF;
}

.newsDetailImg{
  margin: 60px auto 70px;
}

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

.news-detail .single-arrow{
  margin:50px auto 0;
  display:flex;
  align-items:center;
  gap:18px;
  width:fit-content;
}

.news-detail .single-arrow::before{
  content:"";
  display:block;
  width:2.5rem;
  height:2.5rem;
  transition:0.3s;
  background:url(https://fkrelations.co.jp/system_panel/uploads/images/20251202144737420932.png) no-repeat center/contain;
}

.news-detail .single-arrow:hover::before{
  background:url(https://fkrelations.co.jp/system_panel/uploads/images/20251202144737291327.png) no-repeat center/contain;
}

@media screen and (max-width: 767px) {
  .newsDetail-header{
    margin-bottom:2rem;
    font-size: 14px;
    justify-content: flex-start;
    gap: 1rem;
  }
  .newsDetailCate{
    padding: 8px 0.9rem;
  }
  .newsDetailImg {
    margin: 2.5rem auto 2rem;
  }
  .news-detail{
    padding:50px 5%;
  }
  .news-detail .newsDetailTxt{
    font-size:15px;
  }
  .news-detail .webgene-blog article{
    padding-bottom: 4rem;
  }
  .news-detail .single-arrow {
    margin: 2rem auto 0;
    gap: 10px;
  }
  .news-detail .single-arrow::before{
    width: 28px;
    height: 28px;
  }
}
