/*
 * ICTを学ぶ入門編 - 保護者向けLP CSS
 * /course-kids-ict/css/style.css
 * 小学生向けICT入門教材ランディングページ用
 */

/* ========================================
   変数
======================================== */
:root {
  --primary: #0097d3;
  --primary-dark: #0075a8;
  --primary-light: #e0f4fc;
  --accent: #3aa100;
  --accent-dark: #2e8400;
  --accent-light: #e8f5e0;
  --orange: #f6a13c;
  --orange-light: #fff8ee;
  --text: #333;
  --text-light: #666;
  --bg: #f5f9fc;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ========================================
   ヘッダー
======================================== */
.header {
  background: var(--white);
  padding: 12px 20px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s;
}
.header-logo:hover { opacity: 0.8; }
.header-logo img { height: 36px; width: auto; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}
.header-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ========================================
   共通セクション
======================================== */
.section {
  padding: 80px 20px;
}
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}
.section-title .highlight {
  color: var(--primary);
  position: relative;
}
.section-title .highlight-green {
  color: var(--accent);
}
.section-description {
  margin-top: 16px;
  color: var(--text-light);
  font-size: 16px;
}

/* ========================================
   ヒーロー
======================================== */
.hero {
  background: linear-gradient(135deg, #e0f4fc 0%, #e8f5e0 50%, #fff8ee 100%);
  padding: 100px 20px 60px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hero-free-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-left: 8px;
}
.hero-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero-title .highlight { color: var(--primary); }
.hero-description {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-point {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.hero-point svg { color: var(--accent); flex-shrink: 0; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(58, 161, 0, 0.3);
}
.hero-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(58, 161, 0, 0.4);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ========================================
   保護者の不安
======================================== */
.problems { background: var(--white); }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: #fafbfc;
  border: 2px solid #eef1f5;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.problem-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.problem-icon { font-size: 36px; margin-bottom: 12px; }
.problem-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.problem-text strong { color: var(--primary-dark); }

/* ========================================
   この教材で身につく力
======================================== */
.solutions { background: var(--bg); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.solution-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.solution-card:hover { transform: translateY(-2px); }
.solution-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.solution-text { font-size: 15px; line-height: 1.7; }
.solution-text strong { color: var(--accent-dark); }

/* ========================================
   4つのレベル
======================================== */
.levels { background: var(--bg); }
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.level-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  border: 2px solid transparent;
}
.level-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.level-card.active:hover {
  transform: translateY(-4px);
}
.level-card.coming-soon {
  opacity: 0.6;
}
.level-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.level-card.active .level-icon {
  background: var(--primary-light);
}
.level-card.coming-soon .level-icon {
  background: #f1f5f9;
}
.level-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.level-card.active .level-badge {
  background: var(--accent);
  color: var(--white);
}
.level-card.coming-soon .level-badge {
  background: #e2e8f0;
  color: #94a3b8;
}
.level-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.level-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.level-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}
.level-card.active .level-cta {
  background: var(--primary);
  color: var(--white);
}
.level-card.active .level-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.level-coming-label {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 600;
}

/* ========================================
   3つの特徴
======================================== */
.features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.feature-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   カリキュラム
======================================== */
.curriculum { background: var(--bg); }
.curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.curriculum-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.curriculum-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}
.curriculum-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.curriculum-content { flex: 1; }
.curriculum-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.curriculum-content p {
  font-size: 14px;
  color: var(--text-light);
}
.curriculum-badge {
  flex-shrink: 0;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}

/* ========================================
   対象のお子さま
======================================== */
.target { background: var(--white); }
.target-card {
  background: linear-gradient(135deg, var(--primary-light), #f0faf0);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.target-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary-dark);
}
.target-list {
  list-style: none;
  text-align: left;
  max-width: 460px;
  margin: 0 auto;
}
.target-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(0,151,211,0.1);
}
.target-list li:last-child { border-bottom: none; }
.target-list li svg { flex-shrink: 0; color: var(--accent); }
.target-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

/* ========================================
   FAQ
======================================== */
.faq { background: var(--bg); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.faq-question:hover { background: #f9fafb; }
.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.faq-question-text {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
}
.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: #94a3b8;
  transition: transform 0.3s;
}
.faq-toggle::before {
  width: 14px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 2px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.active .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 24px 20px 68px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   PICO紹介
======================================== */
.about { background: var(--white); }
.about-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-logo { height: 48px; width: auto; margin: 0 auto 20px; }
.about-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.about-description {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
}
.about-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}
.about-link:hover { text-decoration: underline; }

/* ========================================
   最終CTA
======================================== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0075a8 100%);
  text-align: center;
  padding: 80px 20px;
}
.cta-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 16px;
}
.cta-description {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  line-height: 2;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
}
.cta-button.primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.cta-button.line {
  background: #06C755;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(6,199,85,0.3);
}
.cta-button.line:hover {
  background: #05b04c;
  transform: translateY(-2px);
}

/* ========================================
   LINE友だち追加
======================================== */
.line-cta {
  background: var(--bg);
  text-align: center;
}
.line-cta-description {
  text-align: center;
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.8;
}
.line-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.3);
}
.line-button:hover {
  background: #05b04c;
  transform: translateY(-2px);
}
.line-cta-note {
  margin-top: 12px;
  font-size: 13px;
  color: #94a3b8;
}

/* ========================================
   フッター
======================================== */
.footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 60px 20px 30px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
}
.footer-logo { height: 36px; width: auto; }
.footer-links h4 {
  color: #e2e8f0;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* ========================================
   アニメーション
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SP */
.sp-only { display: none; }

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .sp-only { display: inline; }
  .hero { padding: 100px 20px 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-title { font-size: 26px; }
  .hero-points { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image { max-width: 100%; border-radius: 16px; aspect-ratio: 16 / 9; }

  .section { padding: 60px 16px; }
  .section-title { font-size: 22px; }

  .problems-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .solutions-grid { grid-template-columns: 1fr; }
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .level-card { padding: 24px 16px; }
  .level-icon { width: 52px; height: 52px; font-size: 24px; }
  .level-name { font-size: 16px; }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card { padding: 28px 24px; }

  .curriculum-item {
    padding: 20px;
    gap: 14px;
  }
  .curriculum-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .curriculum-badge { display: none; }

  .target-card { padding: 28px 20px; }

  .cta { padding: 60px 16px; }
  .cta-title { font-size: 22px; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
