#top_dream {
  position: relative;
}

#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;
  max-width: 1200px;
  width: 100%;
  margin: 80px auto 0;
  padding: 0px 0;
  text-align: center;
}

#top_dream .dream-box {
  margin-bottom: 0px;
}

#top_dream .dream-box.second {
  margin-bottom: 80px;
}

#top_dream .dream-title {
  margin: 0;
}

#top_dream .dream-box h4 {
  text-align: center;
  margin: 50px 0 0;
}

#top_dream .dream-box.second h4{
  margin: 95px auto 0;
}

#top_dream .racers-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
}
#top_dream .racers-flex .racer{
  width: calc(100% / 6);
}

#top_dream .racer-img img {
  width: 100%;
}

#top_dream .note{
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 30px;
}
/* #top_dream .top-btn-link {
  display: inline-block;
} */

@media (max-width: 1199px) {
  #top_dream h4 img {
    width: 100%;
  }
  #top_dream .top_dream-wrapper {
    margin: 8vw auto 0;
    padding: 5% 4% 10%;
    overflow: hidden;
  }

  #top_dream .dream-box {
    margin-bottom: 5%;
  }

  #top_dream .dream-title {
    margin-bottom: 2%;
  }

  #top_dream .dream-box h4 {
    margin: auto;
    margin-bottom: 0;
  }
  #top_dream .dream-box.first h4 {
    width: 61%;
  }
  #top_dream .dream-box.second h4 {
    width: 61%;
  }
  #top_dream .racers-flex {
    flex-wrap: wrap;
    gap: 4vw 0;
    padding-inline: 0;
  }
  #top_dream .racers-flex .racer {
    width: 33%;
    max-width: 350px;
  }
}

@media (max-width: 767px) {
  #top_dream .top_dream-wrapper {
    padding: 0 5% 10vw;
    margin-top: 10vw;
  }

  #top_dream .dream-box.second {
    margin-bottom: 11vw;
  }

  #top_dream .dream-box h4 {
    margin: 8vw auto 0;
  }
  #top_dream .dream-box.first h4,
  #top_dream .dream-box.second h4 {
    width: 70%;
  }

  #top_dream .dream-box.second h4 {
    margin: 14vw auto 0;
  }

  #top_dream .racers-flex {
    margin-top: 7.5vw;
    gap: 4vw 0;
  }
  #top_dream .racers-flex .racer{
      width: 33%;
  }
  #top_dream .note{
    font-size: max(2.4vw, 17px);
  }

}

/* アニメーション */
#top_dream .dream-box .racer.scroll-anime {
  transform: translate(0, 100px);
  -webkit-transform: translate(0, 100px);
  /* transition-delay: 0.3s; */
}
/* #top_dream .dream-box.second.scroll-anime {
  transform: translate(50px, 0);
  -webkit-transform: translate(50px, 0);
} */
#top_dream .dream-box .racer.scroll-anime.show {
  transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
}
/* / アニメーション */



.top_dream-wrapper .top-btn-link {
  display: inline-block;
  margin-top: 54px;
}

.top_dream-wrapper .top-btn-link{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #3089b4;
  /* border: 7px solid #000; */
  box-shadow: 0 17px #196f91;
  border-radius: 20px;
  width: 425px;
  min-width: 425x;
  line-height: 1.4;
  height: 122px;
  text-decoration: none;
  position: relative;
  margin-bottom: 50px;
  transition: all .05s;
  top: 0;
}
.top_dream-wrapper .top-btn-link.show:hover{
  opacity: 1;
}
.top_dream-wrapper .top-btn-link:hover{
  box-shadow: 0 0 #196f91;
  top: 17px;
}
.top_dream-wrapper .top-btn-link::before{
  content:"";
  position: absolute;
  top: -6px;
  left: -6px; 
  width: 433px;
  height: 152px;
  border: 7px solid #231815;
  border-radius: 25px;
  transition: all .05s;
}

.top_dream-wrapper .top-btn-link:hover::before{
  height: 135px;
}

.top_dream-wrapper .top-btn-link span{
  font-size: 38px;
  font-weight: 700;
  padding-bottom: 5px;
  color: #ffffff;
  height: auto;
}

@media (max-width: 1199px) {
  .top_dream-wrapper .top-btn-link {
    margin-top: 0;
  }

  .top_dream-wrapper .top-btn-link{
      border-radius: 10px;
      box-shadow: 0 12px #196f91;
      width: 52vw;
      min-width: unset;
      height: 15vw;
      margin-bottom: unset;
      top: 0;
    }
  .top_dream-wrapper .top-btn-link.show:hover{
    opacity: 1;
  }
  .top_dream-wrapper .top-btn-link:hover{
    box-shadow: 0 0 #196f91;
    top: 17px;
  }
    .top_dream-wrapper .top-btn-link::before{
      top: -6px;
      left: -6px;
      width: calc(52vw + 12px);
      height: calc(15vw + 24px);
      border: 6px solid #231815;
      border-radius: 16px;
      transition: all .05s;
    }

    .top_dream-wrapper .top-btn-link:hover::before{
      height: calc(15vw + 12px);
    }

    .top_dream-wrapper .top-btn-link span{
      font-size: max(5vw, 18px);
      font-weight: 700;
      padding-bottom: 5px;
      height: auto;
    }
}