/* ============================================================
   はなの芽 — 教室紹介ページ専用 CSS
   page-about.php
   トップページ／教室案内ページのデザイン仕様（カラーパレット・フォント・装飾）を流用し、
   教室紹介に固有のセクション
   （ヒーロー / 想い / 特徴 / 変化 / 生徒さんの声 / 教室名の意味 / CTA）の
   スタイルを追加する。
   ============================================================ */


/* ============================================================
   SWELL コンテナの幅制約を解除（フルワイド表示にするため）
   ============================================================ */
body.page-template-page-about #content.l-content {
  max-width: none;
  padding: 0;
}

body.page-template-page-about #content.l-content > .l-mainContent,
body.page-template-page-about #content.l-content > .l-sidebar {
  max-width: none;
  padding: 0;
  margin: 0;
}

body.page-template-page-about .page-about-main {
  margin: 0;
  padding: 0;
}

/* SWELL のページタイトル・パンくずを非表示にする（独自ヒーローを使うため） */
body.page-template-page-about .p-pageTitle,
body.page-template-page-about .l-topTitleArea,
body.page-template-page-about .c-pageTitle,
body.page-template-page-about #breadcrumb,
body.page-template-page-about .p-breadcrumb {
  display: none;
}


/* ============================================================
   PAGE HERO（class.css と同等のスタイル）
   ============================================================ */
.page-hero {
  position: relative;
  padding: 80px 24px 64px;
  background:
    radial-gradient(ellipse at top right, rgba(247, 214, 224, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(232, 245, 226, 0.7) 0%, transparent 55%),
    var(--bg-cream);
  overflow: hidden;
  text-align: center;
}

.page-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-breadcrumb {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.page-breadcrumb a {
  color: var(--green-accent);
  font-weight: 500;
  transition: opacity 0.2s;
}
.page-breadcrumb a:hover { opacity: 0.7; }
.page-breadcrumb__sep { margin: 0 8px; opacity: 0.5; }

.page-hero__heading { margin-bottom: 24px; }
.page-hero__heading .en {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 10px;
}
.page-hero__title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--green-accent);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0;
}
.page-hero__heading .line {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--green-mid);
  margin: 18px auto 0;
  border-radius: 2px;
}

.page-hero__lead {
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 2.1;
  color: var(--text-main);
  max-width: 600px;
  margin: 0 auto;
}

/* ヒーロー装飾：蝶と花 */
.page-hero__deco-butterfly {
  top: 70px;
  right: 8%;
  animation: floatButterfly 6s ease-in-out infinite;
}
.page-hero__deco-flower {
  bottom: 30px;
  left: 6%;
  animation: floatY 7s ease-in-out infinite;
  opacity: 0.85;
}


/* ============================================================
   セクション共通レイアウト
   ============================================================ */
.section-story,
.section-features,
.section-transform,
.section-voice,
.section-name-meaning {
  padding: clamp(60px, 9vw, 100px) 24px;
  position: relative;
}
.about-container {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-accent);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  font-family: var(--font-en);
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 700;
  color: var(--green-accent);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 0 0 40px;
}


/* ============================================================
   SECTION — 教室の想い（story）
   ============================================================ */
.section-story {
  background: var(--white);
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.story-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--green-light);
  position: relative;
  box-shadow: var(--shadow-card);
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-name-origin {
  margin-bottom: 20px;
}
.story-name-origin .origin-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-accent);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  font-family: var(--font-en);
  display: block;
}
.story-name-origin h2 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 700;
  color: var(--green-accent);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.story-origin-text {
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--text-main);
  margin-bottom: 32px;
}

.story-divider {
  width: 40px;
  height: 1px;
  background: var(--green-base);
  margin-bottom: 32px;
}

.story-philosophy h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-accent);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.story-philosophy p {
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--text-main);
}
.story-philosophy p + p {
  margin-top: 16px;
}


/* ============================================================
   SECTION — 特徴（features）
   ============================================================ */
.section-features {
  background: var(--green-light);
  overflow: hidden;
}
.section-features::before {
  content: '';
  position: absolute;
  top: 18%; left: -10%;
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 102, 0.28) 0%, transparent 60%);
  pointer-events: none;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 2;
}

.feature-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(139, 197, 139, 0.4);
  align-items: start;
}
.feature-item:first-child {
  border-top: 1px solid rgba(139, 197, 139, 0.4);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.feature-icon.icon-1 { background: var(--white); }
.feature-icon.icon-2 { background: var(--yellow-warm); }
.feature-icon.icon-3 { background: var(--pink-soft); }
.feature-icon.icon-4 { background: var(--green-base); }

.feature-content h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-accent);
  line-height: 1.55;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.feature-content p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--text-main);
  max-width: 560px;
}


