html {
  font-size: 100%;
  /* 16px */
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #4a4a4a;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* ちらつき防止 */
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* 初期設定解除 */
a {
  text-decoration: none;
  color: inherit;
  /* 親要素と同じ色にする */
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  display: block;
}

/* 共通スタイル*/
a:hover {
  cursor: pointer;
}

.green {
  color: #009944;
  font-weight: 500;
}

.red {
  color: #ff0000;
}

.blue {
  color: #0071bc;
}

h2 {
  font-size: clamp(30px, 2vw + 1rem, 38px);
  font-weight: 500;
  color: #009944;
  text-align: center;
  margin: 7rem 0 4rem 0;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  background-color: #fef8a6;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* 中心に寄せる */
  z-index: -1;
  /* テキストの背面に表示 */
}

.green_btn {
  background-color: #009944;
  color: #fff;
  width: 200px;
  height: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
}

.green_btn:hover {
  background-color: #0d4627;
  color: #ffffff;
  cursor: pointer;
}

.white_btn {
  background-color: #ffffff;
  color: #009688;
  width: 200px;
  height: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
}

.white_btn:hover {
  background-color: #009944;
  color: #ffffff;
  cursor: pointer;
}

.sp-br {
  display: none;
}

/* トップに戻る */
.top_btn {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

/* ここから個別設定 */
.wrapper {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
///// ナビゲーション
========================================================= */
nav {
  width: 100%;
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul li {
  gap: 5px;
  width: calc(100% / 5);
  padding: 10px 0;
  text-align: center;
  border-right: 2px solid #009944;
}

nav ul li a .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

nav ul li a span {
  display: block;
}

nav ul li a .inline-svg {
  fill: #4a4a4a;
  width: 35px;
  height: 35px;
  cursor: pointer;
  transition: fill 0.3s ease;
}

nav ul li:first-child {
  border-left: 2px solid #009944;
}

nav ul li.extra-item {
  display: none;
}

/* =========================================================
///// ナビゲーション　ホバー
========================================================= */
nav ul li:hover .inline-svg {
  cursor: pointer;
  fill: #009944;
}

nav ul li:hover {
  color: #009944;
  cursor: pointer;
  transition: color 0.3s ease;
}

iframe {
  width: 100%;
  height: 100vh;
  /* 画面いっぱいに表示 */
  border: none;
}

/* =========================================================
///// 合格実績
========================================================= */
.pass {
  margin-bottom: 7rem;
}

.pass img {
  width: 100%;
}

/* =========================================================
///// これまでの合格実績
========================================================= */
.up-to-now {
}

.up-to-now__school-list3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0rem;
  padding: 0;
  list-style: none;
}

.up-to-now__school-list4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0rem;
  padding: 0;
  list-style: none;
}

.up-to-now h3 {
  font-size: clamp(20px, 1rem + 0.7vw, 23px);
  font-weight: 500;
  color: #fff;
  text-align: left;
  padding: 0.5rem 2rem;
  margin: 0 0 2rem 0;
  border-radius: calc(23px + 0.25rem);
  margin: 3rem 0 1rem 0;
}

.up-to-now__pink {
  background-color: #e9577c;
}

.circle-pink::before {
  content: "●";
  color: #e9577c;
  margin-right: 0.25rem;
}

.up-to-now__blue {
  background-color: #4166b6;
}

.up-to-now h4 {
  font-size: clamp(16px, 1rem + 0.4vw, 20px);
  padding: 0rem 2rem;
  margin: 2rem 0 1rem 0;
  border-radius: calc(20px + 0.25rem);
}

.up-to-now__sub-blue {
  color: #4166b6;
  background-color: #d9e0f0;
}

.circle-blue::before {
  content: "●";
  color: #4166b6;
  margin-right: 0.25rem;
}

.up-to-now__green {
  background-color: #009944;
}

.up-to-now__sub-green {
  color: #009944;
  background-color: #d9f0e3;
}

.circle-green::before {
  content: "●";
  color: #009944;
  margin-right: 0.25rem;
}

/* =========================================================
///// 喜びの声
========================================================= */
.voice {
  background-color: #d9f0e3;
  padding: 2rem 0;
}

.voice__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.voice__contents {
  background-color: #fff;
  padding: 1.5rem;
}

.voice__classname {
  font-size: 18px;
  color: #fff;
  padding: 0 0.5rem 0 0.5rem;
  background-color: #009944;
  display: inline-block;
  margin-bottom: 0.2rem;
}

.voice p {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  margin: 1rem 0;
}

.voice__student-name {
  font-weight: 500;
  background-color: #fefcd3;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.voice__parent-title {
  font-size: 20px;
  font-weight: 500;
}

.voice__parent-name {
  font-weight: 500;
}

.voice img {
  max-width: 300px;
  width: 100%;
  margin: 0 auto 1rem auto;
}

/* =========================================================
///// レスポンシブル max-width: 960px
========================================================= */

@media screen and (max-width: 960px) {
  .wrapper {
    width: 95%;
    padding: 0;
    box-sizing: border-box;
  }

  /* バーガーメニュー */
  nav {
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
  }

  nav ul.menu.open {
    background-color: rgba(255, 255, 255, 0.9);
    /* 半透明の黒背景例 */
    height: 100vh;
  }

  nav ul {
    /*最初はナビゲーションボタンは非表示*/
    display: none;
    flex-direction: column;
    list-style: none;
    padding-top: 3rem;
  }

  nav ul li {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #009944;
  }

  nav ul li .nav-link {
    display: flex;
    padding-left: 3rem;
    gap: 15px;
  }

  nav ul li:first-child {
    border-left: none;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li:hover span {
    color: #009944;
    transition: color 0.3s ease;
  }

  nav ul li.extra-item {
    display: list-item;
  }

  nav li a {
    padding: 8px;
    font-size: 16px;
    color: #464646;
    display: block;
    text-align: center;
    text-decoration: none;
  }

  nav .hamburger {
    position: absolute;
    top: 32px;
    right: 1rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 10;
  }

  nav .hamburger span {
    /*3本の線を作る*/
    transition: all 0.3s;
    position: absolute;
    height: 4px;
    background-color: #009944;
    width: 100%;
    z-index: 10;
  }

  nav .hamburger span:nth-of-type(1) {
    /*上の線の位置*/
    top: 2px;
  }

  nav .hamburger span:nth-of-type(2) {
    /*真ん中の線の位置*/
    top: 12px;
  }

  nav .hamburger span:nth-of-type(3) {
    /*下の線の位置*/
    top: 22px;
  }

  nav .hamburger.open span:nth-of-type(1) {
    /*openのとき、上の線を右斜めにする*/
    top: 10px;
    transform: translateY(6px) rotate(-33deg);
  }

  nav .hamburger.open span:nth-of-type(2) {
    /*真ん中の線を消す*/
    opacity: 0;
  }

  nav .hamburger.open span:nth-of-type(3) {
    /*下の線を左斜めにする*/
    top: 22px;
    transform: translateY(-6px) rotate(33deg);
  }

  h2 {
    margin: 4rem 0 4rem 0;
  }
}

/* =========================================================
///// レスポンシブル max-width: 600px
========================================================= */
@media screen and (max-width: 600px) {
  .wrapper {
    width: 100%;
    padding: 0 1rem;
    margin: 0;
    max-width: 100%;
  }

  h2 {
    font-weight: 500;
  }

  /* 全体的な幅制御 */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 改行 */
  .sp-br {
    display: block;
    margin-bottom: -1rem;
    /* 数値は調整 */
  }

  /* 教室の詳細 */
  .introduction .classname_box {
    display: flex;
    flex-direction: column;
  }

  /* =========================================================
///// これまでの合格実績
========================================================= */
  .up-to-now {
    margin-bottom: 7rem;
  }
  .up-to-now__school-list3 {
    grid-template-columns: repeat(1, 1fr);
  }

  .up-to-now__school-list4 {
    grid-template-columns: repeat(1, 1fr);
  }

  .up-to-now h4 {
    margin: 0.5rem 0;
  }

  .up-to-now ul {
    padding-left: 2rem;
  }

  /* =========================================================
///// 喜びの声
========================================================= */
  .voice__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .voice p {
    font-size: clamp(21px, 1rem + 0.2vw, 23px);
  }
}
