/* ============================================
   CSS Variables
   ============================================ */
:root {
  --primary: #EA580C;
  --primary-dark: #C2410C;
  --primary-light: #FFF7ED;
  --accent: #FBBF24;
  --bg: #FFFFFF;
  --bg-alt: #FFF7ED;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --text-hero: clamp(36px, 5vw, 56px);
  --text-h2: clamp(28px, 3.5vw, 40px);
  --text-h3: clamp(20px, 2.5vw, 24px);
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;
  --space-section: clamp(80px, 10vw, 120px);
  --space-group: clamp(40px, 5vw, 64px);
  --space-element: clamp(16px, 2vw, 24px);
  --space-tight: 8px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }
ul, ol { list-style: none; }

/* ============================================
   Common Components
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-group);
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: var(--text-body);
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(234,88,12,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234,88,12,0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Scroll Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.visible .stagger-item:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.visible .stagger-item:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll.visible .stagger-item:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll.visible .stagger-item:nth-child(5) { transition-delay: 0.25s; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(234,88,12,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(234,88,12,0.4); }

/* ============================================
   Header
   ============================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  padding: 16px 0;
}
header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.desktop-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.desktop-nav a:hover { color: var(--primary); }
.desktop-nav a:hover::after { width: 100%; }
.header-cta {
  padding: 10px 24px;
  font-size: 14px;
}

/* Mobile Nav */
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 80px 32px 32px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 50%, #FFFBEB 100%);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  width: 100%;
}
.hero-content {
  flex: 1;
  min-width: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(234,88,12,0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title span {
  color: var(--primary);
}
.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-image {
  flex: 1;
  min-width: 0;
  position: relative;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-image-decoration {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  top: -20px;
  right: -20px;
  z-index: -1;
}

/* ============================================
   Points
   ============================================ */
.points {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.point-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}
.point-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}
.point-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.point-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}
.point-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 12px;
}
.point-card p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   Grade (Tabs)
   ============================================ */
.grade {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.grade-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-group);
  flex-wrap: wrap;
}
.grade-tab {
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  color: var(--text);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.grade-tab:hover { border-color: var(--primary); color: var(--primary); }
.grade-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.grade-content {
  display: none;
}
.grade-content.active {
  display: block;
}
.grade-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.grade-image {
  flex: 0 0 360px;
  border-radius: var(--radius);
  overflow: hidden;
}
.grade-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.grade-info { flex: 1; }
.grade-info h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
}
.grade-info p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.grade-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.grade-subjects span {
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
}
.grade-features {
  list-style: none;
}
.grade-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: var(--text-small);
}
.grade-features li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   Results
   ============================================ */
