/* Google FontsからNoto Sans JPをインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');


:root {
  --primary-color: #62C62E;
  --text-color: #333;
  --bg-color: #fff;
  --accent-color: #f5f5f5;
  --secondary-color: #45a049;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --menu-bg-color: rgba(255, 255, 255, 0.9);
  --menu-text-color: #333;
  --transition-duration: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



body {
  font-family: 'Noto Sans JP', sans-serif;
  font-display: swap;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #000;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}


.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}


h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

p, li {
  font-weight: 400;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: 0.5rem;
  color: var(--primary-color);
  content: "/";
}

.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

/* 共通のボタンスタイル */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color var(--transition-duration) ease, transform var(--transition-duration) ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* ヘッダーとナビゲーション */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--bg-color);
}

.logo img {
  max-height: 40px;
  width: auto;
}

.hamburger-menu {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(98, 198, 46, 0.9);
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hamburger-menu span,
.hamburger-menu span::before,
.hamburger-menu span::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: white;
  transition: all 0.4s ease;
  position: absolute;
}

.hamburger-menu span::before {
  top: -8px;
}

.hamburger-menu span::after {
  bottom: -8px;
}

.hamburger-menu.active {
  background-color: rgba(255, 255, 255, 0.9);
}

.hamburger-menu.active span {
  background-color: transparent;
}

.hamburger-menu.active span::before {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: rgba(98, 198, 46, 0.9);
}

.hamburger-menu.active span::after {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: rgba(98, 198, 46, 0.9);
}

.full-screen-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(98, 198, 46, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.4s ease;
  overflow-y: auto;
  z-index: 9998;
}

.full-screen-menu.active {
  right: 0;
}

.full-screen-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.full-screen-menu ul li a:hover {
  color: #45a049;
}

.full-screen-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #FEFEFE;
  opacity: 0;
  transition: opacity 300ms, transform 300ms;
  transform: scale(0);
}

.full-screen-menu ul li a:hover::after,
.full-screen-menu ul li a:focus::after {
  opacity: 1;
  transform: scale(1);
}

