/* 共通
-------------------------------------*/
ruby>rt {
  text-align: center;
}

#content-wrap {
  max-width: 1200px;
  padding-bottom: 180px;
}

.wp-block-group {
  margin-bottom: 180px;
}

@media screen and (max-width:1000px) {
  .wp-block-group {
    margin-bottom: 125px;
  }
}

/* hero
-------------------------------------*/
#hero {
  position: relative;
  z-index: 0;
  height: 930px;
  margin-bottom: 160px;
  background-color: #E6DC0A;
}

#hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 930px;
  background-image: url(../../img/learn-children/hero-bg.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

#hero h1 {
  position: absolute;
  z-index: -1;
  bottom: 80px;
  left: 0;
  right: -750px;
  width: fit-content;
  margin: 0 auto;
  font-family: var(--zenkaku-font_family);
  font-size: 32px;
  font-weight: 900;
  line-height: 2.2;
  letter-spacing: 3px;
  transform: rotate(-5deg);
}

#hero h1:before {
  content: "";
  position: absolute;
  top: -125px;
  left: 0;
  width: 365px;
  height: 119px;
  background-image: url(../../img/learn-children/hero-why.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

#hero figure.text-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;
}

#hero figure.text-img img {
  width: 622px;
}

#hero .children-illust {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  width: fit-content;
  height: fit-content;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#hero .children-illust.visible {
  opacity: 1;
  transform: translateY(0);
}

#hero #children1 {
  top: 55px;
  left: -590px;
}

#hero #children1 img {
  width: 122px;
}

#hero #children2 {
  top: 75px;
  right: -850px;
}

#hero #children2 img {
  width: 112px;
}

#hero #children3 {
  top: 365px;
  right: -550px;
}

#hero #children3 img {
  width: 121px;
}

#hero #children4 {
  bottom: 250px;
  right: -1150px;
}

#hero #children4 img {
  width: 189px;
}

#hero #children5 {
  bottom: 155px;
  right: -20px;
}

#hero #children5 img {
  width: 89px;
}

#hero #children6 {
  bottom: -45px;
  left: -900px;
}

#hero #children6 img {
  width: 323px;
}

#hero #children7 {
  top: 230px;
  left: -1160px;
}

#hero #children7 img {
  width: 307px;
}

@media screen and (max-width:1536px) {
  #hero figure.text-img img {
    width: 520px;
  }

  #hero #children1 {
    left: -500px;
  }

  #hero #children2 {
    right: -750px;
  }

  #hero #children4 {
    right: -1000px;
  }

  #hero #children6 {
    left: -800px;
  }

  #hero #children7 {
    left: -960px;
  }
}

@media screen and (max-width:1280px) {
  #hero h1 {
    right: -450px;
    bottom: 40px;
  }

  #hero #children1 {
    top: 100px;
  }

  #hero #children1 img {
    width: 90px;
  }

  #hero #children2 img {
    width: 80px;
  }

  #hero #children3 {
    right: -500px;
  }

  #hero #children3 img {
    width: 90px;
  }

  #hero #children4 {
    right: -800px;
  }

  #hero #children4 img {
    width: 150px;
  }

  #hero #children5 {
    bottom: 205px;
  }

  #hero #children5 img {
    width: 60px;
  }

  #hero #children6 {
    left: -700px;
  }

  #hero #children6 img {
    width: 270px;
  }

  #hero #children7 {
    left: -750px;
    top: 350px;
  }

  #hero #children7 img {
    width: 250px;
  }
}

@media screen and (max-width:1000px) {
  #hero {
    margin-bottom: 70px;
    height: 810px;
  }

  #hero::before {
    width: 100%;
    height: 810px;
  }

  #hero figure.text-img {
    top: 35px;
    bottom: auto;
  }

  #hero figure.text-img img {
    width: 360px;
  }

  #hero h1 {
    right: 0;
    font-size: 18px;
  }

  #hero h1:before {
    top: -70px;
    width: 198px;
    height: 64px;
  }

  #hero #children1 {
    top: 155px;
    left: -280px;
  }

  #hero #children1 img {
    width: 62px;
  }

  #hero #children2 {
    top: 40px;
    right: -100px;
  }

  #hero #children2 img {
    width: 98px;
  }

  #hero #children3 {
    top: 375px;
    right: -280px;
  }

  #hero #children3 img {
    width: 60px;
  }

  #hero #children4 {
    bottom: 90px;
    right: -290px;
  }

  #hero #children4 img {
    width: 94px;
  }

  #hero #children5 {
    bottom: 215px;
    right: -120px;
  }

  #hero #children5 img {
    width: 44px;
  }

  #hero #children6 {
    bottom: 130px;
    left: -320px;
  }

  #hero #children6 img {
    width: 64px;
  }

  #hero #children7 {
    top: 15px;
    left: -200px;
  }

  #hero #children7 img {
    width: 153px;
  }
}

