/* 共通
-------------------------------------*/
#content-wrap {
  max-width: 1120px;
  padding-bottom: 140px;
}

.curve {
  position: absolute;
  bottom: -1px;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}

@media screen and (max-width:768px) {
  #content-wrap {
    padding-bottom: 120px;
  }

  .curve svg path {
    fill: #F0EFE2 !important;
  }

  .curve-reverse {
    display: none;
  }
}

/* head-area
-------------------------------------*/
#head-area {
  z-index: 1;
  width: 100%;
  height: 790px;
  margin-bottom: -70px;
  background-image: url(../../img/learn-adults/hero-bg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#head-area .title-wrap {
  position: absolute;
  display: flex;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;
  font-family: var(--mincho-font_family);
}

#head-area .title-wrap:before {
  content: "";
  position: absolute;
  top: 130px;
  left: -450px;
  width: 432px;
  height: 328px;
  background-image: url(../../img/learn-adults/discover-shiroku.webp);
  background-repeat: no-repeat;
  background-size: 100%;
  transform: rotate(-25deg);
}

#head-area .title-wrap:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -280px;
  right: -530px;
  width: 778px;
  height: 736px;
  background-image: url(../../img/sato-issai.webp);
  background-repeat: no-repeat;
  background-size: 100%;
}

#head-area .title-wrap h1 {
  position: relative;
  z-index: 0;
  height: fit-content;
  padding: 30px;
  margin-left: 75px;
  background-color: #FFF;
  color: #9E9847;
  font-size: 70px;
  font-weight: 500;
  line-height: 1.1;
  writing-mode: vertical-rl;
  border: solid 2px #9E9847;
  order: 3;
}

#head-area .title-wrap h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: calc(100% - 5px);
  height: calc(100% - 5px);
  margin: auto;
  border: solid 1px #9E9847;
}

#head-area .title-wrap h2 {
  margin-top: 50px;
  margin-left: 50px;
  font-size: 40px;
  writing-mode: vertical-rl;
  order: 2;
}

#head-area .title-wrap p {
  margin-top: 50px;
  font-size: 26px;
  font-weight: 600;
  line-height: 2.4;
  writing-mode: vertical-rl;
  order: 1;
}

@media (max-width:1000px) {
  #head-area {
    height: 830px;
  }

  #head-area .title-wrap {
    position: relative;
    display: block;
    padding-top: 40px;
    margin: 0 auto;
  }

  #head-area .title-wrap:after {
    content: none;
  }

  #head-area .title-wrap h1 {
    padding: 15px;
    margin: 0 auto 210px;
    font-size: 36px;
  }

  #head-area .title-wrap:before {
    top: 30px;
    left: -50px;
    width: 245px;
    height: 212px;
  }

  #head-area .title-wrap h1:after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: -220px;
    right: -340px;
    width: 485px;
    height: 458px;
    background-image: url(../../img/sato-issai.webp);
    background-repeat: no-repeat;
    background-size: 100%;
  }

  #head-area .title-wrap h2 {
    margin: 0;
    font-size: 25px;
    text-align: center;
    writing-mode: horizontal-tb;
  }

  #head-area .title-wrap p {
    margin-top: 0;
    font-size: 14px;
    text-align: center;
    line-height: 2;
    writing-mode: horizontal-tb;
  }
}

@media (max-width:768px) {
  #head-area {
    background-image: url(../../img/learn-adults/hero-bg-sp.webp);
    background-position: bottom center;
    background-size: cover;
  }
}

/* intro
-------------------------------------*/
#intro {
  position: relative;
  z-index: 0;
  padding-top: 125px;
  padding-bottom: 145px;
  font-family: var(--mincho-font_family);
  font-weight: 600;
}

#intro:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -50vw;
  width: 200vw;
  height: 100%;
  margin: auto;
  background-color: #8C8642;
}

#intro:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -50vw;
  right: 0;
  width: 200vw;
  margin: auto;
  opacity: 0.1;
  background-image: url(../../img/index/gara-bg.svg);
  background-size: 4000px;
  background-position: center;
}

#intro p {
  margin-bottom: 40px;
  color: #FFF;
  font-size: 23px;
  line-height: 2;
}

#intro .wp-block-group__inner-container>p:first-of-type {
  width: 600px;
  max-width: 55%;
}

#intro #shiroku {
  padding: 40px 65px;
  margin-bottom: 60px;
  background-color: #FDF5E1;
  border-radius: 15px;
}

#intro #shiroku h2:first-of-type {
  margin-top: 0;
}

#intro #shiroku h2 {
  margin-top: 40px;
  margin-bottom: 0 !important;
}

#intro #shiroku p {
  max-width: none;
  color: #000;
  font-family: var(--base-font_family);
  font-size: 20px;
}

#intro #shiroku p:last-of-type {
  margin-bottom: 0;
}

@media (max-width:1000px) {
  #intro #shiroku {
    padding: 30px 25px;
  }

  #intro .wp-block-group__inner-container>p:first-of-type {
    width: 100%;
    max-width: none;
  }
}

@media (max-width:768px) {
  #intro {
    padding-bottom: 70px;
    margin-bottom: 0;
  }

  #intro:after {
    background-size: 2500px;
  }

  #intro p {
    margin-bottom: 25px;
    font-size: 17px;
    text-align: left;
  }

  #intro #shiroku h2 {
    font-size: 24px;
  }

  #intro #shiroku p {
    margin-top: 5px;
    font-size: 14px;
  }
}

