h1{
padding-top: 120px;
padding-bottom: 30px;
 text-align: center;
 font-family: Mochiy Pop One,serif;
 font-size: 50px;
 font-weight:normal}

p{padding-top: 20px;
  text-indent: 1em;
  margin-left: 5%;
  margin-right: 5%; 
}

h2,h3,h4,h5{
  margin-top: 10px;
  font-size: 40px;
  font-family: "M PLUS Rounded 1c", serif;
  font-weight: 900;
  font-style: normal;
  text-indent: 1em;
}

.heading-chance,.heading-study,.heading-energy,.heading-strong{
  display: flex;
  align-items: center;
  height: 100px;

}

.heading-chance{
  background-color:rgb(248, 204, 213) ;
}

.heading-study{
  background-color:rgb(244, 180, 148);
}

.heading-energy{
  background-color:rgb(242, 242, 155) ;
}

.heading-strong{
  background-color:rgb(157, 235, 229);
}

.process-slider {
  width: 90%;
  max-width: 800px; /* 横長画像なので、少し最大幅を広げると見栄えが良いです */
  margin: 20px auto;
  position: relative;
}

.image-container {
  position: relative;
  width: 100%;
  /* 1060x443の比率をそのまま指定。これで余白が消えます */
  aspect-ratio: 1060 / 443; 
  margin: 0 auto;
  overflow: hidden;
}

.process-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;      /* 枠いっぱいに広げる */
  object-fit: cover;  /* 枠に合わせてきれいに収める */
  opacity: 0;
  transition: opacity 0.2s ease-in-out; /* さっと切り替え */
  border-radius: 10px;
}

.process-image.active {
  opacity: 1;
}

.study img {
  display: block;      /* 画像をブロック要素にする */
  margin-left: auto;   /* 左の余白を自動に */
  margin-right: auto;  /* 右の余白を自動に */
  /* width: 170px; */
  width: 90%;       /* 親要素の幅いっぱいに広がる */
  height: auto;      /* 縦横比を維持して崩さない（超重要！） */

  object-fit: contain;
  position: relative;
  /* right: -28%; */
  margin-top: 20px;
  bottom: 0.7rem;
}



.img-gif {
  display: block;      /* 画像をブロック要素にする */
  margin-left: auto;   /* 左の余白を自動に */
  margin-right: auto;  /* 右の余白を自動に */
  /* width: 170px; */
  width: 40%;       /* 親要素の幅いっぱいに広がる */
  height: auto;      /* 縦横比を維持して崩さない（超重要！） */

  object-fit: contain;
  position: relative;
  /* right: -28%; */
  margin-top: 20px;
  bottom: 0.7rem;
}

.img-responsive {
  display: block;
  max-width: 100%; 
  height: auto;   
  margin: 20px auto;
}

.chance,.study,.interesting,.strong{
  margin-bottom: 30px;
 }



 .chance,.study,.interesting,.strong{
  margin-bottom: 30px;
 }

 .summary-box {
    border: 5px solid #ffaf5f;
    width: auto;
    margin: 50px 200px;
    border-radius: 40px;
    background: #fafafa;
    line-height: 1.8;
  }

  .summary-box p{
    font-size: 1.8rem;
    padding:20px 10px;
    margin: 0 20px;
    font-weight: bold;
    }

  
  @media (max-width: 940px) {
  p{
    font-size: 1rem;
  }

  h1{
    font-size: 40px;
  }

  h2{
    font-size: 35px;
  }

  h3,h4,h5{
    font-size: 30px;
  }
  }

 @media (max-width: 768px) {
  p{
    font-size: 1rem;

  }

  h1{
    font-size: 40px;
  }

  h2,h3,h4,h5{
    font-size: 30px;
  }

  .img-gif {
  width: 80%;      
}
 .summary-box {
    margin: 20px 20px;
    p{font-size: 1.1rem;}}}


 @media (max-width: 708px) {
  p{
    font-size: 1rem;
  }

  h1{
    font-size: 35px;
  }

  h3{
    font-size: 25px;
  }

  h2,h4,h5{
    font-size: 30px;
  }
}

 @media (max-width: 620px) {
  p{
    font-size: 1rem;
  }

  h1{
    font-size: 35px;
  }

  h3{
    font-size: 23px;
  }

  h2{
    font-size: 30px;
  }

   h4,h5{
    font-size: 25px;
  }
}

  .heading-chance,.heading-study,.heading-energy,.heading-strong{
    display: flex;
    align-items: center;
    height: 60px;
  
  } 



   @media (max-width: 570px) {
    h1{
      font-size: 30px;
      padding-top: 80px;
      padding-bottom: 10px;
    }

    h2,h3,h4,h5{
      font-size: 23px;
    }

    h3,h4,h5{
      font-size: 20px;
    }
  }

  

   @media (max-width: 480px) {
    h1{
      font-size: 25px;
      padding-top: 70px;
      padding-bottom: 10px;
    }

    h2,h3,h4,h5{
      font-size: 18px;
    }}



   @media (max-width: 420px) {
    h1{
      font-size: 25px;
      padding-top: 80px;
      padding-bottom: 10px;
    }

    h2,h3,h4,h5{
      font-size: 16px;
    }
  }

