/* ============================================
   ENERGETIC & DYNAMIC EDUCATIONAL THEME
   "Juku" Style Design System
   ============================================ */

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

:root {
  --primary: #00ada9;
  --primary-dark: #008f8c;
  --primary-light: #e5f7f6;
  --accent: #ffe31a;
  --accent-hover: #e6cc00;
  --accent-dark: #333333;
  --text: #333333;
  --subtext: #666666;
  --bg: #ffffff;
  --bg-alt: #e5f7f6;
  --white: #ffffff;
  --border: #e2e8f0;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== GRAPH PAPER PATTERN ===== */
.bg-grid {
  background-image:
    linear-gradient(rgba(0,173,169,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,173,169,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-gradient { background: linear-gradient(180deg, #ffffff 0%, #e5f7f6 100%); }
.bg-teal-light { background: var(--bg-alt); }
.bg-white { background: var(--white); }

/* ===== FLOATING DECORATIONS ===== */
@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}
@keyframes floatDown {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-6deg); }
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.deco-wrap { position: relative; overflow: hidden; }
.deco-wrap::before, .deco-wrap::after {
  content: ''; position: absolute; pointer-events: none; z-index: 0;
}
/* Triangle decoration */
.deco-tri::before {
  width: 0; height: 0;
  border-left: 18px solid transparent; border-right: 18px solid transparent;
  border-bottom: 30px solid rgba(0,173,169,0.08);
  top: 12%; left: 6%; animation: floatUp 5s ease-in-out infinite;
}
.deco-tri::after {
  width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-bottom: 24px solid rgba(255,227,26,0.12);
  bottom: 15%; right: 8%; animation: floatDown 6s ease-in-out infinite;
}
/* Plus decoration */
.deco-plus::before {
  width: 20px; height: 20px; top: 18%; right: 12%;
  background:
    linear-gradient(var(--primary-light), var(--primary-light)) center/4px 100% no-repeat,
    linear-gradient(var(--primary-light), var(--primary-light)) center/100% 4px no-repeat;
  animation: floatUp 7s ease-in-out infinite;
}
.deco-plus::after {
  width: 16px; height: 16px; bottom: 20%; left: 10%;
  background:
    linear-gradient(rgba(255,227,26,0.3), rgba(255,227,26,0.3)) center/3px 100% no-repeat,
    linear-gradient(rgba(255,227,26,0.3), rgba(255,227,26,0.3)) center/100% 3px no-repeat;
  animation: floatDown 5.5s ease-in-out infinite;
}
/* Circle decoration */
.deco-circle::before {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,173,169,0.07);
  top: 25%; left: 4%; animation: floatDown 6.5s ease-in-out infinite;
}
.deco-circle::after {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,227,26,0.1);
  top: 10%; right: 5%; animation: floatUp 5s ease-in-out infinite;
}

/* ===== WAVY DIVIDERS ===== */
.wave-top, .wave-bottom { position: relative; }
.wave-top::before {
  content: ''; position: absolute; top: -30px; left: 0; width: 100%; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30'%3E%3Cpath fill='%23ffffff' d='M0,15 C360,30 720,0 1080,15 C1260,22.5 1350,22.5 1440,15 L1440,30 L0,30 Z'/%3E%3C/svg%3E") no-repeat;
  background-size: cover; z-index: 2;
}
.wave-bottom::after {
  content: ''; position: absolute; bottom: -30px; left: 0; width: 100%; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30'%3E%3Cpath fill='%23ffffff' d='M0,15 C360,0 720,30 1080,15 C1260,7.5 1350,7.5 1440,15 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat;
  background-size: cover; z-index: 2;
}
.wave-teal-top::before {
  content: ''; position: absolute; top: -30px; left: 0; width: 100%; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30'%3E%3Cpath fill='%2300ada9' d='M0,15 C360,30 720,0 1080,15 C1260,22.5 1350,22.5 1440,15 L1440,30 L0,30 Z'/%3E%3C/svg%3E") no-repeat;
  background-size: cover; z-index: 2;
}
.wave-teal-bottom::after {
  content: ''; position: absolute; bottom: -30px; left: 0; width: 100%; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30'%3E%3Cpath fill='%2300ada9' d='M0,15 C360,0 720,30 1080,15 C1260,7.5 1350,7.5 1440,15 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat;
  background-size: cover; z-index: 2;
}

/* ===== HEADER / NAV ===== */
.pr-bar {
  text-align: right; font-size: 0.7rem; color: #94a3b8;
  padding: 3px 16px; background: #f8fafc;
  letter-spacing: 0.05em; font-weight: 700;
}
header {
  background: var(--white); position: sticky; top: 0; z-index: 1000;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text); font-size: 1.6rem; font-weight: 900; line-height: 1.2;
}
.logo span { color: var(--primary); }
nav { display: flex; gap: 4px; align-items: center; }
nav a {
  color: var(--subtext); font-size: 0.875rem; font-weight: 700;
  padding: 6px 14px; border-radius: 24px; transition: all 0.2s;
}
nav a:hover, nav a.active {
  background: var(--primary); color: var(--white);
}
.nav-cta {
  background: var(--accent) !important; color: var(--text) !important;
  padding: 10px 22px 6px !important; border-radius: 50px !important;
  font-weight: 900 !important; font-size: 0.875rem !important;
  box-shadow: 0 4px 0 var(--accent-hover), 0 8px 16px rgba(0,0,0,0.1) !important;
  transition: all 0.1s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.nav-cta::after { content: ' ›'; font-size: 1.1rem; font-weight: 700; }
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 var(--accent-hover), 0 4px 8px rgba(0,0,0,0.1) !important;
}
.nav-cta:active {
  transform: translateY(4px) !important;
  box-shadow: 0 0px 0 var(--accent-hover), 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(165deg, #009693 0%, #00ada9 45%, #00c8c4 100%);
  color: var(--white); padding: 100px 24px 120px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}
/* Floating hero decorations */
.hero::after {
  content: ''; position: absolute; top: 10%; left: 5%;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,227,26,0.15);
  animation: floatUp 4s ease-in-out infinite; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.82rem; opacity: 0.75; margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); }
