/*
Theme Name: かんかんダンス
Theme URI: https://kankan-dance.jp
Author: かんかんダンス
Description: キッズダンススクール「かんかんダンス」公式WordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kankan-dance
Tags: one-page, japanese, dance, kids, school
*/

/* ===== CSS VARIABLES ===== */
:root {
  --red:      #ff4b4b;
  --orange:   #ff8c00;
  --orange-dk:#e07000;
  --blue:     #3b9eff;
  --blue-lt:  #e8f4ff;
  --dark:     #1a1a2e;
  --muted:    #666;
  --cream:    #fffaf4;
  --white:    #ffffff;
  --font-main: 'Zen Maru Gothic', 'Kaisei Decol', sans-serif;
  --font-sub:  'Nunito', 'Zen Maru Gothic', sans-serif;
  --font-num:  'Nunito', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2.5px solid var(--orange);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.nav-logo {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(120deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover {
  color: var(--orange);
  border-color: var(--orange);
}
@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.78rem; }
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff5f5 0%, #fff8ee 40%, #eef6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.b1 { width:200px; height:200px; background:var(--red);    top:10%;  left:5%;  animation-duration:7s; }
.b2 { width:140px; height:140px; background:var(--orange); top:60%;  left:2%;  animation-duration:9s; animation-delay:1s; }
.b3 { width:180px; height:180px; background:var(--blue);   top:15%;  right:4%; animation-duration:8s; animation-delay:2s; }
.b4 { width:100px; height:100px; background:var(--red);    bottom:20%; right:8%; animation-duration:6s; animation-delay:0.5s; }
.b5 { width:120px; height:120px; background:var(--orange); bottom:10%; left:30%; animation-duration:10s; animation-delay:3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(5deg); }
  66%       { transform: translateY(10px) rotate(-3deg); }
}

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

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(255,75,75,0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-title .t-red    { color: var(--red);    animation: wiggle 2s ease-in-out infinite; display: inline-block; }
.hero-title .t-orange { color: var(--orange); animation: wiggle 2s ease-in-out 0.3s infinite; display: inline-block; }
.hero-title .t-blue   { color: var(--blue);   animation: wiggle 2s ease-in-out 0.6s infinite; display: inline-block; }

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-4deg); }
  75%       { transform: rotate(4deg); }
}

