#top_dream {
  position: relative;
}

.main_container_sp + #top_dream{
  margin-top: 50px;
}

#top_dream ul,
#top_dream h3,
#top_dream h4,
#top_dream p {
  margin: 0;
}
#top_dream ul,
#top_dream li {
  list-style-type: none;
  padding: 0;
  margin: 0;
}


#top_dream .top_dream-wrapper {
  position: relative;
  text-align: center;
}

#top_dream .top_dream-wrapper h3{
  max-width: 1200px;
  margin: 0 auto;
}

#top_dream .top_dream-wrapper a{
  display: inline-block;
}

#top_dream .dream-box_wrapper {
  padding: 0 0 48px;
  text-align: center;
  background-image: url(../images/main/img_bg_note.png);
  background-repeat: repeat-x;
  background-size: inherit;
  background-position: top 26px center;
  position: relative;
}


#top_dream .dream-box_wrapper a{
  margin-top:  24px;
}

#top_dream .dream-box {
  margin-bottom: 70px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

#top_dream .dream-box + .dream-box {
  margin-bottom: 16px;
}

#top_dream .dream-title {
  margin: 0 auto;
  text-align: left;
}

#top_dream .dream-box h4 {
  text-align: center;
  margin-bottom: 20px;
}
#top_dream .dream-box h4 img{
  margin-right: 40px;
}

#top_dream .racers-flex {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 16px;
}
#top_dream .racer-img img {
  width: 100%;
}

#top_dream .top-btn-link {
  display: inline-block;
}

@media (max-width: 1199px) {
  #top_dream h3 img {
    width: 60vw;
  }

  #top_dream img {
    width: 100%;
  }
  #top_dream .top_dream-wrapper {
    padding: 0;
    overflow: hidden;
  }

  #top_dream .dream-box_wrapper{
    padding: 0 0 5vw;
    background-image: url(../images/main/img_bg_note_sp.webp);
    background-size: cover;
    background-position: top 0 center;
  }

  #top_dream .top_dream-wrapper h3{
    margin: 0 5% 5vw;
  }
  #top_dream .dream-box_wrapper a{
    margin-top:  0;
  }

  #top_dream .dream-box {
    margin-bottom: 5vw;
  }

  #top_dream .dream-title {
    margin-bottom: 5vw;
  }

  #top_dream .dream-box h4 {
    margin: 5vw auto 3vw;
  }
  #top_dream .dream-box.first h4 {
    width: 61%;
  }
  #top_dream .dream-box.second h4 {
    width: 61%;
  }
  #top_dream .racers-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
    padding-inline: 5%;
  }
  #top_dream .racers-flex .racer {
    width: calc(33% - 1.2vw);
    max-width: 350px;
  }

  #top_dream .top-btn-link {
    max-width: none;
    margin-top: 3vw;
    width: 44vw;
  }
  
}


/* アニメーション */
#top_dream .dream-box.scroll-anime {
  transform: translate(-50px, 0);
  -webkit-transform: translate(-50px, 0);
  transition-delay: 0.3s;
}
#top_dream .dream-box.second.scroll-anime {
  transform: translate(50px, 0);
  -webkit-transform: translate(50px, 0);
}
#top_dream .dream-box.scroll-anime.show {
  transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
}
/* / アニメーション */
