/* ============================================================
   はなの芽 — Top Page Styles
   Hero, About, Classrooms
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--yellow-warm) 50%, var(--pink-soft) 100%);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 70px;
  overflow: hidden;
}

/* Gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 217, 102, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 197, 139, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Decoration images in hero */
.hero .deco-float {
  width: clamp(80px, 13vw, 124px);
  height: auto;
}

.hero .deco-butterfly-1 {
  top: 12%;
  left: 6%;
  animation: floatButterfly 6s infinite ease-in-out;
}

.hero .deco-ladybug-1 {
  bottom: 18%;
  right: 8%;
  width: clamp(62px, 9vw, 88px);
  animation: ladybugWalk 4s infinite ease-in-out;
}

.hero .deco-flower-1 {
  top: 58%;
  left: 4%;
  animation: floatY 5s infinite ease-in-out;
}

.hero .deco-flower-2 {
  top: 18%;
  right: 5%;
  width: clamp(66px, 11vw, 97px);
  animation: floatY 7s infinite ease-in-out 1s;
}

/* Hero photo area */
.hero-photo-area {
  position: relative;
  width: clamp(200px, 40vw, 260px);
  height: clamp(200px, 40vw, 260px);
  margin-bottom: 28px;
  animation: scaleIn 1s ease-out 0.2s both;
  z-index: 3;
}

.hero-photo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--green-mid);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-area .deco-ladybug-photo {
  position: absolute;
  bottom: -10px;
  right: -20px;
  width: 62px;
  height: auto;
  animation: ladybugWalk 5s infinite ease-in-out 0.5s;
  z-index: 6;
}

/* Catch copy */
.hero-catch {
  font-family: var(--font-accent);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--green-accent);
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 3;
}

.hero-catch-jp {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
  position: relative;
  z-index: 3;
  line-height: 1.6;
}

.hero-catch-jp .emoji {
  font-size: 1.4em;
  display: inline-block;
  animation: wiggle 2s infinite ease-in-out;
}

.hero-friendly {
  font-size: clamp(0.92rem, 2.5vw, 1.15rem);
  color: var(--text-sub);
  max-width: 520px;
  line-height: 1.9;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  position: relative;
  z-index: 3;
}

.hero-btn-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
  position: relative;
  z-index: 3;
}

/* Petal scatter effect */
.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-petals .petal {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: petalFall linear infinite;
}

.hero-petals .petal:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; background: rgba(247, 214, 224, 0.5); }
.hero-petals .petal:nth-child(2) { left: 25%; animation-duration: 10s; animation-delay: 1s; background: rgba(255, 217, 102, 0.4); width: 22px; height: 22px; }
.hero-petals .petal:nth-child(3) { left: 45%; animation-duration: 9s; animation-delay: 3s; background: rgba(212, 237, 203, 0.5); }
.hero-petals .petal:nth-child(4) { left: 65%; animation-duration: 11s; animation-delay: 2s; background: rgba(247, 214, 224, 0.4); width: 18px; height: 18px; }
.hero-petals .petal:nth-child(5) { left: 80%; animation-duration: 7s; animation-delay: 4s; background: rgba(255, 217, 102, 0.5); }
.hero-petals .petal:nth-child(6) { left: 90%; animation-duration: 12s; animation-delay: 0.5s; background: rgba(212, 237, 203, 0.4); width: 30px; height: 30px; }

/* ============================================================
   ABOUT
   ============================================================ */
.section-about {
  padding: 70px 20px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.section-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green-light), var(--yellow-accent), var(--pink-soft), var(--green-light));
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.about-card {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.about-card:hover {
  transform: translateY(-3px);
}

.about-card--yellow {
  background: var(--yellow-warm);
}

.about-card--pink {
  background: var(--pink-soft);
  background: rgba(247, 214, 224, 0.6);
}


.about-card__photo {
  flex-shrink: 0;
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-soft);
  display: block;
  margin: 0 auto;
}

.about-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.about-card:hover .about-card__photo img {
  transform: scale(1.08);
}

.about-card__content {
  flex: 1;
  min-width: 0;
}

.about-card__content h3 {
  font-size: 1.1rem;
  color: var(--green-accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.about-card__content p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-main);
  text-align: left;
}

/* ============================================================
   CLASSROOMS
   ============================================================ */
.section-classrooms {
  padding: 70px 20px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--green-light) 100%);
  position: relative;
}

.section-classrooms .deco-butterfly-section {
  top: 40px;
  left: 20px;
  width: clamp(32px, 5vw, 44px);
  animation: floatButterfly 8s infinite ease-in-out 2s;
}

.classroom-cards {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.classroom-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s;
}

.classroom-card:hover {
  transform: translateY(-4px);
}

.classroom-card__img {
  height: 180px;
  background: var(--green-base);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.classroom-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.classroom-card__img--warm {
  background: var(--yellow-warm);
}

.classroom-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green-accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  font-family: var(--font-en);
  letter-spacing: 0.03em;
  z-index: 2;
}

.classroom-card__badge--orange {
  background: var(--orange-warm);
}

.classroom-card__body {
  padding: 20px;
}

.classroom-card__en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

.classroom-card__body h3 {
  font-size: 1.1rem;
  color: var(--green-accent);
  margin-bottom: 8px;
}

.classroom-card__info {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.7;
}

.classroom-card__info-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.classroom-card__info-icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.classroom-card__qr {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--yellow-warm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--brown-soft);
  text-align: center;
  line-height: 1.5;
}

.classrooms-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-sub);
  max-width: 560px;
  margin: 24px auto 0;
  line-height: 1.7;
}

/* ============================================================
   Responsive — Tablet (600px+)
   ============================================================ */
@media (min-width: 600px) {
  .classroom-cards {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .about-card {
    padding: 32px 20px;
  }

  .hero-btn-group {
    flex-direction: row;
  }
}

/* ============================================================
   Responsive — Desktop (960px+)
   ============================================================ */
@media (min-width: 960px) {
  .hero {
    min-height: 90vh;
    padding: 60px 24px 80px;
  }

  .section-about {
    padding: 90px 24px;
  }

  .section-classrooms {
    padding: 90px 24px;
  }

  .about-grid {
    gap: 28px;
  }

  .about-card__photo {
    width: 180px;
    height: 180px;
  }
}
