/* ヘッダーのスタイル */
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;
}

/* icing_cookiesのスタイル */
.icing_cookies {
  margin-top: 0;
}

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

/* icing_cookiesコンテナのスタイル */
.icing_cookies-item {
  display: flex;
  flex-wrap: wrap;
}

/* 個々の画像アイテムのスタイル */
.icing_cookies-item {
  flex: 1 1 calc(25% - 10px);  /* 10pxは余白のため */
  margin: 5px;
  box-sizing: border-box;
}

/* 画像のスタイル */
.icing_cookies img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto; /* 左右のマージンを自動調整して中央に配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer
}

/* drawingのスタイル */
.drawing {
  margin-top: 0;
}

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

/* drawingコンテナのスタイル */
.drawing-item {
  display: flex;
  flex-wrap: wrap;
}

/* 個々の画像アイテムのスタイル */
.drawing-item {
  flex: 1 1 calc(25% - 10px);  /* 10pxは余白のため */
  margin: 5px;
  box-sizing: border-box;
}

/* 画像のスタイル */
.drawing img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto; /* 左右のマージンを自動調整して中央に配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer
}

/* othersのスタイル */
.others {
  margin-top: 0;
}

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

/* drawingコンテナのスタイル */
.others-item {
  display: flex;
  flex-wrap: wrap;
}

/* 個々の画像アイテムのスタイル */
.others-item {
  flex: 1 1 calc(25% - 10px);  /* 10pxは余白のため */
  margin: 5px;
  box-sizing: border-box;
}

/* 画像のスタイル */
.others img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto; /* 左右のマージンを自動調整して中央に配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer
}

/* モーダル用のCSS */
.modal {
  position: relative; /* これが重要です */
  display: none;
  position: fixed;
  z-index: 3;
  padding-top: 150px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.close {
  z-index: 3;  /* 他の要素よりも高い値を設定 */
  position: absolute;
  top: 100px;
  right: 80px;
  color: #fdfafa;
  font-size: 50px;
  cursor: pointer;
}


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

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


  .footer {
    flex-direction: column;
  }

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

  .copyright{
    text-align: center;
  }

}


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


