@charset "UTF-8";

.p-news {
  padding-top: clamp(80px, 9.1666666667vw, 110px);
  padding-bottom: clamp(100px, 10.8333333333vw, 130px);
  position: relative;
}

.p-news__categories {
  margin-bottom: clamp(40px, 5.8333333333vw, 70px);
}
@media screen and (min-width:768px) {
  .p-news__categories {
    margin-left: clamp(40px, 3.8067349927vw, 52px);
  }
}

.p-news__categories > .webgene-blog {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.p-news__cat {
  display: inline-block;
  min-width: 140px;
  background: #b6cfef;
  padding: 8.5px 30px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4285714286;
  letter-spacing: 0.7px;
  font-weight: 500;
  color: #372710;
  border-radius: 42px;
  background: #ffffff;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (min-width:768px) {
  .p-news__cat {
    min-width: 160px;
    padding: 12.5px 43px;
    font-size: 14px;
  }
}
@media (any-hover: hover) {
  .p-news__cat:hover {
    background: #F9E14B;
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-news__wrap {
  max-width: 1078px;
  margin-inline: auto;
  border-radius: 10px;
}
.p-news__wrap .webgene-item {
  background: #ffffff;
}
.p-news__wrap .webgene-item:first-of-type {
  padding-top: 20px;
  border-radius: 10px 10px 0 0;
}
.p-news__wrap .webgene-item:last-of-type {
  border-radius: 0 0 10px 10px;
  padding-bottom: 20px;
}
.p-news__wrap .webgene-item:only-of-type {
  padding-top: 20px;
  padding-bottom: 20px;
  border-radius: 10px;
}
.p-news__wrap .webgene-item:nth-of-type(n + 2) .c-link {
  border-top: 1px solid #a7a7a7;
}

.p-news__item {
  padding-left: clamp(20px, 3.2942898975vw, 45px);
  padding-right: clamp(20px, 3.2210834553vw, 44px);
  -webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
          box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
}
.p-news__item .c-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding-block: 42px;
  gap: 16px 31px;
  padding-right: 28px;
  position: relative;
}
.p-news__item .c-link::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 0;
  width: 28px;
  height: 28px;
  background: url(../images/news-icon-right.svg) no-repeat center center/cover;
}
@media screen and (min-width:1024px) {
  .p-news__item .c-link {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}

.p-news__item-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 26px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.p-news__item-date {
  color: #372710;
  font-size: 14px;
  line-height: 1.4285714286;
  letter-spacing: 0.28px;
}

.p-news__item-tag span {
  display: inline-block;
  padding: 2px 7px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.96px;
  font-weight: 500;
  text-align: center;
  background: #ada79e;
}

.p-news__item-title {
  color: #372710;
  font-size: clamp(14px, 1.3333333333vw, 16px);
  line-height: 1.5;
  letter-spacing: 1.28px;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.webgene-pagination {
  margin-top: clamp(40px, 7.3206442167vw, 100px);
  font-size: 14px;
  justify-self: center;
  grid-column: 1/-1;
}

.webgene-pagination a:hover {
  opacity: 0.7;
}

.webgene-pagination ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
  gap: 10px;
  -webkit-padding-start: 0;
          padding-inline-start: 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.webgene-pagination ul .number a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  line-height: 2.2;
  border-radius: 50%;
  background-color: #fff;
  color: #483C42;
}

.webgene-pagination ul .number.selected a {
  background: #F9E14B;
  color: #4B4B4B;
  border-radius: 50%;
}

li.next,
li.prev {
  position: relative;
}

li.next a,
li.prev a {
  height: 40px;
  width: 40px;
  padding: 2px;
  position: relative;
}

li.prev:after,
li.next:after {
  pointer-events: none;
  content: "";
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 40px;
  height: 40px;
}

li.prev:after {
  background-image: url("../images/prev-news.png");
  left: 0;
}

li.next:after {
  background-image: url("../images/next.png");
  right: 0;
}

@media screen and (min-width: 768px) {
  li.next {
    margin-left: 30px;
  }
  li.prev {
    margin-right: 30px;
  }
  li.next a,
  li.prev a {
    margin-top: 3px;
    width: auto;
    padding-block: 10px;
    z-index: 10;
    line-height: 1;
  }
  li.prev a {
    padding-left: 48px;
    color: #919191;
  }
  li.next a {
    padding-right: 48px;
    color: #483C42;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}