.hero-badge {
  display: inline-block; background: var(--accent); color: var(--text);
  font-size: 0.85rem; font-weight: 900; padding: 8px 24px; border-radius: 50px;
  letter-spacing: 0.04em; margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(255,227,26,0.35);
}
.hero h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.3;
  margin-bottom: 24px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.15), 0 0 30px rgba(0,0,0,0.1);
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.3);
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem); opacity: 0.92;
  max-width: 640px; margin: 0 auto 40px; line-height: 1.9;
}
.hero-brands {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 44px; flex-wrap: wrap;
}
.brand-tag {
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  color: var(--white); font-size: 0.9rem; font-weight: 900;
  padding: 8px 22px; border-radius: 50px; backdrop-filter: blur(8px);
}
.brand-x { color: var(--accent); font-weight: 900; font-size: 1.3rem; }
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap; margin-bottom: 44px;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 1;
}
.stat-label { font-size: 0.82rem; opacity: 0.8; margin-top: 6px; font-weight: 700; }
.hero-cta-group { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.82rem; opacity: 0.72; margin-top: 20px; }

.btn-final:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,173,169,0.5);
}

/* ===== NEW 3D BUTTONS ===== */
.btn-3d {
  position: relative;
  transition: all 0.15s ease;
  transform: translateY(0);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-3d:hover {
  transform: translateY(4px);
}

.btn-3d:active {
  transform: translateY(6px);
}

/* Orange Variant */
.btn-3d-accent {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 6px 0 var(--accent-hover), 0 12px 20px rgba(0, 0, 0, 0.15);
}

.btn-3d-accent:hover {
  box-shadow: 0 2px 0 var(--accent-hover), 0 6px 10px rgba(0, 0, 0, 0.1);
}

.btn-3d-accent:active {
  box-shadow: 0 0px 0 var(--accent-hover), 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Teal Variant */
.btn-3d-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 0 var(--primary-dark), 0 12px 20px rgba(0, 0, 0, 0.15);
}

.btn-3d-primary:hover {
  box-shadow: 0 2px 0 var(--primary-dark), 0 6px 10px rgba(0, 0, 0, 0.1);
}

.btn-3d-primary:active {
  box-shadow: 0 0px 0 var(--primary-dark), 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Applying 3D effect to existing classes */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 16px 44px;
  line-height: 1.2;
  border-radius: 50px;
  position: relative;
  transition: all 0.1s ease;
  box-shadow: 0 6px 0 var(--accent-hover), 0 12px 20px rgba(0, 0, 0, 0.15);
  border: none;
}

.btn-primary::after { content: ' ›'; font-size: 1.3rem; font-weight: 700; }

.btn-primary:hover {
  transform: translateY(3px);
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-hover), 0 6px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0 var(--accent-hover), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  padding: 13px 36px;
  line-height: 1.2;
  border-radius: 50px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  position: relative;
  transition: all 0.1s ease;
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.2), 0 10px 16px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(3px);
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.2), 0 5px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-final {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 18px 56px;
  border-radius: 50px;
  position: relative;
  transition: all 0.1s ease;
  box-shadow: 0 6px 0 var(--primary-dark), 0 12px 20px rgba(0, 0, 0, 0.15);
  border: none;
}

