/* ============================================================
   採用ブランディング Academy — Global Styles
   Design: motive.co.jp inspired
   ============================================================ */

:root {
  --bg:          #fafaf7;
  --white:       #ffffff;
  --text:        #111111;
  --text-mid:    #555555;
  --text-light:  #999999;
  --accent:      #c84500;
  --accent-bg:   #fff5f0;
  --surface:     #f3f0eb;
  --border:      #e6e3de;
  --border-dark: #c8c4bc;
  --nav-h:       60px;
  --max-w:       1180px;
  --radius:      3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic Medium', 'Yu Gothic', sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { color: var(--text-mid); line-height: 1.9; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── Label ── */
.label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.label-accent { color: var(--accent); }

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.site-logo-img {
  height: 22px; width: auto; display: block;
}
/* legacy text logo fallback (hidden when img present) */
.site-logo .logo-en {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-light);
}
.site-logo .logo-ja {
  font-size: 14px; font-weight: 700; color: var(--text);
  letter-spacing: 0.01em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 13px; color: var(--text-mid);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }
.nav-item { letter-spacing: 0.01em; }
.nav-cta {
  font-size: 12px !important; font-weight: 700;
  background: var(--text); color: var(--white) !important;
  padding: 8px 18px; border-radius: 2px;
  transition: opacity 0.2s !important;
  cursor: pointer;
}
.nav-cta:hover { opacity: 0.75 !important; }
.nav-cta[data-open-form] { border: none; font-family: inherit; }

/* ── Nav Progress ── */
.nav-progress {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 3px 10px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  display: none;
  transform-origin: center;
}
@keyframes progressPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.22); background: var(--accent); color: #fff; border-color: var(--accent); }
  65%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.nav-progress.progress-pop {
  animation: progressPop 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ════════════════════════════════════════════
   HERO (index)
════════════════════════════════════════════ */
.hero {
  padding: 100px 0 90px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
  width: 100%;
}
.hero-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 24px; line-height: 1.25; font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.hero .lead {
  font-size: 1rem; color: var(--text-mid);
  margin-bottom: 36px; line-height: 2;
}
/* ── Hero Gradient Blobs ── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #f97316 0%, #ec4899 45%, transparent 75%);
  opacity: 0.5;
  top: -120px; right: -80px;
}
.hero-blob--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #a855f7 0%, #6366f1 55%, transparent 85%);
  opacity: 0.3;
  bottom: -40px; right: 180px;
}
.hero-blob--3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #f97316 0%, transparent 70%);
  opacity: 0.25;
  top: 60px; right: 420px;
}

.hero-vis {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; padding: 32px;
  border: 1px solid rgba(230,227,222,0.8);
  position: relative; z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.hero-vis-inner { width: 100%; }
.hero-chapters { list-style: none; }
.hero-chapters li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.hero-chapters li:last-child { border-bottom: none; }
.hero-chapters li a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-mid); text-decoration: none;
  width: 100%; transition: color 0.2s;
}
.hero-chapters li a:hover { color: var(--accent); }
.ch-num {
  font-size: 10px; font-weight: 700; color: var(--text-light);
  letter-spacing: 0.08em; min-width: 24px;
}
.hero-vis-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-light);
  align-self: flex-start;
}

/* ════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════ */
section { padding: 80px 0; }
.section-alt { background: var(--white); }

.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 0.95rem; max-width: 540px; line-height: 2; }

/* ════════════════════════════════════════════
   PROGRESS WIDGET
════════════════════════════════════════════ */
.progress-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 32px;
  margin-bottom: 40px;
}
.progress-widget-text { flex: 1; }
.progress-widget-text h3 { font-size: 0.9rem; margin-bottom: 4px; }
.progress-widget-text p { font-size: 0.82rem; color: var(--text-light); }
.progress-stat { text-align: center; }
.progress-stat .num { font-size: 2rem; font-weight: 900; line-height: 1; }
.progress-stat .denom { font-size: 0.75rem; color: var(--text-light); }
.progress-bar-wrap {
  flex: 1; max-width: 200px;
  height: 3px; background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--text);
  border-radius: 2px; transition: width 0.5s ease;
  width: 0%;
}

