/* merit */
.sns-merit {
  background: #e6eff2;
  padding-top: 80px;
}

.sns-merit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 929px;
  margin: 52px auto 0;
}

.sns-merit-card {
  padding: 21px 19px 14px;
  background: #fff;
  overflow: hidden;
}

.sns-merit-card-img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.sns-merit-card-body {
  padding-top: 20px;
}

.sns-merit-card-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 13px;
}

.sns-merit-card-text {
  font-size: 0.82rem;
  line-height: 1.7;
}

@media (min-width: 769px) {
  .sns-merit-grid .scroll-hint-icon {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sns-merit-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  .sns-merit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .sns-merit {
    overflow: hidden;
    padding-top: 60px;
  }

  .sns-merit-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 24px 16px;
    scrollbar-width: none;
  }

  .sns-merit-grid::-webkit-scrollbar {
    display: none;
  }

  .sns-merit-card {
    flex: 0 0 80vw;
    max-width: 300px;
    scroll-snap-align: start;
  }
}

/* 成功事例 */
.case {
  background-color: #fef5e2;
  padding: 80px 0 130px;
}

.section-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin: 12px auto 0;
  border-radius: 2px;
}
/* 
  /* ===== Slider wrapper ===== */
.slider-outer {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Each slide ===== */
.slide {
  min-width: 100%;
  /* padding: 0 180px; */
}

/* ===== Card ===== */
.case-card {
  background: #ffffff;
  overflow: hidden;
  max-width: 929px;
  margin: 0 auto;
}

.case-card-header {
  background: #039194;
  color: #ffffff;
  padding: 15px 32px;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.03em;
}

.case-card-body {
  display: flex;
  gap: 0;
  padding: 0 42px 0;
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-weight: bold;
  margin: 82px 22px 82px 0px;
  width: 90%;
}

.case-meta-row {
  border-bottom: 1px solid #039194;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.1rem;
  padding: 22px 10px;
}

.case-meta-label {
  white-space: nowrap;
  min-width: 88px;
}

.case-meta-value {
  flex: 1;
  padding-bottom: 4px;
}

.case-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-img {
  width: 100%;
}

.case-details {
  padding: 0 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-detail-block {
  background-color: #e6eff2;
}

.case-detail-label {
  background: #039194;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 44px 13px 21px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  display: inline-block;
}

.case-detail-text {
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 14px 20px 20px;
}
.swiper-container .swiper-button-prev.case-btn {
  left: 87px;
}
.swiper-container .swiper-button-next.case-btn {
  right: 87px;
}

#case .swiper-container {
  margin-top: 69px;
}
#case-listing .swiper-container {
  margin-top: 69px;
}

#case .swiper {
  max-width: 1160px;
  padding: 0 120px; /* この値でチラ見せ量を調整 */
  margin: auto;
  overflow: visible;
}
#case-listing .swiper {
  max-width: 928px;
  padding: 0 120px; /* この値でチラ見せ量を調整 */
  margin: auto;
  overflow: visible;
}

@media (max-width: 768px) {
  .case {
    padding-top: 60px;
  }
  #case .swiper-container {
    margin-top: 25px;
  }
  #case-listing .swiper-container {
    margin-top: 25px;
  }
  .slide {
    padding: 0 16px;
  }
  .case-card-body {
    grid-template-columns: 1fr;
    display: block;
    padding: 0;
  }
  .case-left {
    padding: 20px 20px 16px;
    border-right: none;
    border-bottom: 1px solid #eef0f1;
  }
  .case-card-header {
    padding: 14px 20px;
    font-size: 1.2rem;
  }
  .case-card {
    margin-top: 33px;
  }
  .case-meta {
    margin: 10px 20px;
    flex: none;
  }
  .case-meta-row {
    font-size: 1rem;
    padding: 13px 10px;
    gap: 5px;
  }
  .case-right {
    padding: 16px 20px;
  }
  .case-details {
    padding: 0 20px 20px;
  }
  .case-detail-label {
    font-size: 0.95rem;
  }
  .case-detail-text {
    font-size: 0.75rem;
    padding: 8px 12px 12px;
  }
  #case .swiper {
    padding: 0 10px;
  }
  #case-listing .swiper {
    padding: 0 10px;
  }
  .swiper-container .swiper-button-prev.case-btn {
    left: 45px;
  }
  .swiper-container .swiper-button-next.case-btn {
    right: 45px;
  }
}

/* 運用の最新情報 */
.latest-news {
  padding: 80px 0 85px;
  background-color: #e8eff2;
}
.latest-news-meo {
  background-color: #EEFCF7;
}

.latest-news__heading {
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-top: 20px;
}

