@charset "UTF-8";

.p-news {
  padding-top: clamp(60px, 7.5vw, 90px);
  padding-bottom: clamp(124px, 15vw, 180px);
}

.p-news__categories {
  margin-bottom: clamp(40px, 5vw, 60px);
  max-width: 1060px;
  margin-inline: auto;
}

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

.p-news__cat span {
  display: inline-block;
  padding: 15px 20px;
  color: #52C272;
  font-size: 14px;
  line-height: 1.4285714286;
  letter-spacing: 0.7px;
  font-weight: 500;
  text-align: center;
  min-width: 160px;
  background: #E7F2EA;
  border-radius: 26px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media (any-hover: hover) {
  .p-news__cat:hover span {
    -webkit-box-shadow: inset 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
            box-shadow: inset 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
    background: #43c263;
    color: #ffffff;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-news__link-wrap {
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
  border-top: 1px solid #e7e6e6;
}

.p-news__item {
  padding-block: clamp(30px, 3.6666666667vw, 44px);
  border-bottom: 1px solid #e7e6e6;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
  position: relative;
}
@media screen and (min-width:1024px) {
  .p-news__item {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 22px;
  }
}
.p-news__item::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 0;
  width: 34px;
  height: 33px;
  background: url(../images/top-news-link-right.png) no-repeat center center/contain;
}

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

.p-news__item-date {
  font-size: 13px;
  line-height: 1.4615384615;
  letter-spacing: 0.26px;
  font-weight: 500;
  color: #372710;
}

.p-news__item-tag span {
  padding: 3px 8px;
  color: #43c263;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.96px;
  font-weight: 500;
  text-align: center;
  border: 1px solid #43c263;
  border-radius: 12px;
}

.p-news__item-title {
  padding-right: 44px;
  color: #372710;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1.28px;
  font-weight: 500;
  text-decoration: underline;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.webgene-pagination {
  margin-top: 110px;
  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: #333333;
}

.webgene-pagination ul .number.selected a {
  background: #51C172;
  color: #fff;
  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.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: #333333;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}