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

/* =========================================================
///// 共通スタイル
========================================================= */

.size16 {
  font-size: 16px;
}

a:hover {
  cursor: pointer;
}

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

.red {
  color: #ff0000;
}

.blue {
  color: #0071bc;
}

.orange {
  color: #ff931e;
}

.lightgreen {
  color: #8cc63f;
}

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

h3 {
  font-size: clamp(16px, 2vw + 1rem, 23px);
  color: #ff0000;
  line-height: 1;
  margin: 0;
}

h4 {
  font-size: clamp(16px, 2vw + 1rem, 23px);
  font-weight: 500;
  margin: 0;
}

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

.break {
  display: inline-block;
}

.show-on-sp {
  display: none;
}

/* 罫線 hr */
.dot-hr {
  border: none;
  border-top: 2px dotted #646464;
  height: 0;
  margin: 0.5rem 0;
}

.green-hr {
  border-color: #009944;
}

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

/* =========================================================
///// 各教室のご案内
========================================================= */

.list {
}

.list__click {
  width: fit-content;
  color: #fff;
  text-align: center;
  background-color: #009944;
  border-radius: 1.5rem;
  padding: 0.25rem 2rem;
  margin: 0 auto 3rem auto;
}

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

.list__classroom h3:hover {
  opacity: 0.5;
  transition: 0.3s;
}

.list__card {
  background-color: #ffe8e9;
  padding: 1rem;
  position: relative;
}

.blue-bg {
  background-color: #ecf6fe;
}

.orange-bg {
  background-color: #fff4e8;
}

.lightgreen-bg {
  background-color: #eef6e2;
}

.list__card .ph img {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.list__classname {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ff0000;
  padding: 0 0 0.5rem 0;
  margin-bottom: 1rem;
}

.blue-solid {
  border-bottom: 1px solid #0071bc;
}

.orange-solid {
  border-bottom: 1px solid #ff931e;
}

.lightgreen-solid {
  border-bottom: 1px solid #8cc63f;
}

.list__icon {
  display: flex;
  justify-content: flex-end;
}

.list__icon img {
  width: 50px;
  height: auto;
}

.indent {
  display: inline-block;
  padding-left: 4rem;
}

/* =========================================================
///// 行事・イベント
========================================================= */
.event {
}

.event__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.event ul {
  padding-left: 1.5rem;
}

.event ul li {
  list-style: disc;
}

.event ul li::marker {
  color: #009944;
}

/* =========================================================
///// 年間模試スケジュール
========================================================= */
.schedule {
  background-color: #e5f5ec;
  padding: 3rem 0;
}

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

.schedule__card {
  background-color: #fff;
  border: 1px solid #009944;
  border-radius: 10px;
  padding: 2rem 1rem;
  position: relative;
}

.schedule__title {
  width: 200px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  background-color: #009944;
  border-radius: 10px;
  position: absolute;
  top: -15px;
  left: 50%; /* 親の左端から50% */
  transform: translateX(-50%);
}

.schedule ul {
  padding-left: 1.5rem;
}

.schedule ul li {
  list-style: disc;
}

.schedule ul li::marker {
  color: #009944;
}

/*--------------------------------
// レスポンシブル 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);
  }
}

/* =========================================================
///// レスポンシブ ax-width: 750px
========================================================= */

@media screen and (max-width: 750px) {
  .wrapper {
    width: 100%;
    padding: 0 1rem;
    margin: 0;
    max-width: 100%;
  }

  .list__click {
    border-radius: 15px;
  }

  .list__classroom {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* =========================================================
///// レスポンシブ ax-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;
    /* 数値は調整 */
  }

  /* =========================================================
///// 行事・イベント
========================================================= */
  .event__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .show-on-sp {
    display: block;
  }

  /* =========================================================
///// 年間模試スケジュール
========================================================= */
  .schedule {
    background-color: #e5f5ec;
    padding: 3rem 0;
  }

  .schedule__content {
    grid-template-columns: 1fr;
  }

  .schedule__card {
    margin-bottom: 2rem;
  }
}
