/* =============================================
   PromptCraft Academy - Main Stylesheet
   Light theme / Navy × Emerald
   ============================================= */

:root {
  --navy: #0A1628;
  --navy-2: #122040;
  --emerald: #00E5C0;
  --emerald-dark: #00BFA5;
  --emerald-light: rgba(0,229,192,0.08);
  --blue-mid: #1E3A5F;
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --text: #0D1B2A;
  --text-muted: #5A6A7A;
  --border: #E2E8F0;
  --border-dark: rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(10,22,40,0.07);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.12);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-en: 'Syne', sans-serif;
  --font-num: 'Bebas Neue', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-serif: 'DM Serif Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: var(--font-ja); }

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

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 15px;
  transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.btn--primary {
  background: var(--emerald); color: var(--navy);
  box-shadow: 0 4px 20px rgba(0,229,192,0.3);
}
.btn--primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,192,0.4);
}
.btn--hero {
  background: var(--emerald); color: var(--navy);
  padding: 18px 40px; font-size: 16px;
  box-shadow: 0 6px 28px rgba(0,229,192,0.35);
}
.btn--hero:hover {
  background: var(--emerald-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,229,192,0.5);
}
.btn--ghost {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35); padding: 16px 32px;
}
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn--outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border-dark);
}
.btn--outline:hover { border-color: var(--emerald); color: var(--navy); background: var(--emerald-light); }

/* --- Section Helpers --- */
.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.2em; color: var(--emerald);
  background: var(--emerald-light);
  padding: 4px 14px; border-radius: 50px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900; line-height: 1.3; color: var(--navy);
}
.section-desc {
  font-size: 15px; color: var(--text-muted);
  margin-top: 12px; max-width: 600px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-desc { margin: 12px auto 0; }

/* --- Placeholders --- */
.img-placeholder, .hero__img-placeholder, .avatar-placeholder, .photo-placeholder {
  background: linear-gradient(135deg, #EEF2F7 0%, #E2E8F0 100%);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; text-align: center;
  color: var(--text-muted); font-size: 13px; line-height: 1.6;
  border: 2px dashed var(--border);
}
.img-placeholder { width: 100%; aspect-ratio: 4/3; }
.hero__img-placeholder { width: 100%; height: 100%; min-height: 380px; border-radius: 20px; }
.avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; font-size: 28px; border: none; background: #EEF2F7; flex-shrink: 0; }
.photo-placeholder { width: 100%; aspect-ratio: 1/1; border-radius: 50%; font-size: 48px; background: #EEF2F7; border: none; }
.hero__img { width: 100%; aspect-ratio: 4/3; border-radius: 20px; object-fit: cover; display: block; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.img-photo { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); object-fit: cover; display: block; }
.avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; }
.photo-img { width: 100%; aspect-ratio: 1/1; border-radius: 50%; object-fit: cover; display: block; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 36px; height: 36px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-en); font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: 0.02em; }
.logo__sub { font-size: 9px; letter-spacing: 0.2em; color: var(--emerald); font-weight: 700; margin-top: 2px; }
.header__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header__nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: var(--transition); }
.header__nav a:hover { color: var(--navy); }
.header__cta .btn { padding: 10px 22px; font-size: 13px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.sp-nav { display: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--navy);
  padding-top: 68px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,192,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,192,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero__content {
  padding: 80px 0 80px 60px;
  position: relative; z-index: 1;
}
.hero__visual {
  padding: 80px 60px 80px 40px;
  position: relative; z-index: 1;
  animation: fadeIn 1s 0.3s ease both;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,192,0.1);
  border: 1px solid rgba(0,229,192,0.25);
  color: var(--emerald); font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}
