@charset "utf-8";

.top-works__card {
  margin-top: 88px;
}
@media screen and (min-width: 768px) {
  .top-works__card {
  margin-top: 68px;
}
}

.top-works__card-inner {
  position: relative;
}
.top-works__swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 354px;
  height: auto;
}
.top-works__swiper-container,
.top-works__swiper,
.top-works__swiper-wrapper,
.top-works__swiper-slide {
  position: relative;
}
.top-works__swiper {
  overflow: visible;
}
.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  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% + 20px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
@media screen and (min-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    bottom: calc(100% + 134px);
  }
}

.swiper-button-prev {
  right: 70px;
  background-color: #B9D4EC;
  background-image: url("../images/icon-prev.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 7px 11px;
}
.swiper-button-next {
  right: 0;
  background: #B9D4EC;
  background-image: url("../images/icon-next.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 7px 11px;
}

.list-works__wrap > .webgene-blog {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  max-width: 500px;
  margin-inline: auto;
}
@media screen and (min-width: 768px) {
  .list-works__wrap > .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    max-width: 100%;
  }
}
@media screen and (min-width: 1100px) {
  .list-works__wrap > .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
  }
}

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

.works__wrap a{
  display: flex;
  flex-direction: column;
}
.works__wrap:hover .works__head img{
  scale: 1.1;
}
.works__wrap:hover .works__body{
  opacity: 0.7;
}

.works__body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: opacity 0.3s;
}

.works__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.works__tag {
  padding: 4px 8px 5px;
  background: #C6ECFA;
  color: #368EE8;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  width: fit-content;
  flex-shrink: 0;
}

.works__title {
  font-size: 16px;
  line-height: calc(32 / 16);
  font-weight: 500;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.works__cat {
  width: min(100%, 200px);
}

.works__cat a{
  min-width: 110px;
  border: 1px solid #BAD4EB;
  background: #BAD4EB;
  border-radius: 42px;
  padding: 14px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #2F88E9;
  transition: all 0.3s;
}
@media screen and (min-width: 768px) {
  .works__cat a{
    min-width: 200px;
  }
}
.works__cat a:hover {
  background: #2F88E9;
  color: #fff;
}