.btn-final::after { content: ' ›'; font-size: 1.4rem; }

.btn-final:hover {
  transform: translateY(3px);
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 3px 0 var(--primary-dark), 0 6px 12px rgba(0, 0, 0, 0.12);
}

.btn-final:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0 var(--primary-dark), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-b2b {
  display: block;
  text-align: center;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 50px;
  color: #fff;
  transition: all 0.1s ease;
  border: none;
  position: relative;
}

.btn-b2b.bg-primary {
  background: var(--primary);
  box-shadow: 0 6px 0 var(--primary-dark), 0 10px 16px rgba(0, 0, 0, 0.1);
}

.btn-b2b.bg-primary:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--primary-dark), 0 5px 8px rgba(0, 0, 0, 0.1);
}

.btn-b2b.bg-primary:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0 var(--primary-dark), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-b2b.bg-green {
  background: #059669;
  box-shadow: 0 6px 0 #047857, 0 10px 16px rgba(0, 0, 0, 0.1);
}

.btn-b2b.bg-green:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #047857, 0 5px 8px rgba(0, 0, 0, 0.1);
}

.btn-b2b.bg-green:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0 #047857, 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-cta, .btn-course, .sub-cta {
  display: block;
  text-align: center;
  font-weight: 900;
  padding: 14px;
  border-radius: 50px;
  transition: all 0.1s ease;
  border: none;
  position: relative;
  text-decoration: none;
}

/* Course / Sub CTA Variants (Teal/Primary) */
.course-cta, .btn-course {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 6px 0 var(--accent-hover), 0 10px 16px rgba(0, 0, 0, 0.1);
}

.course-cta:hover, .btn-course:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--accent-hover), 0 5px 8px rgba(0, 0, 0, 0.1);
  background: var(--accent);
}

.course-cta:active, .btn-course:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0 var(--accent-hover), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-cta::after, .btn-course::after { content: ' ›'; font-size: 1.2rem; font-weight: 700; margin-left: 4px; }

/* Themed Course CTA Variants */
.course-cta.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 0 var(--primary-dark), 0 10px 16px rgba(0, 0, 0, 0.1);
}
.course-cta.primary:hover {
  background: var(--primary);
  box-shadow: 0 3px 0 var(--primary-dark), 0 5px 8px rgba(0, 0, 0, 0.1);
}
.course-cta.primary:active {
  box-shadow: 0 0px 0 var(--primary-dark), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-cta.blue {
  background: #1a5276;
  color: var(--white);
  box-shadow: 0 6px 0 #0f3460, 0 10px 16px rgba(0, 0, 0, 0.1);
}
.course-cta.blue:hover {
  background: #1a5276;
  box-shadow: 0 3px 0 #0f3460, 0 5px 8px rgba(0, 0, 0, 0.1);
}
.course-cta.blue:active {
  box-shadow: 0 0px 0 #0f3460, 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific button in course card might need teal sometimes */
.btn-course-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 0 var(--primary-dark), 0 10px 16px rgba(0, 0, 0, 0.1);
}

.sub-cta {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 6px 0 var(--accent-hover), 0 10px 16px rgba(0, 0, 0, 0.1);
}

.sub-cta:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--accent-hover), 0 5px 8px rgba(0, 0, 0, 0.1);
}