/* ════════════════════════════════════════════
   CURRICULUM GRID
════════════════════════════════════════════ */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.chapter-card {
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 28px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: background 0.2s;
}
.chapter-card:nth-child(3n) { border-right: none; }
.chapter-card:nth-child(n+4) { border-bottom: none; }
.chapter-card:hover { background: var(--bg); }
.chapter-card.done .chapter-card-num::after {
  content: ' ✓'; color: var(--accent);
}
.chapter-card-num {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-light);
}
.chapter-card h3 { font-size: 1.05rem; line-height: 1.45; }
.chapter-card p  { font-size: 0.82rem; color: var(--text-mid); line-height: 1.7; }
.chapter-card-arrow {
  margin-top: auto; font-size: 0.8rem; color: var(--text-light);
  transition: transform 0.2s, color 0.2s;
}
.chapter-card:hover .chapter-card-arrow { transform: translateX(4px); color: var(--accent); }
.chapter-card.done .chapter-card-status {
  position: absolute; top: 14px; right: 16px;
  font-size: 10px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════
   KNOWLEDGE SECTION
════════════════════════════════════════════ */
.knowledge-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.knowledge-tag {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.82rem; color: var(--text-mid);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.knowledge-tag:hover { border-color: var(--text); color: var(--text); }

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.knowledge-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 8px;
}
.knowledge-card:hover {
  border-color: var(--text);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.knowledge-card .tag-chip {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.knowledge-card h3 { font-size: 0.95rem; line-height: 1.4; }
.knowledge-card p  { font-size: 0.8rem; color: var(--text-light); line-height: 1.6; }

/* ════════════════════════════════════════════
   CHAPTER PAGE HEADER
════════════════════════════════════════════ */
.chapter-header {
  padding: 56px 0 44px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.chapter-header::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #f97316 0%, #ec4899 45%, transparent 75%);
  opacity: 0.3;
  filter: blur(72px);
  top: -120px; right: -60px;
  pointer-events: none; z-index: 0;
}
.chapter-header::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, #a855f7 0%, #6366f1 55%, transparent 85%);
  opacity: 0.2;
  filter: blur(60px);
  bottom: -40px; right: 260px;
  pointer-events: none; z-index: 0;
}
.chapter-header .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-light);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { font-size: 10px; }

.chapter-large-num {
  font-size: 80px; font-weight: 900;
  color: var(--border);
  line-height: 0.9;
  font-family: 'Georgia', 'Times New Roman', serif;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.chapter-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.chapter-header h1 { margin-bottom: 16px; }
.chapter-header .chapter-lead {
  font-size: 1rem; max-width: 580px; color: var(--text-mid); line-height: 2;
}

/* Reading progress bar (top of page, below nav) */
.reading-progress {
  position: fixed; top: var(--nav-h); left: 0; z-index: 199;
  height: 2px; background: var(--accent);
  width: 0%; transition: width 0.1s linear;
}

/* ════════════════════════════════════════════
   ARTICLE LAYOUT
════════════════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 64px;
  align-items: start;
  padding: 60px 0 40px;
}
.article-body { min-width: 0; }

.article-body h2 {
  font-size: 1.35rem;
  margin: 52px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  scroll-margin-top: 80px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.05rem; margin: 32px 0 12px;
  scroll-margin-top: 80px;
}
.article-body p { font-size: 0.94rem; line-height: 2.05; margin-bottom: 20px; }
.article-body ul, .article-body ol {
  padding-left: 22px; margin-bottom: 22px;
}
.article-body li {
  font-size: 0.93rem; line-height: 1.8;
  margin-bottom: 8px; color: var(--text-mid);
}

/* Think block */
.think-block {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  padding: 24px 28px;
  margin: 40px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.think-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.think-block p {
  font-size: 1rem; color: var(--text);
  font-weight: 600; line-height: 1.7; margin: 0;
}

/* Data highlight */
.data-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: var(--radius);
  display: flex; gap: 20px; align-items: flex-start;
}
.data-num {
  font-size: 2.2rem; font-weight: 900; color: var(--text);
  line-height: 1; white-space: nowrap;
  letter-spacing: -0.02em;
}
.data-info { flex: 1; }
.data-desc { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 6px; }
.data-source { font-size: 0.72rem; color: var(--text-light); }

/* Step block */
.step-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.step-item {
  display: flex; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  font-size: 1.6rem; font-weight: 900;
  color: var(--border); line-height: 1;
  min-width: 40px;
  font-family: 'Georgia', serif;
}
.step-body h4 { font-size: 1rem; margin-bottom: 8px; }
.step-body p  { font-size: 0.88rem; margin: 0; line-height: 1.9; }

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex; flex-direction: column; gap: 20px;
}
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius);
}
.sidebar-box h4 {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 16px;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 6px; }
.toc-list a {
  font-size: 0.8rem; color: var(--text-mid);
  line-height: 1.5; display: block;
  transition: color 0.2s;
  padding: 2px 0;
}
.toc-list a:hover { color: var(--text); }
.toc-list a.active { color: var(--accent); font-weight: 600; }

