@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #5B7553;
  --green-light: #8FA880;
  --green-pale: #b8ccb0;
  --bg: #F5F1EB;
  --bg-white: #FFFFFF;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
  --accent: #e8a838;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(91,117,83,0.10);
  --shadow-hover: 0 12px 40px rgba(91,117,83,0.18);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--green-light); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,241,235,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91,117,83,0.08);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(91,117,83,0.10);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--green);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.3s;
}

.nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem !important;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--green-light) !important; transform: translateY(-2px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #5B7553 0%, #7a9a6e 30%, #8FA880 55%, #a8c49c 80%, #c5ddb8 100%);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-1 {
  width: 400px; height: 400px;
  background: #c5ddb8;
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px; height: 300px;
  background: #f0e6c0;
  bottom: -80px; right: -50px;
  animation-delay: -4s;
  animation-duration: 15s;
}

.blob-3 {
  width: 250px; height: 250px;
  background: #fff;
  top: 40%; left: 60%;
  animation-delay: -8s;
  animation-duration: 18s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.hero h1 em {
  font-style: normal;
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  opacity: 0.9;
  margin-top: 8px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  color: #fff;
}

.hero-stat .num {
  font-size: 2.2rem;
  font-weight: 900;
  display: block;
  line-height: 1.2;
}

.hero-stat .label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--green);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  color: var(--green);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s, transform 0.3s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  color: #fff;
}

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

.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 56px;
}

.text-center { text-align: center; }

/* ===== Promise Section (ひまわりの約束) ===== */
.promise { background: var(--bg); }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.promise-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.promise-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.promise-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.promise-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(91,117,83,0.1), rgba(143,168,128,0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  animation: breatheGlow 4s ease-in-out infinite;
}

@keyframes breatheGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,117,83,0.08); }
  50% { box-shadow: 0 0 20px 8px rgba(91,117,83,0.12); }
}

.promise-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.promise-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== About Section (教室のこと) ===== */
.about {
  background: var(--bg-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-illustration {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--green-pale) 0%, rgba(143,168,128,0.3) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-illustration::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(91,117,83,0.08);
  border-radius: 50%;
  animation: blobFloat 10s ease-in-out infinite;
}

.about-emoji-scene {
  font-size: 4rem;
  z-index: 1;
  display: flex;
  gap: 12px;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  padding: 16px 20px;
  border-radius: 14px;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.about-feature span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Courses Section ===== */
.courses { background: var(--bg); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.course-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.course-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.course-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

.course-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.course-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 12px;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.course-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
}

.course-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

.course-details {
  list-style: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(91,117,83,0.1);
}

.course-details li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-details li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Progress Ring Stats ===== */
.stats-section {
  background: linear-gradient(160deg, var(--green), var(--green-light));
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
  color: #fff;
}

.progress-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 6;
}

.progress-ring-fill {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s ease-out;
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
}

.stat-card .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===== Testimonials (保護者の声) ===== */
.testimonials { background: var(--bg-white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
}

.testimonial-detail {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ===== Director (教室長より) ===== */
.director { background: var(--bg); }

.director-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.director-visual {
  text-align: center;
}

.director-avatar {
  width: 200px;
  height: 200px;
  background: linear-gradient(160deg, var(--green), var(--green-light));
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(91,117,83,0.2);
}

.director-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--green);
}

.director-title {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

.director-text h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 24px;
  line-height: 1.5;
}

.director-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 2;
}

.director-signature {
  margin-top: 28px;
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
}

/* ===== CTA Section (まずは体験から) ===== */
.cta-section {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-light) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -150px; right: -100px;
  animation: blobFloat 12s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #fff;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-info {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

.cta-info a {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: block;
  margin-top: 4px;
}

/* ===== Info Section ===== */
.info-section { background: var(--bg-white); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-table {
  width: 100%;
}

.info-table tr {
  border-bottom: 1px solid rgba(91,117,83,0.08);
}

.info-table tr:last-child { border-bottom: none; }

.info-table th {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  padding: 12px 0;
  width: 100px;
  vertical-align: top;
}

.info-table td {
  font-size: 0.85rem;
  color: var(--text);
  padding: 12px 0;
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--green-pale), rgba(143,168,128,0.3));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 700;
  margin-top: 20px;
}

/* ===== Footer ===== */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer p, .footer li {
  font-size: 0.85rem;
  line-height: 2;
}

.footer ul { list-style: none; }

.footer a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}

.footer a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spring pop for cards */
@keyframes springPop {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  60% { transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Mobile Nav Overlay ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245,241,235,0.97);
  backdrop-filter: blur(12px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-overlay.active { display: flex; }

.nav-overlay a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .promise-grid { grid-template-columns: 1fr; max-width: 400px; margin: 48px auto 0; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .courses-grid { grid-template-columns: 1fr; max-width: 450px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .director-content { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .director-text { text-align: left; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .hero { min-height: auto; padding: 140px 24px 80px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.8rem; }

  section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .header-inner { height: 60px; }
  .logo { font-size: 1.05rem; }
  .logo-icon { width: 34px; height: 34px; font-size: 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; max-width: 300px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .progress-ring-wrap { width: 100px; height: 100px; }
}
