:root {
  /* Color Palette based on 8x9.jp */
  --color-primary: #6DCB2A;       /* Vibrant Green for CTA */
  --color-primary-hover: #5cb520;
  --color-accent: #FFFF78;        /* Yellow for CTA Text */
  --color-text-main: #000000;
  --color-text-light: #555555;
  --color-bg-body: #ffffff;
  --color-bg-light: #f9f9f9;
  --color-bg-dark: #333333; /* For footer or contrast sections */
  
  /* Additional thematic colors */
  --color-minecraft-green: #568e2e; /* Subtle nod to Minecraft */
  --color-tech-blue: #007bff; /* Tech/Professional accent */

  /* Typography */
  --font-main: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --container-width: 1000px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-accent); /* Yellow text as per 8x9.jp */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: flex-end; /* Align nav to right since logo is absolute */
  align-items: center;
  position: relative; /* Anchor for absolute logo */
}

.logo-link {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0; /* Aligned tight to top */
  left: 0; /* Aligned tight to left */
  z-index: 2000; /* Ensure it floats above everything */
}

.logo-img {
  height: 212px; /* Decreased by ~15% from 250px (250 * 0.85 = 212.5) */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1)); /* Add subtle shadow for overlay contrast */
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

header nav a {
  font-size: 0.95rem;
  font-weight: 500;
}

.header-cta {
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  padding: 80px 0 20px;
  text-align: center;
}

.hero-video-wrapper {
  width: 100%;
  overflow: hidden;
}

.hero-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

.hero-text h1 {
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  color: var(--color-text);
}

.hero-text p {
  color: var(--color-text-light);
  margin: 0 0 20px;
  font-weight: 500;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.school-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: var(--color-text-light);
}

/* Section Common */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Features / Curriculum */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
  border-top: 5px solid var(--color-primary);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  margin: 20px 0 15px;
  font-size: 1.4rem;
}

/* Founder / Philosophy */
.founder-section {
  background-color: var(--color-bg-light);
}

.founder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.founder-text {
  max-width: 700px;
}

/* System (Growth, Calendar, etc) */
.system-section {
  text-align: center;
}

.embed-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  background: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
}

.iframe-placeholder {
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border: 2px dashed #aaa;
}

/* Contact */
.contact-section {
  background-color: #f4fbf2; /* Very light green tint */
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--color-bg-dark);
  color: white;
  padding: 40px 0;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  header nav {
    display: none; /* Simple mobile hide for MVP, ideally hamburger */
  }
  
  header .container {
    justify-content: center;
  }

  .logo-img {
    height: 100px; /* Reduce logo size on mobile */
  }
  
  .logo-link {
    /* Keep it top-left but ensure it doesn't block too much content */
    padding-right: 10px; 
    padding-bottom: 5px;
  }
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.faq-question {
  background: #fdfdfd;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #eee;
}

.faq-icon {
  background: var(--color-primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text-main);
}

.faq-answer {
  padding: 20px;
  display: flex;
  gap: 15px;
  line-height: 1.6;
}

.faq-icon-a {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}
