:root {
    --main-color: #009fe8;
    --accent-color: #e5ded7;
    --hover-color: #ad9276;
    --bg-color: #f6f6f6;
    --text-color: #222;
    --card-radius: 16px;
  }

  .pc{
    display: block;
}
.sp{
    display: none;
}
@media screen and (max-width: 980px) {
    .pc{display: none;}
    .sp{display: block;}

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'メイリオ', sans-serif;
  line-height: 1.6;
  background: #009fe8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* FV  */
.yellow-section {
  background: #fff100;
  padding: 60px 0 80px;
  position: relative;
  overflow: visible; /* hiddenからvisibleに変更 */
  margin-bottom: 100px;
 
  
}
.yellow-section::after {
  content: '';
  position: absolute;
  bottom: -55px;
  left: 50%;
  transform: translateX(-50%);
 width: 100%;
    height: 88px;
  background: #fff100;
  border-bottom-right-radius: 100%;
  border-bottom-left-radius: 100%;
  z-index: -1; 
  overflow: hidden;
}


.yellow-section_sp {
  display: none;
  width: 100%;
  background-image: url(../img/sp/fv_01.png);
     /* height: 60vh;*/
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% 100%;
}


.fvimg {
  background: #009fe8;
    border-radius: 15px;
   /* overflow: hidden;*/
   /* box-shadow: 0 10px 30px rgba(0, 159, 232, 0.3);*/
    position: relative;
    max-height: 600px;
    height: 600px;
    width: 100%;
    background-size: contain;
}

.fvimg img {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: scale(0.9);
  filter: blur(2px);
  transition: all 0.8s ease;
  position: absolute;
  top: 0;
  left: 0;
  /*object-fit: cover;*/
  border-radius: 15px;
}


.yellow-section_sp .fvimg{
  background: none;
    border-radius: 0;

    box-shadow: none;
    position: relative;

    height: 836px;
    width: 100%;
    background-size: contain;
}




/* 各画像のアニメーション遅延設定 */
.fvimg img:nth-child(1) {
  animation: fadeInScale 0s ease forwards 0s;
}

.fvimg img:nth-child(2) {
  opacity: 0;
  animation: 
  fadeInScale 0.8s ease forwards 1.0s,     
    shake      0.8s linear forwards 2.3s; 

}


.fvimg img:nth-child(3) {
  opacity: 0;
  animation:
    fadeInScale 0.8s ease forwards 1.5s,     
    purun      0.8s linear forwards 2.3s;    
}



.fvimg img:nth-child(4) {
  /*animation: fadeInright 0.8s ease forwards 2.0s;*/
  animation: fadeInRightToLeft 0.8s ease forwards 2.0s;
}

.fvimg img:nth-child(5) {
  animation: fadeInScale 0.8s ease forwards 2.5s;
}

.fvimg img:nth-child(6) {
  animation: fadeInScale 0.8s ease forwards 2.5s;
}



@keyframes fadeInScale {
  to {
      opacity: 1;
      transform: scale(1);
      filter: blur(0px);
  }
}

@keyframes fadeInRightToLeft {
  from {
    opacity: 0;                 /* 透明から */
    transform: translateX(0); /* 右に50pxずらしてスタート */
    filter: blur(5px);          /* ぼかしあり */
  }
  to {
    opacity: 1;                 /* 不透明に */
    transform: translateX(0);   /* 元の位置に戻る（左へ移動する感じ） */
    filter: blur(0px);          /* ぼかし解除 */
  }
}


a.fv_lnk {
    position: absolute;
    width: 25%;
    height: 20%;
    top: 0;
    left: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

  .yellow-section {
    display: none;
  }
  .yellow-section_sp {
    display: block;
}

  .fvimg {
      height: 250px;
      padding: 15px;
  }

  a.fv_lnk {
    position: absolute;
    width: 45%;
    height: 14%;
    top: 0;
    left: 0;
}
  
  
}

@media (max-width: 480px) {
  .fvimg {
      height: 200px;
      padding: 10px;
  }
}



/*fvここまで*/


/*challenge-section*/
.challenge-section{

  width: 100%;
  margin-top: -5vh;
}
.challenge-bx {
      padding: 0px 0 34vh;
  background-image: url(../img/challenge_bk.png);
     /* height: 60vh;*/
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    text-align: center;
}
.challenge-bx img{
  width: 80%;
  margin: 14vh auto 0;
}

@media (max-width: 768px) {
.challenge-section{

  width: 100%;
  margin-top: 0;
}
.challenge-bx {
  padding: 5vh 5vw 14vh;
}
.challenge-bx img{
  width: 88%;
  margin: 0 auto 0;
}
}

 /*kaisai*/


 .kaisai {
  display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-columns: repeat(8, 1fr);
    width: 100%;
    row-gap: 40px;
  position: relative;
  
    
    background-image: url(../img/kaisai_bk.png);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% 100%;
  
}
.kaisai_sp{ display: none;

}


@media (max-width: 768px) {
  .kaisai {display: none;}
  .kaisai_sp {display: block;
   display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-columns: repeat(8, 1fr);
    width: 100%;
    row-gap: 40px;
  position: relative;
  padding-bottom: 5vh;
  }
}
.kaisai_bk_l {
    position: relative;
    width: 100%;
}
/*
.kaisai_cnt_l {
    position: absolute;
    
    top: -5vh;
    right: 3vw;
    height: 100%;
    width: calc(100% * 4 / 5);
}*/
.kaisai_cnt_l {
  position: absolute;
  right: 3vw;
  top: 50%;
  left: 50%;
  transform: translate(-43%, -60%);
  max-height: 107%;
  height: auto;
}

.kaisai_bk_r {
    position: relative;
    width: 100%;
}

.kaisai_cnt_r {
    position: absolute;
   
    /*top: -5vh;
    left: 3vw;
    height: 100%;
    width: calc(100% * 4 / 5);*/
    top: 50%;
    right: 50%;
    transform: translate(43%, -60%);
    max-height: 102%;
    height: auto;
}

.box {
       min-height: 150px;
    
    transform: translateX(0);
    /*
    opacity: 0;
    width: 92%;
    animation: slideIn 1s ease forwards;*/
    margin-bottom: 10vh;
}

.box.top {
      grid-column: 1 / 8;
   /* justify-self: start;
    animation-name: slideInLeft;
    width: calc(100% * 7 / 8);*/
}
.box.bottom {
  grid-column: 2 / 9;
   /* justify-self: end;
    animation-name: slideInRight;*/
}

@media (max-width: 768px) {
.box {
       min-height: auto;
   transform: translateX(0);
    margin-bottom: 1vh;
}

}

/* アニメーション
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  } 
  @media (max-width: 768px) {
    .box {
      width: 93% !important;
      justify-self: auto;
    }
  } */




/*sanka*/

.sanka {
    width: 100%;
   
}
.sanka_inner{
  width: 60%;
  margin: 5vh auto 15vh;
}
.sanka img {
    width: 100%;
}

@media (max-width: 768px) {

.sanka_inner {
  width: 80%;
  margin: 5vh auto 12vh;
}
.sanka img {
  margin-bottom: 5vh;
}
}


/*teacher*/

.teacher {
  background: #fff100 url(../img/teacher-back-parts.png) no-repeat top 80px left;
  background-size: 100% 100%;
  padding: 23vh 0;
  position: relative;

  /* ギザギザマスク（上下） */
  --mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 8vmin 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 8vmin 51% repeat-x;

  -webkit-mask: var(--mask);
  mask: var(--mask);
}
/*
.teacher::before {
   content: "";
  position: absolute;
  top: -24px;
  width: 100%;
  height: 24px;
  background: #fff100; 
  -webkit-mask-image: 
    repeating-linear-gradient(-45deg, #000 0 12px, transparent 12px 24px);
  -webkit-mask-repeat: repeat-x;
  mask-image: 
    repeating-linear-gradient(-45deg, #000 0 12px, transparent 12px 24px);
  mask-repeat: repeat-x;
}

.teacher::after{
  content: "";
  position: absolute;
  background: linear-gradient(45deg, #009fe8 50%, transparent 52%),
  linear-gradient(315deg, #009fe8 50%, transparent 52%);
  background-size: 44px 45px;
  height: 24px;
  width: 100%;
  bottom: 0;
}*/

.teacher_img{
  width: 70%;
  max-width: 1000px;
  margin: 0 auto;
}

.teacher_img img{
  width: 100%;
}

@media (max-width: 768px) {
  .teacher {
    background: #fff100;
    padding: 10vh 0;
    position: relative;
    background-image: none; }
    .teacher_img{
      width: 80%;}
}


/*workshop*/
.workshop{
 padding: 0 0 2vh;
  background-image: url(../img/workshop_bk.png);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% auto;

  }
  .wksp_img{
    width: 82.5%;
    max-width: 1200px;
    margin: 0 auto 8vh;
  }
  
  .wksp_img img{
    width: 100%;
  }

  @media (max-width: 768px) {
    .workshop{
       background-image: none;}
    .wksp_img{
      width: 86%;}

  }


/*contact*/

  .contact {
    background: #fff;
    padding: 17vh 0 5vh;
    position: relative;
    --mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 8vmin 100.1%;
  -webkit-mask: var(--mask);
  mask: var(--mask);

  }

  
  .contact.sanka {
    background: none;
    padding: 1vh 0 8vh;
    position: relative;
--mask:none;
  }

    @media (max-width: 768px) {
     .contact {
    padding: 10vh 0 5vh;}
      .contact.sanka {
    padding: 1vh 0 3vh;}
  }


/*  
  .contact:before {
      content: "";
      position: absolute;
      background: linear-gradient(45deg, #fff 50%, transparent 52%), linear-gradient(315deg, #fff 50%, transparent 52%);
      background-size: 44px 45px;
      height: 24px;
      width: 100%;
      top: -24px;
  }
      */
  .contact.sanka:before {
    background:none;
    display: none;
  }

  .cont_img{
    width: 65%;
    max-width: 1000px;
    margin: 0 auto 2vh;
  }
  
  .cont_img img{
    width: 100%;
  }

  .cont_img.memo {
    position: relative;
}
.hp_lnk {
    position: absolute;
    left: 27%;
    bottom: 37%;
    width: 7vw;
}
 .hp_lnk a:hover img{
  filter: brightness(70%); 
}

  .cont_btn{
    cursor: pointer;
  }

  .cont_btn:hover {
  animation: mildExplodeShake 0.35s cubic-bezier(.5,0,.5,1.2) 1;
  opacity: 0.85;
  will-change: transform, opacity;
}

@keyframes mildExplodeShake {
  0%   { transform: scale(1) skew(0deg,0deg); opacity: 1; }
  25%  { transform: scale(1.06) skew(2deg,2deg); opacity: 0.9; }
  60%  { transform: scale(1.11) skew(-3deg,-3deg); opacity: 0.85; }
  100% { transform: scale(1) skew(0deg,0deg); opacity: 1; }
}

/*
  .cont_btn:hover{
     animation: hoverShake 0.15s linear 3;
  opacity: 0.8;
}

@keyframes hoverShake {
  0% {transform: skew(0deg,0deg);}
  25% {transform: skew(1deg, 1deg);}
  75% {transform: skew(-1deg, -1deg);}
  100% {transform: skew(0deg,0deg);}
}
 */

  @media (max-width: 768px) {
    .cont_img{
      width: 80%;}
    .hp_lnk {
    position: absolute;
    left: 45%;
    bottom: 34.5%;
    width: 16vw;
    }
  }

.footer-disclaimer {
  background: #000;
  color: white;
  padding: 30px 0;
  font-size: 18px;
  line-height: 1.5;
}


.copyright {
  text-align: center;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
      padding: 0 15px;
  }
  .footer-disclaimer {
    font-size: .7em;
  }




  .image-placeholder {
      min-height: 200px;
      margin-bottom: 30px;
  }

}
/*
  .circle {
      width: 40px;
      height: 40px;
  }

  .triangle {
      border-left-width: 15px;
      border-right-width: 15px;
      border-bottom-width: 26px;
  }
}

@media (max-width: 480px) {
  .challenge-text {
      font-size: 16px;
      line-height: 1.6;
  }

}*/


.fade{
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 2s ease-out, transform 1s ease-out;

}

.field_r,.field_l {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 2s ease-out, transform 1s ease-out;

}

.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.field_r {
    transform: translateX(100%);
}

.field_r.visible {
    opacity: 1;
    transform: translateX(0);
}
.field_l {
    transform: translateX(-100%);
}

.field_l.visible {
    opacity: 1;
    transform: translateX(0);
}

.puru.animate-purun {
  animation: purun 0.8s linear forwards;
}
.puru2{
  opacity: 0;
}
.puru2.visible {
  animation: purun 0.8s linear forwards;
}
@keyframes purun {
  0%   { transform: scale(1.0, 1.0) translate(0%, 0%); }
  15%  { transform: scale(0.9, 0.9) translate(0%, 5%); }
  30%  { transform: scale(1.3, 0.8) translate(0%, 10%); }
  50%  { transform: scale(0.8, 1.3) translate(0%, -10%); }
  70%  { transform: scale(1.1, 0.9) translate(0%, 5%); }
  100% { transform: scale(1.0, 1.0) translate(0%, 0%); }
}

.korokoro {
   animation: shake 0.3s infinite;
}

@keyframes shake {
 0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}