/* ============================================
   タイピング英語® LP — Core Styles
   Variables · Base · Navbar · Hero · Worries · Vocab
   ============================================ */

:root {
  --navy:       #0C4A6E;
  --navy-dark:  #082F4A;
  --navy-mid:   #075985;
  --blue:       #0EA5E9;
  --blue-dark:  #0284c7;
  --blue-light: #7DD3FC;
  --blue-bg:    #f0f9ff;
  --blue-bg-2:  #e0f2fe;
  --gold:       #F5A623;
  --gold-dark:  #d4890a;
  --gold-light: #febe69;
  --gold-bg:    #fff7e6;
  --white:      #FFFFFF;
  --gray-bg:    #f8fafc;
  --text-body:  #0C1A2E;
  --text-sub:   #475569;
  --text-mute:  #64748b;
  --border:     #e2e8f0;
  --shadow-sm:  0 2px 8px rgba(12,74,110,0.06);
  --shadow-md:  0 8px 24px rgba(12,74,110,0.10);
  --shadow-lg:  0 16px 48px rgba(12,74,110,0.15);
  --shadow-gold:0 8px 24px rgba(245,166,35,0.30);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --container: 1180px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background: var(--white);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
em { font-style: normal; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── Generic section head ── */
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: ''; width: 28px; height: 2px; background: var(--blue); border-radius: 2px;
}
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.section-title em {
  color: var(--gold);
  background: linear-gradient(transparent 64%, rgba(245,166,35,0.22) 64%);
  padding: 0 0.1em;
}
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--gold-light); }
.section-sub {
  margin-top: 1.1rem;
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.8;
}
.section-sub.light { color: rgba(255,255,255,0.85); }

