@charset "UTF-8";

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

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

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

.p-works__cat {
  display: inline-block;
  min-width: 140px;
  background: #faf9ec;
  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;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (min-width:768px) {
  .p-works__cat {
    min-width: 160px;
    padding: 15px 43px;
    font-size: 14px;
  }
}
@media (any-hover: hover) {
  .p-works__cat:hover {
    background: #F9E14B;
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-works__wrap {
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-works__wrap {
    max-width: 872px;
  }
}
@media screen and (min-width:1200px) {
  .p-works__wrap {
    max-width: 1142px;
  }
}

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

.p-works__swiper-slide {
  width: min(354px, 100%);
  padding: 21px 20px 24px;
  background: #f7f7f7;
}
@media (any-hover: hover) {
  .p-works__swiper-slide:hover .p-works__slide-head img {
    scale: 1.1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-works__slide-head {
  aspect-ratio: 314/260;
  border-radius: 5px;
  overflow: hidden;
}
.p-works__slide-head img {
  border-radius: 5px;
}

.p-works__slide-body {
  margin-top: 15px;
}

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

.p-works__title {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.7333333333;
  letter-spacing: 1.2px;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 52px;
}

.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.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;
  }
}