/* ------広告掲載スポンサー様の声------ */
.section--voice {
  padding: 0 5%;
}

.voice__mainCaption {
  font-size: 3rem;
  text-align: center;
  line-height: 1;
  margin: 150px 0 50px;
}

.voice {
  display: flex;
  flex-direction: column;
  gap: 168px;
}

.voice__item {
  position: relative;
}

.voice__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -80px;
  width: 100%;
  height: 3px;
  background-color: var(--primary-green);
}

.voice__img {
  width: 100%;
}

.voice__txt1 {
  color: var(--primary-black);
  font-size: 3rem; 
  line-height: 1.5;
  font-weight: 700;
  margin-top: 40px;
  text-align: left;
}

.voice__link {
  color: var(--primary-black);
  font-size: 2rem;
  line-height: 1.5;
  margin-top: 10px;
}

.voice__txt2 {
  color: var(--primary-black);
  line-height: 2;
  font-weight: 500;
  margin-top: 10px;
}


@media screen and (min-width: 940px) { 
  
  .section--voice {
    padding: 0 10%;
  }

  .voice__mainCaption {
    font-size: 3rem;
    text-align: center;
    line-height: 1;
    margin: 250px 0 150px;
  }

  .voice {
    margin-top: 50px;
    gap: 200px;
    align-items: center;
  }

  .voice__item {
    display: flex;
    flex-direction: row;
    gap: 100px;
    align-items: center;
  }

  .voice__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -100px;
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
  } 

  .voice__img {
    max-width: 450px;
    min-width: 300px;
  }


  .voice__txt {
    max-width: 510px;
    text-align: justify;
  }

  .voice__txt1 {
    margin-top: 0;
  }

  .voice__txt2 {
    margin-top: 40px;
  }
}

#voice {
  scroll-margin-top: 180px;
}

@media screen and (min-width: 940px) { 
  #voice {
    scroll-margin-top: 250px;
  }
}