/* ============================================================
   ECCジュニア 緑町3丁目教室 — 共通スタイル
   ============================================================ */

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

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

:root {
  --green:        #27AE60;
  --green-light:  #2ECC71;
  --green-dark:   #1e8449;
  --green-pale:   #e8f8f0;
  --green-pale2:  #f0fbf4;
  --orange:       #FF8C00;
  --orange-light: #FFA533;
  --text:         #2c3e50;
  --text-muted:   #7f8c8d;
  --bg:           #fffef9;
  --white:        #ffffff;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow:       0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.15);
  --radius:       20px;
  --radius-sm:    10px;
  --tr:           0.3s ease;

  /* ---- Pop / Neo-brutalist palette ---- */
  --pop-red:    #e63333;
  --pop-yellow: #f5c518;
  --pop-blue:   #2563eb;
  --pop-purple: #7c3aed;
  --pop-orange: #f97316;
  --ink:        #1a1a1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

.logo { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.logo-main { font-size: 1.05rem; font-weight: 900; color: var(--green-dark); }
.logo-sub  { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

.main-nav ul { display: flex; list-style: none; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 12px;
  font-size: 0.85rem; font-weight: 700; color: var(--text);
  border-radius: 50px; white-space: nowrap;
  transition: all var(--tr);
}
.main-nav a:hover { color: var(--green); background: var(--green-pale); }

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 8px;
  background: none; border: none; cursor: pointer; border-radius: var(--radius-sm);
}
.hamburger-btn span {
  display: block; width: 100%; height: 3px;
  background: var(--text); border-radius: 3px;
  transition: all var(--tr);
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 72px 0 0 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 999; overflow-y: auto; padding: 12px 16px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a {
  display: block; padding: 15px 20px;
  font-size: 1rem; font-weight: 700; color: var(--text);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid #f0f0f0;
  transition: all var(--tr);
}
.mobile-menu a:hover { color: var(--green); background: var(--green-pale); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #1a2535; color: #b0bec5; padding: 56px 24px 24px; }

.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}

.footer-brand-name { font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer-brand p    { font-size: 0.88rem; line-height: 1.8; margin-bottom: 4px; }
.footer-brand a    { color: #81c784; transition: color var(--tr); }
.footer-brand a:hover { color: #fff; }

.footer-socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-socials a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: rgba(255,255,255,0.08);
  border-radius: 50px; font-size: 0.85rem; color: #fff; font-weight: 700;
  transition: all var(--tr);
}
.footer-socials a:hover { background: rgba(255,255,255,0.16); }

.footer-section h4 {
  color: #fff; font-size: 0.92rem; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav-list a { font-size: 0.88rem; color: #b0bec5; transition: color var(--tr); }
.footer-nav-list a:hover { color: #81c784; }

.footer-disclaimer {
  max-width: 1200px; margin: 0 auto;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-disclaimer p { font-size: 0.78rem; color: #78909c; margin-bottom: 5px; line-height: 1.6; }

.footer-copy {
  max-width: 1200px; margin: 16px auto 0;
  text-align: center; font-size: 0.78rem; color: #607d8b;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; }

.section    { padding: 88px 24px; }
.section-sm { padding: 56px 24px; }

.bg-green { background: var(--green-pale2); }
.bg-white { background: #fff; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  display: inline-block;
  background: var(--green); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-heading {
  font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1.3;
  margin-bottom: 10px;
}
.section-heading-center { text-align: center; }
.section-sub            { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 48px; }
.section-sub-center     { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px;
  font-weight: 700; font-size: 1rem; font-family: inherit;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--tr);
}
.btn-lg { padding: 17px 44px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.88rem; }

.btn-green {
  background: var(--green); color: #fff;
  box-shadow: 0 4px 20px rgba(39,174,96,0.40);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(39,174,96,0.50); }

.btn-orange {
  background: var(--orange); color: #fff;
  box-shadow: 0 4px 20px rgba(255,140,0,0.35);
}
.btn-orange:hover { background: #e07c00; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,140,0,0.45); }

.btn-line {
  background: #06C755; color: #fff;
  box-shadow: 0 4px 20px rgba(6,199,85,0.35);
}
.btn-line:hover { background: #05b04c; transform: translateY(-3px); }

.btn-outline-green {
  background: transparent; color: var(--green); border: 2px solid var(--green);
}
.btn-outline-green:hover { background: var(--green); color: #fff; transform: translateY(-3px); }

.btn-white {
  background: #fff; color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform var(--tr), box-shadow var(--tr);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ============================================================
   PAGE HERO (sub pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-light) 100%);
  color: #fff; padding: 64px 24px 72px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: rgba(255,255,255,0.05); border-radius: 50%;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -40%; right: -10%;
  width: 50%; height: 150%;
  background: rgba(255,255,255,0.04); border-radius: 50%;
}
.page-hero-icon { font-size: 3rem; margin-bottom: 12px; position: relative; z-index: 1; }
.page-hero h1   { font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; position: relative; z-index: 1; }
.page-hero p    { font-size: 1rem; opacity: 0.9; position: relative; z-index: 1; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.10s; }
.fade-up:nth-child(3) { transition-delay: 0.20s; }
.fade-up:nth-child(4) { transition-delay: 0.30s; }
.fade-up:nth-child(5) { transition-delay: 0.40s; }
.fade-up:nth-child(6) { transition-delay: 0.50s; }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion-group { margin-bottom: 40px; }

.accordion-section-title {
  font-size: 1.25rem; font-weight: 900; color: var(--green-dark);
  margin-bottom: 16px; padding: 12px 20px;
  background: var(--green-pale); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
}

.accordion-item { margin-bottom: 10px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }

.accordion-btn {
  width: 100%; padding: 18px 22px;
  background: #fff; border: none; text-align: left; cursor: pointer;
  display: flex; align-items: flex-start; gap: 12px;
  font-family: inherit; font-size: 0.97rem; font-weight: 700; color: var(--text);
  transition: all var(--tr); line-height: 1.5;
}
.accordion-btn:hover { background: var(--green-pale); }
.accordion-btn.is-open { background: var(--green); color: #fff; }

.accordion-q {
  flex-shrink: 0; margin-top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-pale); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem;
}
.accordion-btn.is-open .accordion-q { background: rgba(255,255,255,0.25); color: #fff; }

.accordion-icon { margin-left: auto; flex-shrink: 0; margin-top: 3px; transition: transform var(--tr); }
.accordion-btn.is-open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  display: none; padding: 20px 22px;
  background: #fff; border-top: 2px solid var(--green-pale);
  font-size: 0.93rem; line-height: 1.85; color: var(--text);
}
.accordion-body.is-open { display: block; }
.accordion-body ul { padding-left: 20px; margin: 8px 0; }
.accordion-body li { margin-bottom: 6px; }
.accordion-body p  { margin-bottom: 10px; }
.accordion-body p:last-child { margin-bottom: 0; }

/* ============================================================
   CTA BANNER (reusable)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-light) 100%);
  color: #fff; border-radius: var(--radius); padding: 48px 40px; text-align: center;
}
.cta-banner h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; }
.cta-banner p  { opacity: 0.92; margin-bottom: 28px; line-height: 1.7; }
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   POP / NEO-BRUTALIST COMPONENTS
   ============================================================ */

/* ---- Sparkle animation ---- */
@keyframes sparkleAnim {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%       { transform: scale(1.4) rotate(20deg); opacity: 0.6; }
}
.sparkle {
  display: inline-block;
  animation: sparkleAnim 2s ease-in-out infinite;
  pointer-events: none;
}

/* ---- Pop color strip ---- */
.pop-strip {
  display: flex; width: 100%; overflow: hidden;
}
.pop-cell {
  flex: 1; padding: 28px 12px; text-align: center;
  color: #fff; border-right: 3px solid #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.pop-cell:last-child { border-right: none; }
.pop-cell::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.22) 2px, transparent 2px);
  background-size: 18px 18px;
}
.pop-cell-icon { font-size: 2rem; position: relative; z-index: 1; }
.pop-cell-text {
  font-weight: 900; font-size: 0.85rem; line-height: 1.3;
  position: relative; z-index: 1;
}
.pop-cell-effect {
  position: absolute; font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  font-weight: 900; font-size: 18px; color: #fff;
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
  z-index: 2; pointer-events: none;
}
.pop-cell-effect.tl { top: 6px; left: 6px; transform: rotate(-12deg); }
.pop-cell-effect.tr { top: 6px; right: 6px; transform: rotate(10deg); }
.pop-cell-effect.bl { bottom: 6px; left: 6px; transform: rotate(8deg); }
.pop-cell-effect.br { bottom: 6px; right: 6px; transform: rotate(-8deg); }

.pop-cell.c-red    { background: var(--pop-red); }
.pop-cell.c-yellow { background: var(--pop-yellow); color: var(--ink); }
.pop-cell.c-yellow .pop-cell-text { color: var(--ink); }
.pop-cell.c-blue   { background: var(--pop-blue); }
.pop-cell.c-purple { background: var(--pop-purple); }
.pop-cell.c-orange { background: var(--pop-orange); }
.pop-cell.c-green  { background: var(--green); }

@media (max-width: 768px) {
  .pop-cell { padding: 20px 6px; }
  .pop-cell-icon { font-size: 1.5rem; }
  .pop-cell-text { font-size: 0.72rem; }
  .pop-cell-effect { font-size: 12px; }
}

/* ---- Ticker band ---- */
.ticker-band {
  background: var(--pop-yellow);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: 14px 0; overflow: hidden;
}
@keyframes tickerLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-scroll {
  display: flex; gap: 0;
  animation: tickerLeft 22s linear infinite;
  white-space: nowrap;
}
.ticker-scroll span {
  font-size: 1rem; font-weight: 900; color: var(--ink);
  padding: 0 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.ticker-scroll span::before { content: '★'; color: var(--pop-red); }

/* ---- Neo-brutalist buttons ---- */
.btn-neo-yellow {
  background: var(--pop-yellow); color: var(--ink);
  border: 3px solid var(--ink) !important;
  box-shadow: 5px 5px 0 var(--ink);
  border-radius: 50px;
  transition: transform 0.12s, box-shadow 0.12s !important;
}
.btn-neo-yellow:hover {
  transform: translate(3px, 3px) !important;
  box-shadow: 2px 2px 0 var(--ink) !important;
}

.btn-neo-blue {
  background: var(--pop-blue); color: #fff;
  border: 3px solid var(--ink) !important;
  box-shadow: 5px 5px 0 var(--ink);
  border-radius: 50px;
  transition: transform 0.12s, box-shadow 0.12s !important;
}
.btn-neo-blue:hover {
  transform: translate(3px, 3px) !important;
  box-shadow: 2px 2px 0 var(--ink) !important;
}

/* ---- Neo card ---- */
.neo-card {
  border: 3px solid var(--ink) !important;
  box-shadow: 5px 5px 0 var(--ink) !important;
  transition: transform 0.12s, box-shadow 0.12s !important;
}
.neo-card:hover {
  transform: translate(3px, 3px) !important;
  box-shadow: 2px 2px 0 var(--ink) !important;
}

/* ---- Pop section title (with colored bar) ---- */
.section-title-pop {
  text-align: center; font-size: 2rem; font-weight: 900;
  color: var(--ink); margin-bottom: 48px; position: relative;
}
.section-title-pop::after {
  content: ''; display: block;
  width: 60px; height: 5px;
  background: var(--pop-yellow); border-radius: 3px;
  margin: 12px auto 0;
}
@media (max-width: 768px) {
  .section-title-pop { font-size: 1.5rem; }
}

/* ---- Colorful course card header ---- */
.course-hd {
  padding: 18px 22px; color: #fff;
}
.course-hd.hd-orange { background: var(--pop-orange); }
.course-hd.hd-blue   { background: var(--pop-blue); }
.course-hd.hd-purple { background: var(--pop-purple); }
.course-hd.hd-teal   { background: #0891b2; }
.course-hd.hd-green  { background: #16a34a; }
.course-hd.hd-red    { background: var(--pop-red); }
.course-hd.hd-gray   { background: #9e9e9e; }
.course-hd-label { font-size: 1.05rem; font-weight: 900; letter-spacing: 0.03em; margin-bottom: 4px; }
.course-hd-title { font-size: 1.1rem; font-weight: 900; line-height: 1.3; }
.status-open   { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: #dcfce7; color: #16a34a; margin-top: 10px; }
.status-closed { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: #fee2e2; color: var(--pop-red); margin-top: 10px; }

/* ---- Dot-pattern background utility ---- */
.dot-bg {
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 2px, transparent 2px);
  background-size: 24px 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav    { display: none; }
  .hamburger-btn { display: flex; }

  .section    { padding: 56px 16px; }
  .section-sm { padding: 40px 16px; }

  .section-heading { font-size: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .btn-lg { padding: 14px 32px; font-size: 1rem; }

  .page-hero h1    { font-size: 1.7rem; }
  .page-hero       { padding: 48px 20px 56px; }

  .cta-banner { padding: 36px 20px; }
  .cta-banner h2 { font-size: 1.3rem; }
}