/* メニュー項目のアニメーションを調整 */
.full-screen-menu ul li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.full-screen-menu.active ul li {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.menu-columns {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  padding: 20px;
}

.menu-column {
  flex: 1;
  max-width: 300px;
  padding: 0 10px;
}

.nav-links {
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-links a {
  display: inline-block;
  font-size: 24px;
  color: #FEFEFE;
  text-decoration: none;
  padding: 10px 0;
  transition: color .3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

body.menu-open {
  overflow: hidden;
}

/* メインコンテンツ */
main {
  flex: 1 0 auto;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 4rem 1rem;
  position: relative;
  z-index: auto;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

/* セクションタイトル */
.section-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.8rem;
  color: var(--text-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.hero-wrapper {
  position: relative;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* ヒーローセクション */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--bg-color);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2rem 1rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.achievement-bar {
  display: flex;
  justify-content: space-around;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.achievement-item {
  text-align: center;
  flex: 1;
  padding: 0 0.5rem;
}

.achievement-item svg {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.achievement-item .number {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary-color);
}

.achievement-item .label {
  font-size: 1.2rem;
  color: var(--text-color);
}

/* ごあいさつセクション */
.greeting-section {
  padding: 4rem 0;
}

.greeting-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.greeting-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.greeting-image {
  width: 80px;
  height: 80px;
  margin-right: 1rem;
}

.greeting-info h3 {
  margin: 0;
  font-size: 1.2rem;
}

.greeting-info p {
  margin: 0;
  color: #666;
}

.greeting-summary {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.greeting-details {
  display: none;
  margin-top: 1rem;
}

.greeting-toggle {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-duration) ease;
}

.greeting-toggle:hover {
  background-color: var(--secondary-color);
}

/* 特徴セクション */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: #ffffff;
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-duration) ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item svg {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 成功事例セクション */
.stories-carousel {
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
  margin: 2rem auto;
  width: 90%; /* 画面幅の90%を使用 */
  max-width: 1200px; /* 最大幅を少し広げる */
  position: relative;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.story-item {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 5%; /* パーセンテージベースのパディング */
  box-sizing: border-box;
}

.custom-prev,
.custom-next {
  /* 既存のスタイル */
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0.7; /* 少し透明に */
}

.custom-prev:hover,
.custom-next:hover {
  background-color: var(--secondary-color);
  opacity: 1; /* ホバー時に完全に不透明に */
}

.custom-prev {
  left: 10px;
}

.custom-next {
  right: 10px;
}

.story-image {
  flex-shrink: 0;
  margin-right: 2rem;
}

.story-image img {
  max-width: 100%;
  height: auto;
}

.story-text {
  flex: 1;
  padding: 0 1rem;
}

.story-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.story-text p {
  margin-bottom: 1rem;
}

.story-text blockquote {
  font-style: italic;
  color: #666;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  margin-left: 0;
}


/* 授業時間・料金セクションのスタイル */
.schedule-fees-section {
  padding: 4rem 0;
}

.schedule-fees-content {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 4px 6px var(--shadow-color);
  padding: 5rem;
}

.fees-title, .schedule-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.fees-table, .schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.fees-table th, .schedule-table th,
.fees-table td, .schedule-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}

.fees-table th, .schedule-table th {
  background-color: var(--primary-color);
  color: white;
}

.fees-table td:first-child, .schedule-table td:first-child {
  font-weight: bold;
  background-color: #f8f8f8;
}

/* 講師紹介セクション */
.teachers-section {
  padding: 4rem 0;
}

.teachers-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.teacher-item {
  background-color: var(--bg-color);
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.teacher-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px var(--shadow-color);
}

.teacher-image {
  width: 100%;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
}

.teacher-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-duration) ease;
}

.teacher-item:hover .teacher-image img {
  transform: scale(1.05);
}

.teacher-info {
  padding: 1.5rem;
}

.teacher-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.teacher-role {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.teacher-description {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */
/* 写真ギャラリーセクション */
.photo-gallery-section {
  padding: 4rem 0;
}

.photo-gallery-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 親要素に、折り返しを許可する設定を追加 */
.gallery-content {
  background-color: #ffffff;
  box-shadow: 0 4px 6px var(--shadow-color);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap; /* ← これが重要！折り返しを許可します */
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

/* 左側の説明文エリアの指定 */
.gallery-description {
  flex: 1 1 280px; /* スペースがあれば広がり、最小幅280pxを確保 */
}

/* 右側の画像エリアの指定 */
.gallery-container {
  flex: 2 1 500px; /* 説明文エリアより大きく広がり、最小幅500pxを確保 */
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform var(--transition-duration) ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-duration) ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item p {
  padding: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
}

#load-more {
  display: block;
  margin-top: 1.5rem;
}
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */


/* --- ライトボックスのカスタマイズ --- */
/* ツールバー全体を画面下に配置 */
.lg-outer .lg-toolbar {
  top: auto; /* 上の配置を解除 */
  bottom: 0; /* 下に配置 */
  left: 0;
  right: 0;
  width: 100%; /* 横幅いっぱいに */
  background-color: rgba(0, 0, 0, 0.6); /* 背景色を少し濃くして見やすくする */
  justify-content: center; /* アイコンを中央揃えに */
}
/* 各アイコンの余白を調整 */
.lg-outer .lg-toolbar .lg-icon {
  margin: 10px 15px;
}
/* ライトボックスのキャプションをツールバーの上に配置 */
.lg-outer .lg-sub-html {
  position: absolute; 
  bottom: 50px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 12px 20px;
  text-align: center;
  box-sizing: border-box; 
}


/* FAQセクション */
.faq-section {
  padding: 4rem 0;
}

.faq-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px var(--shadow-color);
  overflow: hidden;
  position: relative;
}

.faq-item h3 {
  padding: 1rem 2rem 1rem 1rem;
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  color: var(--primary-color);
  background-color: var(--bg-color);
  transition: background-color var(--transition-duration) ease;
  margin: 0;
}

.faq-item h3:hover {
  background-color: var(--accent-color);
}

.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform var(--transition-duration) ease;
}

.faq-item h3.open::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 1rem;
  display: none;
}

.faq-answer p {
  margin: 0;
  padding: 1rem 0;
  line-height: 1.6;
  color: var(--text-color);
}

/* アクセス・コンタクト */
.access-contact-content {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 4px 6px var(--shadow-color);
  padding: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item svg {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.info-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--text-color);
}

.info-item p {
  margin: 0;
  color: #666;
}

.contact-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.contact-note p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ライトボックス表示中にハンバーガーメニューを非表示にする（強制）*/
body.lg-on #hamburger-menu {
  display: none !important;
}

.contact-note .highlight-text {
  font-weight: 700 ;  /* 文字を太くします */
  color: var(--primary-color) ; /* サイトのメインカラー（緑色）にします */
  font-size: 1rem ;  /* 周りの文字より少しだけ大きくします */
}

.map-container {
  flex: 0 0 48%;
  max-width: 48%;
  height: 350px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.static-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

.map-button:hover {
  background-color: var(--secondary-color);
  transform: translateX(-50%) translateY(-3px);
}

/* フッター */
footer {
  background-color: var(--text-color);
  color: var(--bg-color);
  width: 100%;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.social-links {
  margin: 1rem 0;
}

.social-links a {
  color: var(--bg-color);
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color var(--transition-duration) ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* 背景画像 */
.background-container {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.background-image.visible {
  opacity: 1;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
  .achievement-bar {
    position: relative;
    max-width: 800px;
    margin-top: 2rem;
  }
}

@media (max-width: 1024px) {
  .section-title {
    font-size: 2.4rem;
  }

  .access-contact-content {
    flex-direction: column; 
    align-items: center;
  }

  .stories-carousel {
    width: 95%; /* タブレットサイズでより広く */
  }

  .info-card,
  .map-container,
  .gallery-description,
  .gallery-container {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .info-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .greeting-content,
  .story-item,
  .schedule-fees-content {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
  }

  .menu-columns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .menu-column {
    flex: 0 0 45%;
    max-width: none;
  }

  .full-screen-menu ul li {
    margin: 10px 0;
  }

  .full-screen-menu ul li a {
    font-size: 18px;
  }

  .section-title {
    font-size: 2rem;
    padding-bottom: 10px;
  }

  .section-title::after {
    width: 40px;
  }

  .section .content-wrapper {
    padding: 0 15px;
  }

  .navbar {
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 5rem;
    flex-direction: column;
    background-color: var(--bg-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 2.5rem 0;
  }

  .nav-links a {
    color: var(--text-color);
  }

  .hero-section {
    padding-top: 4rem;
    justify-content: flex-start;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .achievement-bar {
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9);
  }

  .achievement-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    text-align: left;
  }

  .achievement-item svg {
    margin-right: 1rem;
    margin-bottom: 0;
  }

  .achievement-item .number {
    font-size: 1.5rem;
    margin: 0; 
    margin-right: 0.5rem;
  }
  .achievement-item .label {
    font-size: 1rem;
    margin: 0; 
  }

  .features-grid,
  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .stories-carousel {
    width: 100%; /* モバイルサイズで全幅 */
    margin: 2rem 0; /* 左右のマージンを削除 */
  }

  .story-item {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem; /* モバイル用にパディングを調整 */
  }

  .custom-prev,
  .custom-next {
    top: auto;
    bottom: 10px;
    transform: none;
  }

  .custom-prev {
    left: 10px;
  }

  .custom-next {
    right: 10px;
  }

  .story-item {
    flex-direction: column;
    text-align: center;
  }

  .story-image {
    margin-bottom: 1rem;
  }

  .story-image img {
    width: 150px;
    height: 150px;
  }

  .story-text {
    padding: 0;
  }

  .schedule-fees-content {
    flex-direction: column;
  }

  .info-card {
    flex: 0 0 100%;
  }

  .schedule-table,
  .fees-table {
    font-size: 0.9rem;
  }

  .schedule-table th,
  .fees-table th,
  .schedule-table td,
  .fees-table td {
    padding: 0.5rem;
  }

  .gallery-content {
    padding: 1.5rem;
    flex-direction: column-reverse;
  }

  .gallery-description,
  .gallery-container {
    flex: 0 0 100%;
  }

  .teacher-image {
    width: 80%;
    margin: 0 auto;
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  #load-more {
    font-size: 1.1rem; /* 文字を少し大きく */
    margin: 2rem auto 0; /* 上下の余白を調整し、中央に配置 */
    width: 80%; /* 横幅を調整 */
    padding: 1rem; /* 内側の余白を調整 */
  }
  
  .info-card,
  .map-container {
    padding: 1.5rem;
  }

  .map-container {
    height: 300px;
  }

  .info-item {
    margin-bottom: 1rem;
  }

  .info-item svg {
    font-size: 1.2rem;
  }

  .info-item h3 {
    font-size: 1rem;
  }

  .contact-note p {
    font-size: 0.8rem;
  }

  .map-button {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

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

  .teacher-item {
    display: flex;
    align-items: center;
    padding: 1rem;
  }

  .teacher-image {
    width: 40%;
    padding-top: 40%;
    margin-right: 1rem;
  }

  .teacher-info {
    flex: 1;
  }

  .teacher-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .teacher-description {
    font-size: 0.9rem;
  }

  .faq-item h3 {
    font-size: 1rem;
    padding: 0.75rem 2rem 0.75rem 0.75rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }  
}

@media (max-width: 480px) {
  .menu-columns {
    flex-direction: column;
    align-items: center;
  }

  .menu-column {
    width: 100%;
    max-width: 300px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section .content-wrapper {
    padding: 0 10px;
  }

  .greeting-content,
  .story-item,
  .schedule-fees-content {
    width: 95%;
    padding: 1rem;
  }

  .teacher-image {
    width: 30%;
    padding-top: 30%;
  }

  .teacher-info h3 {
    font-size: 1.1rem;
  }

  .teacher-description {
    font-size: 0.8rem;
  }
}

/* ハンバーガーメニューのアニメーション */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
}

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

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* 背景画像の設定 */
.bg1 { background-image: url('images/bg1.webp'); }
.bg2 { background-image: url('images/bg2.webp'); }
.bg3 { background-image: url('images/bg3.webp'); }

@media (max-width: 576px) {
  .bg1 { background-image: url('images/small-bg1.webp'); }
  .bg2 { background-image: url('images/small-bg2.webp'); }
  .bg3 { background-image: url('images/small-bg3.webp'); }
}

@media (min-width: 577px) and (max-width: 992px) {
  .bg1 { background-image: url('images/medium-bg1.webp'); }
  .bg2 { background-image: url('images/medium-bg2.webp'); }
  .bg3 { background-image: url('images/medium-bg3.webp'); }
}