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

/* ===== デザイントークン ===== */
:root {
  --teal: #1ab5b0;
  --teal-dark: #0e8f8b;
  --teal-light: #e8fafa;
  --coral: #e8573a;
  --ink: #111827;
  --ink-mid: #374151;
  --ink-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fffe;
  --border: #e5e7eb;
}

/* ===== リセット ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ===== 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 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px; 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(--teal); }
.nav-cta { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== ボタン ===== */
.btn-teal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: var(--teal); color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none;
  border-radius: 4px; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-coral {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: var(--coral); color: #fff;
  font-size: 12px; 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: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: all 0.25s; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  z-index: 99; padding: 16px 20px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 15px; 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: 10px; margin-top: 16px; }
.mobile-menu .mobile-cta a { flex: 1; text-align: center; padding: 13px; border-radius: 4px; border-bottom: none; font-size: 13px; }

/* ===== サブページ共通ヒーロー ===== */
.page-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--ink) 0%, #1a2e2c 60%, #0e3a36 100%);
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 60px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,181,176,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,181,176,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-en {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; color: var(--teal); margin-bottom: 16px; display: block;
}
.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 5vw, 48px); font-weight: 900;
  color: #fff; line-height: 1.4; margin-bottom: 16px;
}
.page-hero-title span { color: var(--teal); }
.page-hero-sub { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.9; max-width: 560px; }

/* ===== セクション共通 ===== */
.section { padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px); }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-header { margin-bottom: 48px; }
.section-en {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; color: var(--teal); margin-bottom: 10px; display: block;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 3.5vw, 28px); font-weight: 700;
  color: var(--ink); line-height: 1.5; margin-bottom: 12px;
}
.section-title span { color: var(--teal); }
.section-line { width: 40px; height: 3px; background: var(--teal); border-radius: 2px; }
.section-lead { font-size: 14px; color: var(--ink-mid); line-height: 2; margin-top: 16px; max-width: 640px; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: clamp(56px, 8vw, 96px) 20px; text-align: center;
}
.cta-title { font-family: 'Noto Serif JP', serif; font-size: clamp(20px, 4vw, 30px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-sub { font-size: 14px; color: rgba(255,255,255,0.82); margin-bottom: 36px; line-height: 1.8; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: #fff; color: var(--teal-dark);
  font-size: 15px; 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); }

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

/* ===== フェードインアニメーション ===== */
.fade-up { opacity: 0; transform: translateY(28px); 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; }
}