.chapter-progress-list { list-style: none; padding: 0; }
.chapter-progress-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-light);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.chapter-progress-list li:last-child { border-bottom: none; }
.chapter-progress-list li:not(.done) { font-weight: 700; color: var(--text); }
.chapter-progress-list li.done { color: var(--text-mid); font-weight: 400; }
.chapter-progress-list .ch-icon { font-size: 11px; }
.chapter-progress-list a { text-decoration: none; color: inherit; transition: color 0.2s; }
.chapter-progress-list a:hover { color: var(--text); }

/* ════════════════════════════════════════════
   CHAPTER COMPLETE
════════════════════════════════════════════ */
.chapter-complete {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  margin: 48px 0 32px;
  text-align: center;
}
.chapter-complete h3 { margin-bottom: 10px; }
.chapter-complete p  { font-size: 0.9rem; margin-bottom: 24px; }
.btn-primary {
  display: inline-block;
  background: var(--text); color: var(--white);
  border: none; cursor: pointer;
  padding: 12px 32px; font-size: 0.9rem; font-weight: 700;
  border-radius: 2px; font-family: inherit;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.75; }
.btn-primary:disabled, .btn-primary.done {
  background: var(--border); color: var(--text-mid);
  cursor: default; opacity: 1;
}
.btn-accent {
  display: inline-block;
  background: var(--accent); color: var(--white);
  border: none; cursor: pointer;
  padding: 12px 28px; font-size: 0.88rem; font-weight: 700;
  border-radius: 2px; font-family: inherit;
  letter-spacing: 0.02em; text-decoration: none;
  transition: opacity 0.2s;
}
.btn-accent:hover { opacity: 0.82; }