/* ===== SECTIONS COMMON ===== */
section { padding: 100px 24px; position: relative; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block; background: var(--primary); color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 800; padding: 5px 16px; border-radius: 4px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.section-sub-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 800; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px;
  display: block;
}
.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900;
  line-height: 1.35; margin-bottom: 16px;
}
.section-desc {
  color: var(--subtext); font-size: 1rem; max-width: 600px;
  line-height: 1.9; margin-bottom: 52px;
}

/* ===== REVIEW INTRO ===== */
.review-intro { background: var(--white); }
.review-intro-header { margin-bottom: 36px; }
.review-editor-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.review-editor-tag {
  background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 900;
  padding: 5px 18px; border-radius: 50px; letter-spacing: 0.06em;
}
.review-date { font-size: 0.85rem; color: var(--subtext); }
.review-lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 900; line-height: 1.45; margin-bottom: 0;
}

/* Review Intro Content */
.review-intro p {
  font-size: 0.95rem; color: var(--text); line-height: 1.9; margin-bottom: 16px;
}

/* Trust badges */
.review-trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.review-trust-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-light); border-radius: 12px; padding: 14px 18px;
  border: 1px solid rgba(0,173,169,0.15);
}
.trust-badge-icon { font-size: 1.4rem; flex-shrink: 0; }
.trust-badge-text { font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); line-height: 1.5; }