/* about
-------------------------------------*/
#about h2 {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  font-family: var(--zenkaku-font_family);
  font-size: 45px;
  font-weight: 900;
  letter-spacing: 5px;
}

#about h2:after {
  content: "";
  position: absolute;
  top: -10px;
  bottom: 0;
  right: -280px;
  width: 240px;
  height: 253px;
  margin: auto 0;
  background-image: url(../../img/learn-children/issai-deformed02.webp);
  background-repeat: no-repeat;
  background-size: 100%;
}

@media screen and (max-width:1080px) {
  #about {
    margin-bottom: 370px;
  }

  #about h2:after {
    top: auto;
    bottom: -270px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
}

@media screen and (max-width:1000px) {
  #about h2 {
    font-size: 28px;
    letter-spacing: 2px;
  }
}

/* qa
-------------------------------------*/
#qa {
  position: relative;
}

#qa .left-box {
  max-width: 840px;
}

#qa .left-box h2 {
  font-family: var(--zenkaku-font_family);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
}

#qa .left-box h2.question {
  position: relative;
  width: fit-content;
  padding: 20px 100px 20px 140px;
  margin-top: 0;
  margin-bottom: 140px !important;
  background-color: #E6DC04;
  border-radius: 50px;
}

#qa .left-box h2.question:before {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 5px;
  width: 133px;
  height: 122px;
  background-image: url(../../img/learn-children/children-hatena.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

#qa .left-box .answer {
  position: relative;
  padding: 80px 45px 35px;
  margin-left: 40px;
  margin-bottom: 0;
  background-color: #EDEDED;
  border-radius: 15px;
}

#qa .left-box .answer h2 {
  position: relative;
  width: fit-content;
  margin: 0;
  padding: 20px 145px 20px 70px;
  margin-top: 100px;
  background-color: #3C64DC;
  color: #FFF;
  border-radius: 150px;
}

#qa .left-box .answer h2.top-title {
  position: relative;
  margin-top: -140px;
  margin-bottom: 25px !important;
}

#qa .left-box .answer h2:after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 25px;
  width: 110px;
  height: 166px;
  background-image: url(../../img/learn-children/issai-deformed01.webp);
  background-repeat: no-repeat;
  background-size: 100%;
}

#qa .left-box .answer h3 {
  position: relative;
  z-index: 0;
  width: fit-content;
  padding: 5px 50px;
  margin-top: 30px;
  margin-bottom: 25px;
  margin-left: 0;
  background-color: #3C64DC;
  color: #FFF;
  font-family: var(--zenkaku-font_family);
  font-size: 20px;
  border-radius: 50px;
  letter-spacing: 1px;
}

#qa .left-box .answer h3:after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -16px;
  left: 0;
  right: -15px;
  width: 21px;
  height: 32px;
  margin: 0 auto;
  background-image: url(../../img/learn-children/fukidashi-arrow-bottom.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

#qa .left-box .answer h4 {
  margin-bottom: 30px !important;
  color: #3C64DC;
  font-size: 36px;
  font-weight: 900;
}

#qa .left-box .answer p {
  font-family: var(--zenkaku-font_family);
  font-weight: 500;
}

#qa .left-box .answer p strong {
  font-size: 19px;
  font-weight: 900;
}

#qa .left-box .answer p.quotation {
  margin-top: 30px;
  margin-bottom: 50px;
  font-weight: 600;
  text-align: right;
}

#qa .left-box .answer figure {
  margin-bottom: 25px;
  text-align: left;
}

#qa .left-box .answer figure img {
  width: 100% !important;
  max-width: 515px;
}

#qa .right-box {
  position: absolute;
  bottom: 360px;
  right: 30px;
}

#qa .right-box p {
  position: relative;
  z-index: 0;
  padding: 25px 30px;
  background-color: #E6DC0A;
  font-family: var(--zenkaku-font_family);
  font-weight: 900;
  font-size: 20px;
  border-radius: 15px;
  transform: rotate(-5deg);
}

#qa .right-box p::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -10px;
  left: 0;
  right: -40px;
  width: 24px;
  height: 31px;
  margin: 0 auto;
  background-image: url(../../img/learn-children/fukidashi-arrow-bottom-yellow.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

#qa .right-box figure {
  position: relative;
  margin-top: -40px;
  margin-right: -15px;
  text-align: right;
}

#qa .right-box figure img {
  width: 224px;
}

