/* ============================================
   CSS Variables
   ============================================ */
:root {
  --primary: #EA580C;
  --primary-dark: #C2410C;
  --primary-light: #FFF7ED;
  --accent: #FFF7ED;
  --bg: #FFFFFF;
  --bg-alt: #FFFBF5;
  --text: #1C1917;
  --text-muted: #78716C;
  --text-light: #A8A29E;
  --border: #E7E5E4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --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);
}

/* ============================================
   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; }
ul { list-style: none; }

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

/* Animations */
.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); }
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-on-scroll.visible .stagger-item { 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; }
.animate-on-scroll.visible .stagger-item:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(234,88,12,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234,88,12,0.35);
  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: 700;
  border: 2px solid var(--primary);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   Section Headings
   ============================================ */
.section-header { text-align: center; margin-bottom: var(--space-group); }
.section-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.3;
  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;
}

/* ============================================
   Header
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.logo span { color: var(--text); }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.desktop-nav a {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.desktop-nav a:hover { color: var(--primary); }
.header-cta { padding: 10px 24px !important; font-size: var(--text-small) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1001;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  transition: right 0.3s ease;
  z-index: 1002;
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
}
.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 .btn-primary { margin-top: 24px; text-align: center; justify-content: center; }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 50%, #FEF3C7 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(234,88,12,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.hero-text { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  font-size: var(--text-small);
  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;
  margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--primary); }
.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Form */
.hero-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.hero-form-title {
  font-size: var(--text-h3);
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}
.hero-form-sub {
  font-size: var(--text-small);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .required { color: #EF4444; margin-left: 4px; font-size: 12px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #A8A29E; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { margin-top: 20px; }
.form-submit .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }
.form-note { font-size: var(--text-caption); color: var(--text-light); text-align: center; margin-top: 12px; }

/* ============================================
   Problems
   ============================================ */
.problems { padding: var(--space-section) 0; background: var(--bg); }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.problem-card {
  padding: 28px 24px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  text-align: center;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.problem-icon {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}
.problem-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

/* ============================================
   Features
   ============================================ */
.features { padding: var(--space-section) 0; background: var(--bg-alt); }
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-card.reverse {
  direction: rtl;
}
.feature-card.reverse > * {
  direction: ltr;
}
.feature-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-img-wrap img {
  transform: scale(1.05);
}
.feature-body { padding: 12px 0; }
.feature-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 12px;
}
.feature-title {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   Instructors
   ============================================ */
.instructors { padding: var(--space-section) 0; background: var(--bg); }
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.instructor-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}
.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.instructor-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  position: relative;
  border: 3px solid var(--primary-light);
}
.instructor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instructor-flag {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 24px;
  background: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.instructor-name {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 4px;
}
.instructor-origin {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: 16px;
}
.instructor-desc {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.instructor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.instructor-tags span {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: var(--text-caption);
  font-weight: 700;
  border-radius: 100px;
}

/* ============================================
   Reviews
   ============================================ */
.reviews { padding: var(--space-section) 0; background: var(--bg-alt); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  color: #FBBF24;
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.review-name { font-size: var(--text-small); font-weight: 700; }
.review-meta { font-size: var(--text-caption); color: var(--text-muted); }

/* ============================================
   Pricing
   ============================================ */
.pricing { padding: var(--space-section) 0; background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.popular { border-color: var(--primary); }
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 100px;
  font-size: var(--text-caption);
  font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: var(--text-h3); font-weight: 700; text-align: center; margin-bottom: 8px; }
.pricing-desc { font-size: var(--text-small); color: var(--text-muted); text-align: center; margin-bottom: 20px; }
.pricing-price { text-align: center; margin-bottom: 16px; }
.pricing-amount { font-size: 36px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.pricing-unit { font-size: var(--text-small); color: var(--text-muted); }
.pricing-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-feature { display: flex; align-items: center; gap: 10px; font-size: var(--text-small); }
.pricing-feature svg { flex-shrink: 0; color: var(--primary); }

/* ============================================
   FAQ
   ============================================ */
.faq-section { padding: var(--space-section) 0; background: var(--bg-alt); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
  line-height: 1.6;
}
.faq-question:hover { color: var(--primary); }
.faq-question svg { flex-shrink: 0; transition: transform 0.3s; margin-left: 16px; }
.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: 200px; }
.faq-answer p { padding: 0 0 20px; font-size: var(--text-small); color: var(--text-muted); line-height: 1.8; }

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, #C2410C 0%, var(--primary) 50%, #F97316 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section .section-label { color: rgba(255,255,255,0.7); }
.cta-section .section-title { color: #fff; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.85); }
.cta-form-wrap {
  max-width: 640px;
  margin: 40px auto 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  text-align: left;
}
.cta-form-wrap .form-label { color: rgba(255,255,255,0.9); }
.cta-form-wrap .form-input,
.cta-form-wrap .form-select,
.cta-form-wrap .form-textarea {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.cta-form-wrap .form-input:focus,
.cta-form-wrap .form-select:focus,
.cta-form-wrap .form-textarea:focus {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.cta-form-wrap .form-input::placeholder,
.cta-form-wrap .form-textarea::placeholder { color: rgba(255,255,255,0.4); }
.cta-form-wrap .form-select option { color: var(--text); background: #fff; }
.cta-form-wrap .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.cta-form-wrap .btn-primary:hover { background: rgba(255,255,255,0.9); }
.cta-form-wrap .form-note { color: rgba(255,255,255,0.5); }

/* ============================================
   Footer
   ============================================ */
footer {
  background: #1C1917;
  color: #A8A29E;
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: var(--text-small); line-height: 1.8; color: #78716C; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A8A29E;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: var(--text-small); font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: #78716C; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: var(--text-caption);
  color: #57534E;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #57534E; transition: color 0.2s; }
.footer-links a:hover { color: #A8A29E; }

/* 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); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-form-wrap { max-width: 480px; margin: 0 auto; }
  .feature-card { grid-template-columns: 1fr; gap: 32px; }
  .feature-card.reverse { direction: ltr; }
  .instructors-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: clamp(28px, 7vw, 36px); }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-form-wrap { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .problems-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { grid-template-columns: 1fr; gap: 24px; }
  .instructors-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .reviews-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .problems-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}