/* Summary evaluation card */
.review-summary-card {
  margin-top: 28px;
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  border: 2px solid var(--border);
  border-left: 5px solid var(--primary);
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.review-summary-label {
  font-size: 0.92rem; font-weight: 900; color: var(--primary); margin-bottom: 10px;
}
.review-summary-card p {
  font-size: 0.92rem; line-height: 1.85; color: var(--text); margin: 0;
}

/* ===== PAIN POINTS ===== */
.pain { background: #fff5f5; }
.pain .section-label { background: #ef4444; color: #fff; }
.pain-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.pain-item {
  background: var(--white); border-left: 5px solid #ef4444; border-radius: 12px;
  padding: 22px; box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  display: flex; align-items: flex-start; gap: 12px;
  transition: transform 0.2s;
}

.pain-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.pain-text { font-size: 0.95rem; line-height: 1.65; font-weight: 700; color: var(--text); }

/* ===== STRENGTH CARDS ===== */
.strengths { background: var(--white); }
.strength-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.strength-card {
  background: var(--bg-alt); border-radius: 16px; padding: 32px 26px;
  border: 2px solid transparent;
  position: relative; overflow: hidden;
}
.strength-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.strength-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem; font-weight: 900; color: var(--primary); opacity: 0.12;
  line-height: 1; margin-bottom: 4px;
}
.strength-title { font-size: 1.05rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 10px; }
.strength-text { font-size: 0.9rem; color: var(--subtext); line-height: 1.8; }

/* ===== COURSES ===== */
.courses { background: var(--bg-alt); color: var(--text); }
.courses .section-label { background: var(--primary); color: var(--white); }
.courses .section-title { color: var(--text); }
.courses .section-desc { color: var(--subtext); }
.courses .section-sub-en { color: var(--accent); }
.course-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.course-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 20px; text-align: center; overflow: hidden;
  transition: all 0.28s; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.course-img {
  width: 100%; height: 200px; margin-bottom: 24px;
}
.course-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.course-content {
  padding: 0 24px 32px 24px;
}
.course-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem; font-weight: 900; margin-bottom: 14px;
}
.course-name span { color: var(--primary); }
.course-desc { font-size: 0.9rem; color: var(--text); line-height: 1.8; margin-bottom: 24px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.tag {
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  font-size: 0.8rem; font-weight: 700; padding: 5px 14px; border-radius: 50px;
}
.btn-course {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--text);
  font-size: 0.95rem; font-weight: 900; padding: 14px 28px; border-radius: 50px;
  transition: all 0.1s ease; width: 100%;
  box-shadow: 0 6px 0 var(--accent-hover), 0 10px 16px rgba(0,0,0,0.15);
  position: relative;
}
.btn-course:hover { background: var(--accent-hover); transform: translateY(3px); box-shadow: 0 3px 0 var(--accent-hover), 0 5px 10px rgba(0,0,0,0.1); }

/* ===== FREE TRIAL ===== */
.trial { background: var(--bg-alt); }
.trial-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 24px; padding: 72px 44px; text-align: center; color: var(--white);
  box-shadow: 0 12px 48px rgba(0,143,140,0.3);
  position: relative; overflow: hidden;
}
.trial-box::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,227,26,0.1);
}
.trial-box::after {
  content: ''; position: absolute; bottom: -20px; left: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.trial-box > * { position: relative; z-index: 1; }
.trial-box h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 900; margin-bottom: 16px;
}
.trial-box h2 em { color: var(--accent); font-style: normal; }
.trial-box p { opacity: 0.88; font-size: 1rem; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.9; }
.trial-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 44px; flex-wrap: wrap; }
.trial-step { display: flex; align-items: center; gap: 10px; }
.step-circle {
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent);
  color: var(--text); font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,227,26,0.3);
}
.step-text { color: var(--white); font-size: 0.9rem; font-weight: 900; white-space: nowrap; }
.step-arrow { color: rgba(255,255,255,0.5); font-size: 1.4rem; margin: 0 16px; }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { border: 2px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq-q {
  background: var(--bg-alt); padding: 22px 24px; font-weight: 900; font-size: 0.95rem;
  display: flex; align-items: flex-start; gap: 14px;
}
.faq-q::before {
  content: 'Q'; background: var(--primary); color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem; font-weight: 900; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.faq-a {
  padding: 22px 24px; font-size: 0.9rem; color: var(--subtext); line-height: 1.9;
  display: flex; align-items: flex-start; gap: 14px;
}
.faq-a::before {
  content: 'A'; background: var(--accent); color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem; font-weight: 900; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== B2B SECTION ===== */
.b2b { background: var(--bg-alt); }
.b2b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.b2b-card {
  background: var(--white); border-radius: 20px; overflow: hidden;
  border: 2px solid var(--border);
}
.b2b-card-header { padding: 28px 28px 22px; color: #fff; }
.b2b-card-header.primary-bg { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.b2b-card-header.green-bg { background: linear-gradient(135deg, #065f46, #059669); }
.b2b-header-icon { font-size: 2.2rem; margin-bottom: 12px; }
.b2b-header-sub { font-size: 0.8rem; font-weight: 900; opacity: 0.78; letter-spacing: 0.08em; margin-bottom: 6px; }
.b2b-header-title { font-size: 1.25rem; font-weight: 900; }
.b2b-card-body { padding: 26px 28px; }
.b2b-card-body p { font-size: 0.9rem; color: var(--subtext); line-height: 1.9; margin-bottom: 20px; }
.b2b-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.b2b-list li { display: flex; gap: 8px; font-size: 0.88rem; color: var(--text); }
.b2b-list li span { color: var(--primary); font-weight: 900; }
.b2b-achievement { background: var(--bg-alt); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.b2b-achievement-title { font-size: 0.82rem; font-weight: 900; color: #059669; margin-bottom: 8px; }
.b2b-achievement ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.b2b-achievement ul li { font-size: 0.84rem; color: var(--subtext); }
/* btn-b2b handled in BUTTONS section */

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--accent); padding: 100px 24px;
  text-align: center; color: var(--text);
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; top: 20%; right: 10%;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,173,169,0.1);
  animation: floatUp 5s ease-in-out infinite;
}
.final-cta::after {
  content: ''; position: absolute; bottom: 15%; left: 8%;
  width: 40px; height: 40px;
  border: 3px solid rgba(0,173,169,0.1);
  border-radius: 8px; transform: rotate(45deg);
  animation: floatDown 6s ease-in-out infinite;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 900;
  margin-bottom: 16px; line-height: 1.4; color: var(--text);
}
.final-cta h2 em { color: var(--primary-dark); font-style: normal; }
.final-cta p { opacity: 0.75; margin-bottom: 36px; font-size: 1rem; color: var(--text); }

/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7);
  padding: 48px 24px; text-align: center; font-size: 0.85rem;
  position: relative;
}
footer .footer-inner { max-width: 1100px; margin: 0 auto; }
footer .footer-nav {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px;
}
footer .footer-nav a { color: rgba(255,255,255,0.7); transition: all 0.2s; font-weight: 700; }
footer .footer-nav a:hover { color: var(--accent); }
footer p { line-height: 1.8; }

/* ===== TWO-COLUMN LAYOUT ===== */
.section-two-col { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.section-text-col { flex: 1 1 320px; min-width: 0; }
.section-img-col { flex: 0 0 320px; }
.section-img-col img {
  width: 100%; border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12); display: block;
}

/* ===== HERO PHOTO ===== */
.hero-photo-wrap {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 100%; overflow: hidden; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.6) 65%, black 80%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.6) 65%, black 80%);
}
.hero-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: right center;
}

