@charset "utf-8";

.news-title{
  position: relative;
  padding: 2rem 0;
  margin: 2rem auto;
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  justify-content: center;
  color: #5F3500;
  text-align: center;
  font-size: 1.125rem;
}

.news-title h2{
  position: relative;
  text-align: center;
  width: fit-content;
  font-size: 3rem;
}

.news-cate-wrap{
  margin: 0 auto 2rem;
  padding: 3rem 15%;
  background-color: #EBE7D3;
}

.news-cate{
  width:70%;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap:  1rem;
  max-width: 1440px;
}

.news-cate-box{
  display: flex;
  gap: 1rem;
}

.news-cate-box a{
  line-height:1;
  display: block;
  width: 180px;
  height: 42px;
  padding: 12px 1rem;
  text-align: center;
  background-color: #fff;
  font-weight: bold;
  border: 2px solid #000;
}

.news-cate-box a:hover{
  text-decoration: none;
  transition: all 0.5s ease;
  background-color: #FFB817;
  color: #000;
}

.news-cate-box a p{
  line-height:1;
  font-weight: bold;
  font-size: 14px;
  color: #000;
}

.sideLink{
  width: 180px;
  height: 42px;
  padding: 12px 1rem;
  text-align: center;
  background-color: #fff;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid #000;
}

.sideLink p{
  color: #000;
}

.sideLink:hover{
  text-decoration: none;
  transition: all 0.5s ease;
  background-color: #FFB817;
  color: #000;
}

.news-main{
    width:70%;
    margin: 3rem auto 0;
    max-width: 1440px;
}

.news-img img{
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  overflow:hidden;
}

.webgene-blog{
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 1rem;
}

.webgene-item-content{
  max-width: 80vw;
  margin: 0 auto
}


.webgene-item-main-image{
  max-width: 100%;
  height: 240px;
  border-radius: 10px;
  object-fit: cover;
  transition:1s all;
  border: 3px solid #000;
}

.newsCatch{
  overflow:hidden;
  border-radius: 10px;
}

.newsItem{
  width: 32%;
  max-width: 400px;
  padding: 0.5rem;
}

.newsItemTit{
  font-size: 1rem;
  word-break: break-all;
}

.newsLink:hover{
    opacity:0.7;
    text-decoration: none;
  	color: #000;
}

.newsLink:hover  .newsCatch img{
    transform:scale(1.2,1.2);
}

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

.newsItemCate{
  display: block;
  width: fit-content;
  font-size: 12px;
  color: #000;
  border: 1px solid #000;
  padding: 0.25rem 0.5rem;
}

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

.Blog-detail-img img{
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 0 2rem;
  max-height: 500px;
}

.newsDetailTit{
  margin-bottom: 2rem;
}

.newsTextWrap{
  padding: 0.5rem 0.5rem 2rem;
}

@media screen and (max-width: 1280px) {
  .news-main .webgene-blog article > a{
        padding: 2.5rem 0;
  }
  
}

