:root {
  --green: #009944;
  --green50: #80cca1;
  --greenlight: #39b54a;
  --yellow: #d9e021;
}

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: var(--green);
  font-weight: 500;
}

.red {
  color: #ff0000;
}

.blue {
  color: #0071bc;
}

#callBtn .telsize {
  font-size: 23px;
}

h2 {
  font-size: clamp(20px, 1rem + 2vw, 38px);
  font-weight: 300;
  letter-spacing: 0.5rem;
  color: var(--green);
  border-bottom: solid 3px #d9e021;
  position: relative;
}

h2::after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px var(--green);
  bottom: -3px;
  width: 30%;
}

h3 {
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-align: center;
  margin: 0;
}

ul.bullet {
  text-indent: -1rem;
  padding-left: 1rem;
}

ul.bullet li::before {
  content: "●";
  color: var(--green50);
}

li.bullet {
  position: relative;
  padding-left: 1rem;
}

li.bullet::before {
  content: "●";
  color: var(--green50);
  display: inline-block;
  position: absolute;
  left: 0;
}

.target {
  display: block;
  padding-left: 4.2em;
  text-indent: -4.2em;
}

.green_btn {
  background-color: var(--green);
  color: #fff;
  width: 200px;
  height: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  transition: 0.3s;
}

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

.white_btn {
  background-color: rgba(255, 255, 255, 1); /* 通常時（不透明） */
  color: #009688;
  width: 200px;
  height: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  transition: 0.3s;
}

.white_btn:hover {
  background-color: rgba(255, 255, 255, 0.5); /* 通常時（不透明） */
  transition: 0.3s;
  cursor: pointer;
}

.sp-br {
  display: none;
}

.block {
  display: block;
}

.margintop2 {
  margin-top: 2rem;
}

/* トップに戻る */
.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;
}

/* =========================================================
///// ヘッダー
========================================================= */
header {
  display: flex;
  align-items: center;
  height: 135px;
  margin-bottom: 1rem;
}

header h1 :hover {
  cursor: pointer;
  opacity: 0.5;
}

header img {
  width: clamp(300px, 50vw, 485px);
}

/* =========================================================
///// ナビゲーション
========================================================= */
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 var(--green);
}

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 var(--green);
}

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

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

nav ul li:hover {
  color: var(--green);
  cursor: pointer;
  transition: color 0.3s ease;
}

/* =========================================================
///// 教室の詳細
========================================================= */
.introduction {
  padding: 2rem 0;
  background-color: #d9f0e3;
}

.introduction .classname_box {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-bottom: 2rem;
}

.classname {
  color: #fff;
  font-size: clamp(18px, 2vw, 23px);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--green);
  padding: 0.1rem 1rem;
  margin-right: 1rem;
  border-radius: 25px;
}

.information_box {
  display: flex;
}

.information {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  width: calc(100% - 350px);
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 90px 1fr;
}

.information a {
  transition: 0.5s;
  margin-right: 1rem;
}

.information a:hover {
  opacity: 50%;
}

.information .circle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--green);
  line-height: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background-color: #fff;
}

.information .circle strong {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.information .circle img {
  max-width: 50%;
}

.information .inner {
}

.information .instagram {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.introduction .map {
  width: 350px;
}

.introduction .map img {
  max-width: 100%;
  margin: 0 auto;
}

/* =========================================================
///// 東進衛星予備校
========================================================= */
.toushin {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.toushin__container {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 10px;
  background-color: #009688;
  background-image: linear-gradient(to left, rgba(255, 255, 255, 0) -30%, #009688), url("../images/toushin_back.png");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 1rem 1rem;
}

.toushin__box {
  max-width: 600px;
}

.toushin__box img {
  max-width: 50%;
  width: 100%;
  height: auto;
  display: block;
}

.toushin__reception {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.toushin__reception p {
  color: #ffffff;
  font-size: clamp(30px, 2vw, 40px);
}

/* =========================================================
///// 東進個別
========================================================= */
.toushin_kobetsu {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.toushinkobetsu__container {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 10px;
  background-color: #009688;
  background-image: linear-gradient(to left, rgba(255, 255, 255, 0) -30%, #009688), url("../images/toushinkobetsu_back.png");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 1rem 1rem;
}

/* =========================================================
///// コース紹介
========================================================= */
.course {
  min-width: 0;
}

.course__title {
  width: 350px;
  text-align: center;
  margin: 0 auto 3rem auto;
}

.course__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 4rem;
}

.course ul li {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

.course h3 {
  font-size: clamp(18px, 1rem + 0.2vw, 22px);
  font-weight: 500;
  color: var(--green);
  text-align: left;
  padding: 10px 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to right, #f2f4b1 0%, /* 左端 */ #f2f4b1 30%, /* 75%までは濃い緑 */ rgba(0, 153, 68, 0) 100% /* 100%で透明 */);
  position: relative;
}

.course h3::before {
  content: "";
  width: 7px;
  height: 100%;
  background-color: var(--green);
  margin-right: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
}

.course__sub {
  font-weight: 500;
  padding: 0.2rem 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  background-color: #d9f0e3;
  border-radius: 20px;
}

.course img {
  max-width: 100%;
}

/* =========================================================
///// インフォメーション
========================================================= */
.notice__title {
  width: 700px;
  text-align: center;
  margin: 5rem auto 2rem auto;
}

.line {
  margin-top: -1rem;
}

.notice__title h2 {
  letter-spacing: 0.25rem;
}

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

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

@media screen and (max-width: 960px) {
  .wrapper {
    width: 100%;
    padding: 0 1rem;
    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 var(--green);
  }

  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: var(--green);
    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: var(--green);
    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);
  }
}

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

  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;
  }

  .information .circle img {
    width: 50%;
  }

  /* ----------東進衛星予備校---------- */

  .toushin__container {
    background-image: linear-gradient(rgba(0, 150, 136, 0.5), rgba(0, 150, 136, 0.5)), url("../images/toushin_back_sp.png");
    background-position: right top;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 1rem 1rem;
  }

  .toushin__container {
    flex-direction: column;
    background-size: cover;
  }

  .toushin__container img {
    width: 100%;
    margin: 0 auto;
  }

  .toushin__reception {
    gap: 1rem;
  }

  .toushin__reception p {
    margin: 0;
  }

  /* 東進個別 */
  .toushinkobetsu__container {
    background-image: linear-gradient(rgba(0, 150, 136, 0.5), rgba(0, 150, 136, 0.5)), url("../images/toushinkobetsu_back_sp.png");
    background-position: right top;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 1rem 1rem;
  }

  .toushinkobetsu__container {
    flex-direction: column;
    background-size: cover;
  }

  .toushinkobetsu__container img {
    width: 65%;
    margin: 0 auto;
  }

  .toushinkobetsu__reception {
    gap: 1rem;
  }

  .toushinkobetsu__reception p {
    margin: 0;
  }

  /* ----------コース紹介---------- */
  .course-introduction {
  }

  .course {
    margin-bottom: 0rem;
  }

  .course__box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .classname {
    margin-bottom: 1rem;
  }

  .information_box {
    flex-direction: column;
  }

  .information {
    width: 100%;
    margin-bottom: 1rem;
  }

  .introduction .information_box .map {
    width: 100%;
  }

  .introduction .information_box .map img {
    width: 70%;
  }

  /* =========================================================
///// インフォメーション
========================================================= */

  .notice__title h2 {
    margin: 0 5%;
  }

  .line {
    margin-top: -0.5rem;
  }
}