/* ===== RESPONSIVE ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@media (max-width: 1024px) {
  section { padding: 80px 24px; }
  .hero { padding: 80px 24px 100px; }
}

@media (max-width: 767px) {
  .hero-photo-wrap { display: none; }
  .section-img-col { display: none; }
  
  /* Header Nav */
  .nav-inner {
    padding: 12px 16px; 
    height: auto; 
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 16px 0 8px;
    gap: 12px;
  }
  nav.nav-open {
    display: flex;
  }
  nav a {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
  nav a.nav-cta {
    justify-content: center;
  }

  /* Generic Section Adjustments */
  section { padding: 50px 16px !important; }
  .hero { padding: 50px 16px 80px !important; }
  .section-two-col { flex-direction: column !important; gap: 32px !important; }
  .container { padding-left: 0; padding-right: 0; }
  
  /* Typography & Components */
  .hero h1 { font-size: 1.8rem; }
  .hero-brands { flex-direction: column; gap: 8px; margin-bottom: 32px; }
  .brand-tag { font-size: 0.85rem; padding: 6px 20px; width: 100%; max-width: 280px; }
  .brand-x { font-size: 1.1rem; line-height: 1; }
  .stat-num { font-size: 2.2rem; }
  .trial-box { padding: 40px 20px; }
  .b2b-card-header { padding: 24px 20px 20px; }
  .b2b-card-body { padding: 20px; }
  
  .trial-steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 12px 0; }
  
  .course-content { padding: 0 20px 24px 20px; }
  .strength-card { padding: 24px 20px; }

  /* CTA Buttons Mobile Optimization */
  .btn-primary, .btn-final, .btn-course, .course-cta, .sub-cta, .btn-b2b {
    font-size: 0.9rem !important;
    padding: 14px 20px !important;
    width: 100% !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 0 !important;
  }
  .btn-primary::after, .btn-final::after, .btn-course::after, .course-cta::after, .sub-cta::after, .btn-b2b::after {
    content: none !important;
  }
}