.latest-news__heading::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #039194;
  margin: 0 auto 16px;
}

.latest-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 78px;
  margin-bottom: 78px;
}

.latest-news__item {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
  display: block;
}

.latest-news__item:hover .latest-news__img {
  opacity: 0.8;
}

.latest-news__img-wrap {
  position: relative;
  margin-bottom: 12px;
}

.latest-news__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.latest-news__cat {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #039194;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 4px;
}

.latest-news__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.latest-news__tag {
  color: #039194;
  font-size: 14px;
  text-decoration: none;
}

.latest-news__date {
  font-size: 14px;
  margin-bottom: 15px;
}

.latest-news__title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
}

.latest-news__btn-wrap {
  text-align: center;
}

.latest-news__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: #039194;
  color: #ffffff;
  font-size: 21px;
  font-weight: bold;
  padding: 16px 57px 16px 27px;
  text-decoration: none;
  clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
  transition: opacity 0.2s;
}

.latest-news__btn:hover {
  opacity: 0.8;
}

.latest-news__btn-arrow {
  font-size: 18px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .latest-news {
    padding: 60px 0;
  }
  .latest-news__grid {
    grid-template-columns: 1fr;
    gap: 49px;
    margin: 35px 0;
  }

  .latest-news__heading {
    font-size: 20px;
  }
  .latest-news__title {
    font-size: 16px;
  }
  .latest-news__date {
    margin-bottom: 10px;
  }
  .latest-news__btn {
    font-size: 14px;
    padding: 14px 29px 14px 29px;
  }
  .u-voice__content.swiper-wrapper {
    height: 320px;
  }
}

.swiper-container {
  position: relative;
}
/* ページネーションの位置 */
.swiper-container .swiper-pagination {
  bottom: -70px !important;
  z-index: 10;
  display: inline-block;
  width: 160px;
  left: 50%;
  transform: translateX(-50%);
}
.swiper-container .swiper-button-prev,
.swiper-container .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 55px;
  /* 丸の直径 */
  height: 55px;
  background-color: rgba(0, 0, 0, 0.5);
  /* 背景色 */
  background-color: #039194;
  border-radius: 50%;
  /* 丸くする */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

/* ホバー時の効果 */
.swiper-container .swiper-button-prev:hover,
.swiper-container .swiper-button-next:hover {
  opacity: 0.7;
  transform: translateY(-50%) scale(1.1);
  /* ホバー時に拡大 */
}

/* 左矢印 */
.swiper-container .swiper-button-prev::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 14px 10px 0;
  border-color: transparent #ffffff transparent transparent;
  transform: translateX(-2px);
}

/* 右矢印 */
.swiper-container .swiper-button-next::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 14px;
  border-color: transparent transparent transparent #ffffff;
  transform: translateX(2px);
}

/* スライダー矢印／左右の位置 */
.swiper-container .swiper-button-prev {
  left: 11px;
}

.swiper-container .swiper-button-next {
  right: 11px;
}

/* ページネーションの余白 */
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets
  .swiper-pagination-bullet {
  margin: 0 10px 10px;
}

/* ページネーションのサイズと色 */
.swiper-pagination-bullet {
  background-color: #969595;
  background-color: #d0d0d0;
  opacity: 1;
  height: 10px;
  width: 10px;
}

.swiper-pagination-horizontal
  > span.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #039194;
  height: 10px;
  width: 10px;
}
#case .swiper-pagination .swiper-pagination-bullet:nth-child(n + 4) {
  display: none;
}
#case-listing .swiper-pagination .swiper-pagination-bullet:nth-child(n + 4) {
  display: none;
}
@media (max-width: 768px) {
  .swiper-container .swiper-button-prev,
  .swiper-container .swiper-button-next {
    width: 45px;
    height: 45px;
  }

  /* 左右の位置 */
  .swiper-container .swiper-button-prev {
    left: 30px;
  }

  .swiper-container .swiper-button-next {
    right: 30px;
  }

  .swiper-container .swiper-button-prev,
  .swiper-container .swiper-button-next {
    width: 47px;
    height: 47px;
  }

  /* 左右の位置 */
  .swiper-container .swiper-button-prev {
    left: 45px;
    /* 左側の余白 */
    top: initial;
    bottom: -100px;
  }

  .swiper-container .swiper-button-next {
    right: 45px;
    /* 右側の余白 */
    top: initial;
    bottom: -100px;
  }

  .swiper-container .swiper-button-prev::after {
    border-width: 9px 13px 9px 0;
  }

  .swiper-container .swiper-button-next::after {
    border-width: 9px 0 9px 13px;
  }
}
