
/*****************************************
*
* キッズスタジオ
*
******************************************/

/*------------------------------------------*/
/* メイン
/*------------------------------------------*/

.kids-main.section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
  margin-bottom: 60px;
}

/* box-main --------------------------------*/
.kids-main .box-main .main-text img {
  width: 100%;
}

.kids-main .box-main .main-image img {
  width: 100%;
  mask-image: url('../img/kids/kids_main_mask.svg');
  mask-repeat: no-repeat;
  mask-position: 0 0;
  mask-size: auto 100%;
  -webkit-mask-image: url('../img/kids/kids_main_mask.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  -webkit-mask-size: auto 100%;
}

@media screen and (max-width: 767px) {
  .kids-main .box-main {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }

  .kids-main .box-main .main-image {
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 768px), print {
  .kids-main .box-main {
    position: relative;
    text-align: right;
  }

  .kids-main .box-main .main-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
  }

  .kids-main .box-main .main-text img {
    width: calc(calc(486 / 1240) * 100vw);
  }

  .kids-main .box-main .main-image img {
    width: calc(calc(650 / 1240) * 100vw);
  }
}

@media screen and (min-width: 1240px), print {
  .kids-main .box-main .main-text img {
    width: 486px;
  }

  .kids-main .box-main .main-image img {
    width: 650px;
  }
}


/*------------------------------------------*/
/* コンテンツ
/*------------------------------------------*/

.kids-contents {
  background: transparent;
  text-align: center;
  padding: 0;
  margin-bottom: 0;
}

.kids-contents .box {
  background: var(--color-bright-kids);
  border-radius: 20px;
  padding: 10px;
}

.kids-contents .box+.box {
  margin-top: 40px;
}

@media screen and (min-width: 768px), print {
  .kids-contents .box {
    padding: 20px;
  }
}

@media screen and (min-width: 834px), print {
  .kids-contents .box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    padding: 40px;
  }

  .kids-contents .box+.box {
    margin-top: 100px;
  }
}

/* 画像 --------------------------------*/
.kids-contents .image img {
  width: 100%;
  max-width: 250px;
  z-index: 2;
}

@media screen and (min-width: 834px), print {
  .kids-contents .image {
    position: absolute;
    bottom: -60px;
    left: calc(calc(200 / 1240) * 100vw);
  }
}

@media screen and (min-width: 1240px), print {
  .kids-contents .image {
    left: 280px;
  }
}


/* 見出し --------------------------------*/
.kids-contents .heading {
  color: var(--color-kids);
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 3;
}

@media screen and (min-width: 834px), print {
  .kids-contents .heading {
    text-align: left;
    font-size: 1.6rem;
  }
}

/* テキスト --------------------------------*/
.kids-contents .text {
  text-align: left;
  line-height: 2;
}

@media screen and (max-width: 833px) {
  .kids-contents .text {
    margin-top: 1em;
    margin-bottom: 1em;
  }
}

