@charset "UTF-8";

.p-product {
  margin-top: clamp(80px, 8.3333333333vw, 100px);
  margin-bottom: clamp(120px, 12.5vw, 150px);
  position: relative;
}

.p-news__categories {
  margin-bottom: clamp(40px, 6.6666666667vw, 80px);
}

@media screen and (min-width:768px) {
  .p-news__categories {
    margin-left: 10px;
  }
}

.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.4666666667;
  letter-spacing: 0.75px;
  font-weight: 500;
  color: #1a63d2;
  border-radius: 42px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (min-width:768px) {
  .p-news__cat {
    min-width: 200px;
    padding: 12.5px 53px;
    font-size: 15px;
  }
}
@media (any-hover: hover) {
  .p-news__cat:hover {
    color: #ffffff;
    background: #1a63d2;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}


.p-product__wrap > .webgene-blog {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 60px 40px;
}
@media screen and (min-width:768px) {
  .p-product__wrap > .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width:1200px) {
  .p-product__wrap > .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
  }
}

.p-product__item {
  width: min(362px, 100%);
}
@media (any-hover: hover) {
  .p-product__item:hover .p-product__item-head img, .p-product__item-head .p-product__item:hover::after {
    scale: 1.1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-product__item-head {
  aspect-ratio: 362/280;
  max-width: 362px;
  overflow: hidden;
  border-radius: 5px;
  position: relative;
}
.p-product__item-head::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: url("../images/ogp.jpg") center/cover no-repeat;
  z-index: -1;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.p-product__item-head img {
  border-radius: 5px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.p-product__item-body {
  margin-left: 32px;
  margin-top: -30px;
  padding: 20px 21px 23px;
  background: #ffffff;
  position: relative;
}

.p-product__title {
  color: #555555;
  font-size: 16px;
  line-height: 1.625;
  letter-spacing: 1.28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.p-product__meta {
  margin-top: 19px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
    -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.p-product__date {
  font-size: 14px;
  line-height: 1.4285714286;
  font-weight: 500;
}

.p-product__tag span {
  display: inline-block;
  padding: 2px 12px;
  color: #1b427a;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  background: #f6f8fc;
  border: 1px solid #1b427a;
  border-radius: 20px;
  text-align: center;
}




.webgene-pagination {
  margin-top: 80px;
  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: #24354C;
}

.webgene-pagination ul .number.selected a {
  background: #1B62D2;
  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: #24354C;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}