@charset "UTF-8";

.voice-slider {
  background: #f9f9f9;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.voice-slider .voice-swiper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
	padding-bottom: 60px!important;
}

.voice-slider .voice-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
}

.voice-slider .voice-box {
  background: #fff;
  border-radius: 8px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}

.voice-slider .voice-text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.voice-slider .voice-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.voice-slider .voice-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
}

.voice-slider .voice-box .school {
  font-size: 16px;
  font-weight: bold;
  color: #002f87;
  margin-bottom: 10px;
}

.voice-slider .voice-box .department {
  font-size: 14px;
  color: #666;
}

.voice-slider .voice-box .name {
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

.voice-slider .voice-box .message {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-top: 8px;
  flex-grow: 1;
  height: calc(1em * 1.6 * 3);
  overflow: hidden;
}


/* ナビゲーションボタン */
.voice-slider .swiper-pagination {
 position: absolute !important;
	 bottom: 10px!important;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.voice-slider .swiper-button-prev,
.voice-slider .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  z-index: 10;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-slider .swiper-button-prev {
  left: 0;
}

.voice-slider .swiper-button-next {
  right: 0;
}

.voice-slider .swiper-button-prev::after,
.voice-slider .swiper-button-next::after {
  font-size: 18px;
}

@media screen and (max-width: 768px) {
  .voice-slider .swiper-button-prev,
  .voice-slider .swiper-button-next {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .voice-slider .voice-swiper {
    padding: 0 30px;
    overflow: visible;
  }

  .voice-slider .swiper-slide {
    width: 90% !important;
  }

  .voice-slider .swiper-button-prev,
  .voice-slider .swiper-button-next {
    display: flex;
  }
}

