/* ============================================
   ロジスト進学塾 一ノ割校 - スタイルシート
   カラー：白70%・濃紺25%・淡水色5%
   ============================================ */

/* ---- リセット・変数 ---- */
:root {
  --navy: #1a2e4a;
  --navy-light: #243d63;
  --navy-dark: #0f1e33;
  --blue-pale: #e8f0fb;
  --blue-pale2: #f0f5ff;
  --gray-bg: #f7f7f7;
  --gray-light: #eeeeee;
  --text: #1a1a1a;
  --text-mute: #555;
  --white: #ffffff;
  /* LINEボタン用の緑。公式色 #06C755 は白文字とのコントラストが2.3:1と低いため、
     明るさを保ちつつ太字の白文字が読める程度（3.3:1）の緑を使う */
  --line-green: #00a344;
  --line-green-hover: #008a3a;
  --font: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(26, 46, 74, 0.08);
  --shadow-hover: 0 4px 24px rgba(26, 46, 74, 0.14);
  --header-h: 64px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- コンテナ ---- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- セクション ---- */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--gray-bg);
}

/* 濃紺セクション（星空・流れ星） */
.section-dark {
  background: radial-gradient(ellipse at 70% 30%, #172c52 0%, #0b1830 40%, var(--navy-dark) 80%);
  position: relative;
  overflow: hidden;
}
.section-dark .section-title {
  color: var(--white);
}
.section-dark .section-title::after {
  background: rgba(255, 255, 255, 0.35);
}
.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.75);
}
/* 流れ星キャンバス */
.shooting-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* 濃紺セクション内のコンテナを前面に */
.section-dark > .container {
  position: relative;
  z-index: 1;
}
.section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--navy);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-lead {
  text-align: center;
  color: var(--text-mute);
  max-width: 680px;
  margin: -24px auto 40px;
  font-size: 15px;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  z-index: 900;
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.logo-main {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 500;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.header-nav ul li a:hover {
  color: var(--navy);
  background: var(--blue-pale2);
}
/* 塾生専用ボタン（ヘッダー）：新規の保護者向けLINEより目立たないよう枠線のみ */
.btn-jukusei-header {
  background: transparent !important;
  color: #a94606 !important;
  border: 1.5px solid #e8640a;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
}
.btn-jukusei-header:hover {
  background: #fff4ec !important;
  color: #a94606 !important;
}
/* 塾生専用ボタン（モバイル） */
.btn-jukusei-mobile {
  display: block;
  text-align: center;
  background: #e8640a;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
}
.btn-jukusei-mobile:hover {
  background: #c9540a;
}
/* 塾生専用リンク（ヒーロー）：主CTAの邪魔をしないテキストリンク */
.btn-jukusei-hero {
  display: inline-block;
  color: rgba(255,255,255,0.85) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 0;
}
.btn-jukusei-hero:hover {
  color: var(--white) !important;
}
.btn-line-header {
  background: var(--line-green) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
.btn-line-header:hover {
  background: var(--line-green-hover) !important;
  color: var(--white) !important;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  z-index: 800;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  padding: 12px 0 24px;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu ul li a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-light);
}
.mobile-line-item {
  padding: 16px 24px 0;
}
.btn-line-mobile {
  display: block;
  text-align: center;
  background: var(--line-green);
  color: var(--white) !important;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: none !important;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 700;
}
.mobile-menu-overlay.open { display: block; }

/* ============================================
   ヒーロー
   ============================================ */
/* ============================================
   実績テロップ
   ============================================ */
.achievements-ticker {
  margin-top: var(--header-h);
  background: var(--navy-dark);
  padding: 14px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.ticker-copy {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  padding: 0 48px; /* 右上の一時停止ボタンと重ならないよう左右に余白 */
}
.ticker-copy::before,
.ticker-copy::after {
  content: '✦';
  margin: 0 10px;
  color: rgba(255,255,255,0.35);
}
.ticker-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.ticker-row:last-child { margin-bottom: 0; }
.ticker-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  padding: 3px 10px;
  margin-left: 16px;
  margin-right: 12px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ticker-scroll {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
}
.ticker-track:hover,
.achievements-ticker.paused .ticker-track { animation-play-state: paused; }
/* テロップ一時停止ボタン */
.ticker-pause {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.ticker-pause:hover { background: rgba(255,255,255,0.18); }
/* 「動きを減らす」設定時：流さずに横スクロールで読めるようにする */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
  .ticker-scroll { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-pause { display: none; }
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  white-space: nowrap;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  padding: 0 22px;
}
.ticker-item::before {
  content: '◆ ';
  color: rgba(255,255,255,0.3);
  font-size: 9px;
  vertical-align: middle;
}

/* ============================================
   ヒーロー
   ============================================ */
.hero {
  padding-top: 64px;
  padding-bottom: 80px;
  background: radial-gradient(ellipse at 65% 40%, #172c52 0%, #0b1830 40%, var(--navy-dark) 80%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero-pattern.png') center/contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}
.hero-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-title span {
  color: var(--white);
  background: linear-gradient(transparent 60%, rgba(100,200,255,0.4) 60%);
  padding-bottom: 2px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-badges li {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  margin: 28px 0 8px;
}
.btn-line-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--line-green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(0, 163, 68, 0.35);
}
.btn-line-hero:hover {
  background: var(--line-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 163, 68, 0.4);
}
/* LINEボタン共通の吹き出しアイコン（以前は一時停止マークに見える図形だった） */
.btn-line-hero::before,
.btn-line-fixed::before,
.btn-line-cta::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3C6.48 3 2 6.58 2 11c0 2.62 1.58 4.94 4.02 6.4L5.2 21l4.12-2.3c.86.2 1.76.3 2.68.3 5.52 0 10-3.58 10-8s-4.48-8-10-8z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero-image img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}


/* ============================================
   強み
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px 32px;
  box-shadow: 0 4px 24px rgba(26, 46, 74, 0.09);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--fc, var(--navy));
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(26, 46, 74, 0.16);
}
/* 2色ローテーション */
.features-grid .feature-card:nth-child(odd)  { --fc: #1a2e4a; }
.features-grid .feature-card:nth-child(even) { --fc: #2563eb; }
/* 奇数枚目が最後の場合は全幅 */
.features-grid .feature-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
/* 背景デコレーション番号 */
.feature-num {
  position: absolute;
  top: 4px;
  right: 20px;
  font-size: 88px;
  font-weight: 900;
  color: rgba(26, 46, 74, 0.05);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
/* 可視バッジ */
.feature-badge {
  display: inline-block;
  background: var(--fc, var(--navy));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
/* アコーディオンの開閉ボタン共通（<button>のデフォルト装飾を消す） */
.acc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.acc-toggle:hover { opacity: .8; }
.acc-toggle:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
  border-radius: 4px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0;
  line-height: 1.45;
  padding-bottom: 4px;
}
.feature-toggle-icon {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--fc, var(--navy));
  line-height: 1.2;
}
.feature-body {
  margin-top: 16px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.85;
  margin-bottom: 10px;
}
.feature-card p:last-child { margin-bottom: 0; }

/* ============================================
   毎日の学習報告（スライド）
   ============================================ */
.study-report {
  margin-top: 28px;
  background: var(--white);
  border-radius: 12px;
  border-top: 4px solid var(--line-green);
  box-shadow: 0 4px 24px rgba(26, 46, 74, 0.09);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.study-report-badge {
  display: inline-block;
  background: var(--line-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.study-report-text h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.study-report-text p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.85;
  margin-bottom: 10px;
}
.sr-slider { min-width: 0; }
/* 横スクロール＋スナップでスワイプできるスライド */
.sr-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.sr-track::-webkit-scrollbar { display: none; }
.sr-track:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 8px; }
.sr-slide {
  flex: 0 0 72%;
  scroll-snap-align: start;
  margin: 0;
}
.sr-slide img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e3e6ea;
  box-shadow: 0 4px 14px rgba(26, 46, 74, 0.10);
  cursor: zoom-in; /* タップで拡大表示 */
}
.sr-slide figcaption {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 10px;
  text-align: center;
}
.sr-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.sr-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.sr-btn:hover { background: var(--navy); color: var(--white); }
.sr-btn:disabled { opacity: .3; cursor: default; background: var(--white); color: var(--navy); }
.sr-dots { display: flex; gap: 4px; }
/* ドットは見た目8px・タップ領域24px */
.sr-dot {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d0da;
  transition: background var(--transition), transform var(--transition);
}
.sr-dot[aria-current="true"]::before { background: var(--navy); transform: scale(1.25); }
.sr-note {
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .sr-track { scroll-behavior: auto; }
}

/* ============================================
   コース
   ============================================ */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.course-card:last-child { margin-bottom: 0; }
.course-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--blue-pale);
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.course-heading {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.4;
}
/* 「指導時間・詳細を見る」ボタン（料金だけ常時表示、それ以外は折りたたみ） */
.course-more {
  align-items: center;
  margin-top: 16px;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.course-more:hover { opacity: 1; background: var(--blue-pale2); }
.course-toggle-icon {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
}
.course-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}
.course-body > * + * { margin-top: 16px; }
/* 料金（常時表示）：バッジ・通常価格・キャンペーン価格を横並びでコンパクトに */
.course-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 16px;
  background: var(--blue-pale2);
  border-radius: 6px;
}
.course-price .price-campaign { flex-basis: 100%; }
.course-price .course-campaign-badge,
.course-price .price-normal { margin-bottom: 0; }
.course-desc {
  font-size: 15px;
  color: var(--text-mute);
  line-height: 1.8;
  white-space: pre-line;
}
.course-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--gray-light);
  padding-top: 20px;
}
.course-time h4, .course-price h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.course-time p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.price-normal {
  font-size: 14px;
  color: var(--text-mute);
  text-decoration: line-through;
  margin-bottom: 6px;
}
.price-campaign {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}
.price-note {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
}
.timetable-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 4px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.timetable-link:hover {
  background: var(--navy);
  color: #fff;
}
.course-campaign-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* 英語単科コース */
.course-card.english {
  border: 3px solid #c0392b;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.15);
}
.course-card.english .course-label {
  background: #c0392b;
  color: #fff;
}

/* 総合型選抜コード */
.course-card.aoiform {
  border: 2px solid var(--navy);
}
.aoiform-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 6px;
  margin: 20px 0 0;
  font-weight: 700;
  font-size: 15px;
}
.aoiform-badge span {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.75);
}

/* ============================================
   代表
   ============================================ */
.principal-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.principal-photo img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}
.principal-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.principal-name {
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.principal-profile {
  margin-bottom: 24px;
}
.principal-profile li {
  font-size: 14px;
  color: var(--text-mute);
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-light);
  padding-left: 14px;
  position: relative;
}
.principal-profile li::before {
  content: '─';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-size: 10px;
  top: 7px;
}
.principal-message p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}
.principal-message blockquote {
  border-left: 3px solid var(--navy);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--blue-pale2);
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  line-height: 2;
}

