#mv {
  text-align: center;
}
#mv img {
  width: 100%;
  margin-bottom: 0;
}

.title {
  position: relative;
  background-color: #f7f12b;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  margin: 0 auto;
}
.title::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  border-top: 40px solid #f7f12b;
  border-right: 40px solid transparent;
  border-left: 40px solid transparent;
}
.title h2 {
  font-size: 3.5rem;
}

#contents {
  background-color: #cfe3ff;
  width: 100%;
  margin: 0 auto;
}
#contents .campaign_items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  padding: 60px 0px;
}
#contents .apply {
  max-width: 730px;
  width: 100%;
  margin: 0 auto;
}
#contents .period_titles {
  position: relative;
}
#contents .period_titles .period_title {
  position: relative;
  display: grid;
  place-content: center;
}
#contents .period_titles .period_title::before {
  content: "";
  background-image: repeating-linear-gradient(-45deg, #0841a5, #0841a5 3px, transparent 3px, transparent 11px);
  background-size: 15px 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 20px;
  backface-visibility: hidden;
}
#contents .period_titles .period_title img {
  background-color: #cfe3ff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  z-index: 2;
}
#contents .period_titles p {
  color: #0841a5;
  text-align: center;
  font-weight: bold;
}
#contents .ribbon {
  position: relative;
  background-color: #f7f12b;
  max-width: 500px;
  height: 50px;
  padding: 0 1rem;
  margin: 0 auto;
  margin-top: 20px;
}
#contents .ribbon p {
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  margin: 0;
}
#contents .ribbon p span {
  font-size: 18px;
}
#contents .ribbon::before,
#contents .ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  border-color: #f7f12b transparent;
  border-style: solid;
}
#contents .ribbon::before {
  left: -15px;
  border-width: 25px 0px 25px 15px;
}
#contents .ribbon::after {
  right: -15px;
  border-width: 25px 15px 25px 0px;
}
#contents .apply__item {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
#contents .apply__item h3 {
  background-color: #0841a5;
  padding: 15px 20px;
  color: #fff;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 30px;
}
#contents .apply__item ol {
  margin: 0;
  padding: 0;
}
#contents .apply__item ol li {
  list-style: none;
  font-size: 2rem;
  padding-left: 1.3em;
  text-indent: -1.3em;
}
#contents .apply__item p.text {
  font-size: 2.8rem;
  line-height: 1.5;
  font-weight: bold;
}
#contents p.comment {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  color: #0841a5;
  font-size: 1.8rem;
  margin-bottom: 0;
}

.all_class_btn2 {
  margin-top: 30px;
  text-align: center;
}
.all_class_btn2 a {
  background: #118fde;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 20px;
}

@media only screen and (max-width: 769px) {
  main.content {
    margin-top: 111px;
  }
  #mv img {
    margin-bottom: 0;
  }
  .main.top {
    padding-top: 0;
  }
  .title {
    padding: 20px 0;
  }
  .title::after {
    bottom: -25px;
    border-top: 30px solid #f7f12b;
    border-right: 30px solid transparent;
    border-left: 30px solid transparent;
  }
  .title h2 {
    font-size: 2.5rem;
  }
  #contents .campaign_items {
    gap: 40px;
    padding: 40px 0px;
  }
  #contents .apply {
    padding: 0px 20px;
  }
  #contents .period_titles .period_title::before {
    content: "";
    background-image: repeating-linear-gradient(-45deg, #0841a5, #0841a5 3px, transparent 3px, transparent 11px);
    background-size: 15px 15px;
    width: 100%;
    height: 20px;
  }
  #contents .period_titles .period_title img {
    width: 80%;
    padding: 0 10px;
    margin: 0 auto;
  }
  #contents .ribbon {
    width: calc(100% - 40px);
    height: auto;
    padding: 10px 0px;
  }
  #contents .ribbon p {
    font-size: 26px;
    line-height: 1.4;
  }
  #contents .ribbon::before,
  #contents .ribbon::after {
    content: none;
  }
  #contents .apply__item {
    padding: 0px 20px;
  }
  #contents .apply__item h3 {
    padding: 15px 20px;
    font-size: 2rem;
    margin-bottom: 20px;
  }
  #contents .apply__item ol li {
    font-size: 1.5rem;
  }
  #contents .apply__item p.text {
    font-size: 1.5rem;
  }
  #contents p.comment {
    padding: 0px 20px;
    font-size: 1.4rem;
  }
  .all_class_btn2 {
    margin-top: 30px;
    text-align: center;
  }
  .all_class_btn2 a {
    background: #118fde;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 20px;
  }
}