.hero__title { margin-bottom: 24px; animation: fadeInUp 0.7s 0.1s ease both; }
.hero__title-en {
  display: block; font-family: var(--font-en);
  font-size: clamp(14px, 2vw, 18px); font-weight: 800;
  color: var(--emerald); letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.hero__title-ja {
  display: block; font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900; color: var(--white); line-height: 1.25;
}
.hero__desc {
  color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.85;
  margin-bottom: 36px; animation: fadeInUp 0.7s 0.2s ease both;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; animation: fadeInUp 0.7s 0.3s ease both; }
.hero__stats { display: flex; gap: 40px; animation: fadeInUp 0.7s 0.4s ease both; }
.hero__stat { text-align: center; }
.hero__stat-num { display: block; font-family: var(--font-num); font-size: 36px; font-weight: 400; color: var(--emerald); line-height: 1; letter-spacing: 0.02em; }
.hero__stat-label { display: block; font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; letter-spacing: 0.05em; }

/* =============================================
   ABOUT
   ============================================= */
.about { padding: 100px 0; background: var(--off-white); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__content .section-title { margin-bottom: 20px; }
.about__text { color: var(--text-muted); font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
.about__text strong { color: var(--text); font-weight: 700; }
.about__features { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.feature-item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.feature-icon {
  width: 36px; height: 36px;
  background: var(--emerald-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

/* =============================================
   CURRICULUM
   ============================================= */
.curriculum { padding: 100px 0; background: var(--white); }
.curriculum-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.tab-btn {
  padding: 10px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted); background: var(--off-white);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.tab-btn:hover { border-color: var(--emerald); color: var(--navy); }
.tab-btn.active { background: var(--navy); color: var(--emerald); border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  background: var(--off-white); border-radius: 24px;
  padding: 48px; border: 1px solid var(--border);
}
.tab-panel__text h3 { font-size: 22px; font-weight: 900; margin-bottom: 14px; color: var(--navy); }
.tab-panel__text > p { color: var(--text-muted); font-size: 14px; line-height: 1.85; margin-bottom: 28px; }
.curriculum-detail { display: flex; flex-direction: column; gap: 20px; }
.curriculum-point h4 { font-size: 13px; font-weight: 700; color: var(--emerald-dark); margin-bottom: 5px; }
.curriculum-point p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* =============================================
   RESULTS
   ============================================= */
.results { padding: 100px 0; background: var(--navy); }
.results .section-title { color: var(--white); }
.results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.result-card {
  background: var(--navy-2); border-radius: var(--radius);
  padding: 28px; border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.result-card:hover { border-color: rgba(0,229,192,0.25); transform: translateY(-4px); }
.result-card__avatar { margin-bottom: 16px; }
.result-card__name { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.result-card__name span { display: block; font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.4); margin-top: 2px; }
.result-card__income { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.result-card__income strong { font-size: 22px; font-weight: 900; color: var(--emerald); }
.result-card__text { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.8; }

/* =============================================
   INSTRUCTORS
   ============================================= */
.instructors { padding: 100px 0; background: var(--off-white); }
.instructors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.instructor-card {
  background: var(--white); text-align: center;
  padding: 36px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
}
.instructor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.instructor-card__photo { width: 100px; margin: 0 auto 20px; }
.instructor-card h3 { font-size: 19px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.instructor-card__role { font-size: 12px; color: var(--emerald-dark); font-weight: 600; margin-bottom: 12px; }
.instructor-card__meta { display: flex; justify-content: center; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.instructor-card__career { text-align: left; list-style: disc; padding-left: 18px; }
.instructor-card__career li { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }

/* =============================================
   SUPPORT
   ============================================= */
.support { padding: 100px 0; background: var(--white); }
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.support-card {
  background: var(--off-white); border-radius: var(--radius);
  padding: 32px 24px; border: 1px solid var(--border);
  transition: var(--transition);
}
.support-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--emerald); }
.support-card__icon { font-size: 36px; margin-bottom: 16px; display: block; }
.support-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.support-card p { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* =============================================
   PRICING
   ============================================= */
.pricing { padding: 100px 0; background: var(--off-white); }
.pricing-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; align-items: start; }
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 18px; border: 1.5px solid var(--border);
  position: relative; transition: var(--transition);
}
.pricing-card:hover { border-color: var(--emerald); box-shadow: var(--shadow); transform: translateY(-4px); }
.pricing-card--featured {
  background: var(--navy); border-color: var(--navy);
  transform: scale(1.03);
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card--featured .pricing-card__tier,
.pricing-card--featured .pricing-card__label,
.pricing-card--featured .pricing-card__period { color: rgba(255,255,255,0.7); }
.pricing-card--featured .price-amount,
.pricing-card--featured .pricing-card__features li.ok { color: var(--white); }
.pricing-card--featured .pricing-card__features li.no { color: rgba(255,255,255,0.25); }
.pricing-card--keep { border-color: rgba(0,229,192,0.2); }
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--emerald); color: var(--navy);
  font-size: 11px; font-weight: 800;
  padding: 3px 14px; border-radius: 50px; white-space: nowrap;
}
.pricing-card__badge--keep { background: var(--navy); color: var(--emerald); }
.pricing-card__tier { font-family: var(--font-en); font-size: 16px; font-weight: 800; color: var(--navy); letter-spacing: 0.05em; margin-bottom: 4px; }
.pricing-card__label { font-size: 11px; color: var(--text-muted); margin-bottom: 18px; }
.pricing-card__price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 4px; }
.price-currency { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.price-amount { font-family: var(--font-num); font-size: 38px; font-weight: 400; color: var(--navy); letter-spacing: 0.02em; }
.pricing-card--featured .price-currency { color: rgba(255,255,255,0.6); }
.pricing-card--featured .price-amount { color: var(--emerald); }
.pricing-card__period { font-size: 11px; color: var(--text-muted); margin-bottom: 18px; }
.pricing-card__features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.pricing-card__features li { font-size: 12px; line-height: 1.5; }
.pricing-card__features li.ok { color: var(--text); }
.pricing-card__features li.no { color: #C0CAD6; }
.pricing-card__cta { width: 100%; text-align: center; font-size: 13px; padding: 11px 16px; }
.pricing-card--featured .pricing-card__cta { background: var(--emerald); color: var(--navy); border: none; }
.pricing-card--featured .pricing-card__cta:hover { background: var(--emerald-dark); }

/* =============================================
   FAQ
   ============================================= */
.faq { padding: 100px 0; background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: var(--radius-sm); border: 1.5px solid var(--border); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 20px 24px;
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white); transition: var(--transition);
}
.faq-question::after { content: "+"; font-size: 22px; color: var(--emerald-dark); flex-shrink: 0; line-height: 1; transition: var(--transition); }
.faq-item.open .faq-question::after { content: "−"; }
.faq-question:hover { background: var(--off-white); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* =============================================
   FINAL CTA
   ============================================= */
.final-cta {
  padding: 100px 0;
  background: var(--navy);
  text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,192,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,192,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta__title { font-size: clamp(24px,4vw,40px); font-weight: 900; color: var(--white); margin-bottom: 16px; line-height: 1.4; }
.final-cta__desc { color: rgba(255,255,255,0.6); font-size: 15px; margin-bottom: 36px; }
.final-cta .btn--hero { box-shadow: 0 8px 32px rgba(0,229,192,0.3); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #060E1A; padding: 48px 24px 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer__logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.footer__logo .logo__name { font-size: 16px; }
.footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer__nav a { font-size: 13px; color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer__nav a:hover { color: rgba(255,255,255,0.8); }
.footer__copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* =============================================
   INNER PAGES
   ============================================= */
.page-hero { background: var(--navy); padding: 120px 24px 64px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,229,192,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,192,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero__label { display: inline-block; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; color: var(--emerald); position: relative; z-index: 1; margin-bottom: 12px; }
.page-hero__title { font-size: clamp(24px,4vw,40px); font-weight: 900; color: var(--white); position: relative; z-index: 1; }
.legal-body { max-width: 800px; margin: 0 auto; padding: 80px 24px; }
.legal-body h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--emerald); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 14px; color: var(--text-muted); line-height: 1.9; margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; list-style: disc; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-body table th, .legal-body table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; line-height: 1.7; }
.legal-body table th { background: var(--off-white); font-weight: 700; color: var(--navy); width: 32%; }
.legal-body table td { color: var(--text-muted); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .header__nav, .header__cta { display: none; }
  .hamburger { display: flex; }
  .sp-nav { display: none; flex-direction: column; align-items: center; gap: 20px; padding: 24px; background: var(--white); border-top: 1px solid var(--border); }
  .sp-nav.open { display: flex; }
  .sp-nav a { color: var(--text-muted); font-size: 15px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { padding: 60px 24px 40px; }
  .hero__visual { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__stats { gap: 24px; }
  .about__inner, .tab-panel__inner { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .tab-panel__visual { order: -1; }
  .results-grid, .instructors-grid, .support-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card--featured { transform: none; }
  .curriculum-tabs { flex-direction: column; align-items: stretch; }
  .tab-btn { text-align: center; }
}