/* ============================================
   合格実績
   ============================================ */
.achievements-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.ach-tab {
  min-height: 44px;
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  transition: all var(--transition);
}
.ach-tab.active, .ach-tab:hover {
  background: var(--navy);
  color: var(--white);
}
/* 濃紺セクション内のタブは白ベース */
.section-dark .ach-tab {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.section-dark .ach-tab.active,
.section-dark .ach-tab:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.ach-panel {
  display: none;
}
.ach-panel.active {
  display: block;
}
.ach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ach-item {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 16px 16px 14px;
  background: var(--navy);
  border-bottom: 3px solid #c9a84c;
  border-radius: 6px 6px 4px 4px;
  box-shadow: 0 3px 12px rgba(26,46,74,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.ach-item::before {
  content: '▶';
  display: block;
  font-size: 8px;
  color: #c9a84c;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.ach-item:hover {
  transform: translateY(-3px);
  background: var(--navy-light);
  box-shadow: 0 8px 24px rgba(26,46,74,0.25);
}
.ach-more {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
  margin-top: 20px;
  letter-spacing: 0.05em;
}

/* ============================================
   口コミ
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(26,46,74,0.09);
  border-top: none;
  border-left: 5px solid var(--rc, var(--navy));
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26,46,74,0.15);
}
/* 装飾クォーテーション */
.review-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  right: 20px;
  font-size: 100px;
  font-family: Georgia, serif;
  font-weight: 900;
  color: var(--rc, var(--navy));
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}
/* 3色ローテーション */
.reviews-grid .review-card:nth-child(3n+1) { --rc: #2563eb; }
.reviews-grid .review-card:nth-child(3n+2) { --rc: #059669; }
.reviews-grid .review-card:nth-child(3n+3) { --rc: #d97706; }
.review-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--rc, var(--navy));
  margin-bottom: 14px;
  line-height: 1.4;
}
.review-body {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.8;
  white-space: pre-line;
}
.review-body-inner {
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.review-toggle {
  margin-top: 10px;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 0;
}

/* ============================================
   YouTube
   ============================================ */
.youtube-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.youtube-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.youtube-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ============================================
   教室環境
   ============================================ */
.env-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.env-photo img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.env-photo p {
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 10px;
}

/* ============================================
   時間割
   ============================================ */
.tt-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tt-tab {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  transition: all var(--transition);
  min-width: 56px;
  min-height: 44px;
}
.tt-tab.active, .tt-tab:hover {
  background: var(--navy);
  color: var(--white);
}
/* 濃紺セクション内の時間割タブ */
.section-dark .tt-tab {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.section-dark .tt-tab.active,
.section-dark .tt-tab:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.tt-panel { display: none; }
.tt-panel.active { display: block; }
.tt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}
.tt-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.tt-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.tt-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.tt-info p {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 2px;
}
.tt-subject {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--blue-pale2);
  color: var(--navy);
  border-radius: 4px;
}

/* 季節講習 */
.seasonal-section {
  padding: 60px 0;
}
.seasonal-section .section-title { text-align: left; }
.seasonal-section .section-title::after { margin-left: 0; }
.seasonal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.seasonal-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.seasonal-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.3s;
}
.seasonal-card:hover img { transform: scale(1.02); }
.seasonal-card-body {
  padding: 16px 20px;
}
.seasonal-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.seasonal-card-body p {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* 画像ライトボックス */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================
   友達紹介キャンペーンバナー
   ============================================ */
.campaign-friend {
  padding: 56px 0;
  background: var(--white);
}
.campaign-friend-card {
  background: var(--blue-pale2);
  border-radius: 12px;
  border-left: 4px solid var(--navy);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 40px;
  align-items: center;
}
.campaign-friend-num {
  text-align: center;
  flex-shrink: 0;
  border-right: 1px solid rgba(26,46,74,.15);
  padding-right: 40px;
}
.campaign-friend-num .big {
  font-size: 72px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}
.campaign-friend-num .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.campaign-friend-body {
  min-width: 0;
}
.campaign-friend-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--white);
  background: var(--navy);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.campaign-friend-body h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}
.campaign-friend-body p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.8;
  margin-bottom: 8px;
}
.campaign-friend-deadline {
  display: inline-block;
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 500;
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.campaign-friend-cta {
  flex-shrink: 0;
}
.campaign-friend-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--line-green);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  line-height: 1.5;
  text-align: center;
}
.campaign-friend-cta a:hover {
  background: var(--line-green-hover);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .campaign-friend-card {
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto;
    padding: 32px;
    gap: 24px;
  }
  .campaign-friend-num {
    border-right: none;
    border-bottom: 1px solid rgba(26,46,74,.15);
    padding-right: 0;
    padding-bottom: 20px;
    grid-row: 1;
    grid-column: 1;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .campaign-friend-num .big { font-size: 52px; }
  .campaign-friend-num .label { margin-top: 0; }
  .campaign-friend-body { grid-row: 1; grid-column: 2; }
  .campaign-friend-cta {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
  }
  .campaign-friend-cta a { width: 100%; }
}
@media (max-width: 600px) {
  .campaign-friend-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .campaign-friend-num {
    grid-column: 1;
    border-bottom: 1px solid rgba(26,46,74,.15);
    padding-bottom: 16px;
  }
  .campaign-friend-body { grid-row: 2; grid-column: 1; }
  .campaign-friend-cta { grid-row: 3; }
}

/* ============================================
   アクセス
   ============================================ */
.access-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.access-info h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}
.access-info dl {
  display: grid;
  gap: 12px;
}
.access-info dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.access-info dd {
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
}
.access-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.access-map iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

