@charset "UTF-8";

/* 初期設定 */
html{
  font-size: 100%;
  scroll-behavior: smooth;
}

li{
  list-style: none;
}

a{
  text-decoration: none;
  color: #000;
}


/* 共通項目 */
body{
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #e9e9e9;
}

.text-setting{
  margin:1rem 0.5rem;
  text-align: center;
}

.section-title{
  /* margin-top: 1rem; */
  margin-bottom: 1rem;
  display: block; /* ←これ超重要 */
  position: relative;
  width: fit-content;
  margin: 0 auto 1rem;
  z-index: 0;
}

.section-title::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  border-radius: 25%;
  background-color: #fdc307;
  z-index: -10;
}

.background-green{
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 2rem 0.5rem;
  background-color: rgba(216, 244, 135,0.8);
  border-radius: 24px;
  position: relative;
  z-index: 0;

}

.background-blue{
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 2rem 0.5rem;
  background-color: rgba(183, 226, 244,0.8);
  border-radius: 24px;
  position: relative;
  z-index: 0;

}

/* ヘッダー */

.header-container{
  display: flex;
  align-items: center;
  position: relative;
  margin: 1.0rem 0 0;
}

.logo{
  background-color: #d8f487;
  font-family: "Dancing Script",cursive;
  width:100px;
  height: 50px;
  font-size: 2.0rem;
  padding: 0.5rem 1.0rem;
  margin: 0 0.5rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name{
  margin-right: auto;
}

.name p:first-child{
  letter-spacing: 1.3px;
  font-size: 0.75rem;
}

.name p:nth-of-type(2){
  letter-spacing: 3.0px;
  font-size: 1.0rem;
}

/* ハンバーガーメニュー */
.hamburger-button{
  font-size: 3rem;
  padding-right: 0.5rem;
}

.hamburger-button-close{
  display: none;
  font-size: 2.0rem;
  padding-right: 0.5rem;
  position: relative;
  z-index: 300;
}

.hamburger-menu{
    position: fixed;
    top: 0;
    left: 100%;
    width: 100vw;
    height: 100dvh;
    background-color: #d8f487;
    transition: all 0.6s;
    visibility: hidden;
    opacity: 0;
    text-align: center;
    z-index: 20;
}

.hamburger-menu-active{
    left:0%;
    visibility: visible;
    opacity: 1;
}

.hamburger-menu-list{
  padding: 5rem 1.25rem;
}

.hamburger-menu-list li{
    padding: 0.5rem ;
    list-style: none;
    font-size: 1.5rem;
}

.hamburger-menu-list li a{
  display: block;
}

/* 追加 */
.header.menu-open .hamburger-button{
  display: none;
}

.header.menu-open .hamburger-button-close{
  display: block;}

  /* 進化の過程 */
.hero {
  position: relative;
  width: auto;
  height: 20vh;
  overflow: hidden;
}

.hero-images {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 🔥サイズ小さく＆下揃え */
.hero-image {
  position: absolute;
  bottom: 0;          /* ←地面に立たせる */
  height: 60%;        /* ←ここでサイズ調整（重要） */
  width: auto;
  opacity: 0;
  transition: opacity 1s ease;
}

/* 表示されたら残る */
.hero-image.show {
  opacity: 1;
}

/* 位置（進化に合わせて右へ） */
.hero-image.pos1 {
  left: 2%;
  height: 40%;
  bottom: 0%;
}

.hero-image.pos2 {
  left: 20%;
  height: 45%;
  bottom: 0%;
}

.hero-image.pos3 {
  left: 36%;
  height: 55%;
  bottom: 0%;
}

.hero-image.pos4 {
  left: 52%;
  height: 60%;
  bottom: 0%;
}

.hero-image.pos5 {
  left: 68%;
  height: 65%;
  bottom: 0%;
}

.hero-image.pos6 {
  left: 84%;
  height: 70%;
  bottom: 0%;
}

/* テキスト */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;

  color: #fff;
  font-size: clamp(1.5rem, 5vw, 8rem);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;

  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.7);

  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-text.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* news */
iframe{
  display: block;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.if-size{
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
}
.news-text{
  flex: 1;
}

/* 講師紹介 */
.teacher-img{
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 1rem auto 0.5rem;
  text-align: center;
}
.teacher-img img{
  width: 100%;
  height: auto;
}

.teacher-p{
  max-width: 100%;
  text-align: center;
}

.teacher-history{
  padding: 0.5rem;
  text-align: justify;
}

.teacher-history p:nth-of-type(2){
  padding-top: 0.25rem;
}

.teacher-coment{
  padding: 0.5rem;
  text-align: justify;
}

.teacher-coment p:nth-of-type(2){
  padding-left: 4rem;
}

/* 合格実績 */
.result{
  max-width: 1280px;
}
.result-year{
  width: 90%;
  background-color: #fff;
  border-radius: 24px;
  padding: 1rem;
  margin: 0 auto;
}

.result-gap{
  margin-top: 1rem;
}

.result-year p{
  margin-bottom: 0.5rem;
}

table{
  margin-left: 2rem;
}
.school{
  width: 8rem;
}
.school2{
  width: 12rem;
}

.school3{
  display: none;
}

.school4{
  display: none;
}
/* 合格体験記 */
.pass-des{
  padding: 0 0.5rem;
  text-align: justify;
  margin-bottom: 1.0rem;
}

.class-img{
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

.class-img img{
  width: 100%;
  height: auto;
}

.accordion-section{
  margin-top: 0.5rem;
  max-width: 767px;
  border: 1px solid #9999 ;
  margin: 0 0.5rem 0.5rem;
  border-radius: 8px;
}

.accordion-title{
  font-size: 1.0rem;
  padding:0.5rem 0;
  cursor: pointer;

}
.accordion-btn{
  display: inline-block;
  padding: 0 0.5rem;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.accordion-btn.accordion-open{
  transform:rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-inner{
  text-align: justify;
  max-width: 750px;
  background-color: #ffffff;
  margin:1rem;
  padding: 1rem;
  border-radius: 12px;
}

/* 塾生の声 */
.m-a{
  max-width: 500px;
  height: 400px;
  position: relative;
  margin-right: 0.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start; /* ← これを追加 */
}


.m-a-coment{
  position: relative;
  display: inline-block;
  background: #fff;
  max-width: 400px;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 10px 15px;
}

.m-a-coment::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  left: 12px;
  bottom: -8px;
  transform: rotate(-45deg);
}


.m-a-logo{
  max-width: 200px;
  height: 197px;
  position: absolute;
  top:40%;
  left: 0;
}

.m-a-logo img{
  width: 100%;
  height: 100%;
}

.m-a-logo p{
  text-align: center;
}


.a-g{
  max-width: 1280px;
  height: 400px;
  position: relative;
  margin-right:1.5rem;
  display: flex;
  flex-direction: column;
  /* justify-content: flex-end; */
  align-items: flex-end; /* ← これを追加 */
}


.a-g-coment{
  position: relative;
  display: inline-block;
  background: #fff;
  max-width: 400px;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 10px 15px;
}

.a-g-coment::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  right: 10px;
  bottom: -8px;
  transform: rotate(-45deg);
}

.a-g-logo{
  max-width: 200px;
  height: 197px;
  position: absolute;
  top: 45%;
  right: 0%;
}

.a-g-logo img{
  display: block;
  width: 100%;
  height: 100%;
}

.a-g-logo p{
  text-align: center;
}

/* 授業スタイルと授業料 */

h3{
  margin: 0 0rem 0.5rem 0.5rem;
}

.class-style p:not(:nth-of-type(3)){
  margin: 0 0.5rem 0.5rem 0.5rem;
  text-align: justify;
}

.merrit{
  margin-left: 0.5rem;
}

.merrit li::before{
  content: "・";
  display: inline;
}

.class-style h3:nth-of-type(2){
  margin-top:0.5rem;
}

.money{
  font-size: 1.25rem;
}

.attention{
  margin-left: 0.5rem;
}

.attention li::before{
  content: "※";
  display: inline;
}

/* アクセス */
.map p{
  margin-left: 0.5rem;
}

.map iframe{
  margin: 0.5rem auto 0.5rem auto;
  max-width: 400px;
  aspect-ratio: 16/9;
}

/* お問い合わせ */
.contact p:nth-of-type(1){
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact p:nth-of-type(2){
  text-align: center;
  margin-bottom: 1.0rem;
}

.tell-area{
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 0.5rem;
}

#contactForm{
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.form-group-name,
.form-group-mail,
.form-group-content{
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group-content{
  align-items: start;
}

.form-group-name label,
.form-group-mail label,
.form-group-content label{
  font-weight: 700;
}

.form-group-name input,
.form-group-mail input,
.form-group-content textarea{
  width: 100%;
  padding: 0.75rem 0.875rem;
  background-color: #fff;
  border: none;
  outline: none;
  font: inherit;
}

.form-group-content textarea{
  min-height: 180px;
  resize: vertical;
}

#contactForm button{
  display: block;
  width: fit-content;
  margin: 1rem auto 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background-color: #22C55E;
  color: #fff;
  cursor: pointer;
}


.small{
  width: fit-content;
  margin: 0 auto;
}

.thanks{
  margin: 5rem 0 0 5rem;
}

.thanks a{
  font-size: clamp(1.0rem,2vw,1.5rem);
  color: blue;
}
@media (min-width: 768px){
  /* 共通部品 */
  .section-title{
  margin-top: 0rem;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  display: block; /* ←これ超重要 */
  position: relative;
  width: fit-content;
  text-align: center;
}

.background-green{
  max-width:1280px;
  padding: 2rem 1rem 2rem 1rem;
  margin: 5rem auto;
  background-color: rgba(216, 244, 135,0.8);
  border-radius: 5%;
  position: relative;
  z-index: 0;
}

.background-blue{
  max-width:1280px;
  padding: 2rem 1rem 2rem 1rem;
  margin: 5rem auto;
  background-color: rgba(183, 226, 244,0.8);;
  border-radius: 5%;
  position: relative;
  z-index: 0;
}

p{
  font-size: clamp(1.0rem,2vw,1.5rem);
}

tr{
  font-size:clamp(1.0rem,2vw,1.5rem);
}

  /* ヘッダーの設定 */
  .header{
    display: flex;
    align-items: center;
  }

  .logo{
  width:140px;
  height: 60px;
  margin-left: clamp(0.5rem,2vw,5rem);
}

  .hamburger-button,
  .hamburger-button-close,
  .hamburger-menu-active{
    display: none;
  }

  .header-container{
    margin-right: auto;
  }

  .hamburger-menu{
    position: static;
    height: auto;
    visibility: visible;
    opacity: 1;
    width: initial;
    background-color: transparent;
  }

  .hamburger-menu-list{
    position: static;
    display: flex;
    padding: 0 ;
    margin-top: 3.5rem;
    margin-right: clamp(0.25rem,1.0vw,5rem);
    column-gap: clamp(0.5rem,0.5vw,1.5rem);
  }

/* 拡大、縮小した時の文字の大きさの設定 */
  .name p:first-child{
  letter-spacing: 3.0px;
  font-size: clamp(0.65rem,1vw,1.0rem);
}

  .name p:nth-of-type(2){
  letter-spacing: 2.0px;
  font-size: clamp(1.0rem,2vw,1.5rem);
}

  .hamburger-menu-list li{
    font-size:clamp(0.5rem,1.0vw,1.0rem);
  }
/* 進化の過程 */
  .hero {
  height: calc(100vh - 107px);
}

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 107px);
  overflow: hidden;
}

/*news*/
.if-size{
  font-size: 1.5rem;
}

/* 講師紹介 */
.teacher-img{
  max-width: 480px;
  width: 100%;
}
.teacher-history{
  padding: 1rem;
}
/* 合格実績 */
.result-year{
  width: 90%;
  margin: 0 auto;
}

.result-gap{
  margin-top: 1rem;
}

.school{
  width: 15rem;
}

.school2{
  width: 25rem;
}

.school3{
  display: table-cell;
  width:15rem;
}

.school4{
  display: table-cell;
  width: 15rem;
}

/* 合格体験記 */
.pass-des{
margin-bottom: 2.0rem;
}

.class-img{
  max-width: 400px;
  margin-bottom: 2rem;
}

.accordion-section{
  max-width: 1280px;
  margin: 0 auto 1rem auto;
}

.accordion-title{
    font-size:clamp(1.0rem,2vw,1.5rem);

}

.accordion-inner{
  text-align: justify;
  max-width: 1280px;
  background-color: #ffffff;
  margin:1rem;
}


/* 塾生の声 */
.voice{
  max-width: 1280px;
  height: 1300px;
  margin: 0 auto;
}
.m-a{
  max-width: 1280px;
  width: 100%;
  height: 350px;
  position: relative;
}

.m-a-coment{
  max-width: 600px;
  position: absolute;
  top: 5%;
  left: 19%;
}

.m-a-coment-img{
  width: 550px;
  height: auto;
  position: absolute;
  left: 15%;
}

.m-a-coment-img img{
  width: 100%;
  height: auto;
}


.m-a-logo{
  max-width: 300px;
  height: 197px;
  position: absolute;
  top:65%;
}

.m-a-logo img{
  width: 100%;
  height: auto;
}

.a-g{
  max-width: 1280px;
  height: 400px;
  position: relative;
  /* background-color: #fdc307;/ */
}

.a-g-coment{
  max-width:600px;
  position: absolute;
  top: 60%;
}

.a-g-logo{
  max-width: 300px;
  height: 197px;
  position: absolute;
  top:125%;
  right: 0%;
}

.a-g-logo img{
  width: 100%;
  height: auto;
}

/* 授業スタイルと授業料 */
.class-style h3{
  font-size: clamp(1.0rem,2vw,1.5rem);
}

.class-style ul{
  font-size: clamp(0.75rem,2vw,1.25rem);
}

.class-style p:nth-of-type(1){
  margin-bottom: 1rem;
}

.class-style h3:nth-of-type(2){
  margin-top: 1.0rem;
}

.money{
  font-size: clamp(1.0rem,2vw,1.5rem);
}

/* マップ */
.map iframe{
  margin: 0.5rem auto 0.5rem auto;
  max-width: 800px;
  aspect-ratio: 16/9;
}
.map-text{
  width: fit-content;
  margin: 0 auto 0.5rem;
}

.map > p:last-of-type{
  text-align: center;
  margin-top: 0.5rem;
}

/* お問い合わせ */
.contact p:nth-of-type(1){
  width: fit-content;
  margin: 0 auto 1rem;
}

.tell-area a{
  font-size: clamp(1.0rem,2vw,1.5rem);
}

.form-group-name{
  margin-top: 2.0rem;
}

#contactForm button{
  font-size: clamp(1.0rem,2vw,1.5rem);
}

}

@media(min-width: 768px)and (max-width: 1179px){
.hero {
  height: calc(45vh - 107px);
}

}
