/* =====================================================
   index.css — トップページ専用スタイル
   education.qumcum.com
   ===================================================== */

/* ===== SECTION HEADER ===== */
.ab-header {
  text-align: center;
  margin-bottom: 56px;
}
.ab-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A56A4;
  background: #EBF4FF;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.ab-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #1E2A3B;
  line-height: 1.35;
  margin-bottom: 16px;
}
.ab-lead {
  font-size: 16px;
  color: #718096;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero { padding: 96px 0 80px; background: #fff; border-bottom: 1px solid #E2E8F0; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: #1A56A4;
  letter-spacing: 0.06em; margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 2px; background: #1A56A4;
}
.hero-title {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700; line-height: 1.5;
  color: #1E2A3B; margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: #1A56A4; }
.hero-particle {
  font-size: 0.62em;
  vertical-align: 0.05em;
  opacity: 0.75;
}
/* em内のparticleはgradientを再適用しないと透明になる */
.hero-title em .hero-particle {
  background: linear-gradient(90deg, #60A5FA 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { font-size: 15px; color: #4A5568; line-height: 1.9; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 12px; color: #718096; margin-top: 12px; }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  animation: heroFadeIn 0.9s ease 0.3s both;
}

/* 背後のブルー光彩オーラ */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 85%; height: 85%;
  background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ロボット＋脳キャンバスのラッパー */
.hero-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  z-index: 1;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 28px 52px rgba(26,86,164,0.25));
}

/* ロボット画像：クリッピングなし・フェードパルス */
.hero-robot-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.18;
  animation: robotPulse 4.5s ease-in-out infinite;
}

/* 脳キャンバス：ロボットの上に重ねる */
#brain-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