/* ============================================
   最終CTA
   ============================================ */
.final-cta {
  background: radial-gradient(ellipse at 50% 40%, #172c52 0%, #0b1830 40%, var(--navy-dark) 80%);
  position: relative;
  overflow: hidden;
}
.final-cta > .container {
  position: relative;
  z-index: 1;
}
.final-cta .section-title { color: var(--white); }
.final-cta .section-title::after { background: rgba(255,255,255,.4); }
.final-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.final-cta-inner h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.5;
}
.final-cta-inner p {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  margin-bottom: 12px;
}
.cta-subtext {
  color: rgba(255,255,255,.65) !important;
  font-size: 14px !important;
  margin-bottom: 32px !important;
}
.btn-line-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--line-green);
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  padding: 18px 40px;
  border-radius: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-line-cta:hover {
  background: var(--line-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ============================================
   フッター
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-inner p {
  font-size: 13px;
  color: rgba(255,255,255,.72);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  padding: 4px 10px;
  border-radius: 4px;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.62);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
}

/* ============================================
   スマートフォン固定CTA
   ============================================ */
.sp-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
  z-index: 800;
}
.btn-line-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--line-green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 6px;
  width: 100%;
}

/* ============================================
   アニメーション
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ローディング */
.loading-placeholder {
  text-align: center;
  color: var(--text-mute);
  padding: 40px;
  font-size: 14px;
}
/* 内容が大きいセクションは読み込み中も高さを確保（表示時のガタつき軽減） */
#features-container .loading-placeholder,
#courses-container .loading-placeholder { min-height: 360px; grid-column: 1 / -1; }

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 1024px) {
  .principal-inner {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }
  .access-inner {
    grid-template-columns: 260px 1fr;
  }
}

