/*tabの形状*/
.tab {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 0;
  /* width: 670px; */
  width: 100%;
  padding-left: 0;
}

.tab>li {
  list-style: none;
  width: calc(100% / 3 - 10px);
}

.tab>li a {
  display: flex;
  padding: 2px 10px 0;
  height: 50px;
  text-decoration: none;
  color: #000;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tab>li:first-child a {
  background-color: #ffda2a;
}

.tab>li:nth-child(2) a {
  background-color: #cceafb;
}

.tab>li:last-child a {
  background-color: #d6e7ac;
}

.tab li img {
  align-self: flex-end;
}

.tab li b {
  align-self: center;
}

.tab>li a img {
  height: 100%;
}

.tab>li>a>div {
  line-height: 1.2;
}

#kids>div:first-child {
  background-color: #ffda2a;
}

#students>div:first-child {
  background-color: #cceafb;
}

#university>div:first-child {
  background-color: #d6e7ac;
}



/*エリアの表示非表示と形状*/
.area {
  display: none;
  /*はじめは非表示*/
  opacity: 0;
  /*透過0*/
  background: #fff;
}

.area>div {
  overflow: hidden;
  padding: 10px 0;
}

/*areaにis-activeというクラスがついた時の形状*/
.area.is-active {
  display: block;
  /*表示*/
  animation-name: displayAnime;
  /*ふわっと表示させるためのアニメーション*/
  animation-fill-mode: forwards;
}

@keyframes displayAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* アニメーション */
/*ループスライダー*/
.loop_wrap01,
.loop_wrap02 {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.loop_wrap01 {
  height: 15px;
}

.loop_wrap02 {
  height: 120px;
  margin: 5px 0 0;
}

.loop_wrap01 img,
.loop_wrap02 img {
  position: absolute;
  top: 0;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

/* 帯部分 */
@keyframes scrollA {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.loop_wrap01 img:first-child {
  left: 4px;
  animation: scrollA 70s linear infinite;
}

.loop_wrap01 img:last-child {
  left: 100%;
  animation: scrollA 70s linear infinite;
}

@keyframes scrollB {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.loop_wrap02 img:first-child {
  left: -25px;
  animation: scrollB 20s linear infinite reverse;
}

.loop_wrap02 img:last-child {
  left: 100%;
  animation: scrollB 20s linear infinite reverse;
}

.tab-animation ul {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  margin-bottom: 10px;
}

.tab-animation ul li {
  list-style: none;
}

.tab-animation ul li:first-child,
.tab-animation ul li:last-child {
  width: 18%;
  align-self: flex-end;
}

.tab-animation ul li:first-child img,
.tab-animation ul li:last-child img {
  width: 100%;
}

.tab-animation ul li:nth-child(2) {
  width: 64%;
  text-align: center;
}

.tab-animation ul li:nth-child(2) div {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  line-height: 1.2;
}

.tab-animation .pink {
  color: #e4007f;
}

.tab-animation ul li.animation-text div:first-child {
  /* じわっと表示される */
  animation: fadeIn 2s ease forwards;
  -webkit-animation: fadeIn 2s ease forwards;
  opacity: 0;
  font-size: 32px;
}

.tab-animation ul li.animation-text div.animation-text-center {
  /* じわっと表示される */
  animation: fadeIn 2s ease 1s forwards;
  -webkit-animation: fadeIn 2s ease 1s forwards;
  opacity: 0;
  font-size: 60px;
  font-weight: 800;
}

#students .tab-animation ul li.animation-text div.animation-text-center,
#university .tab-animation ul li.animation-text div.animation-text-center {
  margin-top: 15px;
  display: inline-block;
}

.tab-animation ul li.animation-text div:last-child {
  /* じわっと表示される */
  animation: fadeIn 2s ease 2s forwards;
  -webkit-animation: fadeIn 2s ease 2s forwards;
  opacity: 0;
  font-size: 42px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/*古いブラウザ用*/
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}



/*****************************アコーディオン全体************************/
.accordion-area {
  list-style: none;
  width: 96%;
  margin: 0 auto;
  padding-left: 0;
}

.accordion-area li {
  margin: 10px 0;
}

.accordion-title {
  position: relative;
  cursor: pointer;
  font-size: 1rem;
  font-weight: normal;
  padding: 10px;
  transition: all .5s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 3px solid #898989;
  border-radius: 20px;
}

.accordion-title li {
  list-style: none;
}

.accordion-title li:first-child img {
  width: 100px;
  margin: auto;
  display: block;
}

.accordion-title li:last-child {
  width: 70%;
}

#students .accordion-title li:last-child,
#university .accordion-title li:last-child {
  width: calc(100% - 150px);
}

.accordion-title li div {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.4;
  display: block;
}

#kids .accordion-title li div {
  width: calc(100% - 50px);
}

.accordion-title p {
  margin: 0 !important;
}

#students .accordion-title li div {
  font-size: 22px;
  line-height: 1.2;
}

#university .accordion-title li div {
  font-size: 22px;
  line-height: 1.2;
}

#university .accordion-title li span.accordion-title-middle {
  font-size: 20px;
  font-weight: bold;
}

.accordion-title::before {
  position: absolute;
  content: '';
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: contain;
}

#kids .accordion-title::before {
  background-image: url(../img/kidscorner/kids/arrow-yellow.svg);
}

#students .accordion-title::before {
  background-image: url(../img/kidscorner/student/arrow-blue.svg);
}

#university .accordion-title::before {
  background-image: url(../img/kidscorner/university/arrow-green.svg);
}

.accordion-title::before {
  top: 35%;
  right: 15px;
  transform: rotate(0deg);
}