/* ── Image placeholders (subtle stripes + mono label) ── */
.img-placeholder {
  position: relative;
  width: 100%; height: 100%;
  min-height: 200px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(45deg, rgba(12,74,110,0.05) 0 8px, transparent 8px 16px),
    var(--blue-bg);
  border: 1.5px dashed rgba(12,74,110,0.2);
  color: var(--text-sub);
  overflow: hidden;
}
.img-placeholder.ph-warm {
  background:
    repeating-linear-gradient(45deg, rgba(245,166,35,0.08) 0 8px, transparent 8px 16px),
    #fff7e6;
  border-color: rgba(245,166,35,0.3);
}
.img-placeholder.ph-cool {
  background:
    repeating-linear-gradient(45deg, rgba(14,165,233,0.06) 0 8px, transparent 8px 16px),
    var(--blue-bg-2);
  border-color: rgba(14,165,233,0.3);
}
.img-placeholder.ph-blue {
  background:
    repeating-linear-gradient(45deg, rgba(12,74,110,0.06) 0 8px, transparent 8px 16px),
    var(--blue-bg);
  border-color: rgba(12,74,110,0.25);
}
.img-placeholder.ph-game {
  background:
    repeating-linear-gradient(45deg, rgba(245,166,35,0.1) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #fff7e6 0%, #ffe9bd 100%);
  border-color: rgba(245,166,35,0.35);
}
.img-placeholder.ph-eigo {
  background:
    repeating-linear-gradient(45deg, rgba(14,165,233,0.1) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: rgba(14,165,233,0.35);
}
.placeholder-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--navy);
  background: rgba(255,255,255,0.85);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.placeholder-hint {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.78rem;
  color: var(--text-mute);
  text-align: center;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 1.5rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.navbar.transparent { background: transparent; box-shadow: none; }
.navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: 0 2px 24px rgba(12,74,110,0.10);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  transition: transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(14,165,233,0.25);
}
.logo-mark span { font-size: 0.6em; margin: 0 1px; opacity: 0.8; }
.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.98rem; font-weight: 800;
  transition: color 0.4s ease;
  letter-spacing: 0.02em;
}
.navbar.transparent .logo-name { color: var(--white); }
.navbar.scrolled .logo-name { color: var(--navy); }
.logo-name sup { font-size: 0.55em; }
.logo-sub {
  font-family: 'Lexend', sans-serif;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.4s ease;
}
.navbar.transparent .logo-sub { color: rgba(255,255,255,0.7); }
.navbar.scrolled .logo-sub { color: var(--text-sub); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.navbar.transparent .nav-links a { color: rgba(255,255,255,0.92); }
.navbar.transparent .nav-links a:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.navbar.scrolled .nav-links a { color: var(--text-body); }
.navbar.scrolled .nav-links a:hover { background: rgba(14,165,233,0.08); color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.btn-nav-ghost {
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  transition: all 0.25s ease;
}
.navbar.transparent .btn-nav-ghost {
  color: rgba(255,255,255,0.95);
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}
.navbar.transparent .btn-nav-ghost:hover { background: rgba(255,255,255,0.18); }
.navbar.scrolled .btn-nav-ghost {
  color: var(--blue);
  border: 1.5px solid var(--blue);
  background: transparent;
}
.navbar.scrolled .btn-nav-ghost:hover { background: var(--blue); color: var(--white); }

.btn-nav-primary {
  padding: 0.6rem 1.1rem;
  background: var(--gold);
  color: var(--white);
  border-radius: 9px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.85rem; font-weight: 800;
  box-shadow: 0 3px 12px rgba(245,166,35,0.4);
  transition: all 0.25s ease;
}
.btn-nav-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(245,166,35,0.5);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar.transparent .hamburger span { background: var(--white); }
.navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(12,74,110,0.12);
  display: none; flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.4rem;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mm-ghost {
  margin-top: 0.5rem; border: 1.5px solid var(--blue);
  color: var(--blue); text-align: center; border-bottom: 1.5px solid var(--blue);
}
.mobile-menu .mm-primary {
  background: var(--gold); color: var(--white);
  text-align: center; box-shadow: var(--shadow-gold);
  border-bottom: none;
}

@media (max-width: 900px) {
  .nav-links, .btn-nav-ghost { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  /* Mobile: hide header CTA — replaced by floating bottom bar */
  .nav-cta { display: none; }
}
@media (max-width: 520px) {
  .logo-sub { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 70% 35%;
}
.hero-bg-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 50%, var(--blue) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
}
.hero-bg-placeholder .placeholder-tag {
  background: rgba(0,0,0,0.4);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-bg-placeholder .placeholder-hint {
  color: rgba(255,255,255,0.65);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(12,74,110,0.85) 0%,
    rgba(7,89,133,0.65) 45%,
    rgba(14,165,233,0.35) 80%,
    rgba(14,165,233,0.15) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

/* Floating decorative keys */
.hero-keys {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.float-key {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  color: var(--white);
  font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18), inset 0 -3px 0 rgba(0,0,0,0.15);
  animation: floatKey 6s ease-in-out infinite;
}
.float-key.k1 { top: 18%; right: 12%; animation-delay: 0s; }
.float-key.k2 { top: 30%; right: 4%; animation-delay: 0.5s; width: 52px; height: 52px; font-size: 1.2rem; }
.float-key.k3 { top: 55%; right: 18%; animation-delay: 1s; width: 72px; height: 72px; font-size: 1.7rem; }
.float-key.k4 { top: 72%; right: 6%; animation-delay: 1.5s; width: 56px; height: 56px; font-size: 1.3rem; }
.float-key.k5 { top: 8%; right: 32%; animation-delay: 2s; width: 48px; height: 48px; font-size: 1rem; opacity: 0.6; }
@keyframes floatKey {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  width: 100%;
}
.hero-inner { max-width: 760px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.4rem 0.95rem;
  background: rgba(245,166,35,0.18);
  border: 1.5px solid rgba(245,166,35,0.5);
  color: var(--gold-light);
  border-radius: 100px;
  font-size: 0.85rem; font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  margin-bottom: 1.5rem;
}
.hero-title .accent {
  color: var(--gold-light);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
#typing-text { color: var(--gold-light); }
.typing-cursor {
  display: inline-block;
  color: var(--gold-light);
  margin-left: 2px;
  animation: blink 0.9s infinite;
}
.typing-cursor.done { animation: none; opacity: 0; }
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.95);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}
.hero-subtitle sup { font-size: 0.6em; }

.hero-cta {
  display: flex; gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1.1rem 1.8rem;
  background: var(--gold);
  color: var(--white);
  border-radius: 14px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  box-shadow: 0 8px 28px rgba(245,166,35,0.45), inset 0 -3px 0 rgba(0,0,0,0.12);
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.btn-hero-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245,166,35,0.55), inset 0 -3px 0 rgba(0,0,0,0.15);
}
.btn-hero-primary .btn-arrow {
  transition: transform 0.25s ease;
}
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1.1rem 1.6rem;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  font-weight: 700; font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.7); }

.hero-stats {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stats li {
  display: flex; flex-direction: column;
  color: var(--white);
}
.hero-stats b {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}
.hero-stats span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-family: 'Lexend', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 3;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.7));
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute;
  top: -40px; left: 0; width: 100%; height: 40px;
  background: var(--gold-light);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -40px; }
  100% { top: 40px; }
}

@media (max-width: 768px) {
  .hero-keys { display: none; }
  .hero-stats { gap: 1.5rem; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
  .hero {
    padding-top: 72px;
    min-height: auto;
  }
  .hero-bg-img { background-position: 78% 30%; }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(12,74,110,0.88) 0%,
      rgba(7,89,133,0.75) 50%,
      rgba(14,165,233,0.45) 100%);
  }
  .hero-content { padding: 2.5rem 1.25rem 4rem; }
  .hero-inner { max-width: 100%; }
  .hero-eyebrow { font-size: 0.72rem; padding: 0.32rem 0.75rem; margin-bottom: 1rem; }
  .hero-title { font-size: clamp(1.85rem, 8.2vw, 2.5rem); line-height: 1.3; margin-bottom: 1.2rem; }
  .hero-subtitle { font-size: 0.92rem; line-height: 1.8; margin-bottom: 1.75rem; }
  .hero-cta { gap: 0.75rem; margin-bottom: 2rem; }
  .btn-hero-primary, .btn-hero-ghost { padding: 1rem 1.2rem; font-size: 0.95rem; }
  .scroll-indicator { display: none; }
}