/* ヘッダーナビは約1000px必要なため、1100px以下でハンバーガーメニューに切り替える */
@media (max-width: 1100px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .section { padding: 60px 0; }
  .section-title { margin-bottom: 32px; }

  /* ヒーロー - SP縦並び */
  .hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .ticker-copy { font-size: 12px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero::after { background-size: 90%; background-position: center 30%; }
  .hero-image { order: 1; }
  .hero-text { order: 0; }
  .hero-title { font-size: 26px; }
  .hero-desc { font-size: 14px; }
  /* スマホは画面下の固定LINEボタンがあるため、ヒーローのLINEボタンは隠す */
  .btn-line-hero { display: none; }
  .hero-desc { margin-top: 0; }

  /* 強み */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .study-report { grid-template-columns: 1fr; padding: 28px 20px; gap: 20px; margin-top: 16px; }
  .study-report-text h3 { font-size: 18px; }
  .sr-slide { flex-basis: 80%; }


  /* コース */
  .course-card { padding: 20px 18px; margin-bottom: 14px; }
  .course-heading { font-size: 17px; margin-bottom: 12px; }
  .price-campaign { font-size: 20px; }
  .course-detail { grid-template-columns: 1fr; gap: 16px; }

  /* 合格実績グリッド */
  .ach-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* 代表 */
  .principal-inner { grid-template-columns: 1fr; gap: 28px; }
  .principal-photo img { max-width: 240px; margin: 0 auto; }

  /* 口コミ */
  .reviews-grid { grid-template-columns: 1fr; }

  /* 教室 */
  .env-gallery { grid-template-columns: 1fr; }

  /* アクセス */
  .access-inner { grid-template-columns: 1fr; gap: 28px; }
  .access-map iframe { height: 280px; }

  /* フッター */
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-nav { justify-content: flex-start; }

  /* SP固定CTA */
  .sp-fixed-cta { display: block; }
  body { padding-bottom: 72px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 24px; }
  .course-card { padding: 18px 16px; }
  .ach-grid { grid-template-columns: 1fr; gap: 8px; }
  .tt-tab { min-width: 44px; min-height: 44px; padding: 7px 14px; font-size: 14px; }
  .tt-item { grid-template-columns: 90px 1fr; }
  .tt-subject { display: none; }
}