/* ===== COURSE DETAIL PAGES (shared) ===== */
.course-section { background: var(--white); }
.course-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.course-tab {
  padding: 10px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 900;
  cursor: pointer; border: 2px solid var(--primary); color: var(--primary);
  background: var(--white); transition: all 0.2s;
}
.course-tab.active, .course-tab:hover { background: var(--primary); color: var(--white); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* Detail course cards (eiken/toeic/shoronbun) */
.detail-course-card {
  border: 2px solid var(--border); border-radius: 20px; overflow: hidden;
  transition: all 0.28s; background: var(--white);
}
.detail-course-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-6px);
  border-color: var(--primary);
}
.course-name-detail { font-size: 1.2rem; font-weight: 900; margin-top: 4px; }
.course-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem; font-weight: 900; color: var(--primary); margin-bottom: 4px;
}
.course-price-note { font-size: 0.82rem; color: var(--subtext); margin-bottom: 16px; }
.course-specs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.spec { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; }
.spec-icon { color: var(--primary); flex-shrink: 0; font-weight: 900; }
.spec-text { color: var(--subtext); line-height: 1.55; }
/* ===== TESTIMONIALS ===== */
.testimonials { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); }
.testimonials .section-label { background: var(--accent); color: var(--text); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-desc { color: rgba(255,255,255,0.8); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.testimonial-card {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px; padding: 30px 26px; backdrop-filter: blur(8px);
}
.testimonial-badge {
  display: inline-block; background: var(--accent); color: var(--text);
  font-size: 0.75rem; font-weight: 900; padding: 4px 14px; border-radius: 50px; margin-bottom: 14px;
}
.testimonial-text { font-size: 0.9rem; opacity: 0.92; line-height: 1.85; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 0.82rem; opacity: 0.7; font-weight: 700; }

/* ===== TABLES ===== */
.styled-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; border-radius: 12px; overflow: hidden; }
.styled-table th {
  background: var(--primary); color: var(--white); padding: 14px 18px;
  text-align: left; font-weight: 900;
  font-family: 'Noto Sans JP', sans-serif;
}
.styled-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.styled-table tr:nth-child(even) td { background: var(--bg-alt); }
.styled-table tr:hover td { background: #d1f0ef; }

/* Background image overlay sections */
.trial-bg-img {
  background-image:
    linear-gradient(135deg, rgba(0,100,98,0.96) 0%, rgba(0,143,140,0.92) 100%),
    url('assets/images/image_11.webp');
  background-size: cover; background-position: center;
}
.method-bg-img {
  background-image:
    linear-gradient(135deg, rgba(0,100,98,0.93) 0%, rgba(0,143,140,0.90) 100%),
    url('assets/images/image_12.webp');
  background-size: cover; background-position: center;
}
.highlights-bg-img {
  background-image:
    linear-gradient(135deg, rgba(0,100,98,0.93) 0%, rgba(0,143,140,0.90) 100%),
    url('assets/images/image_09.webp');
  background-size: cover; background-position: center top;
}

/* ===== METHOD REDESIGN (Spiral Learning - Clean Style) ===== */
.method-redesign { background: var(--bg-alt); }
.method-redesign .section-label { background: var(--primary); color: var(--white); }
.method-redesign .section-title { color: var(--text); }
.method-redesign .section-desc { color: var(--subtext); }

/* Step flow */
.method-flow {
  display: flex; gap: 0; justify-content: center;
  align-items: stretch; flex-wrap: wrap; margin-bottom: 52px;
}
.method-flow-step {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 20px; padding: 32px 26px; text-align: center;
  flex: 1; min-width: 200px; position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.method-flow-step + .method-flow-step { margin-left: 36px; }
.method-flow-step + .method-flow-step::before {
  content: '→'; position: absolute; left: -28px; top: 50%;
  transform: translateY(-50%); color: var(--primary);
  font-size: 1.5rem; font-weight: 900;
}
.method-flow-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 14px;
}
.method-flow-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.05rem; font-weight: 900; color: var(--primary-dark);
  margin-bottom: 8px;
}
.method-flow-text {
  font-size: 0.88rem; color: var(--subtext); line-height: 1.75;
}

/* Pillar cards (reusing strength-card pattern) */
.method-pillar-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.method-pillar-card {
  background: var(--white); border-radius: 16px; padding: 32px 26px;
  border: 2px solid transparent; position: relative; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.method-pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.method-pillar-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem; font-weight: 900; color: var(--primary);
  opacity: 0.12; line-height: 1; margin-bottom: 4px;
}
.method-pillar-title {
  font-size: 1.05rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 10px;
}
.method-pillar-text {
  font-size: 0.9rem; color: var(--subtext); line-height: 1.8;
}

@media (max-width: 767px) {
  .method-flow { flex-direction: column; align-items: center; gap: 16px; }
  .method-flow-step + .method-flow-step { margin-left: 0; margin-top: 16px; width: 100%; }
  .method-flow-step + .method-flow-step::before {
    left: 50%; top: -22px; transform: translateX(-50%) rotate(90deg);
  }
}

/* ===== NOTICE CARD ===== */
.notice-card {
  margin-top: 32px;
  background: #fff;
  border: 2px solid #fee2e2;
  border-left: 5px solid #ef4444;
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

.notice-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ef4444;
  margin-bottom: 6px;
}

.notice-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
  margin: 0 !important;
}

.notice-highlight {
  color: #ef4444;
  font-weight: 900;
}

@media (max-width: 767px) {
  .notice-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 12px;
  }
  .notice-icon {
    font-size: 3rem;
  }
}

/* Inline SVG icons (replace former emoji icons) */
.svg-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}
.trust-badge-icon .svg-icon { color: var(--primary-dark); }
.pain-icon .svg-icon { color: #ef4444; }
.notice-icon .svg-icon { color: #ef4444; }
.b2b-header-icon .svg-icon { color: #fff; }
