/* 卒業生の声 (section_) — spec/v2/voices.md (pad 80/70, gap 24, #062044). Card visuals are the exported Figma composites. */
.voices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px 0;
  overflow: hidden;
  background: var(--color-navy-deep);
}

.voices__title img {
  width: 400px;
  height: auto;
}

.voices__note {
  font-size: 12px;
  line-height: var(--lh-text);
  letter-spacing: 1.38px;
  text-align: center;
  color: var(--color-white);
}

.voices__slider {
  position: relative;
  width: 100%;
}

.voices__track {
  display: flex;
  align-items: flex-start; /* each card grows on its own when expanded */
  gap: 21px;
  padding: 0 calc(50% - 258px); /* first/last card can be centred */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.voices__track::-webkit-scrollbar {
  display: none;
}

.voice-card {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 20px;
  width: 516px;
  padding-bottom: 30px;
  background: var(--color-white);
  scroll-snap-align: center;
}

.voice-card__visual {
  width: 100%;
  height: auto;
}

.voice-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 30px;
  padding: 0 30px;
}

.voice-card__text {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.voice-card__text mark {
  background: linear-gradient(transparent 78%, #b5e039 78%);
  font-weight: 700;
  color: inherit;
}

.voice-card__more {
  margin-top: auto; /* same y in every card (QA #6) */
  font-size: 14px;
  line-height: 10px;
  text-align: center;
  text-decoration: underline;
  color: var(--color-navy-deep);
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.voices__arrow {
  position: absolute;
  top: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
}

.voices__arrow--prev {
  left: calc(50% - 258px - 22px);
}

.voices__arrow--next {
  right: calc(50% - 258px - 22px);
}

.voices__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.voices__dots {
  display: flex;
  gap: 11px;
}

.voices__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--color-white);
  cursor: pointer;
}

.voices__dots button[aria-current="true"] {
  background: #1b7dc5;
}

/* desktop: two cards are shown in full (516*2 + 21 gap), the arrows sit on the outer edges of that pair like the XD */
@media (min-width: 768px) {
  .voices__track {
    scroll-snap-type: none;
  }

  .voices__arrow--prev {
    left: calc(50% - 526.5px - 22px);
  }

  .voices__arrow--next {
    right: calc(50% - 526.5px - 22px);
  }
}

@media (max-width: 767px) {
  .voices {
    gap: 18px;
    padding: 56px 0;
  }

  .voices__title img {
    width: 260px;
  }

  .voices__note {
    padding: 0 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .voices__track {
    gap: 12px;
    padding: 0 calc(50% - 145px);
  }

  .voice-card {
    width: 290px;
    gap: 14px;
    padding-bottom: 20px;
  }

  .voice-card__body {
    gap: 16px;
    padding: 0 16px;
  }

  .voice-card__text {
    font-size: 13px;
  }

  .voices__arrow {
    top: 97px;
    width: 36px;
    height: 36px;
  }

  .voices__arrow--prev {
    left: 8px;
  }

  .voices__arrow--next {
    right: 8px;
  }
}
