body {
  font-family: 'Noto Sans JP''Zen Maru Gothic', "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "メイリオ", "MS Ｐゴシック", "MS PGothic", sans-serif;
  -webkit-text-size-adjust: 100%; /* iOS Safariのフォントサイズ自動調整を無効化 */
  -ms-text-size-adjust: 100%;
  margin: 0;
  background-color: #f4f7f9;
  color: #333;
  line-height: 2.2;
  -webkit-font-smoothing: antialiased; /* iOS Safariでのフォントレンダリング改善 */
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch; /* iOS Safariでのスムーズスクロール */
}

header {
  height: 70px;
  background-color: #E3F2FD;
  padding-bottom: 25px;
  position: relative;
  overflow: visible;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  height: 70px;
  overflow: visible;
}

.logo-left {
  position: static;
  display: flex;
  align-items: center;
  max-width: 140px;
  height: 50px;
  align-self: flex-start;
  margin-top: 0;
  margin-bottom: -4px;
}

/* ハンバーガーボタン：デフォルトは非表示 */
.hamburger {
  display: none;
  width: 50px;    /* 幅を大きく */
  height: 50px;   /* 高さも大きく */
  font-size: 32px; /* アイコンのフォントサイズ（文字の場合） */
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  min-width: 44px; /* iOS推奨タップターゲットサイズ */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent; /* iOSタップハイライトを無効化 */
}

.nav-list {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* ハンバーガー用：デフォルトで非表示 */
.header-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* activeがついたときに表示 */
.header-nav.active {
  display: flex !important;
  background: #E3F2FD !important;
  color: #333 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  height: auto !important;
}

/* ナビゲーションのリンクの見た目調整（必要に応じて） */
.nav-list li {
  margin: 10px 0;
  text-align: right;
}

.nav-list li a {
  display: inline-block;
  padding: 15px 30px;
  min-height: 48px;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  font-size: 1rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  min-width: 44px; /* iOS推奨タップターゲットサイズ */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* ホバー時 */
.nav-list li a:hover {
  background-color: #64B5F6;
  color: white;
  border-radius: 6px;
}
 

/* ヒーロースライダー全体 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 各スライド */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

/* 動画をカバー */
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* 動画オーバーレイ */
.slide .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}

/* 現在のスライド */
.slide.active {
  opacity: 1;
  z-index: 0;
}

/* 黒オーバーレイ（フェード用） */
.black-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 2;
}

.black-overlay.active {
  opacity: 1;
}

/* キャプションを常に前面に表示 */
.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.hero-caption h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.hero-caption p {
  font-size: 1.5rem;
  white-space: nowrap;
}



/* クラブの想い */
.club-overview {
  padding:70px 0;
  background-image: url(images/sports/index/overview-bg.png);
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 80px;
}

.overview-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
  gap: 10%;
  padding: 2% 5%;
}

.overview-block.reverse {
  flex-direction: row-reverse;
}

.overview-img {
  flex: 0 1 40%;
  max-width: 40%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.overview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}


.overview-text {
  flex: 0 1 40%;
  max-width: 40%;
  font-size: 1.2rem;
  line-height: 2;
  color: #444;
}

.text {
  text-align: center;
  font-size: 1.4rem;
  line-height: 3;
  color: #444;
}