/* generation
-------------------------------------*/
#generation {
  margin-bottom: 125px;
}

#generation #tabs {
  font-family: var(--mincho-font_family);
  font-weight: 600;
}

#generation #tabs ul.tabs-button {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0;
}

#generation #tabs ul.tabs-button li {
  width: calc(100% / 3);
  padding-left: 0;
  margin-bottom: 0;
  text-align: center;
  border-right: solid 1px #000;
  font-size: 26px;
  letter-spacing: 2px;
}

#generation #tabs ul.tabs-button li:last-of-type {
  border: none;
}

#generation #tabs ul.tabs-button li:before {
  content: none;
}

#generation #tabs ul.tabs-button li a {
  display: block;
  position: relative;
}

#generation #tabs ul.tabs-button li a.active {
  color: #8C8642;
}

#generation #tabs ul.tabs-button li a.active:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -120%;
  left: 0;
  right: 0;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-style: solid;
  border-right: 17px solid transparent;
  border-left: 17px solid transparent;
  border-top: 42px solid #ffffff;
  border-bottom: 0;
}

#generation #tabs #panel-wrap {
  position: relative;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}

#generation #tabs #panel-wrap .curve-reverse {
  z-index: 1;
}

#generation #tabs #panel-wrap .panel {
  position: relative;
  padding-top: 60px;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

#generation #tabs #panel-wrap .panel:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -50vw;
  width: 200vw;
  height: 73%;
  margin: auto;
  background-color: #F0EFE2;
}

#generation #tabs #panel-wrap .panel h2 {
  margin-bottom: 30px !important;
  color: #8C8642;
  font-size: 40px;
}

#generation #tabs #panel-wrap .panel>.wp-block-group__inner-container>p {
  font-size: 19px;
  line-height: 2;
}

#generation #tabs #panel-wrap .panel .shiroku-content {
  padding: 50px 70px;
  margin-top: 60px;
  background-color: #FFF;
  border-radius: 15px;
}

#generation #tabs #panel-wrap .panel .shiroku-content h3 {
  margin-top: 30px;
  margin-bottom: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.6;
}

#generation #tabs #panel-wrap .panel .shiroku-content p {
  font-family: var(--base-font_family);
  font-size: 20px;
}

#generation #tabs #panel-wrap .panel .shiroku-content p.has-text-align-right {
  margin-bottom: 0;
  font-size: 18px;
}

@media (max-width:1280px) {
  #generation #tabs ul.tabs-button li a.active:after {
    bottom: -90%;
  }
}

@media (max-width:768px) {
  #generation #tabs ul.tabs-button {
    display: none;
  }

  #generation #tabs #panel-wrap .panel {
    display: block !important;
    padding-top: 10px;
    margin-bottom: 80px;
  }

  #generation #tabs #panel-wrap .panel h2 {
    font-size: 32px;
  }

  #generation #tabs #panel-wrap .panel .shiroku-content {
    padding: 10px 20px 30px 20px;
    margin-top: 40px;
  }

  #generation #tabs #panel-wrap .panel>.wp-block-group__inner-container>p {
    font-size: 17px;
  }

  #generation #tabs #panel-wrap .panel .shiroku-content h3 {
    font-size: 24px;
  }

  #generation #tabs #panel-wrap .panel .shiroku-content p {
    margin-top: 5px;
    font-size: 14px;
  }

  #generation #tabs #panel-wrap .panel .shiroku-content p.has-text-align-right {
    font-size: 13px;
  }
}

/* book
-------------------------------------*/
#book {
  position: relative;
  padding: 50px 160px 10px;
  margin-bottom: 220px;
  background-color: #F0EFE2;
  border-radius: 15px;
}

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

#book::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%;
}

#book h3 {
  margin-bottom: 20px !important;
  font-size: 32px;
  font-weight: 900;
}

#book h4 {
  margin-bottom: 5px !important;
}

#book .wp-block-columns {
  align-items: center !important;
  gap: 0 !important;
}

#book .wp-block-columns .wp-block-column:first-of-type {
  flex-basis: 170px !important;
}

#book .wp-block-columns .wp-block-column:last-of-type {
  flex-basis: calc(100% - 170px) !important;
  padding-left: 25px;
}

#book .wp-block-columns .wp-block-column p {
  font-size: 20px;
}

#book .wp-block-columns .wp-block-column p.has-small-font-size {
  margin-bottom: 45px;
}

@media (max-width:1000px) {
  #book {
    width: 100vw;
    padding: 40px 20px;
    margin: 0 calc(50% - 50vw) 360px;
    border-radius: 0;
  }
}

@media (max-width:768px) {
  #book {
    margin-bottom: 170px;
  }

  #book::after {
    bottom: -120px;
    width: 95px;
    height: 83px;
  }

  #book h3 {
    font-size: 28px;
    text-align: left;
  }

  #book h4 {
    font-size: 24px;
  }

  #book .wp-block-columns .wp-block-column:first-of-type {
    flex-basis: 100% !important;
    text-align: center;
  }

  #book .wp-block-columns .wp-block-column:last-of-type {
    flex-basis: 100% !important;
    padding-left: 0;
  }

  #book .wp-block-columns .wp-block-column img {
    max-width: 200px;
  }

  #book .wp-block-columns .wp-block-column p {
    font-size: 15px;
  }

  #book .wp-block-columns .wp-block-column p.has-small-font-size {
    margin-bottom: 30px;
  }
}