/* ============================================
 Design Tokens — Japanese-Inspired
 ============================================ */
:root {
  /* 朱色 Vermillion — warm accent, not shocking */
  --aka: #c4533a;
  --aka-light: #d4735e;
  --aka-bg: #fdf0ed;

  /* 藍 Indigo — trust, depth */
  --ai: #2d4a7a;
  --ai-light: #3d6098;
  --ai-dark: #1e3354;

  /* 金茶 Gold — CTA, warmth */
  --kincha: #c49a6c;
  --kincha-dark: #a8804e;
  --kincha-light: #d4b48c;

  /* 生成り Cream — background sections */
  --kinari: #f7f3ed;

  /* 白練 Off-white — page bg */
  --shironeri: #fdfbf7;

  /* 墨 Ink — body text */
  --sumi: #2c2c2c;
  --sumi-light: #5a5a5a;
  --sumi-lighter: #8a8a8a;

  /* 藤 Wisteria — subtle accent */
  --fuji: #8b7eb8;

  /* Neutrals */
  --gray-200: #e5e1da;
  --gray-100: #f0ece5;
  --white: #ffffff;

  /* Typography */
  --font-heading: "Baloo 2", "Noto Sans JP", sans-serif;
  --font-body:
    "Nunito Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    sans-serif;
  --max-width: 1120px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 44, 44, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 10px 24px rgba(44, 44, 44, 0.1);
  --shadow-xl: 0 20px 40px rgba(44, 44, 44, 0.12);
}

/* ============================================
 Reset & Base
 ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--sumi);
  line-height: 1.6;
  background: var(--shironeri);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  touch-action: manipulation;
}

/* ============================================
 Utility
 ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ai);
  background: rgba(45, 74, 122, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ai-dark);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--sumi-light);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
 Buttons
 ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  text-decoration: none;
  line-height: 1;
  touch-action: manipulation;
}
.btn:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--kincha);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 4px 14px rgba(196, 154, 108, 0.35);
}
.btn-primary:hover {
  background: var(--kincha-dark);
  box-shadow: 0 6px 20px rgba(196, 154, 108, 0.45);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--white);
  color: var(--ai);
  padding: 0.875rem 1.75rem;
  border: 2px solid var(--ai);
}
.btn-secondary:hover {
  background: rgba(45, 74, 122, 0.04);
}

/* ============================================
 Header
 ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ai);
  letter-spacing: -0.01em;
}
.header-logo span {
  color: var(--aka);
}
.header .btn-primary {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.header-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.95);
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-cta.header-cta-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ============================================
 1. Hero
 ============================================ */
.hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(
    135deg,
    rgba(247, 243, 237, 0.88) 0%,
    rgba(253, 251, 247, 0.85) 50%,
    rgba(253, 240, 237, 0.88) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/didac.jpg") center/cover no-repeat;
  opacity: 0.09;
  z-index: 0;
}
.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-logo {
  margin-bottom: 1.5rem;
}
.hero-logo img {
  height: auto;
  width: min(280px, 70vw);
  margin: 0 auto;
}
.hero-hindi {
  font-size: 0.875rem;
  color: var(--aka);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ai-dark);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--aka);
}
.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--sumi-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--sumi-lighter);
}

/* ============================================
 2. Learning Materials
 ============================================ */
.materials {
  padding: 5rem 0;
  background: var(--kinari);
}
.materials-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.materials-header-text {
  flex: 0 1 auto;
}
.materials-flag {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.65;
  margin-top: 1.5rem;
  margin-left: 0.5rem;
}

.materials-gallery {
  position: relative;
}
.materials-gallery .gallery-main {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 0;
}
.anime-pairs {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: 0 1rem;
  justify-content: center;
}
.anime-pair {
  flex: 1;
  max-width: 240px;
  position: relative;
  height: 160px;
}
.anime-pair img {
  position: absolute;
  width: 75%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--white);
  transition: transform 0.3s ease;
}
.anime-pair img:first-child {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-4deg);
}
.anime-pair img:last-child {
  top: 1rem;
  left: 30%;
  z-index: 2;
  transform: rotate(3deg);
}

/* ============================================
 3. Class & Teacher
 ============================================ */
.class-teacher {
  padding: 5rem 0;
  background: var(--white);
}
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
.feature-block.reverse {
  direction: rtl;
}
.feature-block.reverse > * {
  direction: ltr;
}
.feature-images {
  display: grid;
  gap: 1rem;
}
.feature-images img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.feature-points {
  list-style: none;
}
.feature-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sumi);
}
.feature-points li:last-child {
  border-bottom: none;
}
.feature-points .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(45, 74, 122, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.feature-points .icon svg {
  width: 16px;
  height: 16px;
  color: var(--ai);
}

/* ============================================
 4. Testimonials
 ============================================ */
.testimonials {
  padding: 5rem 0;
  background: var(--kinari);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}
.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: var(--kincha);
  fill: var(--kincha);
}
.testimonial-card blockquote {
  font-size: 0.9375rem;
  color: var(--sumi);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 74, 122, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ai);
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ai-dark);
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--sumi-lighter);
}
.testimonial-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--sumi-lighter);
  font-style: italic;
}

/* ============================================
 7. FAQ
 ============================================ */
.faq {
  padding: 5rem 0;
  background: var(--white);
}
.faq-list {
  max-width: 720px;
  margin: 2.5rem auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ai-dark);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: var(--aka);
}
.faq-question:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 2px;
}
.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--sumi-lighter);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--aka);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--sumi-light);
  line-height: 1.7;
}

/* ============================================
 8. Final CTA
 ============================================ */
.final-cta {
  padding: 5rem 0;
  background: var(--kinari);
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ai-dark);
  margin-bottom: 0.75rem;
}
.final-cta > .container > p {
  font-size: 1.0625rem;
  color: var(--sumi-light);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 52rem;
  margin: 0 auto;
}
.final-cta-card {
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.final-cta-card.highlighted {
  border: 2px solid var(--ai);
  box-shadow: 0 4px 24px rgba(45, 74, 122, 0.12);
  position: relative;
}
.final-cta-card-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ai);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.final-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ai-dark);
  margin: 0;
}
.final-cta-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ai-dark);
  line-height: 1.1;
}
.final-cta-card .price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sumi-light);
}
.final-cta-card .price-free {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ai);
  line-height: 1.1;
}
.final-cta-card .card-desc {
  font-size: 0.9375rem;
  color: var(--sumi-light);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}
.final-cta-card .btn {
  margin-top: auto;
}

/* ============================================
 Footer
 ============================================ */
.footer {
  padding: 2.5rem 0;
  background: var(--ai-dark);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo img {
  height: 36px;
  width: auto;
  opacity: 0.85;
}
.footer-text {
  text-align: right;
}
.footer-text a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}
.footer-text a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
 Responsive
 ============================================ */
@media (max-width: 1024px) {
  .feature-block {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-block.reverse {
    direction: ltr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .materials-flag {
    width: 70px;
  }
  .feature-images img {
    height: 220px;
  }
  .anime-pairs {
    margin-top: 0.5rem;
    padding: 0 0.5rem;
    gap: 0.75rem;
  }
  .anime-pair {
    height: 120px;
    max-width: 180px;
  }
  .anime-pair img {
    width: 70%;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-text {
    text-align: center;
  }
}

@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