/* ============================================================
   SECTION — 教室での変化（transform）
   ============================================================ */
.section-transform {
  background: var(--white);
}

/* features → transform 間の蝶リレー装飾 */
.about-butterfly-relay {
  position: absolute;
  top: -38px;
  right: 8%;
  width: 78px;
  height: 78px;
  pointer-events: none;
  z-index: 3;
  animation: floatButterfly 7s ease-in-out infinite;
}

.transform-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.transform-content h2 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 700;
  color: var(--green-accent);
  line-height: 1.65;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}
.transform-content .lead-text {
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--text-main);
  margin-bottom: 28px;
}

.transform-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.transform-point {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease-out;
}
.transform-point:hover { transform: translateX(4px); }

.transform-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: var(--shadow-soft);
}
.transform-point-icon svg {
  width: 16px; height: 16px;
  stroke: var(--green-accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transform-point-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-main);
}
.transform-point-text strong {
  color: var(--green-accent);
  font-weight: 700;
}

.transform-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--green-light);
  box-shadow: var(--shadow-card);
}
.transform-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   SECTION — 生徒さんの声（voice）
   ============================================================ */
.section-voice {
  background: var(--yellow-warm);
  overflow: hidden;
}
.section-voice::before {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 214, 224, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.voice-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
  border: 1px solid rgba(232, 160, 184, 0.25);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}
.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(90, 158, 90, 0.15);
}

.voice-card::before {
  content: '"';
  position: absolute;
  top: 14px; left: 24px;
  font-family: var(--font-accent);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--green-mid);
  opacity: 0.35;
}

.voice-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 2;
  color: var(--text-main);
  margin: 18px 0 18px;
  position: relative;
  z-index: 2;
  min-height: 110px;
}

.voice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--green-base);
}
.voice-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.voice-info .voice-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-accent);
}
.voice-info .voice-detail {
  font-size: 0.74rem;
  color: var(--text-sub);
}

.voice-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-sub);
}


/* ============================================================
   SECTION — 教室名の意味（name-meaning）
   ============================================================ */
.section-name-meaning {
  background: var(--bg-cream);
  text-align: center;
  overflow: hidden;
}

.name-meaning-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.name-meaning-icon {
  font-size: 2rem;
  margin-bottom: 18px;
}

.name-meaning-quote {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 500;
  color: var(--green-accent);
  line-height: 2;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.name-meaning-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 2;
}

/* 装飾の花（左右） */
.section-name-meaning__deco-left,
.section-name-meaning__deco-right {
  width: 88px;
  height: 88px;
}
.section-name-meaning__deco-left {
  top: 40px;
  left: 6%;
  animation: floatY 8s ease-in-out infinite;
  opacity: 0.7;
}
.section-name-meaning__deco-right {
  bottom: 40px;
  right: 6%;
  animation: floatY 7.5s ease-in-out infinite reverse;
  opacity: 0.7;
}


/* ============================================================
   ABOUT CTA（page-class.php の section-cta-class と同パターン）
   ============================================================ */
.about-cta {
  padding: clamp(60px, 9vw, 100px) 24px;
  background:
    radial-gradient(ellipse at top, rgba(255, 217, 102, 0.3) 0%, transparent 60%),
    var(--green-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-cta__icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.about-cta__heading {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--green-accent);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.about-cta__text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.95;
  margin-bottom: 30px;
}

.about-cta__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story-image {
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
  }

  .feature-item {
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 26px 0;
  }
  .feature-icon { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; }

  .transform-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .transform-image {
    order: 2;
    max-width: 480px;
    margin: 0 auto;
  }

  .voice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .voice-text { min-height: auto; }

  .page-hero__deco-butterfly { width: 64px; height: 64px; top: 60px; right: 4%; }
  .page-hero__deco-flower { width: 70px; height: 70px; bottom: 20px; left: 3%; }

  .about-butterfly-relay { width: 60px; height: 60px; right: 6%; top: -30px; }
  .section-name-meaning__deco-left,
  .section-name-meaning__deco-right { width: 64px; height: 64px; }
}

@media (max-width: 600px) {
  .feature-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-icon { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 12px; }

  .voice-card { padding: 28px 22px 24px; }

  .about-cta__btns { flex-direction: column; }
  .about-cta__btns a { width: 100%; }
}