/* 活動リンク */
.activities-link {
  background: url("images/sports/index/activities_bg.jpg") center/cover no-repeat;
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.activities-link::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.activities-link .overlay {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 800px;
}

.btn-activity {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 5px 70px;
  margin-top: 60px;
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-activity::before {
  content: "⇨";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-activity:hover {
  background-color: #6a6462;
  color: #fff;
}

.btn-activity:hover::before {
  transform: translateX(-6px);
}

 /* 新着情報セクション */
 .news-list {
  list-style: none;
}

.news-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

.news-list .date {
  font-weight: bold;
  color: #666;
  margin-right: 10px;
}

.phone-link {
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-link:hover {
  color: #007bff;
}


.insta-link {
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.insta-link:hover {
  transform: scale(1.2);
  color: #cc43d6;
}

.line-link {
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.line-link:hover {
  transform: scale(1.2);
  color: #009e00;
}

.container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 150px;
}

.container p {
  font-family: "メイリオ";
  font-size: 20px;
  line-height: 250%;
}

.footer-link {
  color: #f8f8f8;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* フッター */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  background-color: #6a6462;
  padding: 30px 20px;
  font-size: 0.9rem;
  color: #f8f8f8;
}

.footer-left,
.footer-right {
  flex: 1 1 300px;
  margin-left: 40px;
}

.footer-left p {
  margin: 4px 0;
}

.footer-right h3 {
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right li {
  margin-bottom: 6px;
}

.footer-right a {
  color: #f0f0f0;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

footer {
  background: #E3F2FD;
  font-size: 12px;
  color: #333;
  text-align: center;
  padding: 15px;
}

/* categories.htmlについて */
.category-links {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.category-card {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: visible;
  margin: 10px;
}

.card-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.category-card:hover .card-inner {
  transform: scale(1.05);
}

.card-inner a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-inner h3 {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  margin: 0;
  padding: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.4rem;
  text-align: center;
  z-index: 1;
}

.with-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 10px;
  border-radius: 6px;
  z-index: 1000;
}

.with-dropdown:hover .dropdown-content {
  display: block;
}

/* ドロップダウン内装飾 */
.dropdown-content ul {
  list-style: none;
  margin: 0; padding: 0;
}

.dropdown-content li {
  margin-bottom: 8px;
}

.dropdown-content li:last-child {
  margin-bottom: 0;
}

.dropdown-content a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
  color: #8d805a;
}

.course-description {
  text-align: center;
  padding-bottom: 2rem;
  background-color: #ffffff;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  max-width: 1300px;
}

.course-description h2 {
  font-size: 2.2rem;
  border-bottom: 2px solid #1976D2;
  color: #0D47A1;
  padding-top: 40px;
  margin-bottom: 30px;
  display: inline-block;
}

.course-description h4 {
  font-size: 1.8rem;
  margin-top: 0;
  color: #555;
}

.course-description p {
  font-size: 1.2rem;
  color: #666;
}

.lesson-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.lesson-text {
  flex: 0 1 60%;
  padding: 0 20px;
  text-align: left;
  min-width: 300px;
}

.lesson-img {
  flex: 0 1 30%;
  display: flex;
  justify-content: center;
}

.lesson-img img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.schedule {
  background-color: #E3F2FD;
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 8px;
  border-left: 6px solid #0D47A1;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.schedule-group {
  flex: 1 1 45%;
  min-width: 200px;
}

.schedule-group h5 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #0D47A1;
}

.kid-indent {
  text-indent: 3.5rem;
}

.kids-indent {
  text-indent: 6em;
}


/* staff-introduction.htmlについて */
/* スタッフセクション */
.staff-section {
  padding: 4rem 2rem;
  text-align: center;
}

.staff-section h2 {
  font-size: 2.5rem;
  color: #0D47A1;  /* メインのカラーを使用 */
  border-bottom: 3px solid #1976D2;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 3rem;
  font-weight: bold;
}

/* スタッフリスト */
.staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 2rem;
}

/* スタッフカード */
.staff-card {
  width: 220px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden; /* 画像外の部分が表示されないように */
  transition: transform 0.3s ease;
}

/* スタッフ画像 */
.staff-card img {
  width: 100%;
  height: 300px;  /* 固定高さを設定 */
  object-fit: cover;  /* 画像がカード内に収まるように調整 */
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* ホバー時の拡大効果 */
.staff-card:hover img {
  transform: scale(1.05);  /* ホバー時に少し拡大 */
}

/* オーバーレイ */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  /* 画像全体にぴったり合わせる */
  background-color: rgba(0, 0, 0, 0.7);  /* 少し暗くしてテキストを目立たせる */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;  /* テキストサイズを調整 */
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

/* スタッフカードにホバー時 */
.staff-card:hover .hover-overlay {
  opacity: 1;  /* ホバー時にオーバーレイを表示 */
}

/* スタッフカードのテキスト（名前など） */
.staff-card .staff-name {
  margin-top: 0.5rem;  /* 名前の間隔調整 */
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
}

.staff-card .staff-position {
  font-size: 1rem;
  color: #555;
  margin-top: 0.25rem;
}


/* モーダル全体 */
.staff-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.staff-modal.active {
  display: flex;
}

/* モーダルが開いている時にbodyのスクロールを無効化 */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

.staff-modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 900px;
  height: 90vh;
  max-height: 90vh;
  border-radius: 20px;
  position: relative;
  display: flex;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 左：画像エリア */
.modal-left {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-left img {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 400px;
  object-fit: cover;
  aspect-ratio: 1/1;
  display: block;
  margin: 0 auto;
}

/* 右：テキストエリア */
.modal-right {
  width: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  overflow-y: auto;
  max-height: 90vh;
  min-width: 0;
  box-sizing: border-box;
}

.modal-right h3 {
  font-size: 1.3rem;
  color: #1976D2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 資格見出し */
.modal-right .license h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1976D2;
  border-left: 4px solid #1976D2;
  padding-left: 0.5rem;
}

/* 資格リスト */
.modal-right .license ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.modal-right .license li::before {
  content: "✔︎";
  color: #2b80ff;
  margin-right: 0.4em;
}

/* コメント欄 */
.modal-right .comment {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #555;
  z-index: 10000;
  background: none;
  border: none;
  padding: 5px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.close-btn:hover {
  color: #0D47A1;
}

/* スタッフ画像カード用 */
.staff-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.staff-img-wrapper img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

.hero,
.slide {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

.hero img,
.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* フレックス系の横幅オーバー防止 */
.header-container,
.container,
.footer-container {
  max-width: 100%;
  overflow-x: hidden;
}

/* 画像や動画が親を超えないように */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}




/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  html {
    font-size: 16px; /* iOS Safariで最小フォントサイズを確保 */
    -webkit-text-size-adjust: 100%;
  }

  body {
    line-height: 1.8;
    -webkit-overflow-scrolling: touch;
  }

  h1 {
    font-size: 1.8rem;
    -webkit-text-size-adjust: 100%;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    -webkit-text-size-adjust: 100%;
  }

  h3 {
    font-size: 1.3rem;
    -webkit-text-size-adjust: 100%;
  }

  h4 {
    font-size: 1.1rem;
    -webkit-text-size-adjust: 100%;
  }

  p, li {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 10px;
    -webkit-text-size-adjust: 100%;
  }

  /* ヘッダー */
  header {
    height: auto;
    padding-bottom: 0;
    overflow: visible;
    position: relative;
    z-index: 1000;
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
    height: 56px;
    -webkit-transform: translateZ(0); /* iOS Safariでのレンダリング改善 */
    transform: translateZ(0);
    position: relative;
    overflow: visible;
    padding: 10px 20px;
  }

  .logo-left {
    max-width: 100px;
    height: 40px;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    min-width: 44px;
    min-height: 44px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 1001;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    background-color: #E3F2FD;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 0;
    margin: 0;
    border: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    overflow: visible;
  }

  .header-nav.active {
    display: flex !important;
    background: #E3F2FD !important;
    color: #333 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: auto !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 100%;
    padding: 0 0.5em 0 0;
    margin: 0;
  }

  .nav-list li {
    width: 100%;
    margin: 0;
  }

  .nav-list li a {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    text-align: right;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-all;
    min-height: 44px; /* iOS推奨タップターゲットサイズ */
    -webkit-tap-highlight-color: transparent;
    display: block;
  }

  /* ヒーロースライダー */
  .hero-slider {
    height: calc(100vw * 9 / 16);
    min-height: 180px;
    max-height: 100vw;
    position: relative;
    overflow: hidden;
  }

  .slide,
  .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-select: none; /* iOS Safariでの画像選択を無効化 */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .hero-caption h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    -webkit-text-size-adjust: 100%;
  }

  .hero-caption p {
    font-size: 0.75rem;
    white-space: nowrap;
    -webkit-text-size-adjust: 100%;
  }

  /* クラブ概要 */
  .overview-block,
  .overview-block.reverse {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-bottom: 40px;
  }

  .overview-img,
  .overview-text {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .overview-img {
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .overview-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    padding: 0 10px;
    -webkit-text-size-adjust: 100%;
  }

  .text {
    font-size: 1.1rem;
    padding: 0 10px;
    line-height: 2;
    -webkit-text-size-adjust: 100%;
  }

  /* 活動リンク */
  .activities-link {
    height: auto;
    padding: 40px 20px;
  }

  .activities-link h1 {
    font-size: 1.5rem;
    -webkit-text-size-adjust: 100%;
  }

  .btn-activity {
    font-size: 1rem;
    padding: 10px 25px;
    margin-top: 30px;
    min-height: 44px; /* iOS推奨タップターゲットサイズ */
    -webkit-tap-highlight-color: transparent;
  }

  /* スケジュール */
  .schedule {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .schedule-group {
    width: 100%;
  }

  .schedule-group h5 {
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
  }

  /* コース説明 */
  .lesson-flex {
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }

  .lesson-text {
    font-size: 1rem;
    padding: 0 10px;
    text-align: center;
    -webkit-text-size-adjust: 100%;
  }

  .lesson-text .schedule {
    text-align: left;
  }

  .lesson-img {
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* スタッフ紹介 */
  .staff-card {
    width: 180px;
  }

  .staff-card img {
    height: 220px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .staff-card .staff-name {
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
  }

  .staff-card .staff-position {
    font-size: 0.9rem;
    -webkit-text-size-adjust: 100%;
  }

  /* モーダル - スマホ時は縦並び */
  .staff-modal-content {
    width: 98vw;
    max-width: 98vw;
    height: 95vh;
    max-height: 95vh;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .modal-left,
  .modal-right {
    width: 100%;
    height: auto;
    max-height: none;
    min-width: 0;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .modal-left {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .modal-left img {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
  }

  .modal-right {
    flex: 0 0 auto;
    padding: 1rem;
    font-size: 0.95rem;
    overflow-y: visible;
    max-height: none;
    -webkit-text-size-adjust: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-right h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    -webkit-text-size-adjust: 100%;
    color: #1976D2;
    font-weight: bold;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .modal-right .license h4 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    -webkit-text-size-adjust: 100%;
  }

  .modal-right .license ul {
    margin: 0.5rem 0;
    padding-left: 1rem;
  }

  .modal-right .license li {
    margin: 0.3rem 0;
    -webkit-text-size-adjust: 100%;
  }

  .modal-right .comment {
    font-size: 1rem;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    margin-top: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #555;
    z-index: 10000;
    background: none;
    border: none;
    padding: 5px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .close-btn:hover {
    color: #0D47A1;
  }

  /* 新着情報 */
  .news-list li {
    font-size: 0.9rem;
    padding: 8px 0;
    -webkit-text-size-adjust: 100%;
  }

  /* SNSリンク */
  .phone-link,
  .insta-link,
  .line-link {
    font-size: 1.2rem;
    min-height: 44px; /* iOS推奨タップターゲットサイズ */
    -webkit-tap-highlight-color: transparent;
  }

  /* フッター */
  .footer-container {
    flex-direction: column;
    padding: 10px 5px;
    font-size: 0.8rem;
    row-gap: 8px;
  }

  .footer-left,
  .footer-right {
    margin-left: 0;
    margin-bottom: 10px;
    flex: 1 1 120px;
  }

  /* カテゴリーカード */
  .category-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .card-inner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .card-inner h3 {
    font-size: 1.1rem;
    -webkit-text-size-adjust: 100%;
  }

  /* 代表写真と名前 */
  .company-photo {
    max-width: 200px;
  }

  .company-photo img {
    width: 100%;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .president-name {
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
  }

  footer {
    font-size: 0.7rem;
  }

  .container,
  .hero-slider,
  .slide {
    width: 98vw;
    max-width: 100vw;
    padding: 0.5rem;
    font-size: 0.95rem;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .category-links {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  /* モーダル内のフォントサイズを小さく */
  .staff-modal-content,
  .modal-right {
    font-size: 0.9rem;
  }
  .modal-right h3 {
    font-size: 1rem;
  }
  .modal-right .license h4 {
    font-size: 0.95rem;
  }
  .modal-right .license li {
    font-size: 0.9rem;
  }
  .modal-right .comment {
    font-size: 0.9rem;
  }
}

/* タブレット用 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  html {
    font-size: 16px;
  }
  .header-container {
    padding: 10px 20px;
    height: 70px;
  }
  .logo-left {
    max-width: 120px;
    height: 50px;
  }
  .nav-list li a {
    font-size: 1.1rem;
    padding: 14px 24px;
  }
  .overview-img {
    height: 320px;
  }
  .lesson-flex {
    gap: 30px;
  }
  .staff-card {
    width: 200px;
  }
  .staff-card img {
    height: 260px;
  }
  .category-card {
    width: 45vw;
    height: 180px;
  }
}

/* PC用（デフォルトより広い画面向け） */
@media screen and (min-width: 1025px) {
  html {
    font-size: 18px;
  }
  .header-container {
    padding: 10px 40px;
    height: 80px;
  }
  .logo-left {
    max-width: 140px;
    height: 60px;
  }
  .overview-img {
    height: 500px;
  }
  .lesson-flex {
    gap: 40px;
  }
  .category-card {
    width: 300px;
    height: 200px;
  }
}

/* ハンバーガーメニューの表示制御 */
@media screen and (min-width: 768px) {
  .hamburger {
    display: none !important;
  }
  .header-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    width: auto;
    padding: 0;
    overflow: visible;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
  .nav-list li {
    margin: 0 10px;
    text-align: left;
  }
}

.lesson-price {
  margin-top: 1em;
  padding: 0.7em 1em;
  background: #fff3e0;
  border: 2px solid #ff9800;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 1.3rem;
  color: #ed7802;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.08);
  letter-spacing: 0.05em;
  display: inline-block;
}

.price-label {
  font-size: 1rem;
  color: #ff9800;
  margin-right: 0.5em;
  vertical-align: middle;
}

.price-amount {
  font-size: 1.7rem;
  color: #ed7802;
  font-weight: bold;
  vertical-align: middle;
}

/* iOS Safari特有の調整 */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari専用の調整 */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* タップターゲットの最小サイズ確保 */
  a, button, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* フォーカス時のアウトライン調整 */
  a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
  }
  
  /* 画像の選択を無効化 */
  img, video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}