.chapter-pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 60px;
}
.chapter-pagination a {
  font-size: 0.85rem; color: var(--text-mid);
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.chapter-pagination a:hover { color: var(--text); }
.chapter-pagination .next-btn {
  background: var(--text); color: var(--white);
  padding: 10px 20px; border-radius: 2px;
  font-size: 0.85rem; font-weight: 600;
}
.chapter-pagination .next-btn:hover { color: var(--white); opacity: 0.75; }

/* ════════════════════════════════════════════
   KNOWLEDGE PAGE
════════════════════════════════════════════ */
.article-intro {
  padding: 60px 0 48px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.tag-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px;
}
.tag-btn {
  padding: 6px 14px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer;
  font-size: 0.78rem; border-radius: 2px;
  font-family: inherit; color: var(--text-mid);
  transition: all 0.2s;
}
.tag-btn:hover, .tag-btn.active {
  border-color: var(--text); color: var(--text);
  background: var(--text); color: var(--white);
}

/* ════════════════════════════════════════════
   CHECK LIST
════════════════════════════════════════════ */
.checklist { list-style: none; padding: 0; margin: 20px 0 32px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.92rem; color: var(--text-mid);
}
.checklist li:last-child { border-bottom: none; }
.check-box {
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid var(--border); border-radius: 3px;
  cursor: pointer; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 12px;
}
.check-box.checked { background: var(--text); border-color: var(--text); color: var(--white); }

/* ════════════════════════════════════════════
   FLOATING CTA BUTTON
════════════════════════════════════════════ */
.float-cta {
  position: fixed; bottom: 32px; right: 32px; z-index: 300;
  display: flex; align-items: center; gap: 0;
}
.float-cta-label {
  background: var(--text); color: var(--white);
  font-size: 11px; font-weight: 600;
  white-space: nowrap; padding: 0 16px;
  height: 44px; line-height: 44px;
  border-radius: 2px 0 0 2px;
  opacity: 0; pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.25s, transform 0.25s;
  letter-spacing: 0.02em;
}
.float-cta:hover .float-cta-label {
  opacity: 1; transform: translateX(0);
}
.float-cta-btn {
  background: var(--text); color: var(--white);
  border: none; cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 0 2px 2px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: opacity 0.2s;
}
.float-cta-btn:hover { opacity: 0.8; }

/* ════════════════════════════════════════════
   SLIDE-IN CONTACT PANEL
════════════════════════════════════════════ */
.form-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.form-overlay.open { opacity: 1; pointer-events: all; }

.form-panel {
  position: fixed; right: 0; top: 0; bottom: 0;
  z-index: 401;
  width: 400px; max-width: 100vw;
  background: var(--white);
  box-shadow: -4px 0 40px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 48px 36px;
  display: flex; flex-direction: column;
}
.form-panel.open { transform: translateX(0); }

.form-panel-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 6px;
}
.form-panel-head h3 { font-size: 1.15rem; line-height: 1.4; }
.form-close {
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--text-light);
  padding: 0; line-height: 1; transition: color 0.2s;
}
.form-close:hover { color: var(--text); }
.form-panel-sub { font-size: 0.82rem; color: var(--text-light); margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; margin-bottom: 6px; color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.88rem; font-family: inherit;
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--text); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%; padding: 13px;
  background: var(--text); color: var(--white);
  border: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 700; font-family: inherit;
  border-radius: 2px; letter-spacing: 0.04em;
  transition: opacity 0.2s; margin-top: 8px;
}
.form-submit:hover { opacity: 0.75; }
.form-success {
  text-align: center; padding: 40px 0;
  display: none;
}
.form-success.show { display: block; }
.form-success h4 { margin-bottom: 12px; }
.form-success p { font-size: 0.88rem; }
.form-note {
  font-size: 0.75rem; color: var(--text-light);
  margin-top: 16px; line-height: 1.8; text-align: center;
}