.results {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.results-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: var(--space-group);
}
.result-number-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
}
.result-number-card .number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.result-number-card .label {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: 8px;
}
.results-schools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.result-category {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.result-category h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-category h3 svg {
  color: var(--accent);
}
.result-category ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.result-category ul li {
  padding: 4px 12px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================
   Flow
   ============================================ */
.flow {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.flow-step {
  text-align: center;
  position: relative;
}
.flow-step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.flow-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.flow-step p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Voice
   ============================================ */
.voice {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.voice-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.voice-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.voice-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.voice-meta h4 {
  font-size: 15px;
  font-weight: 700;
}
.voice-meta p {
  font-size: 13px;
  color: var(--text-muted);
}
.voice-text {
  font-size: var(--text-small);
  color: var(--text);
  line-height: 1.8;
  position: relative;
  padding-left: 20px;
}
.voice-text::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 32px;
  color: var(--primary);
  opacity: 0.4;
  font-family: Georgia, serif;
}

/* ============================================
   Teacher
   ============================================ */
.teacher {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.teacher-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.teacher-scroll::-webkit-scrollbar { height: 6px; }
.teacher-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.teacher-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.teacher-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.teacher-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.teacher-card-body {
  padding: 20px;
}
.teacher-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.teacher-card-body .teacher-subject {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.teacher-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Price
   ============================================ */
.price {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.price-table-wrapper {
  overflow-x: auto;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.price-table th,
.price-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.price-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.price-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.price-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.price-table tbody tr:hover { background: var(--primary-light); }
.price-table td:last-child {
  font-weight: 700;
  color: var(--primary);
}
.price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ============================================
   Trial CTA
   ============================================ */
.trial {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: #fff;
}
.trial h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.trial p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.trial .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 40px;
  background: #fff;
  color: var(--primary);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.trial .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.trial-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}
.trial-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  opacity: 0.9;
}
.trial-features svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Footer
   ============================================ */
footer {
  padding: 64px 0 0;
  background: #1F2937;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand .logo-icon {
  background: var(--primary);
}
.footer-brand p {
  font-size: var(--text-small);
  color: #9CA3AF;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--primary);
}
.footer-social a svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #9CA3AF;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: #6B7280;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: #6B7280;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { max-width: 560px; margin: 0 auto; }
  .grade-inner { flex-direction: column; }
  .grade-image { flex: none; width: 100%; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }

  .points-grid { grid-template-columns: 1fr; gap: 20px; }

  .grade-tabs { gap: 6px; }
  .grade-tab { padding: 10px 20px; font-size: 14px; }
  .grade-inner { padding: 24px; }

  .results-numbers { grid-template-columns: repeat(2, 1fr); }
  .results-schools { grid-template-columns: 1fr; }

  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .flow-step:not(:last-child)::after { display: none; }

  .voice-grid { grid-template-columns: 1fr; }

  .teacher-card { flex: 0 0 240px; }

  .trial-features { flex-direction: column; align-items: center; gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .flow-steps { grid-template-columns: 1fr; }
  .results-numbers { grid-template-columns: 1fr; }
}

/* ============================================
   サブページ共通スタイル（Phase 3 追加）
   ============================================ */

/* ページヒーロー（下層ページ共通） */
.page-hero {
  padding: clamp(120px, 15vw, 160px) 0 clamp(40px, 5vw, 60px);
  background: var(--bg-alt);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.page-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.2;
}
.page-subtitle {
  font-size: var(--text-small);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* CTA帯（下層ページ共通） */
.cta-band {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-band p {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 18px;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-band .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ナビゲーション active 状態 */
.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}
.nav-link.active::after {
  width: 100%;
}

/* トップページ「詳しく見る」リンク */
.section-more {
  text-align: center;
  margin-top: var(--space-group);
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}
.more-link:hover { gap: 8px; }

/* サブページ共通セクション */
.sub-section {
  padding: var(--space-section) 0;
}
.sub-section:nth-child(even) {
  background: var(--bg-alt);
}

/* 理念・ミッション */
.philosophy-content {
  display: flex;
  gap: 48px;
  align-items: center;
}
.philosophy-text {
  flex: 1;
}
.philosophy-text h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}
.philosophy-text p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.philosophy-image {
  flex: 0 0 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.philosophy-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* 沿革タイムライン */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-text {
  font-size: var(--text-body);
  color: var(--text);
}

/* 校舎案内 */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.facility-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.facility-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.facility-card-body {
  padding: 20px;
}
.facility-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.facility-card-body p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer p {
  padding: 0 0 20px;
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
}

/* お問い合わせフォーム */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group label .required {
  color: var(--primary);
  font-size: 12px;
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--text-body);
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* アクセス情報 */
.access-info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.access-info h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 24px;
}
.access-table {
  width: 100%;
}
.access-table tr {
  border-bottom: 1px solid var(--border);
}
.access-table th {
  padding: 12px 16px 12px 0;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  width: 100px;
}
.access-table td {
  padding: 12px 0;
  font-size: var(--text-small);
  color: var(--text-muted);
}
.map-placeholder {
  width: 100%;
  height: 240px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-small);
  margin-top: 24px;
}

/* 成績向上データ */
.data-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.data-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.data-card .data-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.data-card .data-label {
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* カリキュラム詳細 */
.curriculum-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.curriculum-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.curriculum-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.curriculum-item p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
}

/* Phase 3 Responsive */
@media (max-width: 1024px) {
  .philosophy-content { flex-direction: column; }
  .philosophy-image { flex: none; width: 100%; }
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr; }
  .data-cards { grid-template-columns: 1fr; }
  .curriculum-list { grid-template-columns: 1fr; }
}
