@charset "utf-8";

.top-works__wrap .webgene-blog {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 45px;
}
@media screen and (min-width: 1024px) {
  .top-works__wrap .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
    gap: min(calc(45 / 1366 * 100vw), 45px);
  }
}

.detail-works__wrap .webgene-blog {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 45px;
}
@media screen and (min-width: 768px) {
  .detail-works__wrap .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
    gap: min(calc(45 / 1366 * 100vw), 45px);
  }
}
@media screen and (min-width: 1024px) {
  .detail-works__wrap .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
  }
}

.works__wrap a {
  width: 100%;
  height: fit-content;
}
.works__wrap a:hover .works__head img {
  scale: 1.1;
}

.works__head {
  aspect-ratio: 370 / 366;
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}
.works__head img{
  object-fit: cover;
  transition: scale 0.5s;
}

.works__body {
  margin: -48px 0 0 auto;
  width: 85%;
  height: 136px;
  padding: 20px 25px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 5;
}
@media screen and (min-width: 1024px) {
  .works__body {
    width: min(calc(330 / 1366 * 100vw), 330px);
  }
}

.works__tag {
  padding: 5px 7px 5px;
  background: #E1E6E2;
  color: #186A28;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  width: fit-content;
  margin: auto 0 0 0;
}

.works__title {
  font-size: 16px;
  line-height: calc(28.8 / 16);
  letter-spacing: 0.08em;
  color: #3F4D41;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.works-list > .webgene-blog {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 35px 20px;
  width: fit-content;
  margin: 0 auto;
}
@media screen and (min-width: 450px) {
  .works-list > .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 28px;
  }
}
@media screen and (min-width: 768px) {
  .works-list > .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
    gap: 61px 40px;
  }
}

.works-category > .webgene-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 80px;
}
@media screen and (min-width: 1300px) {
  .works-category > .webgene-blog {
    gap: 20px;
    max-width: 800px;
    margin-inline: auto;
  }
}

.works__cat {
  background: #EAEBEB;
  border-radius: 24px;
  padding: 10px 15px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #272727;
  transition: background 0.3s;
}
@media screen and (min-width: 768px) {
  .works__cat {
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
  }
}
.works__cat:hover {
  background: #EFFF04;
  color: #272727;
}