/* ════════════════════════════════════════════
   BANNER GRID
════════════════════════════════════════════ */
.banner-section {
  padding: 64px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.banner-item {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: opacity 0.2s, box-shadow 0.2s;
  position: relative;
}
/* 画像未設定時のプレースホルダー表示 */
.banner-item::after {
  content: 'BANNER';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--border-dark);
  pointer-events: none;
}
.banner-item:has(img[src]:not([src='']))::after { display: none; }
.banner-item:hover {
  opacity: 0.88;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.banner-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer { background:#fff; color:#111; }
.site-footer-inner { max-width:1100px; margin:0 auto; padding:56px 40px 40px; display:flex; justify-content:space-between; align-items:flex-start; gap:40px; }
.footer-left {}
.footer-logo { font-family:'Helvetica Neue',Arial,sans-serif; font-size:20px; font-weight:700; color:#111; text-decoration:none; letter-spacing:-0.5px; display:block; margin-bottom:16px; }
.footer-logo:hover { opacity:.6; }
.footer-address { font-size:12px; color:#888; line-height:1.9; }
.footer-nav { display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.footer-nav a { font-size:12px; font-weight:600; color:#111; text-decoration:none; letter-spacing:.08em; }
.footer-nav a:hover { opacity:.5; }
.footer-bottom { max-width:1100px; margin:0 auto; padding:20px 40px 32px; display:flex; justify-content:space-between; align-items:center; border-top:1px solid #e8e8e8; }
.footer-copyright { font-size:11px; color:#aaa; font-family:'Helvetica Neue',Arial,sans-serif; }
.footer-bottom-nav { display:flex; gap:24px; }
.footer-bottom-nav a { font-size:11px; color:#888; text-decoration:none; }
.footer-bottom-nav a:hover { color:#111; }

/* ════════════════════════════════════════════
   CELEBRATION ANIMATION
════════════════════════════════════════════ */
.achievement-toast {
  position: fixed; bottom: 40px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--white);
  padding: 14px 28px; border-radius: 4px;
  font-size: 0.88rem; font-weight: 600;
  z-index: 9999; opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.achievement-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.confetti-particle {
  position: fixed; z-index: 9998;
  width: 8px; height: 8px; border-radius: 2px;
  animation: confettiFall 1.4s ease-out forwards;
  pointer-events: none;
}
@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  80%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(200px) rotate(720deg) scale(0.3); }
}

/* ════════════════════════════════════════════
   CONCEPT DIAGRAMS
════════════════════════════════════════════ */
.concept-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 36px 0;
}
.concept-diagram-title {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 20px; text-align: center;
}
.diagram-layers {
  display: flex; flex-direction: column; gap: 4px;
  align-items: stretch;
}
.diagram-layer {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px; text-align: center;
  font-size: 0.85rem; font-weight: 700;
  border-radius: 2px; position: relative;
  gap: 8px;
}
.diagram-layer-label { font-size: 0.75rem; font-weight: 400; opacity: 0.75; }
.layer-base { background: var(--border); color: var(--text); }
.layer-mid  { background: var(--text-light); color: var(--white); margin: 0 10%; }
.layer-top  { background: var(--text); color: var(--white); margin: 0 20%; }
.layer-accent { background: var(--accent); color: var(--white); margin: 0 30%; }

.diagram-row {
  display: flex; gap: 4px;
}
.diagram-col {
  flex: 1; padding: 16px 12px; text-align: center;
  border-radius: 2px;
  font-size: 0.82rem;
}
.diagram-col strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.diagram-col.col-accent { background: var(--accent); color: var(--white); }
.diagram-col.col-mid { background: var(--text-light); color: var(--white); }
.diagram-col.col-light { background: var(--border); color: var(--text); }
.diagram-col.col-surface { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.diagram-arrow {
  text-align: center; color: var(--text-light); font-size: 1.2rem;
  margin: 4px 0;
}

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--text);
  padding: 16px 24px;
  margin: 36px 0;
  background: var(--white);
}
.pull-quote p {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.65; margin: 0;
  font-style: italic;
}

/* Key Takeaway */
.key-takeaway {
  border: 2px solid var(--text);
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: var(--radius);
}
.key-takeaway-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 10px;
}
.key-takeaway p { font-size: 0.94rem; color: var(--text); margin: 0; font-weight: 600; }

/* Tip block */
.tip-block {
  background: #f0f7ff;
  border-left: 3px solid #3b82f6;
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tip-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #3b82f6;
  margin-bottom: 8px;
}
.tip-block p { font-size: 0.88rem; color: var(--text-mid); margin: 0; line-height: 1.9; }

/* ════════════════════════════════════════════
   CHAPTER CTA
════════════════════════════════════════════ */
.chapter-cta {
  background: var(--text);
  color: var(--white);
  padding: 80px 0;
}
.chapter-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.chapter-cta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 14px;
}
.chapter-cta-title {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--white);
}
.chapter-cta-desc {
  font-size: 0.88rem;
  color: #aaa;
  line-height: 1.9;
}
.btn-cta-large {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 18px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.btn-cta-large:hover { opacity: 0.8; }

/* ── Progress reset ── */
.btn-reset-progress {
  background: none; border: none; padding: 0;
  font-size: 0.72rem; color: var(--text-light);
  cursor: pointer; text-decoration: underline;
  display: block; margin-top: 12px;
  transition: color 0.2s;
}
.btn-reset-progress:hover { color: var(--text); }

/* ════════════════════════════════════════════
   HAMBURGER & MOBILE DRAWER
════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 8px 4px;
  z-index: 1002; position: relative;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer and overlay: hidden on desktop, activated via media query below */
.mobile-drawer-overlay { display: none; }
.mobile-drawer { display: none; }

.mobile-nav { display: flex; flex-direction: column; padding: 8px 0 0; flex: 1; }
.mobile-chapters { list-style: none; }
.mobile-chapters li a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; font-size: 0.9rem; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.mobile-chapters li:first-child a { border-top: 1px solid var(--border); }
.mobile-chapters li a:hover { background: var(--surface); }
.mobile-chapters li a .ch-num {
  font-size: 10px; font-weight: 700; color: var(--text-light);
  letter-spacing: 0.08em; min-width: 28px;
}
.mobile-nav-divider { height: 1px; background: var(--border); margin: 20px 24px 16px; }
.mobile-nav-cta {
  display: block; background: var(--accent); color: var(--white);
  border: none; padding: 13px 24px; margin: 0 24px 12px;
  font-size: 0.9rem; font-weight: 700; font-family: inherit;
  border-radius: 2px; cursor: pointer; text-align: center;
  letter-spacing: 0.02em; transition: opacity 0.2s;
}
.mobile-nav-cta:hover { opacity: 0.85; }
.mobile-nav-link {
  display: block; padding: 10px 24px;
  color: var(--text-mid); font-size: 0.88rem; text-decoration: none;
}
.mobile-nav-link:hover { color: var(--text); }
.mobile-knowledge {
  display: flex !important; align-items: center; gap: 14px;
  padding: 16px 24px; text-decoration: none;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface); transition: background 0.15s;
}
.mobile-knowledge:hover { background: var(--border); }
.mobile-knowledge-icon { color: var(--accent); flex-shrink: 0; display: flex; align-items: center; }
.mobile-knowledge-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mobile-knowledge-title { font-size: 0.9rem; font-weight: 700; color: var(--text); display: block; }
.mobile-knowledge-sub { font-size: 0.75rem; color: var(--text-light); display: block; }
.mobile-knowledge-arrow { font-size: 1.1rem; color: var(--text-light); line-height: 1; }

.mobile-nav-logo-wrap { margin-top: auto; padding: 24px; }
.mobile-nav-logo img {
  height: 14px; opacity: 0.3; filter: grayscale(1);
  transition: opacity 0.2s; display: block;
}
.mobile-nav-logo:hover img { opacity: 0.55; }

/* ════════════════════════════════════════════
   BLOB ANIMATIONS
════════════════════════════════════════════ */
@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(22px, -16px) scale(1.05); }
  55%  { transform: translate(-14px, 20px) scale(0.95); }
  80%  { transform: translate(18px, 8px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(-20px, 18px) scale(1.07); }
  60%  { transform: translate(16px, -22px) scale(0.93); }
  85%  { transform: translate(-8px, 12px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  35%  { transform: translate(12px, 20px) scale(0.92); }
  65%  { transform: translate(-18px, -14px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero-blob--1 { animation: blobFloat1 10s ease-in-out infinite; }
.hero-blob--2 { animation: blobFloat2 13s ease-in-out infinite; }
.hero-blob--3 { animation: blobFloat3 8s ease-in-out infinite; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-vis {
    aspect-ratio: unset;
    padding: 20px 24px;
    gap: 10px;
    justify-content: flex-start;
  }
  .hero-chapters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .hero-chapters li { font-size: 0.8rem; padding: 8px 0; }
  .curriculum-grid { grid-template-columns: 1fr 1fr; }
  .chapter-card:nth-child(2n) { border-right: none; }
  .chapter-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 768px) {
  .site-footer-inner { flex-direction:column-reverse; padding:40px 24px 32px; gap:32px; }
  .footer-nav { align-items:flex-start; }
  .footer-bottom { padding:16px 24px 28px; flex-direction:column; align-items:flex-start; gap:12px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .banner-section { padding: 40px 0; }
  .chapter-card { border-right: none !important; }
  .form-panel { width: 100vw; padding: 36px 24px; }
  .hamburger { display: flex; }
  .site-nav .nav-item { display: none; }
  .site-nav .nav-cta { display: none; }
  #nav-progress { display: none !important; }
  .float-cta { bottom: 20px; right: 20px; }
  .chapter-cta-inner { flex-direction: column; align-items: flex-start; }
  .btn-cta-large { width: 100%; text-align: center; }
  .hero-blob--1 { width: 280px; height: 280px; top: -60px; right: -40px; }
  .hero-blob--2 { display: none; }
  .hero-blob--3 { display: none; }

  /* Activate mobile drawer on small screens */
  .mobile-drawer-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
  }
  .mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }
  .mobile-drawer {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); right: 0;
    width: 100%; height: calc(100dvh - var(--nav-h));
    background: var(--white); z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .mobile-drawer.open { transform: translateX(0); }
}