/* ============================================
   WORRIES SECTION
   ============================================ */
.worries-section {
  position: relative;
  padding: 6rem 1.5rem 7rem;
  background: var(--gray-bg);
  overflow: hidden;
}
.worries-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(180deg, var(--white), transparent);
  pointer-events: none;
}
.worries-inner { max-width: var(--container); margin: 0 auto; }

.worries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.worry-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.worry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.worry-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.worry-img-wrap.illust {
  background: linear-gradient(160deg, #fff7e6 0%, #ffeacc 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem 1rem 0;
}
.worry-img-wrap.illust img {
  max-height: 100%;
  width: auto;
  max-width: 70%;
  object-fit: contain;
}
.worry-img-wrap .img-placeholder { height: 100%; border-radius: 0; border: none; }
.worry-num {
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: 'Lexend', sans-serif;
  font-weight: 800; font-size: 1.7rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(245,166,35,0.4);
  border: 3px solid var(--white);
}
.worry-card-title {
  padding: 1.4rem 1.5rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy);
}
.worry-card-title em {
  color: var(--gold-dark);
  background: linear-gradient(transparent 64%, rgba(245,166,35,0.22) 64%);
  padding: 0 0.1em;
}

@media (max-width: 768px) {
  .worries-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .worries-section { padding: 3.5rem 1.25rem 4rem; }
  .worry-img-wrap { height: 180px; }
  .worry-num { width: 44px; height: 44px; font-size: 1.4rem; bottom: 8px; right: 8px; }
  .worry-card-title { padding: 1.1rem 1.25rem 1.4rem; font-size: 0.98rem; }
  .section-head { margin-bottom: 2.25rem; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.85rem); }
  .section-eyebrow { font-size: 0.72rem; }
  .section-eyebrow::before, .section-eyebrow::after { width: 18px; }
}

/* ============================================
   VOCAB BRIDGE (chart)
   ============================================ */
.vocab {
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3rem 3rem;
  margin: 5rem auto 0;
  max-width: 1080px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.vocab::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,166,35,0.15), transparent 70%);
  pointer-events: none;
}
.vocab-tag {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold-dark);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800; font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  border: 1.5px solid rgba(245,166,35,0.3);
}
.vocab-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.vocab-title em {
  color: var(--gold);
  font-size: 1.15em;
  background: linear-gradient(transparent 64%, rgba(245,166,35,0.25) 64%);
}
.vocab-desc {
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.vocab-source {
  font-size: 0.72rem;
  color: var(--text-mute);
  line-height: 1.7;
}

.chart-label {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 600;
}
.chart-subtitle {
  font-family: 'Lexend', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.chart-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
}
.bar-group { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.bar-total {
  font-family: 'Lexend', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--text-sub);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.bar-total.new { color: var(--navy); font-size: 1.3rem; font-weight: 800; }
.bar-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem; font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.bar-stack {
  width: 80px;
  display: flex; flex-direction: column-reverse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(12,74,110,0.15);
}
.bar-seg {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 0.3rem 0;
  font-size: 0.65rem;
  line-height: 1.2;
}
.bar-seg span { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 0.72rem; }
.bar-seg small { font-size: 0.62rem; opacity: 0.85; }
.seg-elem { background: var(--gold); }
.seg-junior-old, .seg-junior-new { background: var(--blue); }
.seg-high-old, .seg-high-new { background: var(--navy); }
.bar-year {
  font-family: 'Lexend', sans-serif;
  font-size: 0.72rem;
  color: var(--text-mute);
  font-weight: 600;
  margin-top: 0.4rem;
}

.chart-legend {
  display: flex; gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.legend-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-sub);
}
.legend-dot {
  width: 10px; height: 10px; border-radius: 3px;
}

@media (max-width: 768px) {
  .vocab {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
    gap: 1.75rem;
    margin: 2.5rem 1rem 0;
    border-radius: var(--r-lg);
  }
  .vocab-title { font-size: clamp(1.3rem, 5.5vw, 1.7rem); }
  .vocab-desc { font-size: 0.9rem; line-height: 1.85; }
  .chart-wrap { gap: 0.5rem; }
  .bar-stack { width: 64px; }
  .bar-seg { padding: 0.25rem 0.1rem; }
  .bar-seg span { font-size: 0.62rem; line-height: 1.15; letter-spacing: -0.02em; }
  .bar-seg small { font-size: 0.56rem; }
  .bar-total.new { font-size: 0.92rem; flex-direction: column; gap: 0.2rem; }
  .bar-total { font-size: 0.82rem; }
  .bar-badge { font-size: 0.6rem; padding: 0.18rem 0.4rem; }
  .bar-year { font-size: 0.68rem; }
}
