@charset "utf-8";
/* CSS Document */

/*--------------------------------------------------------------
# common-css
--------------------------------------------------------------*/
.no_scroll {
  overflow: hidden;
  height: 100vh;
}
.page_visual {
  margin-top: 7rem;
  background: url(/assets/img/page_visual.png) no-repeat center / cover;
  @media (min-width:768px) {
    margin-top: 10rem;
  }
}
.page_title {
  font-family: var(--ff-maru);
  font-size: var(--fs-page-title);
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 2em 0;

  &::after {
    display: block;
    content: attr(data-title);
    color: var(--key-color);
    font-family: 'Noto Sans JP', Meiryo, "メイリオ", YuGothic, sans-serif;
    font-size: var(--fs-normal);
    text-transform: capitalize;
    letter-spacing: 0.1em;
  }
}
section {
  padding: 6rem 0;
  @media (min-width:768px) {
    padding: 10rem 0;
  }
}
.section_title {
  font-family: var(--ff-maru);
  font-size: var(--fs-sec-title);
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 2.187em;
  @media (min-width:768px) {
    letter-spacing: 0.1em;
  }
}
.block_title{
  font-family: var(--ff-maru);
  font-size: var(--fs-large);
}
.btn_wrap {
  text-align: center;
  min-width: 20rem;
  margin: 5rem auto 0;
}
.btn{
  display: inline-flex;
  color: #FFF;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.1em;
  min-width: 20rem;
  padding: 0.3em 1.2em;
  background: var(--key-color);
  border: 0.2rem solid var(--key-color);
  border-radius: 99999px;
  overflow: hidden;
  position: relative;
  
  &:hover {
    color: var(--key-color);
  }

  &::before {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    background: #FFF;
    border-radius: 99999px;
    transform: scaleX(0);
    transform-origin: right;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s ease;
    transition-property: transform;
  }
  &:hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }
  & span {
    color: inherit;
    position: relative;
  }

  &.i_arrow {
    display: inline-flex;
    font-family: var(--ff-maru);
    font-size: var(--fs-large);
    padding: 0.67em 2em;
    gap: 0.5em;

    &::after {
      display: inline-block;
      content: "";
      width: 0.6em;
      height: 0.6em;
      border-right: 0.3rem solid;
      border-bottom: 0.3rem solid;
      transform: rotate(-45deg);
    }
  }
}
.inline_block {
  display: inline-block
}
.column2_img_text {
  padding: 4.16%;
  background: #FFF;
  @media (min-width: 768px) {
    display: flex;
    justify-content: space-between;
  }
  
  .img_wrap {
    margin-bottom: 1rem;
    @media (min-width: 768px) {
      width: 45.45%;
      margin-bottom: 0;
    }
  }
  .text_wrap {
    @media (min-width: 768px) {
      width: 50%;
    }
    .btn_wrap {
      margin: auto 0 0 auto;
    }
  }
  + .column2_img_text {
    margin-top: 5rem;
  }
}
.column2_free {
  background: #FFF;
  @media (min-width: 768px) {
    display: flex;
    justify-content: space-between;
  }

  .item {
    @media (min-width: 768px) {
      width: 45.8%;
    }

    + .item {
      margin-top: 5rem;
      @media (min-width:768px) {
        margin-top: 0;
      }
    }
  }
}
.column3_img_text {
  @media (min-width: 768px) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .item {
    @media (min-width: 768px) {
      width: 30.83%;
    }
    .img_wrap {
      margin-bottom: 1rem;

      & img {
        width: 100%;
      }
    }
    .text {
      margin-bottom: 1em;
    }
    .btn_wrap {
      margin: auto auto 0;
    }
  }
}
.column3_free {
  background: #FFF;
  @media (min-width: 768px) {
    display: flex;
    justify-content: space-between;
  }
  
  .item {
    @media (min-width: 768px) {
      width: 30.83%;
    }
  }
}
.grid3_img_text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 4.5rem 3.75%;
  
  .item {
    display: flex;
    flex-direction: column;
    padding: 8%;
    background: #FFF;

    .text:last-of-type {
      flex-grow: 1;
    }
    .btn_wrap {
      margin-top: 2rem;
    }
  }
}
table.theme {
  width: 100%;

  & td {
    padding: 0.5em;
    @media (min-width:768px) {
      padding: 2.2%;
    }

    &:nth-child(1) {
      font-weight: 700;
      text-align: center;
      word-break: keep-all;
      overflow-wrap: anywhere;
    }
  }

  & tr:nth-child(odd) {
    & td:nth-child(1) {
      background: var(--key-color-pale);
    }
    & td:nth-child(2) {
      background: #F9F4FD;
    }
  }
  & tr:nth-child(even) {
    & td:nth-child(1) {
      background: var(--back-purple);
    }
    & td:nth-child(2) {
      background: #FFF;
    }
  }
}
@media (min-width: 768px) {
  .reverse {
    flex-direction: row-reverse;
  }
}
/*--------------------------------------------------------------
# 無料体験受付中
--------------------------------------------------------------*/
section.trial {
  padding: 4.8rem 0 8rem;
  background-image: url(/assets/img/bk_dna.png);

  .inner {
    padding: 3rem 2rem 4rem;
    background: #FFF;
    border-radius: 5rem;
    position: relative;
    @media (min-width:768px) {
      height: min(70vw,66.5rem);
      padding: 8rem 2rem 0;
      background: url(/assets/img/trial_inner_bk.png) no-repeat center / 100% 100%;
    }

    &::before {
      display: block;
      content: "";
      width: 19.75%;
      aspect-ratio: 357 / 353;
      background: url(/assets/img/trial_men.png) no-repeat center / contain;
      position: absolute;
      bottom: -8%;
      left: 0;
      @media (min-width:768px) {
        width: 29.75%;
        bottom: 0;
      }
    }
    &::after {
      display: block;
      content: "";
      width: 22.75%;
      aspect-ratio: 393 / 342;
      background: url(/assets/img/trial_women.png) no-repeat center / contain;
      position: absolute;
      bottom: -8%;
      right: 0;
      @media (min-width:768px) {
        width: 32.75%;
        bottom: 0;
      }
    }
  }
  .trial_title {
    color: var(--key-color);
    font-size: var(--fs-page-title);
    font-family: var(--ff-maru);
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 0.9em;

    &::after {
      display: block;
      content: attr(data-title);
      color: var(--fc-base);
      font-family: 'Noto Sans JP', Meiryo, "メイリオ", YuGothic, sans-serif;
      font-size: var(--fs-normal);
      letter-spacing: 0.1em;
    }
  }
  .text {
    word-break: keep-all;
    overflow-wrap: anywhere;
    @media (min-width:768px) {
      text-align: center;
    }
  }
}
/*-------------------------------
使用するツール
-------------------------------*/
.tool {
  background-image: linear-gradient(rgba(0,0,0,0.5)),url(/assets/img/course/scratch.jpg);
  background-size: cover;
  background-position: center;
}
.tool .section_title {
  color: #FFF;
}
.tool .content_block {
  background: rgba(255,255,255,0.9);
}
.tool .block_title {
  margin-bottom: 1em;
}
.tool img {
  aspect-ratio: 500 / 281;
  object-fit: cover;
  @media (min-width:768px) {
    aspect-ratio: auto;
    height: 100%;
  }
}
.tool .content_block:nth-of-type(2) img {
  object-position: right;
}
.tool .note {
  font-size: 1.2rem;

  & a {
    font-size: inherit;
  }
}