@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 div.cate p {
    margin-right: 1rem;
  }
    .news-main .webgene-blog article > a{
    flex-direction: column;
    gap: 2rem;
  }
  .news-main{
    width: 90%;
    margin: 0 auto;
  }
  .news-main .newsDetailImg{
    width:100%;
    margin: 0.5rem auto;
  }
  .news-main .newsTextWrap{
    width: 90%;
    margin: 0 auto;
  }
  .newsItem{
    width: 43%;
    padding: 0.5rem;
  }
   .news-main .webgene-blog{
     justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .news-title{
    margin: 1rem auto;
    font-size: 14px;
    width: 90%;
  }
  .news-title h2{
    font-size: 1.5rem;
  }
  .webgene-item-content{
    width: 100%;
    max-width: 100vw;
  }
  .news-main .newsDetailImg {
    width: 100%;
  }
  .news-main{
    width: 100%;
    margin: 0 auto;
  }
  .news-cate {
    flex-wrap: wrap;
    margin: 0.5rem auto;
    width: 90%;
  }
  .news-cate .webgene-blog{
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .newsItemCate{
    font-size: 10px;
    padding: 0.25rem;
  }
  .news-main .webgene-blog{
     gap: 2rem;
    width: 90%;
      margin: 3rem auto;
  }
  
      .news-cate-box a {
        padding: 0.5rem;
        font-size: 12px;
        width: 140px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
  .news-main .webgene-blog article > a{
            padding: 2.5rem 0 2rem;
  }
  .webgene-item-main-image{
    width: 100%;
    max-width: 100%;
    max-height: 240px;
    height: 240px;
    margin: 0 auto;
  }
  .newsDetailTit{
    font-size: 1.25rem;
  }
  .newsItemTit{
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
    .news-main .webgene-blog article{
      width:100%;
    }
	.news-cate-box {
      width: 100%;
      gap: 1rem;
      flex-direction: column;
      align-items: baseline;
    }
    .news-cate-wrap{
      padding: 2rem 5%;
      background-color: #EBE7D3;
    }
  .newsItem{
    width: 100%;
  }
}



/*ページネーション*/
.webgene-pagination {
  width: 100%;
}
.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: 40px;
    height: 40px;
    text-align: center;
    padding: 8px 0;
    background-color: #FFF;
    color: #5F3500;
    border: 3px solid #5F3500;
}

.webgene-pagination>ul>li a:hover{
  color: #5F3500;
  text-decoration: none;
  background-color: #FFB817;
  border: 3px solid #5F3500;
}

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

.number.selected a{
  color: #5F3500;
  text-decoration: none;
  background-color: #FFB817;
}

.next a{
  background-color: transparent!important;
    color: #5F3500;
}

.prev a{
  background-color: transparent!important;
    color: #5F3500;
}

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

/*詳細*/
.newsDetail{
  margin: 0 auto;
  width: 100%;
}

.newsDetail-wrap{
  padding: 2rem 5%;
  border-radius: 10px;
  width: 70%;
  margin: 0 auto;
}

.newsDetail-wrap-title{
  padding: 3rem 15%;
  background-color: #EBE7D3;
}

.news-detail .news-cate {
  margin: 0;
  align-items: baseline;
  gap: 2rem;
  flex-direction: column;
  width:300px;
}

.newsDetail-header{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}


.news-detail-box .btn{
  margin-top:3rem;
}

.newsDetail-header p:nth-child(2){
    color: #F58193 !important;
    padding: 10px 1.5rem;
    display: block;
    border-radius: 20px;
    background-color: #FDEFF2;
    text-align: center;
      line-height: 1;
  font-size:12px;
}

.news-detail .btn-flat{
    margin: 4rem auto 0;
    display: block;
}

.news-detail  .newsDetailTit{
  font-size: 1.5rem;
  margin: 0.5rem 0 2rem;
   line-height: 1.5;
}

.news-detail .newsDetailImg img{
  margin:0rem 0 2.5rem;
}

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

.newsDetailTxt a{
   text-decoration: underline;
  color: #01A0E9;
}

.newsDetailTxt h2{
   font-size: 1.5rem;
}

.newsDetailTxt h3{
   font-size: 1.25rem;
}

.news-detail .btn{
    margin-top: 5rem;
}

.newsDetailBtnBox{
  margin: 2rem auto;
}

.btn1{
  margin: 0 auto;
  width: fit-content;
  display: block;
}

@media screen and (max-width: 768px) {
  .news-detail{
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
  }
  .newsDetail-header p:nth-child(2) {
    padding: 0.5rem 1rem;
  }
  .news-detail .newsDetailImg img {
    margin: 0rem 0 1.5rem;
}
  .news-detail .btn {
    margin-top: 3rem;
}
  .newsDetail-wrap{
      width: 100%;
    }
}


