/* =============================================
   メディアリテラシーA (2026) - Stylesheet
   White base, navy accent, print-friendly
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #2c4a7c;
  --navy-light: #3a5f9e;
  --navy-dark: #1e3354;
  --accent: #c0392b;
  --text: #1a1a2e;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #dde3ec;
  --font-serif: 'Noto Serif JP', Georgia, serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(44,74,124,0.08);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-school {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.nav-course {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-serif);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--bg-alt);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #ffffff;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-meta {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 28px;
  font-family: var(--font-sans);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.85;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

.hero-main {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.4;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  opacity: 0.88;
  letter-spacing: 0.05em;
}

.hero-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.flow-item {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.flow-item.highlight {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.6);
  font-weight: 700;
}

.flow-arrow {
  font-size: 1.1rem;
  opacity: 0.6;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  opacity: 0.9;
}

.hero-desc strong {
  font-weight: 700;
  font-family: var(--font-serif);
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 80px 24px;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.5;
  margin-bottom: 40px;
}

/* =============================================
   PHILOSOPHY
   ============================================= */
.philosophy-intro {
  background: #f0f4fb;
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.philosophy-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.philosophy-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-muted);
}

.philosophy-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-size: 0.7rem;
  top: 10px;
}

.philosophy-emphasis {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.question-block {
  background: var(--navy-dark);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  margin-bottom: 32px;
}

.question-block-lead {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.question-trio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-item {
  border-left: 3px solid rgba(255,255,255,0.4);
  padding: 10px 18px;
  font-size: 1.05rem;
  font-family: var(--font-serif);
  background: rgba(255,255,255,0.06);
  border-radius: 0 6px 6px 0;
}

.philosophy-close {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

/* =============================================
   CARD GRID (Questions)
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44,74,124,0.14);
}

.card-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--border);
  font-family: var(--font-serif);
  margin-bottom: 12px;
  line-height: 1;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   SKILLS
   ============================================= */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.skill-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.skill-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.skill-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   METHOD GRID
   ============================================= */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.method-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.method-card:hover {
  transform: translateY(-3px);
}

.method-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.method-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.method-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =============================================
   EVALUATION
   ============================================= */
.eval-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.eval-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.eval-item:last-child {
  border-bottom: none;
}

.eval-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--navy-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.eval-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.eval-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.eval-note {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  background: #eef2fb;
  border-radius: var(--radius);
  padding: 16px;
}

/* =============================================
   FINAL SECTION — ダークネイビー背景、白文字
   明示的にテキスト色を指定して確実に表示
   ============================================= */
.section-final {
  padding: 100px 24px;
  background: var(--navy-dark);
  /* フォールバック: background-color で念押し */
  background-color: #1e3354;
  color: #ffffff;
}

/* コンテナ内のすべての要素に確実に白文字を継承させる */
.section-final .container,
.section-final .container * {
  color: #ffffff;
}

.final-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ラベルは白枠に白文字 */
.section-label-light {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 24px;
}

.final-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.5;
}

.final-not {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.final-goal {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 36px;
}

.final-goal strong {
  color: #ffffff;
  font-weight: 700;
  /* 念のため独自指定 */
  text-shadow: 0 0 1px rgba(255,255,255,0.2);
}

.final-divider {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.35);
  margin: 0 auto 32px;
}

.final-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.9;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-note {
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.55;
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 6px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-alt);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 72px 20px 60px;
  }

  .section {
    padding: 60px 20px;
  }

  .section-final {
    padding: 72px 20px;
  }

  .card-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .question-block {
    padding: 24px 20px;
  }

  .q-item {
    font-size: 0.95rem;
  }

  .skill-item {
    flex-direction: column;
    gap: 12px;
  }

  .eval-badge {
    margin-top: 2px;
  }
}

@media (max-width: 480px) {
  .hero-flow {
    gap: 6px;
  }
  .flow-item {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  .navbar, .nav-toggle { display: none; }
  .hero { background: var(--navy) !important; color: #fff !important; }
  .section, .section-alt { page-break-inside: avoid; }
  .section-final { background: var(--navy-dark) !important; color: #fff !important; }
  .section-final * { color: #fff !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