/*-------------------------------
授業の流れ
-------------------------------*/
.lesson_flow {
  counter-reset: count 0;
  background: url(/assets/img/bk_kikagaku.png) repeat;
  @media (min-width:768px) {
    background-repeat: no-repeat;
    background-size: cover;
  }
}
.lesson_flow .block_title::before {
  content: counter(count)".";
  counter-increment: count 1;
}
.lesson_flow .official_site a {
  font-size: 1.2rem;
  
  &::after {
    display: inline-block;
    content: "";
    color: inherit;
    width: 1em;
    height: 1em;
    margin-left: 0.3em;
    background-color: currentColor;
    mask: url(/assets/img/icon_link.svg) no-repeat center / contain;
    -webkit-mask: url(/assets/img/icon_link.svg) no-repeat center / contain;;
  }
}
/*--------------------------------------------------------------
# ページナビ
--------------------------------------------------------------*/
.wp-pagenavi {
	width: fit-content;
  margin: 0 auto;
}
.wp-pagenavi a, .wp-pagenavi span {
  display: inline-block;
  color: var(--fc-base);
  font-size: var(--fs-normal);
	margin: 0.4em;
  padding: 0.5em 1.1em;
  background: var(--key-color-pale);
  @media (min-width:768px) {
    padding: 0.7em 1.3em;
  }
}
.wp-pagenavi a:hover, .wp-pagenavi span.current {
  color: #FFF;
	background: var(--key-color);
}


/*--------------------------------------------------------------
# よくある質問
--------------------------------------------------------------*/
.faq details {
  padding: 1em;
  background: #F5F5F5;
  border: 1px solid #D9D9D9;
  border-radius: 0.5em;

  & summary {
    display: flex;
    font-family: var(--ff-maru);
    font-size: var(--fs-large);
    font-weight: 700;
    justify-content: space-between;
    align-items: baseline;
    line-height: 1.5;
    gap: 0 4%;
    transition: 0.4s all ease;
    cursor: pointer;

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      display: block;
      content: "";
      width: 0.5em;
      height: 0.5em;
      flex-shrink: 0;
      border-top: 0.3rem solid var(--fc-base);
      border-right: 0.3rem solid var(--fc-base);
      transform: rotate(-45deg);
      transform-origin: center;
      transition: 0.4s all ease;
    }
  }

  &[open] {
    background: #FFF;

    & summary::after {
      transform: rotate(135deg);
    }
  }

  .text_wrap {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 0.1rem solid #D9D9D9;
    overflow: hidden;

    & p:last-child {
      margin-bottom: 0;
    }
  }

  + details {
    margin-top: 2.1em;
  }
}