.hero-catch {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero dance illustrations */
.hero-dance-illus {
  position: absolute; bottom: 0; right: 2%;
  height: 55%; max-height: 420px; opacity: 0.22;
  pointer-events: none; animation: float 6s ease-in-out infinite;
}
.hero-dance-illus-left {
  position: absolute; bottom: 0; left: 2%;
  height: 45%; max-height: 360px; opacity: 0.18;
  pointer-events: none; animation: float 7s ease-in-out 1s infinite;
  transform: scaleX(-1);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: white;
  box-shadow: 0 6px 0 var(--orange-dk), 0 10px 30px rgba(255,100,0,0.3);
}
.btn-primary:hover { box-shadow: 0 8px 0 var(--orange-dk), 0 14px 36px rgba(255,100,0,0.4); }
.btn-secondary {
  background: white;
  color: var(--orange);
  border: 2.5px solid var(--orange);
  box-shadow: 0 4px 16px rgba(255,140,0,0.15);
}
.btn-secondary:hover { background: #fff6e8; }
.btn-line {
  background: #06c755;
  color: white;
  box-shadow: 0 6px 0 #04a344, 0 10px 24px rgba(6,199,85,0.3);
}
.btn-line:hover { opacity: 0.9; box-shadow: 0 8px 0 #04a344, 0 14px 30px rgba(6,199,85,0.4); }

/* ===== SECTION COMMON ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-en {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.3;
}
.hl {
  background: linear-gradient(transparent 60%, #ffe066 60%);
  padding: 0 4px;
}

/* ===== FEATURES ===== */
#features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card {
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 20px 20px 0 0;
}
.feature-card:nth-child(1) { background: #fff2f2; border-color: var(--red); }
.feature-card:nth-child(1)::before { background: var(--red); }
.feature-card:nth-child(2) { background: #fff6e8; border-color: var(--orange); }
.feature-card:nth-child(2)::before { background: var(--orange); }
.feature-card:nth-child(3) { background: var(--blue-lt); border-color: var(--blue); }
.feature-card:nth-child(3)::before { background: var(--blue); }
.feature-card:nth-child(4) { background: #f6f0ff; border-color: #9b59b6; }
.feature-card:nth-child(4)::before { background: #9b59b6; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.3s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.6s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.9s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.feature-card h3 { font-family: var(--font-main); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ===== TEACHERS ===== */
#teachers { background: var(--cream); }
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.teacher-card {
  border-radius: 24px; background: white; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07); transition: transform 0.25s, box-shadow 0.25s;
}
.teacher-card:hover { transform: translateY(-8px); box-shadow: 0 14px 40px rgba(0,0,0,0.11); }
.teacher-top {
  padding: 24px 24px 16px; display: flex; align-items: center; gap: 18px;
}
.teacher-card:nth-child(1) .teacher-top { border-top: 5px solid var(--orange); }
.teacher-card:nth-child(2) .teacher-top { border-top: 5px solid var(--red); }
.teacher-card:nth-child(3) .teacher-top { border-top: 5px solid var(--blue); }
.teacher-avatar {
  width: 72px; height: 72px; border-radius: 50%; font-size: 2.2rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 3px solid white; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden; background: transparent;
}
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.teacher-photo { width: 100%; height: 220px; overflow: hidden; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.kids-photos-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.kids-photos-row img { width: 100%; height: 320px; object-fit: cover; border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
@media (max-width: 640px) { .kids-photos-row { grid-template-columns: 1fr; } }
.teacher-card:nth-child(1) .teacher-avatar { background: linear-gradient(135deg, var(--orange), #ffcc00); }
.teacher-card:nth-child(2) .teacher-avatar { background: linear-gradient(135deg, var(--red), #ff9b9b); }
.teacher-card:nth-child(3) .teacher-avatar { background: linear-gradient(135deg, var(--blue), #6dbfff); }
.teacher-name { font-family: var(--font-main); font-size: 1.5rem; font-weight: 700; }
.teacher-day  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.teacher-body { padding: 0 24px 24px; }
.teacher-intro { font-size: 0.88rem; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.career-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.career-list li { font-size: 0.82rem; padding: 5px 10px 5px 12px; border-radius: 0 8px 8px 0; line-height: 1.5; }
.teacher-card:nth-child(1) .career-list li { border-left: 4px solid var(--orange); background: #fff6e8; }
.teacher-card:nth-child(2) .career-list li { border-left: 4px solid var(--red);    background: #fff2f2; }
.teacher-card:nth-child(3) .career-list li { border-left: 4px solid var(--blue);   background: var(--blue-lt); }

/* ===== SCHEDULE ===== */
#schedule { background: var(--white); color: var(--dark); }
#schedule .section-title { color: var(--dark); }
#schedule .section-en { background: #fff6e8; color: var(--orange); }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.schedule-card { border-radius: 20px; padding: 28px; border: 2px solid; transition: transform 0.2s; }
.schedule-card:hover { transform: scale(1.02); }
.schedule-card:nth-child(1) { background: #fff6e8; border-color: var(--orange); }
.schedule-card:nth-child(2) { background: var(--blue-lt); border-color: var(--blue); }
.schedule-card:nth-child(3) { background: #fff2f2; border-color: var(--red); }
.sc-day { font-family: var(--font-main); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.schedule-card:nth-child(1) .sc-day { color: var(--orange); }
.schedule-card:nth-child(2) .sc-day { color: var(--blue); }
.schedule-card:nth-child(3) .sc-day { color: var(--red); }
.sc-teacher { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.sc-time { font-family: var(--font-num); font-size: 1.2rem; font-weight: 900; color: var(--dark); }
.sc-note { margin-top: 10px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ===== PRICE ===== */
#price { background: var(--white); text-align: center; }
.price-wrap {
  display: inline-block; color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 48px 64px; border-radius: 28px; position: relative;
  box-shadow: 0 10px 0 var(--orange-dk), 0 16px 48px rgba(255,100,0,0.3);
  margin-bottom: 36px;
}
.price-ribbon {
  position: absolute; top: -14px; right: -10px;
  background: #ffcc00; color: var(--dark);
  font-size: 0.78rem; font-weight: 700; padding: 6px 14px;
  border-radius: 10px; transform: rotate(6deg);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
}
.price-label { font-size: 0.88rem; opacity: 0.85; margin-bottom: 6px; }
.price-amount { font-family: var(--font-num); font-size: 4.5rem; font-weight: 900; line-height: 1; }
.price-unit { font-size: 1.4rem; }
.price-note { font-size: 0.82rem; opacity: 0.8; margin-top: 12px; }
.price-perks { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.perk {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border: 2px solid var(--orange);
  padding: 10px 20px; border-radius: 50px; font-size: 0.88rem; font-weight: 700;
}

/* ===== EVENTS ===== */
#events { background: var(--cream); }
.events-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.event-chip {
  background: white; border-radius: 50px; padding: 10px 22px;
  font-size: 0.88rem; font-weight: 700; border: 2px solid;
  transition: transform 0.15s;
}
.event-chip:hover { transform: translateY(-3px) rotate(-1deg); }
.event-chip:nth-child(3n+1) { border-color: var(--red);    color: var(--red); }
.event-chip:nth-child(3n+2) { border-color: var(--orange); color: var(--orange); }
.event-chip:nth-child(3n+3) { border-color: var(--blue);   color: var(--blue); }

/* ===== CONTACT ===== */
#contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-box { background: var(--cream); border-radius: 24px; padding: 36px; }
.contact-box h3 { font-family: var(--font-main); font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1.5px dashed #e0d8cc; }
.contact-row:last-of-type { border-bottom: none; margin-bottom: 16px; padding-bottom: 0; }
.c-icon { width: 42px; height: 42px; background: white; border-radius: 12px; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.c-text { font-size: 0.88rem; color: #444; line-height: 1.7; }
.c-text strong { font-size: 1rem; color: var(--dark); }
.phone-link { display: inline-block; margin-top: 6px; font-family: var(--font-num); font-size: 1.7rem; font-weight: 900; color: var(--red); text-decoration: none; }
.phone-link:hover { opacity: 0.75; }
.map-box { border-radius: 20px; overflow: hidden; box-shadow: 0 6px 28px rgba(0,0,0,0.1); }
.map-box iframe { width: 100%; height: 360px; display: block; border: none; }

/* ===== INSTAGRAM ===== */
#instagram { background: var(--cream); }
.ig-inner { max-width: 540px; margin: 0 auto; text-align: center; }
.ig-embed-wrap { background: white; border-radius: 20px; padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.ig-follow-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white; padding: 12px 28px; border-radius: 50px;
  font-family: var(--font-main); font-weight: 700; text-decoration: none; font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}
.ig-follow-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: rgba(255,255,255,0.55); text-align: center; padding: 36px 20px; font-size: 0.82rem; }
.footer-logo {
  font-family: var(--font-main); font-size: 1.7rem; font-weight: 700;
  background: linear-gradient(120deg, var(--red), var(--orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px;
}

/* ===== SCROLL FADE ===== */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .price-wrap { padding: 36px 32px; }
  .price-amount { font-size: 3.2rem; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
}
