/* ============================================================
   VMAJ 教育サイト — メインスタイルシート
   Design System: Professional × Brand Blue #008fd0
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --navy-deep:   #0d2137;
  --navy-mid:    #1a3a5c;
  --navy-light:  #e8f4fb;
  --brand-blue:  #008fd0;
  --brand-blue-dark: #0076b0;
  --brand-red:   #e2365d;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f4f7fa;
  --gray-200:    #e9edf2;
  --gray-300:    #d1d9e0;
  --gray-600:    #4a5568;
  --gray-800:    #2d3748;
  --text-primary: #1a202c;
  --border-radius: 6px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --transition:  0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.3; }
h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; line-height: 1.35; }
h3 { font-size: clamp(17px, 2vw, 22px); font-weight: 700; line-height: 1.4; }
h4 { font-size: 18px; font-weight: 700; line-height: 1.5; }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* Section heading accent */
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 2rem;
}
.section-heading::before {
  content: '';
  display: block;
  width: 4px;
  min-height: 100%;
  background: var(--brand-blue);
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 4px;
}
.section-heading h2 { color: var(--text-primary); }
.section-heading p { font-size: 14px; color: var(--gray-600); margin-top: 4px; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1;
}
.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}
.btn-primary:hover { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-secondary:hover { background: var(--navy-light); text-decoration: none; }
.btn-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-light:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.badge-coming { background: var(--brand-red); color: var(--white); }
.badge-new { background: var(--brand-blue); color: var(--white); }

/* ============================================================
   GLOBAL HEADER
   ============================================================ */
.site-header {
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img, .site-logo svg { height: 44px; width: auto; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--brand-blue); background: rgba(0,143,208,0.08); text-decoration: none; }
.site-nav a.active { color: var(--brand-blue); }
.site-nav .nav-cta {
  background: var(--brand-blue);
  color: var(--white);
  margin-left: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}
.site-nav .nav-cta:hover { background: var(--brand-blue-dark); color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO (トップページ)
   ============================================================ */
.hero {
  background: var(--navy-deep);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,143,208,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,143,208,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 700px; }
.hero-eyebrow { color: rgba(255,255,255,0.6); font-size: 15px; margin-bottom: 12px; }
.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-title em { color: var(--brand-blue); font-style: normal; }
.hero-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 32px;
}
.hero-lead br { display: block; }

/* ============================================================
   PAGE HERO（内部ページ）
   ============================================================ */
.page-hero {
  background: var(--navy-deep);
  padding: 56px 0 60px;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,143,208,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,143,208,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-inner { position: relative; }
.page-hero-label { color: var(--brand-blue); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.85; max-width: 680px; margin-bottom: 0; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-100); }
.bg-navy { background: var(--navy-mid); }
.bg-navy-deep { background: var(--navy-deep); }

/* ============================================================
   DOMAIN CARDS（10教育領域）
   ============================================================ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.domain-card {
  background: var(--white);
  border: 0.5px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.domain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.domain-card.phase2 {
  background: var(--gray-50);
  opacity: 0.8;
  pointer-events: none;
}
.domain-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.domain-card.phase2 .domain-num { color: var(--gray-300); }
.domain-card-badge {
  position: absolute;
  top: 14px; right: 14px;
}
.domain-card h3 { font-size: 15px; margin-bottom: 8px; }
.domain-card p { font-size: 13px; color: var(--gray-600); line-height: 1.7; flex: 1; margin-bottom: 14px; }
.domain-card-link {
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* ============================================================
   CAPABILITY CARDS（10能力）
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cap-card {
  background: var(--white);
  border: 0.5px solid var(--gray-300);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 16px 20px;
}
.cap-num { font-size: 11px; font-weight: 700; color: var(--brand-blue); letter-spacing: 1px; margin-bottom: 6px; }
.cap-card h3 { font-size: 15px; margin-bottom: 6px; }
.cap-card p { font-size: 13px; color: var(--gray-600); line-height: 1.65; margin-bottom: 0; }

/* ============================================================
   LEARNING PATH CARDS
   ============================================================ */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.path-card {
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: var(--border-radius);
  padding: 24px;
}
.path-role { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 8px; font-weight: 500; }
.path-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.path-steps { display: flex; flex-direction: column; gap: 6px; }
.path-step {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,143,208,0.15);
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.path-step::before { content: '→'; color: var(--brand-blue); font-weight: 700; }

/* ============================================================
   RELATED PAGES
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 0.5px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}
.related-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-primary);
}
.related-card .arrow { color: var(--brand-blue); font-size: 13px; font-weight: 700; }
.related-card h4 { font-size: 15px; color: var(--text-primary); }
.related-card p { font-size: 13px; color: var(--gray-600); margin-bottom: 0; line-height: 1.6; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--navy-light);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: var(--gray-600); margin-bottom: 24px; }

/* ============================================================
   ARTICLE LAYOUT（内部ページ本文）
   ============================================================ */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}
