/* ヘッダーのスタイル */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #3a3a3a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-family: 'Dancing Script', cursive;
  color: #fff4ff;
  z-index: 2;
}

header a:hover {
  color: #bde6f4;
}

.logo img {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  padding-right: 1rem;
}

nav li {
  margin: 0 1rem;
}

nav a {
  margin-right: 10px;
  text-decoration: none;
  color: #fff4ff;;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Galleryのスタイル */
.slider {
  margin-left: 0%;
  margin-right: 0%;
  padding: 0%;
}
.Gallery {
  margin-top: 0;
}

.Gallery h2 {
  padding-top: 100px;
  padding-bottom: 10px;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 0;
  font-family: 'Dancing Script', cursive;
}

/* Introducitonのスタイル */
.Introduction {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  background-color: #3a3a3a;
  align-items: center;
  text-align: center;
  padding: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: white;
}

.Introduction h2 {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0;
  font-family: 'Dancing Script', cursive;
  color: white;
}

.Introduction p {
  font-family: 'Noto Sans JP', sans-serif;
}

/* SNSのスタイル */
.SNS {
  padding: 1rem;
  margin-top: 0;
  width: 100%;
  background-image: url('../image/SNS_icon/SNS_background.JPG');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.sns-icons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sns-icons img {
  width: 75px;
  height: 75px;
  margin: 20px;
}

.SNS h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0;
  font-family: 'Dancing Script', cursive;
}


/* レッスン情報のスタイル */
.lesson-info {
  text-align: center;
  font-size: 3rem;
  font-family: 'Dancing Script', cursive;
}

.lesson-info ul {
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style-type: none;
  font-family: 'Shippori Mincho B1', serif;
}

.lesson-info li {
  flex-basis: calc(31% - 20px);
  flex-grow: 1;
  flex-shrink: 1;
  margin-bottom: 20px;
  margin-right: 2%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.lesson-image {
  width: 350px;
  height: 300px;
  margin: 0 auto; /* 左右のマージンを自動調整して中央に配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 画像にhover時のスケール効果 */
.lesson-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease; /* スケールのアニメーションを追加 */
}

.lesson-image:hover img {
  transform: scale(1.1);
}

.lesson-detail {
  padding: 1rem;
}

.lesson-detail h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.lesson-detail p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.button {
  background-color: #3a3a3a;
  color: white;
  padding: .8rem 1.2rem;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  margin-top: 1rem;
  transition: background-color .3s ease-in-out;
  font-family: 'Noto Sans JP', sans-serif;
}

.button:hover {
  background-color: #545454;
}



/* フッター */
footer {
  padding: 2rem;
  font-size: 15px;
  color: #fff4ff;
  background: #3a3a3a;
  border-top: 1px solid #e5e7eb;
  z-index: 2;
}

.footer a:hover {
  color: #bde6f4;
}

.md-flex {
  list-style: none;
  display: flex;
  color: #fff4ff;
}

a{
  color:inherit;
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
}

.md-flex li + li {
  margin-left: 16px;
}



/* 中サイズのデバイスのためのメディアクエリ */
@media (min-width: 768px) and (max-width: 1024px) {
  .lesson-info li {
    flex-basis: calc(48% - 20px); /* 2つのアイテムを1行に */
  }

}


/* スマートフォン向けのメディアクエリ */
@media (max-width: 767px) {
  nav {
    display: none; /* ナビゲーションメニューを非表示にする */
  }

  /* トグルボタンのスタイル */
  .menu-toggle {
    display: block; /* トグルボタンを表示 */
    cursor: pointer;
    width: 30px; /* 幅を調整 */
    height: 20px; /* 高さを調整 */
    position: relative;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 4px; /* 横線の高さを調整 */
    background-color: #939090; /* 横線の色を設定 */
    margin-bottom: 6px; /* 横線間の間隔を調整 */
  }

  /* トグルボタンをクリックしたときのアニメーション */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  header {
      flex-direction: column;
      padding-left: 0%;
  }

  .logo {
      margin-bottom: 0.5rem;
  }

  nav ul {
      flex-direction: column;
      align-items: center;
      padding: 0;
  }

  nav li {
      margin: 0.5rem 0;
  }

  .Gallery {
    margin-top: 60px;  /* 必要に応じて調整 */
  }

  .Gallery h2 {
      font-size: 2rem;
  }

  .Introduction {
    flex-direction: column;
    padding-left: 0%;
  }

  .Introduction h2,
  .SNS h2 {
      font-size: 2rem;
  }

  .sns-icons img {
      width: 50px;
      height: 50px;
  }

   /* 他のスタイルの定義 */

   .lesson-info {
    font-size: 2rem; /* フォントサイズを調整 */
  }
  
  .lesson-info h2 {
    margin-top: 10px;
    margin-bottom: 0%;
  }

  .lesson-info ul {
    margin-top: 0%;
    padding: 10px;
    flex-direction: column;
    align-items: stretch; /* アイテムを横幅いっぱいに広げる */
  }

  .lesson-info li {
    margin: 1rem 0;
    margin-top: 0%;
    flex-basis: auto; /* 自動幅に変更 */
  }

  .lesson-image {
    width: 80%; /* 画像の幅を100%に調整 */
    height: auto; /* 高さを自動調整 */
    margin: 10%; /* 余白を調整 */
  }

  .lesson-detail {
    padding: 1rem;
    text-align: center; /* テキストを中央揃えに調整 */
  }

  .footer {
    flex-direction: column;
  }

  .md-flex {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .copyright{
    text-align: center;
  }

}


/* タッチデバイスのためのメディアクエリ */
@media (hover: none) {
  .lesson-image:hover img,
  header a:hover,
  .button:hover,
  .footer a:hover,
  .menu-toggle {
    transform: none;
    color: inherit;
    background-color: inherit;
  }
  .button:active {
    background-color: #545454;
  }
}


