/* ========================================
   NEWS slider (front-page)
   ======================================== */

.news.l-wrap {
  display: block;
  padding-block: 40px 56px;
  background-color: #fff;
  color: #000;
}

.news.l-wrap .news__title {
  width: fit-content;
  gap: 0;
  /* style.css がSP時に section-title を column-reverse にするため HTML順に戻す */
  flex-direction: column;
}

.news.l-wrap .news__title .section-title__en {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.news.l-wrap .news__title .section-title__jp {
  font-size: 2.4rem;
  line-height: 1.3;
}

.news.l-wrap .news__title .section-title__en+.section-title__jp {
  margin-top: 2px;
}

.news.l-wrap .news__slider {
  position: relative;
  width: 100vw;
  margin-top: 24px;
  margin-inline-start: calc(50% - 50vw);
  overflow: hidden;
}

.news.l-wrap .news-slider .swiper-slide {
  height: auto;
}

.news.l-wrap .news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #000;
}

.news.l-wrap .news__all-link {
  flex-shrink: 0;
  display: inline-block;
  padding-block: 6px;
  padding-inline: 10px;
  border: 1px solid #000;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.news.l-wrap .news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #6A6A6A;
  transition: all 0.3s ease;
}

.news.l-wrap .news-card:hover {
  opacity: 0.8;
}

.news.l-wrap .news-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #eee;
}

.news.l-wrap .news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news.l-wrap .news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-block: 14px 16px;
  padding-inline: 14px;
}

.news.l-wrap .news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news.l-wrap .news-card__category {
  display: inline-block;
  padding-block: 3px;
  padding-inline: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background-color: #a4935e;
}

.news.l-wrap .news-card__category[data-category="press"] {
  background-color: #b50000;
}

.news.l-wrap .news-card__category[data-category="news"] {
  background-color: #1462cf;
}

.news.l-wrap .news-card__category[data-category="media"] {
  background-color: #662385;
}

.news.l-wrap .news-card__date {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.news.l-wrap .news-card__title {
  margin-top: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.news.l-wrap .news-card__more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.news.l-wrap .news-arrow {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 9px;
}

.news.l-wrap .news-arrow--flip {
  transform: rotate(180deg);
}

.news.l-wrap .news__nav {
  position: absolute;
  inset-block: 0;
  inset-inline: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.news.l-wrap .news-slider__prev,
.news.l-wrap .news-slider__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #000;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news.l-wrap .news-slider__prev:hover,
.news.l-wrap .news-slider__next:hover {
  background-color: #000;
  color: #fff;
}

.news.l-wrap .news-slider__prev.swiper-button-disabled,
.news.l-wrap .news-slider__next.swiper-button-disabled {
  opacity: 0.45;
  background-color: #d8d8d8;
  border-color: #666;
  pointer-events: none;
}

.news.l-wrap .news__all {
  display: none;
}

@media screen and (min-width: 768px) {
  .news.l-wrap {
    width: 100vw;
    margin-inline-start: calc(50% - 50vw);
    padding-block: 80px 100px;
  }

  .news.l-wrap .news__title {
    margin-bottom: 40px;
  }

  .news.l-wrap .news__title::after {
    display: block;
    margin-top: 10px;
    margin-inline: auto;
    border-bottom: 1px solid #333;
    width: 60%;
    content: "";
  }

  .news.l-wrap .news__title .section-title__en {
    font-size: 1.4rem;
  }

  .news.l-wrap .news__title .section-title__jp {
    font-size: 2.8rem;
  }

  .news.l-wrap .news__title .section-title__en+.section-title__jp {
    margin-top: 4px;
  }

  .news.l-wrap .news__slider {
    margin-inline: auto;
    max-width: 1200px;
    padding-inline: 40px;
  }

  .news.l-wrap .news-card__body {
    min-height: 140px;
    padding-block: 10px 20px;
    padding-inline: 15px;
  }

  .news.l-wrap .news-card__date {
    display: none;
  }

  .news.l-wrap .news-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .news.l-wrap .news__nav {
    position: static;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    pointer-events: auto;
  }

  .news.l-wrap .news__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 48px;
    padding-inline: 24px;
    background-color: #fff;
    border: 1px solid #000;
    font-size: 1.6rem;
    font-weight: 700;
  }

  .news.l-wrap .news-slider__prev,
  .news.l-wrap .news-slider__next {
    width: 48px;
    height: 48px;
  }
}