/* ===== BACKGROUND (課題) ===== */
.background-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.issue-card {
  padding: 28px 24px; border: 1px solid #E2E8F0;
  border-radius: 8px; background: #fff;
}
.issue-card-icon {
  width: 48px; height: 48px;
  background: #EBF4FF;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: #1A56A4;
}
.issue-card-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.issue-card h3 { font-size: 15px; font-weight: 700; color: #1E2A3B; margin-bottom: 10px; line-height: 1.5; }
.issue-card p { font-size: 13px; color: #4A5568; line-height: 1.8; }

/* ===== PHILOSOPHY ===== */
.philosophy-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start; margin-top: 48px;
}
.philosophy-text p { font-size: 15px; color: #4A5568; line-height: 1.9; margin-bottom: 16px; }
.philosophy-points { display: flex; flex-direction: column; gap: 16px; }
.philosophy-point {
  padding: 18px 20px; background: #F7F9FC;
  border-left: 3px solid #1A56A4; border-radius: 0 6px 6px 0;
}
.philosophy-point h3 { font-size: 14px; font-weight: 700; color: #1E2A3B; margin-bottom: 4px; }
.philosophy-point p { font-size: 13px; color: #4A5568; line-height: 1.7; }

/* ===== LEARNING FLOW ===== */
.flow-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 48px;
}
.flow-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 40px 24px; position: relative;
}
.flow-step:not(:last-child)::after {
  content: '→'; position: absolute;
  right: -14px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: #CBD5E0; z-index: 1;
}
.flow-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: #1A56A4; margin-bottom: 12px;
}
.flow-step-icon {
  width: 72px; height: 72px; background: #EBF4FF;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
  color: #1A56A4;
}
.flow-step-icon svg {
  width: 28px; height: 28px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.flow-step h3 { font-size: 16px; font-weight: 700; color: #1E2A3B; margin-bottom: 10px; }
.flow-step p { font-size: 13px; color: #4A5568; line-height: 1.7; }
.flow-note {
  margin-top: 40px; padding: 20px 24px; background: #F7F9FC;
  border-radius: 6px; font-size: 14px; color: #4A5568;
  line-height: 1.8; text-align: center;
}

/* ===== DIFFERENCE ===== */
.difference-table-wrapper { margin-top: 48px; overflow-x: auto; }
.difference-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.difference-table th {
  background: #F7F9FC; color: #4A5568; font-weight: 700;
  font-size: 12px; text-align: left; padding: 14px 20px;
  border-bottom: 2px solid #E2E8F0; white-space: nowrap;
}
.difference-table td {
  padding: 16px 20px; border-bottom: 1px solid #E2E8F0;
  color: #4A5568; vertical-align: top; line-height: 1.7;
}
.difference-table tr:last-child td { border-bottom: none; }
.difference-table .row-highlight { background: #EBF4FF; }
.difference-table .row-highlight td { color: #1E2A3B; font-weight: 500; }
.difference-table .td-name { font-weight: 700; color: #1E2A3B; white-space: nowrap; }
.difference-note { margin-top: 16px; font-size: 12px; color: #718096; line-height: 1.7; }

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.achievement-card {
  padding: 28px 24px; background: #fff;
  border: 1px solid #E2E8F0; border-radius: 8px;
}
.achievement-card-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #718096; margin-bottom: 10px;
}
.achievement-card h3 { font-size: 15px; font-weight: 700; color: #1E2A3B; margin-bottom: 10px; line-height: 1.5; }
.achievement-card p { font-size: 13px; color: #4A5568; line-height: 1.8; }
.achievement-photos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 36px;
}
.achievement-photo { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.achievement-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== ROADMAP ===== */
.roadmap-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 48px;
}
.roadmap-step {
  padding: 24px 18px; text-align: center;
  border: 1px solid #E2E8F0; border-radius: 8px;
  background: #fff; position: relative;
}
.roadmap-step-level {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  background: #EBF4FF; color: #1A56A4; margin-bottom: 12px;
}
.roadmap-step h3 { font-size: 14px; font-weight: 700; color: #1E2A3B; margin-bottom: 8px; }
.roadmap-step p { font-size: 12px; color: #4A5568; line-height: 1.7; }
.roadmap-step-product {
  display: inline-block; font-size: 11px; margin-top: 10px;
  padding: 2px 10px; border-radius: 20px;
  background: #F7F9FC; color: #718096; border: 1px solid #E2E8F0;
}

/* ===== CURRICULUM ===== */
.curriculum-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.curriculum-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.curriculum-card {
  border: 1px solid #E2E8F0; border-radius: 8px;
  overflow: hidden; background: #fff; transition: box-shadow 0.2s;
}
.curriculum-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.curriculum-card--primary { border-color: #1A56A4; }
.curriculum-card-header { padding: 20px 24px; background: #F7F9FC; }
.curriculum-card--primary .curriculum-card-header { background: #1A56A4; }
.curriculum-card-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; margin-bottom: 8px;
  background: #EBF4FF; color: #1A56A4;
}
.curriculum-card--primary .curriculum-card-tag { background: rgba(255,255,255,0.2); color: #fff; }
.curriculum-card-header h3 { font-size: 17px; font-weight: 700; color: #1E2A3B; line-height: 1.3; }
.curriculum-card--primary .curriculum-card-header h3 { color: #fff; }
.curriculum-card-header p { font-size: 13px; color: #718096; margin-top: 4px; }
.curriculum-card--primary .curriculum-card-header p { color: rgba(255,255,255,0.8); }
.curriculum-card-body { padding: 20px 24px; }
.curriculum-targets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.target-badge {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: #F7F9FC; color: #4A5568; border: 1px solid #E2E8F0;
}
.curriculum-features { font-size: 13px; color: #4A5568; line-height: 1.8; margin-bottom: 16px; }
.curriculum-features li { padding-left: 1em; position: relative; }
.curriculum-features li::before { content: '–'; position: absolute; left: 0; color: #CBD5E0; }
.curriculum-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: #1A56A4; }
.curriculum-link:hover { text-decoration: underline; }

/* ===== USAGE ===== */
.usage-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start; margin-top: 48px;
}
.usage-points { display: flex; flex-direction: column; gap: 20px; }
.usage-point { display: flex; gap: 16px; align-items: flex-start; }
.usage-point-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: #EBF4FF; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #1A56A4;
}
.usage-point-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.usage-point-text h3 { font-size: 15px; font-weight: 700; color: #1E2A3B; margin-bottom: 4px; }
.usage-point-text p { font-size: 13px; color: #4A5568; line-height: 1.7; }
.usage-diagram { background: #F7F9FC; border-radius: 8px; padding: 28px 24px; }
.usage-diagram-title { font-size: 14px; font-weight: 700; color: #1E2A3B; margin-bottom: 20px; text-align: center; }
.usage-diagram-step {
  background: #EBF4FF; border-radius: 6px; padding: 14px 16px; margin-bottom: 8px;
}
.usage-diagram-step-label { font-size: 11px; color: #1A56A4; font-weight: 700; margin-bottom: 4px; }
.usage-diagram-step-text { font-size: 13px; color: #1E2A3B; }
.usage-diagram-step-sub { font-size: 12px; color: #718096; margin-top: 3px; }
.usage-diagram-arrow { text-align: center; color: #CBD5E0; font-size: 16px; margin: 4px 0; }
.usage-diagram-note { margin-top: 12px; padding: 12px 14px; background: #fff; border-radius: 6px; font-size: 12px; color: #718096; line-height: 1.7; }

/* ===== INTRO SUPPORT ===== */
.support-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.support-step {
  padding: 28px 24px; background: #fff;
  border: 1px solid #E2E8F0; border-radius: 8px; text-align: center;
}
.support-step-num { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 700; color: #CBD5E0; margin-bottom: 12px; }
.support-step h3 { font-size: 15px; font-weight: 700; color: #1E2A3B; margin-bottom: 8px; }
.support-step p { font-size: 13px; color: #4A5568; line-height: 1.7; }

/* ===== CTA ===== */
.cta-section {
  padding: 80px 0; background: #F7F9FC;
  text-align: center; border-top: 1px solid #E2E8F0;
}
.cta-title { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; color: #1E2A3B; margin-bottom: 16px; }
.cta-text { font-size: 15px; color: #4A5568; line-height: 1.9; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: 12px; color: #718096; }

/* ===== VISUAL ENHANCEMENTS ===== */

/* Hero: より大きく、インパクトのあるタイトル */
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.4;
}

/* Heroに薄いアクセントライン */
.hero {
  border-bottom: none;
  position: relative;
}
.hero::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1A56A4 0%, #4A90D9 50%, transparent 100%);
}

/* 課題カード: ホバーリフト */
.issue-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.issue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(26,86,164,0.10);
  border-color: #BDD1F0;
}

/* 学習フロー: カードスタイルに */
.flow-step {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 実績カード: ホバーリフト + ラベルにアクセントカラー */
.achievement-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(26,86,164,0.10);
}
.achievement-card-label {
  color: #1A56A4;
}

/* カリキュラムカード: ホバー強化 */
.curriculum-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.curriculum-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

/* CTAセクション: 濃いグラデーション背景でインパクト強化 */
.cta-section {
  background: linear-gradient(135deg, #1A56A4 0%, #1E2A3B 100%);
  border-top: none;
}
.cta-title { color: #fff; }
.cta-text { color: rgba(255,255,255,0.82); }
.cta-note { color: rgba(255,255,255,0.52); }
.cta-section .btn--primary {
  background: #fff;
  color: #1A56A4;
}
.cta-section .btn--primary:hover {
  background: #EBF4FF;
  color: #1443A0;
}

/* ===== MODERN STYLE ===== */

/* ── Hero animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}
@keyframes robotPulse {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.38; }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.85; transform: translate(-50%, -50%) scale(1.12); }
}

/* ── Hero: 全面フルスクリーン ── */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 65% 38%, rgba(59,130,246,0.10) 0%, transparent 52%),
    #1A2236;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  border-top: none;
  margin-top: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/ph7.jpg') center center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero::after { display: none; }
/* sticky nav(64px)分だけ上パディングを確保 */
.hero > .container { position: relative; z-index: 1; width: 100%; padding-top: 100px; padding-bottom: 80px; }

/* テキスト側の入場アニメーション */
.hero-text {
  animation: heroFadeIn 0.8s ease 0.1s both;
}

.hero-eyebrow {
  color: #93C5FD;
  letter-spacing: 0.08em;
}
.hero-eyebrow::before { background: #93C5FD; }

.hero-title {
  color: #fff;
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.01em;
}
.hero-title em {
  background: linear-gradient(90deg, #60A5FA 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle { color: rgba(255,255,255,0.68); line-height: 2; }
.hero-note     { color: rgba(255,255,255,0.38); }

.hero .btn--primary {
  background: #fff; color: #1A56A4; font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.hero .btn--primary:hover { background: #EBF4FF; color: #1443A0; }
.hero .btn--outline {
  border-color: rgba(255,255,255,0.30); color: #fff;
}
.hero .btn--outline:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.50);
}

/* ── Section label: ピルバッジ ── */
.section-label {
  background: #EBF4FF;
  border-radius: 20px;
  padding: 4px 14px;
}

/* ── Section divider: グラデーション ── */
.section-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, #1A56A4, #93C5FD 60%, transparent 100%);
  border-radius: 2px;
}

/* ── Issue cards: radius & top accent ── */
.issue-card {
  border-radius: 12px;
  border-top: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.issue-card:hover { border-top-color: #1A56A4; }

.issue-card-icon {
  background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
  box-shadow: 0 2px 8px rgba(26,86,164,0.12);
}

/* ── Flow steps: stronger card ── */
.flow-step { border-radius: 14px; }
.flow-step-icon {
  background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
  box-shadow: 0 3px 10px rgba(26,86,164,0.14);
}
.flow-step-num { font-size: 12px; letter-spacing: 0.12em; }

/* ── Achievement cards: top accent & radius ── */
.achievement-card {
  border-radius: 12px;
  border-top: 3px solid #1A56A4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.achievement-card-label {
  background: #EBF4FF; border-radius: 20px; padding: 3px 10px;
  display: inline-block; margin-bottom: 10px;
  font-size: 11px; color: #1A56A4;
}

/* ── Curriculum cards: radius & primary card refinement ── */
.curriculum-card { border-radius: 14px; }
.curriculum-card--primary { border-top-color: transparent; }
.curriculum-card--primary .curriculum-card-header {
  background: linear-gradient(135deg, #1A56A4 0%, #1E3A7A 100%);
  border-radius: 14px 14px 0 0;
}

/* ── CTA: deeper dark gradient ── */
.cta-section {
  background: linear-gradient(135deg, #0D1B35 0%, #1A3A6B 50%, #1E2A3B 100%);
  padding: 96px 0;
}
.cta-section .btn--primary {
  padding: 14px 36px; font-size: 15px;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

/* ===== RESPONSIVE — index専用 ===== */
@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero > .container { padding-top: 88px; padding-bottom: 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-visual-wrap { max-width: 340px; margin: 0 auto; }

  .background-grid,
  .achievements-grid,
  .support-steps { grid-template-columns: 1fr; gap: 16px; }

  .philosophy-content,
  .usage-content { grid-template-columns: 1fr; gap: 40px; }

  .flow-steps { grid-template-columns: 1fr; gap: 16px; }
  .flow-step:not(:last-child)::after {
    content: '↓'; right: auto; bottom: -20px;
    top: auto; left: 50%; transform: translateX(-50%);
  }

  .roadmap-steps { grid-template-columns: 1fr 1fr; gap: 16px; }

  .curriculum-main,
  .curriculum-sub { grid-template-columns: 1fr; }

  .achievement-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .roadmap-steps { grid-template-columns: 1fr; }
}

/* アニメーション軽減設定（アクセシビリティ対応） */
@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .hero-visual canvas { animation: none; }
  .hero-visual::before { animation: none; }
  .hero-text, .hero-visual { animation: none; }
}