.accordion-title.close::before {
  transform: rotate(180deg);
}

#students .accordion-title,
#university .accordion-title {
  justify-content: start;
}

#students hr,
#university hr {
  margin: 5px;
  border-bottom: 2px solid #595757;
}

.accordion-box {
  display: none;
  border-radius: 20px;
  padding: 10px;
  margin: 30px auto;
}

#kids .accordion-box {
  background: #fedf8f;
}

#students .accordion-box,
#university .accordion-box {
  background: #d3edfb;
}

#university .accordion-box {
  background: #e5f0cb;
}

.accordion-contents {
  display: block;
  margin: 60px auto;
  background-color: #fff;
  border-radius: 20px;
}

.accordion-contents:first-child {
  margin-top: 0;
}

.accordion-contents:last-child {
  margin-bottom: 0;
}

.accordion-contents-title {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
}

#kids .accordion-contents-title,
#students .accordion-contents-title,
#university .accordion-contents-title {
  padding: 20px 20px 0;
  justify-content: start;
}

.accordion-contents-title li {
  list-style: none;
}

.accordion-contents-title li:first-child {
  width: 30%;
}

.accordion-contents-title li img {
  height: 80px;
  margin: auto;
  display: block;
}

.accordion-contents-title li:last-child {
  width: 100%;
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
}

.accordion-contents-text {
  display: flex;
  padding: 20px;
  justify-content: space-between;
}

#students .accordion-contents-text,
#university .accordion-contents-text {
  padding-top: 0;
}

.accordion-contents-text li {
  list-style: none;
}

.accordion-contents-text li span {
  border-bottom: 1px solid #000;
  font-size: 20px;
  display: block;
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-weight: bold;
}

#students .accordion-contents-text li span,
#university .accordion-contents-text li span {
  font-size: 16px;
}

.accordion-contents-text li img {
  width: 100%;
}

.accordion-contents-text li:first-child {
  width: 55%;
}

.accordion-contents-text li:last-child {
  width: 40%;
}

#students .accordion-contents-text li:first-child,
#university .accordion-contents-text li:first-child {
  width: 65%;
}

#students .accordion-contents-text li:last-child,
#university .accordion-contents-text li:last-child {
  width: 30%;
}

.kids-banner {
  margin-bottom: 5px !important;
}

.kids-banner img {
  width: 100%;
}

.quiz_title{
  font-size: 34pt;
  white-space: nowrap;
}

.kamishibai_link {
  display: inline-block;
  margin-bottom: 15px;
}

@media only screen and (min-width: 800px) and (max-width: 910px) {
  .tab>li a img {
    display: none;
  }

  .loop_wrap02 {
    height: 85px;
  }

}

@media only screen and (max-width: 599px) {
  .tab li {
    width: 100%;
  }

  .tab>li a {
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .tab-animation ul li.animation-text div.animation-text-center {
    font-size: 40px;
  }

  .tab-animation ul li.animation-text div:last-child {
    font-size: 32px;
  }

  .tab-animation ul li:first-child img, .tab-animation ul li:last-child img {
    width: 80%;
  }

  .quiz_title {
    font-size: 25pt;
    line-height: 30pt;
  }

  .wp-image-1283{
    width: 40px;
  }
}

@media only screen and (max-width: 499px) {
  section {
    margin-bottom: 20px;
  }

  .accordion-contents-title li:last-child {
    font-size: 30px;
  }

  .accordion-contents-text {
    display: block;
  }

  .accordion-contents-text li:first-child,
  #students .accordion-contents-text li:first-child,
  #university .accordion-contents-text li:first-child {
    width: 100%;
  }

  .accordion-contents-text li:last-child,
  #students .accordion-contents-text li:last-child,
  #university .accordion-contents-text li:last-child {
    width: 100%;
    text-align: center;
  }

  .loop_wrap02 {
    height: 60px;
  }

  .accordion-contents-text li:last-child img {
    width: 50%;
  }

  .tab-animation ul li.animation-text div.animation-text-center {
    font-size: 30px;
  }

  .tab-animation ul li.animation-text div:last-child {
    font-size: 24px;
  }

  .accordion-title li div {
    font-size: 22px;
  }

  .accordion-title li:first-child img {
    width: 65px;
  }

  .accordion-title li {
    width: 85px;
  }

  .quiz_title {
    font-size: 18pt;
    line-height: 28pt;
  }

  .wp-image-1283{
    width: 35px;
  }

}

@media only screen and (max-width: 399px) {
  section {
    margin-bottom: 20px;
  }

  .accordion-box {
    padding: 22px;
  }

  .loop_wrap02 {
    height: 50px;
  }

  .tab-animation ul li.animation-text div.animation-text-center {
    font-size: 25px;
  }

  .tab-animation ul li.animation-text div:last-child {
    font-size: 20px;
  }

  .tab-animation ul li:first-child img, .tab-animation ul li:last-child img {
    width: 75%;
  }

  .accordion-title li div ,
  #students .accordion-title li div ,
  #university .accordion-title li div {
    font-size: 18px;
  }

  .accordion-title li:first-child img {
    width: 55px;
  }

  .accordion-title li {
    width: 65px;
  }

  .accordion-title::before {
    width: 28px;
    height: 28px;
  }

  #kids .accordion-title li div {
    width: calc(100% - 35px);
  }

  #students .accordion-title li:last-child,
  #university .accordion-title li:last-child {
    width: calc(100% - 100px);
  }

  .quiz_title {
    font-size: 16pt;
    line-height: 23pt;
  }

  .wp-image-1283{
    width: 30px;
  }

}