/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary:   #1a73e8;
  --c-primary-d: #1557b0;
  --c-red:       #cc001d;
  --c-teal:      #0ea5e9;
  --c-green:     #10b981;
  --c-orange:    #f59e0b;
  --c-purple:    #8b5cf6;
  --c-vocab:     #f59e0b;
  --c-reading:   #0ea5e9;
  --c-writing:   #10b981;
  --c-listening: #8b5cf6;
  --c-text:      #111827;
  --c-sub:       #6b7280;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon-xs { width: 14px; height: 14px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ===== TYPOGRAPHY ===== */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #cc001d;
  background: #fff0f1;
  border: 1.5px solid #fecdd3;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-eyebrow--white { color: #fff; background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); }
.section-eyebrow.center { display: block; text-align: center; }

.section-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.03em;
  margin-bottom: 36px;
}
.section-title em       { font-style: normal; color: #cc001d; }
.section-title--white   { color: #fff; }
.section-title--white em{ color: #fca5a5; }
.section-title.center   { text-align: center; }

/* ===== BUTTON ===== */
.btn--hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #cc001d;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  padding: 18px 40px;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(204,0,29,.3);
  transition: transform .18s, box-shadow .18s;
  width: 100%;
  max-width: 340px;
  justify-content: center;
  letter-spacing: .03em;
}
.btn--hero:hover  { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 40px rgba(204,0,29,.4); }
.btn--hero:active { transform: scale(.97); }
/* CTAセクション（赤背景）：白ボタン */
.btn--cta {
  background: #fff600;
  color: #000 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.btn--cta:hover { box-shadow: 0 14px 36px rgba(0,0,0,.28); transform: translateY(-2px); }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  background: #fff;
  overflow: hidden;
  padding: 52px 24px 44px;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__shape { position: absolute; border-radius: 50%; }
.hero__shape--1 { width: 500px; height: 500px; background: none; top: -140px; right: -100px; }
.hero__shape--2 { width: 360px; height: 360px; background: none; bottom: -90px; left: -80px; }

/* =============================
   HERO LAYOUT (Mobile: 縦積み・全画面)
   ============================= */
.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}

/* ビジュアルエリア */
.hero__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 0 24px;
}

/* スマホ＋アイコンのラッパー */
.phone-wrap {
  position: relative;
  width: 220px;
  margin: 0 auto 0 auto;
}

/* スマホ本体を傾ける */
.hd-phone {
  transform: rotate(-8deg) !important;
  transform-origin: center bottom;
}

/* アイコンバブル（広めに散らばせる） */
.hb {
  position: absolute;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  z-index: 2;
}
.hb svg { color: #fff; }

/* 左上 - 大 */
.hb--tl {
  width: 52px; height: 52px;
  background: #fbbf24;
  top: 0px; left: -56px;
  transform: rotate(-14deg);
}
.hb--tl svg { width: 26px; height: 26px; }

/* 右上 - 中 */
.hb--tr {
  width: 44px; height: 44px;
  background: #10b981;
  top: 30px; right: -60px;
  transform: rotate(12deg);
}
.hb--tr svg { width: 22px; height: 22px; }

/* 左中 - 中 */
.hb--bl {
  width: 44px; height: 44px;
  background: #8b5cf6;
  bottom: 120px; left: -52px;
  transform: rotate(-10deg);
}
.hb--bl svg { width: 22px; height: 22px; }

/* 右中 - 大 */
.hb--mr {
  width: 50px; height: 50px;
  background: #f59e0b;
  top: 38%; right: -64px;
  transform: rotate(8deg);
}
.hb--mr svg { width: 24px; height: 24px; }

/* 右下 - 中 */
.hb--br {
  width: 44px; height: 44px;
  background: #0ea5e9;
  bottom: 60px; right: -56px;
  transform: rotate(-12deg);
}
.hb--br svg { width: 22px; height: 22px; }

/* ==========================
   デバイスモックアップ
   ========================== */
.hero-devices {
  position: relative;
  width: 100%;
  max-width: 520px;
}

/* --- PC ブラウザ --- */
.hd-pc {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.16);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  /* モバイル：PCは非表示 */
  display: none;
}
.hd-pc-bar {
  background: #f1f5f9;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hd-dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.hd-dot:nth-child(1) { background: #fc605b; }
.hd-dot:nth-child(2) { background: #fdbc40; }
.hd-dot:nth-child(3) { background: #35cd4b; }
.hd-url { font-size: 10px; color: #94a3b8; margin-left: 8px; }
.hd-pc-body { padding: 14px; background: #f8fafd; }
.hd-greeting { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.hd-avatar { width: 30px; height: 30px; border-radius: 50%; background: #cc001d; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.hd-name { font-size: 12px; font-weight: 700; }
.hd-sub  { font-size: 10px; color: #64748b; }
.hd-sub strong { color: #cc001d; }
.hd-menu-title { font-size: 10px; font-weight: 700; color: #64748b; margin-bottom: 8px; }
.hd-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hd-skill {
  background: #fff; border-radius: 8px; padding: 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  border: 1.5px solid #e2e8f0;
}
.hd-skill--v { border-color: #fde68a; color: #92400e; }
.hd-skill--r { border-color: #bae6fd; color: #0369a1; }
.hd-skill--w { border-color: #a7f3d0; color: #065f46; }
.hd-skill--l { border-color: #ddd6fe; color: #5b21b6; }

/* --- スマホ枠 --- */
.hd-phone {
  background: #1c1c1e;
  border-radius: 30px;
  padding: 4px 4px 8px;
  box-shadow: 0 32px 64px rgba(0,0,0,.28), 0 8px 20px rgba(0,0,0,.15);
  position: relative;
  z-index: 1;
  width: 220px;
  margin: 0 auto;
  max-height: min(310px, calc(100svh - 340px));
  overflow: hidden;
}
.hd-phone-notch {
  width: 48px; height: 4px; background: #3f3f46;
  border-radius: 2px; margin: 4px auto 6px;
}
.hd-phone-body { background: #fff; border-radius: 20px; padding: 12px 10px; }

/* クイズ画面 */
.hd-quiz-top   { font-size: 10px; color: #94a3b8; margin-bottom: 8px; text-align: right; }
.hd-quiz-card  { background: #f8fafd; border-radius: 10px; padding: 12px; margin-bottom: 10px; border: 1px solid #e2e8f0; }
.hd-quiz-badge { display: inline-block; background: #fef3c7; color: #92400e; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-bottom: 7px; }
.hd-quiz-word  { font-size: 22px; font-weight: 900; color: #0f172a; margin-bottom: 3px; }
.hd-quiz-phonetic { font-size: 10px; color: #64748b; margin-bottom: 6px; }
.hd-quiz-hint  { font-size: 10px; color: #94a3b8; }
.hd-quiz-choices { display: flex; flex-direction: column; gap: 5px; }
.hd-choice {
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 8px; padding: 8px 10px;
  font-size: 11px; color: #475569;
}
.hd-choice--ok {
  background: #ecfdf5; border-color: #10b981;
  color: #065f46; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}

/* Desktop */
@media (min-width: 640px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "head visual" "body visual";
    gap: 20px 40px;
    align-items: start;
    flex: none;
  }
  .hero__head   { grid-area: head; }
  .hero__visual { grid-area: visual; align-self: center; flex: none; padding: 0; }
  .hero__body   { grid-area: body; }

  /* PC+スマホ構成 */
  .hd-pc { display: block; margin-bottom: 0; }
  .hd-phone {
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 140px;
    max-height: none;
    transform: perspective(600px) rotateY(-6deg) rotateX(2deg);
    box-shadow: 12px 12px 32px rgba(0,0,0,.35);
    z-index: 2;
  }
  .hd-phone:hover { transform: perspective(600px) rotateY(-3deg) rotateX(1deg); }
}

.hero__head { text-align: center; }
.hero__body { text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff0f1;
  color: #cc001d;
  border: 1.5px solid #fecdd3;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.hero__title {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #111827;
  margin-bottom: 14px;
}
.hero__title-skills {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.hero__title em {
  font-style: normal;
  color: #cc001d;
  display: block;
  font-size: 36px;
  line-height: 1.2;
}

.hero__lead { font-size: 14px; color: #6b7280; line-height: 1.8; margin-bottom: 24px; }
.hero__lead strong { color: #111827; }
.hero__cta-note { margin-top: 10px; font-size: 12px; color: #9ca3af; }

/* モバイルではヒーロー内の対応級は非表示（下のセクションで確認できる） */
.hero__grades { display: none; margin-top: 28px; }
.hero__grades-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #94a3b8;
  letter-spacing: .08em; margin-bottom: 10px;
}
.hero__grades-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  margin-bottom: 12px;
}
.hg-item {
  font-size: 13px; font-weight: 700;
  color: #374151;
  background: rgba(0,0,0,.05);
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.3;
}
.hg-item--new { color: #065f46; background: #ecfdf5; }
.hg-new { font-size: 8px; background: #10b981; color: #fff; border-radius: 3px; padding: 1px 4px; margin-left: 3px; vertical-align: middle; }
.hg-sep { font-size: 11px; color: #d1d5db; padding: 0 1px; }

.hero__grades-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #9ca3af;
}
.hero__grades-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e5e7eb;
}

/* Hero mockup */
.hero-mock { background: #fff; border-radius: 18px; box-shadow: 0 8px 40px rgba(0,0,0,.14); border: 1px solid #e2e8f0; overflow: hidden; }

/* AI添削モックアップ */
.hm-ai-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hm-ai-badge { background: #cc001d; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.hm-ai-type  { font-size: 11px; font-weight: 700; color: var(--c-sub); }

.hm-essay { background: #f8fafd; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #e2e8f0; }
.hm-essay-label { font-size: 9px; font-weight: 700; color: #94a3b8; margin-bottom: 5px; }
.hm-essay-text { font-size: 11px; color: #475569; line-height: 1.6; }
.hm-hl { background: #fef08a; color: #0f172a; border-radius: 2px; padding: 0 2px; }

.hm-result-header { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #10b981; margin-bottom: 10px; }

.hm-scores { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.hm-score-row { display: flex; align-items: center; gap: 8px; }
.hm-score-label { font-size: 10px; color: var(--c-sub); width: 24px; flex-shrink: 0; }
.hm-score-bar { flex: 1; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.hm-score-fill { height: 100%; background: #10b981; border-radius: 3px; }
.hm-score-val { font-size: 12px; font-weight: 900; color: #10b981; width: 26px; text-align: right; flex-shrink: 0; }

.hm-total-score { text-align: center; font-size: 11px; color: var(--c-sub); margin-bottom: 10px; padding: 8px; background: #f0fdf4; border-radius: 8px; }
.hm-total-score strong { font-size: 22px; color: #10b981; }
.hm-total-score span { font-size: 11px; }

.hm-feedback-text { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #475569; background: #f8fafd; border-radius: 8px; padding: 8px 10px; line-height: 1.6; }
.hm-feedback-text svg { color: var(--c-primary); flex-shrink: 0; margin-top: 1px; }
.hero-mock__bar { background: #f1f5f9; padding: 10px 14px; display: flex; gap: 6px; }
.hmb-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.hmb-dot:nth-child(1) { background: #fc605b; }
.hmb-dot:nth-child(2) { background: #fdbc40; }
.hmb-dot:nth-child(3) { background: #35cd4b; }
.hero-mock__body { padding: 16px; background: #f8fafd; }
.hm-greeting { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.hm-avatar { width: 34px; height: 34px; border-radius: 50%; background: #1a73e8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.hm-name { font-size: 13px; font-weight: 700; }
.hm-sub  { font-size: 10px; color: var(--c-sub); }
.hm-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.hm-stat { flex: 1; background: #fff; border-radius: 10px; padding: 10px 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.hm-stat-v { font-size: 18px; font-weight: 900; line-height: 1; margin-bottom: 3px; }
.hm-stat-v.green  { color: #10b981; }
.hm-stat-v.orange { color: #f59e0b; }
.hm-stat-v.blue   { color: #1a73e8; }
.hm-stat-v span { font-size: 11px; font-weight: 400; }
.hm-stat-l { font-size: 9px; color: #94a3b8; }
.hm-section-title { font-size: 11px; font-weight: 700; color: var(--c-sub); margin-bottom: 8px; }
.hm-menus { display: flex; flex-direction: column; gap: 6px; }
.hm-menu { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; border: 1.5px solid #e2e8f0; }
.hm-menu-left { display: flex; flex-direction: column; }
.hm-menu-tag  { font-size: 9px; color: var(--c-sub); margin-bottom: 2px; }
.hm-menu-name { font-size: 12px; font-weight: 700; }
.hm-menu-btn  { font-size: 10px; font-weight: 700; border: none; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.hm-menu-btn.yellow { background: #fef3c7; color: #92400e; }
.hm-menu-btn.teal   { background: #e0f2fe; color: #0369a1; }
.hm-menu-btn.green  { background: #d1fae5; color: #065f46; }

@media (min-width: 640px) {
  .hero {
    padding: 64px 48px 72px;
    min-height: 580px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero__before { z-index: 0; }
  .hero__inner {
    max-width: 1060px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "head visual" "body visual";
    gap: 16px 60px;
    align-items: center;
    flex: none;
    width: 100%;
  }
  .hero__head   { grid-area: head; align-self: end; text-align: left; }
  .hero__visual { grid-area: visual; align-self: center; flex: none; padding: 0; }
  .hero__body   { grid-area: body; align-self: start; text-align: left; }
  .hero__title em { font-size: 44px; }
  .btn--hero { width: auto; }

  /* PCスマホ：サイズと位置を整える */
  .phone-wrap { width: 260px; margin: 0 auto; }
  .hd-phone {
    width: 260px;
    max-height: 500px;
    overflow: hidden;
  }
  .hb { width: 50px; height: 50px; border-radius: 15px; }
  .hb svg { width: 24px; height: 24px; }
  .hb--tl { top: 20px;  left: -38px; }
  .hb--tr { top: 40px;  right: -38px; }
  .hb--bl { bottom: 80px; left: -34px; }
  .hb--br { bottom: 50px; right: -34px; }
  .hb--mr { top: 45%;  right: -42px; }
}

/* ============================
   STRIP
   ============================ */
.strip { background: #cc001d; padding: 32px 0; text-align: center; }
.strip__main {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.strip__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}
.strip__tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 5px 14px;
}
.strip__tags svg { color: rgba(255,255,255,.8); }
@media (min-width: 640px) {
  .strip__main { font-size: 26px; }
  .strip__tags { flex-wrap: nowrap; }
}

/* ============================
   EIKEN SECTION
   ============================ */
.eiken-section { padding: 88px 0; background: #fafafa; }
.eiken-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.eiken-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid #cc001d;
  transition: transform .2s, box-shadow .2s;
}
.eiken-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.eiken-card__icon {
  width: 48px; height: 48px;
  background: #fff0f1;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #cc001d;
  margin-bottom: 14px;
}
.eiken-card__icon svg { width: 24px; height: 24px; }
.eiken-card h3 { font-size: 15px; font-weight: 900; margin-bottom: 8px; }
.eiken-card p  { font-size: 13px; color: var(--c-sub); line-height: 1.75; }
@media (min-width: 640px) {
  .eiken-grid { grid-template-columns: repeat(4,1fr); }
}

/* ============================
   PAIN
   ============================ */
.pain { padding: 88px 0; background: #fff; text-align: center; }
.pain__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.pain__card { background: #fff; border: 1.5px solid #f3f4f6; border-radius: var(--radius-lg); padding: 24px 14px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pain__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain__icon { width: 52px; height: 52px; border-radius: 16px; background: #fff0f1; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #cc001d; }
.pain__icon svg { width: 22px; height: 22px; }
.pain__card p { font-size: 13px; line-height: 1.65; color: #475569; }
.pain__card strong { color: var(--c-text); }
.pain__answer-arrow { color: #cc001d; margin-bottom: 16px; display: flex; justify-content: center; }
.pain__answer-arrow svg { width: 32px; height: 32px; }
.pain__answer-box { background: #fff0f1; border-radius: 16px; padding: 22px 20px; font-size: 17px; font-weight: 700; }
.pain__answer-box strong { color: #cc001d; font-size: 19px; }

/* ============================
   MID CTA
   ============================ */
.mid-cta {
  padding: 40px 20px;
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  text-align: center;
}
.mid-cta--dark {
  background: #fff5f5;
  border-top: 1px solid #fecaca;
  border-bottom: 1px solid #fecaca;
}
.mid-cta__text {
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 16px;
}
.mid-cta--dark .mid-cta__text { color: #9b0018; }
.mid-cta__note {
  margin-top: 10px;
  font-size: 11px;
  color: #94a3b8;
}
.mid-cta--dark .mid-cta__note { color: #94a3b8; }

/* ============================
   GRADE CONTENT SECTION
   ============================ */
.gc-section { padding: 88px 0; background: #fafafa; }

.gc-intro { text-align: center; font-size: 14px; color: var(--c-sub); margin-bottom: 16px; margin-top: -16px; }

/* タップ誘導ヒント */
.gc-tap-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #cc001d;
  margin-bottom: 14px;
  animation: tapPulse 2s ease-in-out infinite;
}
@keyframes tapPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}

/* Grade selector buttons */
.gc-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.gc-btn {
  border: 2px solid #e2e8f0;
  background: #fff;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 12px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s;
  position: relative;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.gc-btn:hover {
  border-color: #cc001d;
  color: #cc001d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(204,0,29,.15);
}
.gc-btn.active {
  background: #cc001d;
  border-color: #cc001d;
  color: #fff;
  box-shadow: 0 4px 14px rgba(204,0,29,.35);
  transform: translateY(-2px);
}
.gc-new-badge { display: block; font-size: 8px; background: #10b981; color: #fff; border-radius: 3px; padding: 1px 4px; margin: 3px auto 0; width: fit-content; }

/* Grade panels */
.gc-panel { display: none; animation: fadeIn .2s ease; }
.gc-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gc-panel-header {
  background: #cc001d;
  border-radius: 16px 16px 0 0;
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.gc-panel-title { font-size: 20px; font-weight: 900; color: #fff; }
.gc-panel-sub   { font-size: 12px; color: rgba(255,255,255,.7); }

.gc-skills {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
@media (min-width: 600px) {
  .gc-skills { grid-template-columns: 1fr 1fr 1fr; }
}

.gc-skill { padding: 20px; }
.gc-skill + .gc-skill { border-top: 1.5px solid #f1f5f9; }
@media (min-width: 600px) {
  .gc-skill + .gc-skill { border-top: none; border-left: 1.5px solid #f1f5f9; }
}

.gc-skill-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}
.gc-skill-icon { width: 16px; height: 16px; flex-shrink: 0; }

.gc-skill--reading  .gc-skill-head { color: var(--c-reading);  }
.gc-skill--writing  .gc-skill-head { color: var(--c-writing);  }
.gc-skill--listening.gc-skill-head { color: var(--c-listening); }
.gc-skill--reading  .gc-skill-icon { color: var(--c-reading);  }
.gc-skill--writing  .gc-skill-icon { color: var(--c-writing);  }
.gc-skill--listening .gc-skill-icon { color: var(--c-listening); }

.gc-skill ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gc-skill li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}
.gc-check      { color: var(--c-green); flex-shrink: 0; margin-top: 1px; }
.gc-check-none { color: #94a3b8; flex-shrink: 0; margin-top: 1px; }
.gc-none       { color: #94a3b8 !important; }

/* ============================
   HOW IT WORKS
   ============================ */
.hiw { padding: 72px 0; background: #fff; text-align: center; }
.hiw__steps {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}
.hiw__step {
  flex: 1;
  padding: 16px 10px;
  text-align: center;
}
.hiw__step-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fef2f2;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  color: #cc001d;
}
.hiw__step-icon svg { width: 22px; height: 22px; }
.hiw__step-num {
  font-size: 10px; font-weight: 900;
  color: #cc001d; letter-spacing: .1em; margin-bottom: 6px;
}
.hiw__step h3 { font-size: 13px; font-weight: 900; margin-bottom: 4px; }
.hiw__step p  { font-size: 12px; color: var(--c-sub); line-height: 1.6; }
.hiw__arrow {
  color: #d1d5db;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2px; margin-top: 30px; flex-shrink: 0;
}
.hiw__arrow svg { width: 20px; height: 20px; }

/* ============================
   FEATURES
   ============================ */
.features { padding: 88px 0; background: #fafafa; }

.feature-block {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 20px; display: flex; flex-direction: column;
  border-left: 5px solid transparent;
  transition: box-shadow .2s, transform .2s;
}
.feature-block:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-block--vocab    { border-left-color: var(--c-vocab); }
.feature-block--reading  { border-left-color: var(--c-reading); }
.feature-block--writing  { border-left-color: var(--c-writing); }
.feature-block--listening{ border-left-color: var(--c-listening); }

.feature-block__body   { padding: 28px 24px 20px; order: 1; }
.feature-block__screen { order: 2; padding: 0 20px 24px; }

.feature-block__tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; margin-bottom: 12px; letter-spacing: .03em;
}
.feature-block--vocab    .feature-block__tag { background: #fef3c7; color: #92400e; }
.feature-block--reading  .feature-block__tag { background: #e0f2fe; color: #0369a1; }
.feature-block--writing  .feature-block__tag { background: #d1fae5; color: #065f46; }
.feature-block--listening .feature-block__tag { background: #ede9fe; color: #5b21b6; }
.feature-block__tag--hot { background: #fef3c7; color: #065f46; }

.feature-block__title { font-size: 22px; font-weight: 900; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 12px; }
.feature-block__text  { font-size: 14px; color: #475569; line-height: 1.8; margin-bottom: 16px; }
.feature-block__points { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-block__points span { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; border-radius: 100px; font-size: 11px; font-weight: 700; padding: 4px 10px; color: #475569; }

/* Screen mockups */
.screen-mock { background: #f8fafd; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 16px; font-size: 13px; }
.sm-topbar { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-sub); margin-bottom: 14px; }
.sm-progress { font-weight: 700; }
.sm-exit { color: var(--c-primary); font-weight: 700; }
.sm-card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sm-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 100px; padding: 3px 10px; margin-bottom: 10px; }
.sm-badge--yellow { background: #fef3c7; color: #92400e; }
.sm-word     { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.sm-phonetic { font-size: 12px; color: var(--c-sub); margin-bottom: 10px; }
.sm-hint     { font-size: 12px; color: #94a3b8; }
.sm-choices  { display: flex; flex-direction: column; gap: 7px; }
.sm-choice { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #475569; }
.sm-choice--correct { background: #ecfdf5; border-color: #10b981; color: #065f46; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }

.sm-reading-header { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.sm-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.sm-dot.teal   { background: #0ea5e9; }
.sm-dot.purple { background: #8b5cf6; }
.sm-history-link { font-size: 11px; color: var(--c-sub); font-weight: 400; }
.sm-reading-desc  { font-size: 12px; color: var(--c-sub); margin-bottom: 12px; line-height: 1.6; }
.sm-select-box { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 500; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.sm-reading-label { font-size: 11px; color: var(--c-sub); margin-bottom: 8px; font-weight: 700; }
.sm-reading-items { display: flex; flex-direction: column; gap: 7px; }
.sm-reading-item { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 11px 14px; }
.sm-reading-item strong { display: block; font-size: 13px; margin-bottom: 3px; }
.sm-reading-item span   { font-size: 11px; color: var(--c-sub); }
.sm-reading-item--active         { background: #eff6ff; border-color: #0ea5e9; }
.sm-reading-item--active strong  { color: #0369a1; }
.sm-reading-item--active-purple  { background: #f5f3ff; border-color: #8b5cf6; }
.sm-reading-item--active-purple strong { color: #5b21b6; }

.sm-writing-header { display: inline-flex; align-items: center; gap: 5px; background: #d1fae5; color: #065f46; font-size: 12px; font-weight: 700; border-radius: 100px; padding: 4px 12px; margin-bottom: 14px; }
.sm-writing-scores { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 12px; }
.sm-wscore { background: #fff; border-radius: 10px; padding: 10px 6px; text-align: center; }
.sm-wscore-val   { font-size: 18px; font-weight: 900; color: #10b981; }
.sm-wscore-label { font-size: 10px; color: var(--c-sub); margin: 3px 0; }
.sm-wscore-bar   { height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
.sm-wscore-fill  { height: 100%; background: #10b981; border-radius: 2px; }
.sm-writing-total { text-align: center; font-size: 13px; color: var(--c-sub); margin-bottom: 10px; }
.sm-writing-total strong { font-size: 22px; color: #10b981; }
.sm-writing-feedback { display: flex; align-items: flex-start; gap: 6px; background: #ecfdf5; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #065f46; line-height: 1.6; }

@media (min-width: 640px) {
  .feature-block { flex-direction: row; align-items: stretch; border-left: none; border-top: 5px solid transparent; }
  .feature-block--vocab    { border-top-color: var(--c-vocab); }
  .feature-block--reading  { border-top-color: var(--c-reading); }
  .feature-block--writing  { border-top-color: var(--c-writing); }
  .feature-block--listening{ border-top-color: var(--c-listening); }
  .feature-block--rev      { flex-direction: row-reverse; }
  .feature-block__body   { flex: 1; padding: 36px 32px; order: 1; }
  .feature-block__screen { flex: 0 0 260px; padding: 24px 20px; order: 2; display: flex; align-items: center; }
  .feature-block--rev .feature-block__screen { order: 1; }
  .feature-block--rev .feature-block__body   { order: 2; }
  .feature-block__title { font-size: 24px; }
  .screen-mock { width: 100%; }
}

/* ============================
   DASHBOARD
   ============================ */
.dashboard-section {
  position: relative; padding: 72px 0;
  background: #0f2d5e;
  text-align: center; overflow: hidden;
}
.dashboard-section::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='%23ffffff' fill-opacity='0.03'%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/svg%3E");
}
.dashboard-section > * { position: relative; }
.dashboard-section__lead { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.85; margin-bottom: 36px; }
.dashboard-section__lead strong { color: #fff; }
.dashboard-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ds-card { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 22px; min-width: 100px; flex: 1; max-width: 160px; text-align: center; }
.ds-icon   { width: 28px; height: 28px; margin: 0 auto 8px; display: block; color: rgba(255,255,255,.6); }
.orange-i  { color: #fde68a; }
.blue-i    { color: #93c5fd; }
.ds-card__val { font-size: 32px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 6px; }
.ds-card__val span { font-size: 15px; font-weight: 400; }
.ds-card__val.green  { color: #6ee7b7; }
.ds-card__val.orange { color: #fde68a; }
.ds-card__val.blue   { color: #93c5fd; }
.ds-card__label { font-size: 11px; color: rgba(255,255,255,.6); }

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials-section { padding: 88px 0; background: #fafafa; }
.testimonials-grid { display: flex; flex-direction: column; gap: 20px; }

.t-card {
  background: #f8fafd;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

/* ユーザー行 */
.t-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.t-avatar svg { width: 28px; height: 28px; }
.t-avatar--blue   { background: #1a73e8; }
.t-avatar--purple { background: #8b5cf6; }
.t-avatar--teal   { background: #10b981; }

.t-user-info { flex: 1; }
.t-name  { font-size: 14px; font-weight: 900; color: var(--c-text); }
.t-grade {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--c-primary);
  margin-top: 2px;
}
.t-grade svg { color: var(--c-green); }

.t-stars { display: flex; gap: 2px; flex-shrink: 0; }
.star-icon { width: 15px; height: 15px; color: #f59e0b; fill: #f59e0b; }

/* 吹き出し */
.t-bubble {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 0 16px 16px 16px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
  position: relative;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.t-bubble::before {
  content: '';
  position: absolute;
  top: -10px; left: 14px;
  border: 5px solid transparent;
  border-bottom-color: #e2e8f0;
}
.t-bubble::after {
  content: '';
  position: absolute;
  top: -8px; left: 15px;
  border: 4px solid transparent;
  border-bottom-color: #fff;
}
.t-bubble p { font-size: 14px; line-height: 1.75; color: #334155; }
.t-bubble strong { color: var(--c-text); font-weight: 900; }
.t-bubble-icon { width: 18px; height: 18px; color: var(--c-primary); flex-shrink: 0; margin-top: 1px; }

@media (min-width: 640px) {
  .testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .testimonials-grid .t-card:last-child { grid-column: 1 / -1; }
}

/* ============================
   CTA
   ============================ */
.cta-section {
  position: relative; padding: 88px 0;
  background: #cc001d;
  text-align: center; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  pointer-events: none;
}
.cta-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.cta-shape--1, .cta-shape--2 { display: none; }
.cta-section__inner { position: relative; }
.cta-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 100px; margin-bottom: 20px; }
.cta-section__title { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 12px; }
.cta-section__body  { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 32px; }
.cta-section__note  { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.4); }

/* ============================
   FOOTER
   ============================ */
.footer { background: #060d1a; padding: 36px 0; text-align: center; }
.footer__logo    { margin-bottom: 8px; }
.footer__logo-en { font-size: 18px; font-weight: 900; color: #fff; margin-right: 8px; }
.footer__logo-ja { font-size: 12px; color: rgba(255,255,255,.4); }
.footer__eiken   { font-size: 11px; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer__nav     { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer__nav a   { font-size: 12px; color: rgba(255,255,255,.5); }
.footer__nav a:hover { color: #fff; }
.footer__copy    { font-size: 11px; color: rgba(255,255,255,.25); }
