@charset "UTF-8";

.p-works {
  padding-bottom: clamp(120px, 12.5vw, 150px);
  position: relative;
}

.p-works__category-wrap {
  margin-bottom: clamp(60px, 6.4166666667vw, 77px);
}

.p-works__category-wrap > .webgene-blog {
  padding-block: 30px 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #939393;
  row-gap: 20px;
}
@media screen and (min-width:768px) {
  .p-works__category-wrap > .webgene-blog {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
}

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

.p-works__items > .webgene-blog .webgene-item {
  width: 100%;
}

.p-works__item {
  max-width: 377px;
  height: 100%;
  padding: 13px 13px 60px;
  color: #ffffff;
  background: #646a6f;
  border-radius: 5px;
  margin-inline: auto;
}
@media (any-hover: hover) {
  .p-works__item:hover {
    opacity: 1;
    color: #ffffff;
  }
  .p-works__item:hover .p-works__item-img img,
  .p-works__item:hover .p-works__item-img::after {
    scale: 1.1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}



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

.p-works__item-tag {
  margin-top: 20px;
}

.p-works__item-tag span {
  display: inline-block;
  padding: 3px 9px;
  font-family: "Prompt", sans-serif;
  font-size: 12px;
  line-height: 1.3333333333;
  letter-spacing: 0.72px;
  background: #7C8185;
  border-radius: 12px;
}

.p-works__item-title {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.875;
  letter-spacing: 0.96px;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.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: #3D4448;
}

.webgene-pagination ul .number.selected a {
  background: #DA2F1E;
  color: #ffffff;
  -webkit-box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3019607843);
          box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3019607843);
  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: #3D4448;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}