@media screen and (max-width:1280px) {
  #qa .wp-block-columns {
    display: block !important;
  }

  #qa .left-box {
    width: 100%;
    max-width: none;
  }

  #qa .left-box .answer {
    padding-bottom: 80px;
  }

  #qa .right-box {
    position: relative;
    bottom: 0;
    right: 0;
    width: fit-content;
    margin: -50px auto 0 !important;
  }

  #qa .right-box figure {
    margin-top: -30px;
    margin-right: 0;
  }
}

@media screen and (max-width:1000px) {
  #qa .left-box .answer h2 {
    font-size: 20px;
    padding-left: 50px;
  }

  #qa .left-box .answer h3 {
    right: 0;
    width: 100%;
    margin-top: 45px;
    margin-left: 0;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
  }

  #qa .left-box .answer h4 {
    font-size: 22px;
  }

  #qa .left-box .answer p.quotation {
    font-size: 16px;
  }
}

@media screen and (max-width:768px) {
  #qa .left-box h2.question {
    padding: 10px 25px;
    margin-bottom: 50px !important;
    font-size: 20px;
  }

  #qa .left-box h2.question:before {
    bottom: auto;
    top: -65px;
    left: 5px;
    width: 85px;
    height: 79px;
  }

  #qa .left-box .answer {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    background-color: transparent;
  }

  #qa .left-box .answer:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50px;
    left: -50vw;
    width: 200vw;
    height: 100%;
    background-color: #EDEDED;
  }

  #qa .left-box .answer h2 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding-left: 30px;
    padding-right: 95px;
    margin: 50px auto 0;
    border-radius: 150px;
    font-size: 20px;
  }

  #qa .left-box .answer h2:after {
    bottom: 0;
    right: 10px;
    width: 70px;
    height: 100px;
  }

  #qa .left-box .answer h2.top-title {
    margin-top: 0;
    margin-bottom: 25px !important;
  }

  #qa .left-box .answer h3:after {
    transform: rotate(20deg);
  }

  #qa .right-box p {
    font-size: 17px;
  }

  #qa .right-box figure img {
    width: 162px;
  }
}

@media screen and (max-width:480px) {
  #qa .left-box .answer h2 {
    overflow: hidden;
  }
}

/* genshi-shiroku
-------------------------------------*/
#genshi-shiroku {
  position: relative;
  padding: 45px 180px 30px;
  margin-bottom: 220px;
  background-color: #E6DC04;
  border-radius: 15px;
}

#genshi-shiroku::before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  width: 32px;
  height: 44px;
  margin: 0 auto;
  background-image: url(../../img/learn-children/fukidashi-arrow-bottom-yellow.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  transform: rotate(15deg);
}

#genshi-shiroku::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: 0;
  right: 0;
  width: 142px;
  height: 124px;
  margin: 0 auto;
  background-image: url(../../img/learn-children/ebopi.svg);
  background-repeat: no-repeat;
  background-size: 100%;
}

#genshi-shiroku h2 {
  margin: 0 0 30px !important;
  font-size: 32px;
  font-weight: 900;
}

#genshi-shiroku .left-box {
  flex-basis: auto !important;
  width: 190px;
}

#genshi-shiroku .left-box figure {
  transform: rotate(-5deg);
}

#genshi-shiroku .left-box figure img {
  width: 168px;
}

#genshi-shiroku .right-box {
  flex-basis: auto !important;
  width: calc(100% - 190px);
}

#genshi-shiroku .right-box h3 {
  margin-top: 30px;
  margin-bottom: 5px;
  font-size: 25px;
}

#genshi-shiroku .right-box p {
  font-size: 20px;
  font-weight: 500;
}

#genshi-shiroku .right-box p.has-small-font-size {
  margin-bottom: 40px;
}

@media screen and (max-width:1536px) {
  #genshi-shiroku {
    padding: 45px 45px 30px;
  }
}

@media screen and (max-width:1000px) {
  #genshi-shiroku {
    padding: 35px 30px 10px;
  }

  #genshi-shiroku h2 {
    text-align: left;
  }
}

@media screen and (max-width:768px) {
  #genshi-shiroku h2 {
    font-size: 26px;
  }

  #genshi-shiroku .left-box figure {
    transform: rotate(0);
  }

  #genshi-shiroku .right-box h3 {
    margin-top: 0;
  }

  #genshi-shiroku .right-box p {
    font-size: 15px;
  }

  #genshi-shiroku .right-box p.has-small-font-size {
    margin-bottom: 30px;
  }

  #genshi-shiroku .wp-block-columns {
    --wp-column-gap: 1rem;
  }
}