/* =============================================
   森本塾Global — 共通スタイル
   ページ固有のスタイルは各HTMLファイルに記載
   ============================================= */

/* ===== デザイントークン ===== */
:root {
  --teal: #1a2e4a;
  --teal-dark: #0f1e33;
  --teal-light: #eef1f6;
  --accent: #3a7bd5;
  --coral: #e8573a;
  --ink: #111827;
  --ink-mid: #374151;
  --ink-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e5e7eb;
}

/* ===== リセット ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
@media (max-width: 768px) {
  html { font-size: 20px; }
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25em;
  height: 4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.nav-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.125em;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 1.75em; list-style: none; }
.nav-links a {
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; gap: 0.5em; flex-shrink: 0; }

/* ===== ボタン ===== */
.btn-teal {
  display: inline-flex; align-items: center; gap: 0.375em;
  padding: 0.5625em 1.125em;
  background: var(--accent); color: #fff;
  font-size: 0.75em; font-weight: 700; text-decoration: none;
  border-radius: 4px; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-teal:hover { background: #2d68c0; transform: translateY(-1px); }
.btn-coral {
  display: inline-flex; align-items: center; gap: 0.375em;
  padding: 0.5625em 1.125em;
  background: var(--coral); color: #fff;
  font-size: 0.75em; font-weight: 700; text-decoration: none;
  border-radius: 4px; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-coral:hover { background: #c94530; transform: translateY(-1px); }

/* ===== ハンバーガーメニュー（スマホ） ===== */
.nav-ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-ham span { display: block; width: 1.375em; height: 2px; background: var(--ink); border-radius: 1px; transition: all 0.25s; }
.mobile-menu {
  display: none; position: fixed; top: 4em; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  z-index: 99; padding: 1em 1.25em 1.25em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.75em 0;
  font-size: 0.9375em; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--border); font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta { display: flex; gap: 0.625em; margin-top: 1em; }
.mobile-menu .mobile-cta a {
  flex: 1; text-align: center; padding: 0.8125em;
  border-radius: 4px; border-bottom: none; font-size: 0.8125em;
}

/* ===== サブページ共通ヒーロー（紺色） ===== */
.page-hero {
  margin-top: 4em;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #1e3a5f 100%);
  padding: clamp(3.5em, 8vw, 6em) clamp(1.5em, 5vw, 3.75em);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,123,213,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,123,213,0.08) 1px, transparent 1px);
  background-size: 2.5em 2.5em;
}
.page-hero-inner { max-width: 56.25em; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-en {
  font-family: 'Oswald', sans-serif; font-size: 0.6875em; font-weight: 500;
  letter-spacing: 0.3em; color: var(--accent); margin-bottom: 1em; display: block;
}
.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75em, 5vw, 3em); font-weight: 900;
  color: #fff; line-height: 1.4; margin-bottom: 1em;
}
.page-hero-title span { color: #6eaaee; }
.page-hero-sub { font-size: 0.875em; color: rgba(255,255,255,0.65); line-height: 1.9; max-width: 35em; }

/* ===== セクション共通 ===== */
.section { padding: clamp(3.5em, 8vw, 6em) clamp(1.25em, 5vw, 3em); }
.section-inner { max-width: 56.25em; margin: 0 auto; }
.section-header { margin-bottom: 3em; }
.section-en {
  font-family: 'Oswald', sans-serif; font-size: 0.6875em; font-weight: 500;
  letter-spacing: 0.3em; color: var(--accent); margin-bottom: 0.625em; display: block;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.25em, 3.5vw, 1.75em); font-weight: 700;
  color: var(--ink); line-height: 1.5; margin-bottom: 0.75em;
}
.section-title span { color: var(--accent); }
.section-line { width: 2.5em; height: 3px; background: var(--accent); border-radius: 2px; }
.section-lead { font-size: 0.875em; color: var(--ink-mid); line-height: 2; margin-top: 1em; max-width: 40em; }

/* ===== CTA（紺背景・青文字ボタン） ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: clamp(3.5em, 8vw, 6em) 1.25em; text-align: center;
}
.cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.25em, 4vw, 1.875em); font-weight: 700;
  color: #fff; margin-bottom: 0.75em;
}
.cta-sub { font-size: 0.875em; color: rgba(255,255,255,0.82); margin-bottom: 2.25em; line-height: 1.8; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 1em 2.25em; background: #fff; color: var(--accent);
  font-size: 0.9375em; font-weight: 700; text-decoration: none;
  border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); }

/* ===== 講師ランク（青基調グラデーション） ===== */
.rank-head.r1 { background: linear-gradient(135deg,#0f1e33,#3a7bd5) !important; }
.rank-head.r2 { background: linear-gradient(135deg,#1a2e4a,#2563eb) !important; }
.rank-head.r3 { background: linear-gradient(135deg,#1e3a5f,#4a7ab8) !important; }
.rank-head.r4 { background: linear-gradient(135deg,#374a64,#6890c0) !important; }
.rank-head.r5 { background: linear-gradient(135deg,#4b5563,#94a3b8) !important; }

/* ===== フッター ===== */
footer { background: var(--teal-dark); padding: 3em 1.25em 2em; }
.footer-inner { max-width: 56.25em; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2em; padding-bottom: 2em;
  border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5em; flex-wrap: wrap;
}
.footer-logo { font-family: 'Noto Serif JP', serif; font-size: 1em; font-weight: 700; color: #fff; text-decoration: none; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.25em; flex-wrap: wrap; }
.footer-links a { font-size: 0.75em; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.6875em; color: rgba(255,255,255,0.25); text-align: center; letter-spacing: 0.08em; }

/* ===== フェードインアニメーション ===== */
.fade-up { opacity: 0; transform: translateY(1.75em); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== レスポンシブ（共通） ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-ham { display: flex; }
  .footer-top { flex-direction: column; }
}