/* ===============================
   基本設定
================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: #333;
  background: #fff;
  scroll-behavior: smooth;
}
/* ===============================
   グローバルナビゲーション（ロゴ付き）
=============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  color: #2563eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px; /* 高さを抑え、スマートに */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

/* ロゴエリア */
.logo-area {
  display: flex;
  align-items: center;
}

.site-logo {
  width: 200px;
  height: auto;
}

/* ナビボタン */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn.white {
  background: #2563eb;
  color: #fff;
  border: none;
}

.btn.white:hover {
  background: #174cc3;
}

.btn.border {
  border: 1.5px solid #2563eb;
  background: #fff;
  color: #2563eb;
}

.btn.border:hover {
  background: #2563eb;
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 20px;
  }

  .site-logo {
    width: 160px;
  }

  .nav-buttons {
    gap: 8px;
  }

  .btn {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}
/* ==== HEROセクション ==== */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: url('images/classroom-hero.jpg') center/cover no-repeat;
  overflow: hidden;
}

/* 半透明オーバーレイ（暗すぎないトーン） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.25)
  );
  z-index: 1;
}

/* コンテンツ本体 */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

/* タイトル */
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* サブタイトル */
.hero-content .subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: #bbdefb;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

/* 本文 */
.hero-content p {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 20px 28px;
  border-radius: 12px;
  line-height: 1.9;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content .subtitle {
    font-size: 1.1rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    padding: 14px 18px;
  }
}
/* ===============================
   セクション共通
================================= */
.section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #0078d7;
}

/* ===============================
   講座紹介（リッチカード）
================================= */
.lesson-card {
  display: flex;
  align-items: stretch;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 60px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.lesson-card:hover {
  transform: translateY(-6px);
}

.lesson-card.reverse {
  flex-direction: row-reverse;
}

.lesson-image {
  width: 50%;
  object-fit: cover;
}

.lesson-content {
  width: 50%;
  padding: 40px;
}

.lesson-content h3 {
  font-size: 1.8rem;
  color: #ff7043;
  margin-bottom: 12px;
}

.lesson-content .lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.lesson-detail {
  margin-top: 20px;
  border-top: 2px solid #ffcc80;
  padding-top: 12px;
}

.lesson-detail h4 {
  color: #f57c00;
  margin-top: 10px;
  font-size: 1.1rem;
}

.lesson-detail p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .lesson-card {
    flex-direction: column;
  }
  .lesson-image, .lesson-content {
    width: 100%;
  }
}

/* ===============================
   カードグリッド共通
================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #0078d7;
  margin-bottom: 6px;
}

/* ===============================
   ギャラリー
================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ===============================
   FAQ
================================= */
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item h3 {
  padding: 16px;
  background: linear-gradient(90deg, #4fc3f7, #81d4fa);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-item p {
  padding: 16px;
  display: none;
  background: #e1f5fe;
  border-top: 1px solid #b3e5fc;
  color: #333;
}

/* ===============================
   フォーム
================================= */
form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, select, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button[type="submit"] {
  background: linear-gradient(90deg, #4fc3f7, #0288d1);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(90deg, #03a9f4, #0277bd);
}

/* ===============================
   タブ（講師切り替え・改良版）
================================= */
.tabs {
  text-align: center;
  margin-bottom: 30px;
  display: inline-flex;
  background: #e3f2fd;
  border-radius: 50px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.tab {
  padding: 12px 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: #0078d7;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.tab:hover {
  background: #bbdefb;
}

.tab.active {
  background: linear-gradient(90deg, #4fc3f7, #0288d1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
  transform: scale(1.05);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ===============================
   メディア対応
================================= */
@media (max-width: 768px) {
  .hero-content {
    padding: 24px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .navbar {
    flex-direction: column;
    gap: 10px;
  }
}
/* ===============================
   スクロールフェードアニメーション
================================= */
.fade-in, .fade-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible, .fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.toggle-detail-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.toggle-detail-btn:hover {
  background: #174cc3;
}

.lesson-detail {
  display: none;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
  animation: fadeSlide 0.4s ease forwards;
}

.lesson-detail.open {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   🔧 スマホ表示（SP対応）
=============================== */
@media (max-width: 768px) {

  /* ヒーロー調整 */
  .hero {
    height: 80vh;
    background-position: center top;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .subtitle {
    font-size: 1rem;
  }

  .hero-content .description {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 10px;
  }

  /* ナビゲーションのレイアウト */
  .navbar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 10px 0;
  }

.nav-buttons {
  flex-direction: row;     /* ← columnをrowに変更 */
  justify-content: center; /* 横並び中央寄せ */
  align-items: center;
  gap: 8px;
}

  /* 講座紹介（レスポンシブ対応） */
  .lesson-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 10px;
  }

  .lesson-card.reverse {
    flex-direction: column; /* ← reverseも通常縦並びに統一 */
  }

  .lesson-card img.lesson-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .lesson-content {
    padding: 20px 10px;
  }

  /* 教室一覧・講師カード */
  .card-grid {
    grid-template-columns: 1fr; /* 1列表示 */
    gap: 20px;
  }

  /* 料金セクション */
  .price-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .price .card {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
  }

  /* FAQ */
  .faq h3 {
    font-size: 1rem;
    padding: 12px;
  }

  .faq p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* お問い合わせフォーム */
  form {
    width: 90%;
    margin: 0 auto;
  }

  form input,
  form select,
  form textarea {
    width: 100%;
    font-size: 1rem;
  }

  button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
  }
}

/* ===== お問い合わせフォーム ===== */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: inline-block;
}

/* チェックボックスのグリッド */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 20px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #444;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

/* 送信ボタン */
.btn-submit {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .contact form {
    padding: 10px;
  }
}
