@charset "utf-8";

.top-topics{
  overflow: hidden;
}

.top-topics__card {
  position: relative;
margin: 30px calc((100vw - 100%) / 2 * -1) 0 0 !important;
  padding-bottom: 60px;
}

.card__inner {
  position: relative;
  padding: 30px 30px 46px;
  margin: 0 calc((100vw - 100%) / 2 * -1) 0 0 !important;
  
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: #fff;
    width: 100%;
    max-width: 1287px;
    height: 100%;
  }
}

.card__swiper-container,
.card__swiper,
.card__swiper-wrapper,
.card__swiper-slide {
  position: relative;
}
.card__swiper {
  overflow: visible;
  margin-right: 50px;
}
.card__swiper-wrapper {
      align-items: start;
}

.card__swiper-slide {
  display: flex;
  align-items: center;
  justify-content: start;
  height: auto;
  max-width: 280px;
}

.card__swiper-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  padding: 6px 20px;
  left: 50%;
    transform: translateX(-52%);
    top: calc(100% - 28px);
  width: 300px;
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 100vmax;
  
  &::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 60%;
    background: #CCCCCC;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
@media screen and (min-width: 768px) {
 .card__swiper-bottom {
    transform: translateX(-57%);
  }
}
@media screen and (min-width: 1400px) {
 .card__swiper-bottom {
    left: 500px;
   transform: translateX(0);
  }
}

.card__swiper-bottom img {
  display: block;
}

/* 位置のreset */
.swiper-button-prev,
.swiper-button-next {
  position: relative;
  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 {
    width: 34px;
  height: auto;
  transition: opacity 0.3s;
    &:hover {
   opacity: 0.8;
  }
}

.swiper-button-lock {
   display: block;
}

.card__swiper-slide a {
  width: 100%;
  height: fit-content;
}
.card__swiper-slide a:hover .news__head img {
  scale: 1.1;
}

.news__head {
  aspect-ratio: 281 / 163;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.news__head img{
  object-fit: cover;
  transition: scale 0.5s;
}

.news__body {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news__meta {
  display: flex;
    gap: 16px;
    align-items: center;
}

.news__date {
  font-size: 12px;
  line-height: calc(14 / 12);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #838284;
}

.news__title {
  font-size: 14px;
  font-weight: 500;
  line-height: calc(23 / 14);
  letter-spacing: 0.05em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-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: 650px) {
  .news-list > .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 28px;
  }
}
@media screen and (min-width: 1024px) {
  .news-list > .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px min(calc(30 / 1366 * 100vw), 60px)  }
}
@media screen and (min-width: 1100px) {
  .news-list > .webgene-blog {
    grid-template-columns: repeat(4, 1fr);
    gap: 60px min(calc(30 / 1366 * 100vw), 60px);
  }
}