body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #d0d0d0;
  color: #333;
}

/* ヘッダー */
.site-header {
  background-color: #222;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  height: 40px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* タイトルセクション */
.page-title {
  text-align: center;
  padding: 40px 20px 20px;
  background-color: #b0b0b0; /* 薄めのグレー背景 */
}

/* ← ここを修正 */
.page-heading {
  font-size: 2.9rem !important;
  font-weight: 900 !important;
  color: #ffcc00 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
}


.page-title p {
  margin: 10px 0 0;
  font-size: 1rem;
  color: #555;
}

/* 講師グリッド */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.teacher-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.teacher-grid img:hover {
  transform: scale(1.05);
}

/* モバイル表示対応 */
@media (max-width: 768px) {
  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
  }

  .page-heading {
    font-size: 1.5rem;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.profile-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.profile-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
  border-left: 4px solid #ffcc00;
  padding-left: 10px;
}

.video-section {
  margin-top: 40px;
}

.video-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 12px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.instructor-image-name {
  text-align: center;
  margin-bottom: 20px;
}

.instructor-name {
  margin-top: -15px;
  font-weight: 900;
  font-size: 2.5rem;   /* ← 大きめのサイズに */
  text-align: center;
  color: #222;         /* 濃いめのグレー（お好みで変更可） */
}



/* 講師下部スライダー */
.instructor-slider {
  background-color: #d0d0d0;
  padding: 30px 20px;
}

.instructor-slider h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

.slider-wrapper {
  position: relative; /* ← これがないと矢印が重ならず動かない */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}


.slider {
  display: flex;
  gap: 15px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  width: max-content;
}

.slider a {
  flex: 0 0 20%;
  scroll-snap-align: start;
  text-decoration: none;
}

.slider img {
  width: 100%;
  height: auto;
  max-width: 180px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.slider img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .slider {
    gap: 6px !important;  /* ← 正しい位置に !important を付ける */
  }

  .slider a {
    flex: 0 0 calc(33.3% - 6px); /* ← gap 分を引いて詰める */
    margin: 0;
  }

  .slider img {
    max-width: 100%;  /* ← 親要素にフィット */
    height: auto;
  }
}

/* サイトマップ */
.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 30px 20px;
  color: #fff;
  background: #111;
}

.footer-sitemap h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: 0.07em;
}

.footer-sitemap ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sitemap li {
  margin-bottom: 6px;
}

.footer-sitemap a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-sitemap a:hover {
  text-decoration: underline;
  color: #ffd768; /* ホバーを少し黄色にして統一感UP */
}

@media (max-width: 768px) {
  .footer-sitemap {
    grid-template-columns: 1fr 1fr;
    gap: 25px 10px;
  }
}

/* ===== INSTRUCTORS ページ タイトル ===== */

.instructors-title-wrap {
  text-align: center;
  padding: 50px 20px 30px;  /* 上下の余白 */
}

.instructors-title {
  display: inline-block;
  color: #fff;                         /* 白文字 */
  font-weight: 1200;                    /* かなり太く */
  letter-spacing: 0.15em;              /* 文字間ひろめでカッコよく */
  font-size: clamp(2.4rem, 4vw, 4rem); /* 画面幅によって自動調整 */
  text-transform: uppercase;

  background: rgba(0, 0, 0, 0.4);      /* 薄黒いボックス */
  padding: 18px 32px;
  border-radius: 14px;                 /* ちょい丸み */
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* スマホだと少しだけ小さめ＆行間ゆったり */
@media (max-width: 768px) {
  .instructors-title-wrap {
    padding: 30px 16px 20px;
  }

  .instructors-title {
    font-size: 2.2rem;
    line-height: 1.3;
    padding: 14px 20px;
  }
}
