@charset "utf-8";

#main {
  margin-top: 20rem;
}

section:not(:last-child) {
  margin-bottom: 16rem;
}

.h2_wrapper {
  margin-inline: auto;
  width: fit-content;
  text-align: center;
  position: relative;
  margin-bottom: 9.6rem;
}
.h2_wrapper::after {
  content: '';
  width: 5rem;
  height: 2px;
  background-color: var(--color-red);
  display: block;
  left: 50%;
  bottom: -3.5rem;
  transform: translate(-50%, 0);
  position: relative
}
.h2_wrapper h2 {
  font-family: var(--font-play), sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  position: relative;
  margin-bottom: 1rem;
}
.h2_wrapper h2::before {
  content: '';
  width: 1.9rem;
  height: 3.8rem;
  background-image: url('../images/h2_key.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  left: 50%;
  top: -1rem;
  transform: translate(-50%,0) rotate(42deg);
  position: relative;
  display: block
}
.video_wrapper .yt_videos_search_grid {
  width: 100%;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.video_wrapper .yt_videos_search_card {
    width: calc((100% - 3rem * 3) / 4);
}

.index_this_time .last_flex {
  display: flex;
  gap: 14rem;
  align-items: center;
  justify-content: center;
}
.index_this_time .video_item_link {
  width: 52rem;
  display: block;
}
.index_this_time .link_btn {
  margin-top: 0;
}

.index_about .lead_text {
  text-align: center;
}

@media screen and (max-width: 1024px) {
  #main {
    margin-top: 16rem;
  }
  section:not(:last-child) {
    margin-bottom: 12rem;
  }
  .h2_wrapper {
    margin-bottom: 7rem;
  }
  .video_wrapper .yt_videos_search_card {
      width: calc((100% - 3rem * 2) / 3);
  }
  .index_this_time .last_flex {
    gap: 5rem;
    flex-direction: column;
  }
}

@media screen and (max-width: 520px) {
  #main {
    margin-top: 10rem;;
  }
  .h2_wrapper {
    margin-bottom: 5rem;
  }
  .h2_wrapper h2 {
    font-size: 2.5rem;
  }
  .h2_wrapper h2::before {
    width: 1.3rem;
    height: 2.8rem;
  }
  .h2_wrapper .h2_span {
    font-size: 1.4rem;
  }
  .h2_wrapper::after {
    bottom: -2rem;
  }
  .video_wrapper .yt_videos_search_grid {
    gap: 2rem;
  }
  .video_wrapper .yt_videos_search_card {
    width: calc((100% - 2rem) / 2);
  }
  .index_about .lead_text {
    text-align: left;
  }
}