.article-body h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-blue);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; margin-top: 32px; margin-bottom: 12px; }
.article-body ul, .article-body ol { margin: 0 0 1.2em 1.5em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4em; }
.article-body .callout {
  background: var(--navy-light);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.article-body .callout p { margin-bottom: 0; font-size: 15px; }
.article-body .def-block {
  background: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.article-body .def-block p { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body th { background: var(--navy-deep); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 700; }
.article-body td { padding: 10px 14px; border-bottom: 0.5px solid var(--gray-200); }
.article-body tr:nth-child(even) td { background: var(--gray-50); }

/* TOC Sidebar */
.article-sidebar { position: sticky; top: 88px; }
.toc-box {
  background: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 20px;
}
.toc-box h4 { font-size: 13px; font-weight: 700; color: var(--gray-600); letter-spacing: 1px; margin-bottom: 14px; }
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a { font-size: 13px; color: var(--gray-800); display: flex; gap: 8px; }
.toc-list a:hover { color: var(--brand-blue); text-decoration: none; }
.toc-list a::before { content: '·'; color: var(--brand-blue); flex-shrink: 0; }

/* ============================================================
   LIBRARY CARDS
   ============================================================ */
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.lib-card {
  background: var(--white);
  border: 0.5px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lib-card-tag { font-size: 11px; font-weight: 700; color: var(--brand-blue); letter-spacing: 1px; }
.lib-card h3 { font-size: 15px; }
.lib-card p { font-size: 13px; color: var(--gray-600); margin-bottom: 0; line-height: 1.65; }

/* ============================================================
   GLOBAL FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); padding: 56px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand {}
.footer-logo { display: flex; align-items: center; margin-bottom: 10px; }
.footer-logo img, .footer-logo svg { height: 38px; width: auto; }
.footer-org { color: rgba(255,255,255,0.5); font-size: 12px; margin-bottom: 14px; }
.footer-desc { color: rgba(255,255,255,0.45); font-size: 12px; line-height: 1.8; }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--brand-blue); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { color: rgba(255,255,255,0.35); font-size: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.35); font-size: 12px; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); text-decoration: none; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--gray-100);
  padding: 10px 0;
  border-bottom: 0.5px solid var(--gray-200);
}
.breadcrumb-inner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb-inner a { font-size: 12px; color: var(--gray-600); }
.breadcrumb-inner a:hover { color: var(--brand-blue); }
.breadcrumb-inner span { font-size: 12px; color: var(--gray-300); }
.breadcrumb-inner .current { font-size: 12px; color: var(--gray-800); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--gray-600) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 16px !important; }
.mb-md { margin-bottom: 24px !important; }
.mb-lg { margin-bottom: 40px !important; }
.mt-lg { margin-top: 40px !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1079px) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 64px; }
  .page-hero { padding: 40px 0 44px; }
  .domain-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .cta-section { padding: 28px 20px; }

  /* Mobile Nav */
  .site-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 15px; width: 100%; padding: 10px 0; }
  .site-nav .nav-cta { margin-left: 0; margin-top: 8px; }
  .site-header { position: relative; }
  .nav-toggle { display: flex; }
}
