@charset "utf-8";

.top-works__card {
  margin-top: 50px;
}
.top-works__card-inner {
  position: relative;
}
.top-works__swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 369px;
  height: auto;
}
.top-works__swiper-container,
.top-works__swiper,
.top-works__swiper-wrapper,
.top-works__swiper-slide {
  position: relative;
  align-items: start;
}
.top-works__swiper {
  overflow: visible;
}
.swiper-button-prev,
.swiper-button-next {
  top: unset;
  bottom: unset;
  left: unset;
  right: unset;
  margin: 0;
  padding: 0;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: ""; /* デフォルトのものを初期化 */
}

.swiper-button-prev,
.swiper-button-next {
  bottom: calc(100% + 24px);
}
@media screen and (min-width: 1024px) {
  .swiper-button-prev,
  .swiper-button-next {
    bottom: calc(100% + 83px);
  }
}
.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
}

.swiper-button-prev {
  right: 70px;
  background: url("../images/icon-prev.svg") center / contain no-repeat;
}
.swiper-button-next {
  right: 0;
  background: url("../images/icon-next.svg") center / contain no-repeat;
}

.top-works__swiper-slide a,
.works__wrap a{
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.top-works__swiper-slide a:hover .works__head img,
.works__wrap:hover .works__head img{
  scale: 1.1;
}
.works__wrap:hover .works__body{
  opacity: 0.7;
}

.works__head {
  aspect-ratio: 369 / 253;
  width: 100%;
  height: auto;
  border-radius: 5px;
  overflow: hidden;
}
.works__head img{
  transition: scale 0.5s;
}

.works__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: opacity 0.3s;
}

.works__tag {
  padding: 8px 10px 7px;
  background: #E2F6FF;
  color: #0F2086;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  width: fit-content;
  border-radius: 3px;
  flex-shrink: 0;
}

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

.works-list > .webgene-blog {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 35px 20px;
  width: fit-content;
  margin: 0 auto 165px;
}
@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: 55px 28px;
  }
}

.works-category > .webgene-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 60px;
  padding-bottom: 10px;
  justify-content: center;
}
@media screen and (min-width: 1300px) {
  .works-category > .webgene-blog {
    justify-content: start;
  }
}

.works__cat {
  width: min(100%, 245px);
}
.works__cat a{
  min-width: 110px;
  border: 1px solid transparent;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 18px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #323232;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
@media screen and (min-width: 768px) {
  .works__cat a{
    min-width: 245px;
  }
}
.works__cat a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35BBF1;
}

.works__cat a:hover {
  background: #F4F4F4;
}

.worksDetail-text .post-detail__content img {
    aspect-ratio: unset;
  border-radius: 0;
}