/* =====================================================================
   AI Academy — スタイルシート v3（プロフェッショナル・リデザイン）
   デザインシステム:
     フォント: Inter + Noto Sans JP
     ブランド: ディープティール #1D5967（図解SVGの #2F6F7E と同系で調和）
     アクセント: リファインドゴールド #A97E1F（修了・ハイライト）
     ニュートラル: 上質なウォームグレー階調
   ===================================================================== */
:root {
  --bg:         #F4F4F2;
  --surface:    #FFFFFF;
  --surface-2:  #FAFAF8;
  --ink:        #1A1D1F;
  --ink-2:      #34393D;
  --sub:        #6E757B;
  --faint:      #70777D; /* 旧#9AA1A7はコントラスト2.6:1で章メタ等が読めなかった（2026-07-16改善） */
  --line:       #E7E8E6;
  --line-2:     #F0F1EF;

  --brand:      #1D5967;
  --brand-2:    #2F6F7E;
  --brand-d:    #143E49;
  --brand-soft: #EAF2F3;

  --gold:       #A97E1F;
  --gold-2:     #C29233;
  --gold-soft:  #F8F2E1;

  --green:      #1E7A46;
  --green-soft: #EAF5EE;
  --brick:      #B3402E;
  --brick-soft: #FBEFEC;

  --indigo:     var(--brand);   /* 後方互換 */
  --indigo-d:   var(--brand-d);

  --shadow-xs:  0 1px 2px rgba(20, 28, 30, .06);
  --shadow-sm:  0 1px 2px rgba(20, 28, 30, .05), 0 4px 12px rgba(20, 28, 30, .05);
  --shadow-md:  0 2px 4px rgba(20, 28, 30, .05), 0 12px 28px rgba(20, 28, 30, .08);
  --shadow-lg:  0 4px 8px rgba(20, 28, 30, .06), 0 24px 60px rgba(20, 28, 30, .14);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --maxw: 1060px;
  --font: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --mono: "SFMono-Regular", "SF Mono", Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(29, 89, 103, .18); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
.boot-note { padding: 80px 20px; text-align: center; color: var(--sub); }

/* ============================ ヘッダー ============================ */
.site-header {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-d));
  color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), var(--shadow-xs);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.brand-sub { font-size: 9px; letter-spacing: .3em; color: var(--faint); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.learner { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px; }
.learner-avatar { width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-d)); display: inline-block; }
.learner strong { color: var(--ink); font-weight: 700; font-size: 12.5px; }
.reset-link { color: var(--faint); font-size: 12px; white-space: nowrap; cursor: pointer; }
.reset-link:hover { color: var(--ink-2); text-decoration: none; }

/* ============================ レイアウト ============================ */
#app { flex: 1 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 72px; }
.view { animation: fadeIn .28s cubic-bezier(.2,.7,.3,1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.view-lesson { max-width: 850px; margin: 0 auto; }
.breadcrumb { font-size: 12px; color: var(--faint); margin-bottom: 18px; font-weight: 500; }
.breadcrumb a { color: var(--sub); }
.section-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--sub);
  text-transform: uppercase; margin: 8px 0 16px; }
.page-title { font-size: 25px; font-weight: 800; color: var(--ink); margin: 6px 0 6px; letter-spacing: -0.015em; line-height: 1.45; }
.page-sub { font-size: 13.5px; color: var(--sub); margin: 0 0 24px; }
.step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.course-head { display: flex; align-items: center; gap: 10px; }

/* ============================ ヒーロー ============================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 300px at 88% -10%, rgba(194, 146, 51, .22), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(47, 111, 126, .35), transparent 60%),
    linear-gradient(135deg, #0F2229 0%, #143E49 60%, #1D5967 130%);
  color: #fff; border-radius: 20px; padding: 42px 42px 38px; margin-bottom: 26px;
  box-shadow: var(--shadow-md);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 40%, rgba(0,0,0,.9));
  -webkit-mask-image: linear-gradient(115deg, transparent 40%, rgba(0,0,0,.9));
}
.hero-kicker { font-size: 10.5px; letter-spacing: .34em; color: #D9B45B; margin: 0 0 14px; font-weight: 700; }
.hero-title { font-size: clamp(24px, 3.4vw, 33px); font-weight: 800; line-height: 1.42; margin: 0 0 10px; letter-spacing: -0.01em; }
.hero-sub { font-size: 14.5px; color: rgba(233, 240, 242, .82); margin: 0 0 22px; max-width: 560px; }
.hero-cta { position: relative; z-index: 1; }
.hero-skip { position: relative; z-index: 1; margin: 16px 0 0; font-size: 12.5px; color: rgba(233,240,242,.72); }
.hero-skip a { color: #E6C578; text-decoration: underline; text-underline-offset: 3px; }
.hero-skip a:hover { color: #F2DCA8; }
.inst-flag { display: inline-block; margin-left: 12px; font-size: 11px; font-weight: 700; color: #142229;
  background: #D9B45B; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }

/* ============================ 能力ラダー（ステッパー） ============================ */
.ladder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px 18px; margin-bottom: 30px; box-shadow: var(--shadow-xs); }
.ladder-track { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; position: relative; }
.ladder-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 13px; height: 2px;
  background: var(--line); z-index: 0; }
.ladder-arrow { display: none; }
.ladder-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.ladder-badge { display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 26px; border-radius: 999px; padding: 0 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  background: var(--surface); color: var(--faint); border: 2px solid var(--line);
  margin-bottom: 10px; }
.ladder-step.reached .ladder-badge {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-d));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-xs); }
.ladder-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.ladder-step.reached .ladder-name { color: var(--brand); }
.ladder-note { font-size: 12px; color: var(--faint); margin-top: 3px; }
.ladder-goal { text-align: center; font-size: 12px; color: var(--sub); margin: 16px 0 0;
  padding-top: 14px; border-top: 1px solid var(--line-2); }
.ladder-goal strong { color: var(--gold); font-weight: 800; }

/* ============================ コースカード ============================ */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.course-card { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 22px 18px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 9px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9dcd9; }
.course-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-d)); }
.course-card:nth-child(2)::before { background: linear-gradient(90deg, #3A7D8D, #1D5967); }
.course-card:nth-child(3)::before { background: linear-gradient(90deg, #27546B, #12303E); }
.course-card:nth-child(4)::before { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.course-card.is-done { background: linear-gradient(180deg, #FCFEFD, #F4FAF6); }
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-title { font-size: 17.5px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.cc-tagline { font-size: 12.5px; color: var(--sub); margin: 0; flex: 1 0 auto; }
.cc-progress { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cc-bar { flex: 1; height: 7px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.cc-fill { height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 999px; transition: width .4s ease; }
.is-done .cc-fill { background: linear-gradient(90deg, #2E9058, var(--green)); }
.cc-meta { font-size: 12px; color: var(--sub); white-space: nowrap; font-weight: 600; }
.cc-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ============================ タグ・バッジ ============================ */
.tag { font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 2px 9px; letter-spacing: .04em; }
.tag-level { background: var(--brand-soft); color: var(--brand); }
.st-badge { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 11px; letter-spacing: .02em; }
.st-passed { background: var(--green); color: #fff; }
.st-open { background: var(--brand-soft); color: var(--brand); }
.st-locked { background: var(--line-2); color: var(--faint); }
.st-soon { background: var(--gold-soft); color: #7A5A13; }
.lock-note { font-size: 12px; color: var(--faint); }
.cert-hint { font-size: 12.5px; color: rgba(233,240,242,.75); }

/* ============================ 章リスト ============================ */
.chapter-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.chapter-row { position: relative; display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; box-shadow: var(--shadow-xs); transition: border-color .15s ease, box-shadow .15s ease; }
.chapter-row.open { border-color: #c6d6da; }
.chapter-row.open:hover { box-shadow: var(--shadow-sm); }
.chapter-row.cleared { background: linear-gradient(180deg, #FBFDFC, #F5FAF7); }
.chapter-row.cleared::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 3px; background: var(--green); }
.chapter-row.locked { opacity: .62; }
.chapter-row.soon { background: var(--surface-2); border-style: dashed; }
.chr-no { font-size: 12px; font-weight: 800; color: var(--faint); white-space: nowrap; min-width: 54px;
  letter-spacing: .06em; }
.chr-main { flex: 1; min-width: 0; }
.chr-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; }
.chr-goal { font-size: 12px; color: var(--sub); margin-top: 3px; }
.chr-meta { font-size: 12px; color: var(--faint); margin-top: 5px; font-weight: 600; }
.chr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }

/* ============================ レッスン一覧 ============================ */
.lesson-list { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.lesson-row { display: flex; align-items: center; gap: 13px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; color: var(--ink);
  transition: border-color .14s ease, background .14s ease, transform .14s ease; }
.lesson-row:hover { text-decoration: none; border-color: #c6d6da; background: #FDFEFE; transform: translateX(2px); }
.lesson-row.done { background: var(--surface-2); }
.lr-idx { font-size: 12px; font-weight: 800; color: var(--faint); min-width: 20px; text-align: center; }
.lr-type { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 9px; white-space: nowrap; letter-spacing: .06em; }
.lr-type.t-lecture { background: var(--line-2); color: var(--ink-2); }
.lr-type.t-practice { background: var(--green-soft); color: var(--green); }
.lr-type.t-submit { background: #8A6516; color: #fff; } /* 最重要ラベル「関門」は濃地×白字で目立たせる */
.lr-title { flex: 1; font-size: 13.5px; font-weight: 600; min-width: 0; }
.lr-right { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.lr-done { display: inline-flex; align-items: center; justify-content: center; background: var(--green);
  color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; }

/* ============================ レッスン本文 ============================ */
.lesson-body { font-size: 15px; line-height: 2.05; color: var(--ink-2); }
.lesson-body p { margin: 0 0 16px; }
.lesson-body strong { color: var(--ink); font-weight: 700; }
.done-bar { margin: 24px 0 8px; }

/* ---- 図解: figure ---- */
/* スマホ幅ではSVGを縮小せず原寸横スクロールにする（縮小すると図中文字が判読不能になる） */
.figure { margin: 22px 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 20px 12px; box-shadow: var(--shadow-xs);
  overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure svg { width: 100%; height: auto; display: block; min-width: 560px; }
.figure figcaption { font-size: 12.5px; color: var(--sub); text-align: center; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--line-2); }

/* ---- 図解: ターミナル再現モック ---- */
.term-mock { margin: 20px 0; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid #23282E; box-shadow: var(--shadow-sm); }
.tm-bar { display: flex; align-items: center; gap: 6px; background: #171B20; padding: 10px 14px; }
.tm-bar span { width: 11px; height: 11px; border-radius: 50%; }
.tm-bar span:nth-child(1) { background: #E0655A; }
.tm-bar span:nth-child(2) { background: #E0B13F; }
.tm-bar span:nth-child(3) { background: #57B464; }
.tm-bar em { font-style: normal; font-size: 12px; color: #8A939D; margin-left: 8px; font-weight: 500; }
.tm-body { background: #0E1114; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.85; }
.tm-body p { margin: 0 0 12px; white-space: pre-wrap; word-break: break-word; }
.tm-body p:last-child { margin-bottom: 0; }
.tm-in { color: #8ECFDD; }
.tm-in::before { content: "あなた ▸ "; color: #57B464; font-weight: 700; }
.tm-out { color: #C9CFD6; }
.tm-out::before { content: "AI ▸ "; color: #C29233; font-weight: 700; }
.tm-cmd { color: #E8EBEE; background: #171C21; border-radius: 8px; padding: 8px 12px; }
.tm-cmd::before { content: "$ "; color: #57B464; font-weight: 700; }

/* ---- 図解: ステップ図 ---- */
.steps-fig { list-style: none; counter-reset: sf; margin: 20px 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px; }
.steps-fig li { counter-increment: sf; position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px 13px 54px;
  font-size: 13.5px; line-height: 1.75; }
.steps-fig li::before { content: counter(sf); position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-d)); color: #fff;
  font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---- 図解: Before/After比較 ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.cmp-col { background: var(--brick-soft); border: 1px solid #EDD5CE; border-radius: var(--r-md);
  padding: 15px 17px; font-size: 13px; line-height: 1.85; }
.cmp-col h5 { margin: 0 0 7px; font-size: 12px; font-weight: 800; color: #8F3527; letter-spacing: .02em; }
.cmp-col.good { background: var(--green-soft); border-color: #CBE5D3; }
.cmp-col.good h5 { color: var(--green); }
.cmp-col p { margin: 0; }

/* ---- 図解: callout ---- */
.callout { background: var(--gold-soft); border-left: 3px solid var(--gold-2); border-radius: 8px;
  padding: 14px 18px; font-size: 13.5px; line-height: 1.85; margin: 20px 0; color: var(--ink-2); }
.callout strong { color: var(--ink); }
/* 「詰まったら」を症状ごとの縦リストで見せる（パニック中でも自分の症状を探せる） */
.stuck-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stuck-list li { background: rgba(255, 255, 255, .68); border-radius: 8px; padding: 9px 13px; }

/* ---- 動画スロット ---- */
.video-slot { display: flex; align-items: center; gap: 12px; background: var(--surface-2);
  border: 1px dashed #D5D2C8; border-radius: var(--r-sm); padding: 13px 16px;
  font-size: 12.5px; color: var(--sub); margin: 16px 0; }
.vs-label { font-size: 10px; font-weight: 800; background: #E4E0D4; color: #6B6552;
  border-radius: 6px; padding: 3px 9px; white-space: nowrap; letter-spacing: .06em; }

/* ============================ パート枠 ============================ */
.part { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.part-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800;
  color: var(--ink); margin-bottom: 12px; letter-spacing: -0.005em; }
.part-no { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px;
  border-radius: 8px; background: linear-gradient(135deg, var(--brand-2), var(--brand-d));
  color: #fff; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.part-intro { font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; }
.part.tips { background: #F2F6F7; border-color: #D9E4E7; }
.part.tips .part-label { margin-bottom: 5px; font-size: 12.5px; color: var(--brand); }
.part.tips p { margin: 0; font-size: 13px; color: var(--ink-2); }
.soon-box { background: var(--gold-soft); border: 1px solid #EBDFC0; border-radius: var(--r-sm);
  padding: 14px 18px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 18px; }

/* ---- プロンプト箱 ---- */
.prompt-box { border-radius: var(--r-md); overflow: hidden; border: 1px solid #23282E; box-shadow: var(--shadow-sm); }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #171B20; color: #A8B0B9; font-size: 12px; padding: 9px 14px; font-weight: 500; }
.copy-btn { background: var(--brand-2); color: #fff; border: none; border-radius: 8px;
  padding: 6px 15px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .14s ease; }
.copy-btn:hover { background: var(--brand); }
.prompt-pre { margin: 0; background: #0E1114; color: #E4E8EB; padding: 16px 18px;
  font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word;
  font-family: var(--mono); overflow-x: auto; }

/* ---- 進捗の保存場所の告知 ---- */
.storage-note { font-size: 12.5px; color: var(--sub); margin: 22px 4px 0; }

/* ---- 関門ページの実習リンク行 ---- */
.gate-practices { font-size: 12.5px; color: var(--sub); margin: -4px 0 12px; }
.gate-practices a { font-weight: 700; }

/* ---- 証拠貼付け ---- */
.evidence { width: 100%; min-height: 140px; resize: vertical; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 14px 15px; font-size: 13px; line-height: 1.7;
  font-family: var(--mono); color: var(--ink); background: var(--surface-2);
  transition: border-color .14s ease, box-shadow .14s ease; }
.evidence:focus { outline: none; border-color: var(--brand-2); background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 111, 126, .12); }
.verify-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.verify-result { margin-top: 16px; }
.ck-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ck-list li { font-size: 13px; display: flex; align-items: center; gap: 10px; padding: 9px 13px;
  border-radius: var(--r-sm); font-weight: 500; }
.ck-list li.ok { background: var(--green-soft); color: #17603A; }
.ck-list li.ng { background: var(--brick-soft); color: #8F3527; }
.ck-mark { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 8px; flex: 0 0 auto; letter-spacing: .04em; }
.ck-list li.ok .ck-mark { background: var(--green); color: #fff; }
.ck-list li.ng .ck-mark { background: var(--brick); color: #fff; }
.vr-pass { background: var(--green-soft); border: 1px solid #CBE5D3; color: #17603A;
  font-weight: 700; font-size: 14px; border-radius: var(--r-sm); padding: 14px 17px; margin-bottom: 14px; }
.vr-fail { background: var(--brick-soft); border: 1px solid #EDD0C8; color: #8F3527;
  font-size: 13.5px; border-radius: var(--r-sm); padding: 14px 17px; margin-bottom: 14px; }

/* ============================ ミニテスト ============================ */
.q-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 17px 19px; margin-bottom: 13px; }
.q-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; }
.q-num { flex: 0 0 auto; width: 25px; height: 25px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-d)); color: #fff;
  font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.q-text { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.65; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 14px; font-size: 13px; cursor: pointer;
  background: var(--surface-2); position: relative; transition: border-color .13s ease, background .13s ease; }
.choice:hover { border-color: #B9CDD2; background: #fff; }
.choice.selected { border-color: var(--brand-2); background: var(--brand-soft); font-weight: 600; }
.choice input { accent-color: var(--brand); width: 15px; height: 15px; flex: 0 0 auto; }
.choice.locked { cursor: default; }
.choice.correct { border-color: #8FC6A3; background: var(--green-soft); }
.choice.wrong { border-color: #DBA595; background: var(--brick-soft); }
.choice-flag { margin-left: auto; font-size: 11px; font-weight: 800; border-radius: 6px;
  padding: 2px 9px; white-space: nowrap; letter-spacing: .04em; }
.choice-flag.ok { background: var(--green); color: #fff; }
.choice-flag.ng { background: var(--brick); color: #fff; }
.explanation { margin-top: 12px; font-size: 12.5px; line-height: 1.85; border-radius: var(--r-sm); padding: 12px 15px; }
.explanation.is-correct { background: var(--green-soft); color: #17603A; }
.explanation.is-wrong { background: var(--brick-soft); color: #8F3527; }
.exp-label { font-weight: 800; margin-right: 6px; }
.grade-bar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 8px 0 2px; }
.answer-progress { font-size: 12px; color: var(--sub); font-weight: 600; }

/* ============================ ボタン ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: var(--r-sm); padding: 10px 19px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; letter-spacing: .01em;
  box-shadow: var(--shadow-xs); transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); text-decoration: none;
  transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 26px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); border-color: var(--green); }
.btn-green:hover { background: #17603A; border-color: #17603A; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent;
  box-shadow: 0 2px 8px rgba(169, 126, 31, .3); }
.btn-gold:hover { background: linear-gradient(135deg, #B5872B, #97701B); border-color: transparent; }
.btn-outline { background: var(--surface); color: var(--brand); border-color: #C9D8DC; box-shadow: none; }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-d); border-color: #B3C8CE; }
.btn-ghost { background: transparent; color: var(--sub); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--line-2); color: var(--ink-2); transform: none; box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.notice { background: var(--gold-soft); border: 1px solid #EBDFC0; border-radius: var(--r-md);
  padding: 18px 20px; font-size: 14px; color: var(--ink-2); }

/* ============================ 修了証 ============================ */
.cert-stage { display: flex; justify-content: center; padding: 16px 0 24px; }
.certificate { position: relative; width: 100%; max-width: 660px; background: #FFFDF5;
  border: 1px solid #D9C79A; border-radius: var(--r-md); padding: 48px 48px 36px; text-align: center;
  box-shadow: var(--shadow-md); }
.certificate::before { content: ""; position: absolute; inset: 10px; border: 1px solid #E3D5AE;
  border-radius: 9px; pointer-events: none; }
.cert-kicker { font-size: 10px; letter-spacing: .38em; color: var(--gold); font-weight: 700; }
.cert-title { font-family: var(--font-serif); font-size: 31px; font-weight: 700; color: var(--ink);
  margin: 10px 0 4px; letter-spacing: .02em; }
.cert-rule { width: 64px; height: 2px; background: linear-gradient(90deg, var(--gold-2), var(--gold));
  margin: 12px auto 22px; border-radius: 2px; }
.cert-lead { font-size: 12.5px; color: var(--sub); margin: 0; }
.cert-name { font-family: var(--font-serif); font-size: 29px; font-weight: 700; color: var(--ink);
  margin: 10px 0 18px; letter-spacing: .04em; }
.cert-body { font-size: 13.5px; color: var(--ink-2); line-height: 2.0; margin: 0 0 24px; }
.cert-meta { display: flex; justify-content: center; gap: 40px; font-size: 11px; color: var(--sub);
  margin-bottom: 26px; letter-spacing: .04em; }
.cert-meta .cm-val { display: block; font-size: 15px; color: var(--ink); font-weight: 700; margin-top: 2px; letter-spacing: 0; }
.cert-footer { display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #E8DDBE; padding-top: 18px; }
.cert-org { text-align: left; }
.cert-org-name { font-size: 14px; font-weight: 800; color: var(--ink); }
.cert-org-sub { font-size: 9px; letter-spacing: .26em; color: var(--faint); font-weight: 600; }
.cert-seal { display: flex; flex-direction: column; align-items: center; }
.seal-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff;
  font-weight: 800; font-size: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 8px rgba(169,126,31,.35); }
.seal-text { font-size: 9px; letter-spacing: .3em; color: var(--gold); margin-top: 5px; font-weight: 700; }

/* ============================ フッター ============================ */
.site-footer { flex-shrink: 0; border-top: 1px solid var(--line); padding: 26px 20px; text-align: center;
  background: var(--surface); }
.footer-note { font-size: 12px; color: var(--faint); max-width: var(--maxw); margin: 0 auto; }

/* ============================ ログイン ============================ */
.login-body {
  background:
    radial-gradient(720px 320px at 85% 0%, rgba(194, 146, 51, .18), transparent 60%),
    radial-gradient(900px 480px at 0% 100%, rgba(47, 111, 126, .30), transparent 60%),
    linear-gradient(135deg, #0F2229 0%, #143E49 60%, #1D5967 130%);
}
.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 100vh; }
.login-card { background: var(--surface); border-radius: 22px; padding: 38px 36px; width: 100%;
  max-width: 420px; box-shadow: var(--shadow-lg); }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.login-title { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.login-sub { font-size: 9px; letter-spacing: .3em; color: var(--faint); font-weight: 600; }
.login-lead { font-size: 13.5px; color: var(--sub); margin: 0 0 24px; line-height: 1.9; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.field input { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--surface-2);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease; }
.field input:focus { outline: none; border-color: var(--brand-2); background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 111, 126, .12); }
.login-error { color: var(--brick); font-size: 12.5px; margin: 0; min-height: 16px; }
.login-note { font-size: 12px; color: var(--faint); margin: 18px 0 0; text-align: center; }

/* =====================================================================
   視覚化コンポーネント v4（2026-07-28 追加）
   共通SVGアイコン / 現在地ピン / 全体マップ / タイムライン / ステッパー /
   関門フロー図 / 状態タイル / 修了証スタンプ / ヘッダ極細バー ほか
   ===================================================================== */

/* ---- 共通インラインSVGアイコン ---- */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: 0 0 auto; }

/* ---- レッスンタイプバッジ（アイコン付き・既存 .lr-type を拡張） ---- */
.lr-type { display: inline-flex; align-items: center; gap: 4px; }
.lr-type .ico { width: 11px; height: 11px; }

/* ---- D1: ラダー現在地マーカー ---- */
.ladder-fill { position: absolute; left: 6%; top: 13px; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 2px;
  transition: width .4s ease; }
.ladder-step.current .ladder-badge { border-color: var(--brand-2); color: var(--brand); }
.ladder-pin { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 10.5px; font-weight: 800; color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 2px 10px; }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2);
  animation: pinPulse 1.6s ease-out infinite; }
@keyframes pinPulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 111, 126, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(47, 111, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 111, 126, 0); }
}

/* ---- D2: 学習全体マップ ---- */
.dash-map { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px 8px; margin-bottom: 30px; box-shadow: var(--shadow-xs); }
.dash-map .section-label { margin: 0 0 4px; }
.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.map-scroll svg { display: block; font-family: var(--font); }
.map-ring { transform-box: fill-box; transform-origin: center; animation: mapPulse 1.8s ease-out infinite; }
@keyframes mapPulse {
  0%   { transform: scale(.82); opacity: .9; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* ---- D3: コースカードの章ドット ---- */
.cc-dots { display: flex; gap: 5px; margin-top: 2px; }
.ccd { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; box-sizing: border-box; }
.ccd.done { background: var(--green); }
.ccd.next { background: #fff; border: 2px solid var(--brand-2); }
.ccd.soon { background: transparent; border: 1px dashed #C9CDD1; }

/* ---- D4: サマリータイル ---- */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 18px 11px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 1px; }
.stat-num { font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.35; letter-spacing: -0.01em; }
.stat-num .stat-sub { font-size: 12.5px; color: var(--faint); font-weight: 700; margin-left: 3px; }
.stat-num.stat-none { color: var(--sub); font-size: 16px; }
.stat-label { font-size: 11.5px; color: var(--sub); font-weight: 700; }

/* ---- D5: 「次はここから」ミニカード ---- */
.next-card { display: inline-flex; flex-direction: column; gap: 6px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 14px 20px 12px; border-left: 4px solid var(--gold-2);
  box-shadow: 0 6px 18px rgba(8, 18, 22, .28); min-width: 280px; max-width: 100%;
  transition: transform .16s ease, box-shadow .16s ease; }
.next-card:hover { text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(8, 18, 22, .34); }
.nc-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.nc-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-ch { font-size: 12px; font-weight: 800; color: var(--sub); white-space: nowrap; }
.nc-title { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.nc-meta { font-size: 11.5px; color: var(--faint); font-weight: 600; }

/* ---- C1: 章リストの縦タイムライン ---- */
.chapter-timeline { gap: 12px; }
.tl-item { display: flex; gap: 12px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 16px; top: 48px; bottom: -14px; width: 2px;
  background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.cleared::before { background: #A8D4B8; }
.tl-rail { width: 34px; flex: 0 0 auto; display: flex; justify-content: center; align-items: flex-start;
  padding-top: 13px; position: relative; z-index: 1; }
.tl-item .chapter-row { flex: 1; min-width: 0; }
.tl-dot { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; font-size: 12.5px; font-weight: 800; background: var(--surface); }
.tl-dot .ico { width: 14px; height: 14px; }
.tl-cleared { background: var(--green); color: #fff; box-shadow: var(--shadow-xs); }
.tl-open { background: var(--brand-soft); color: var(--brand); border: 2px solid var(--brand-2); }
.tl-locked { background: var(--line-2); color: var(--faint); border: 1px solid var(--line); }
.tl-soon { background: var(--surface-2); color: var(--faint); border: 1.5px dashed #C9CDD1; }

/* ---- C2: コース進捗バー ---- */
.course-progress { display: flex; align-items: center; gap: 12px; max-width: 460px; margin: -12px 0 20px; }
.course-progress .cc-bar { height: 8px; }

/* ---- C3: レッスンタイプ別ドット列 ---- */
.type-dots { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; vertical-align: middle; }
.td { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.td-lecture { background: #C4C9CD; }
.td-practice { background: var(--green); }
.td-submit { background: var(--gold); }

/* ---- CH2: 章内セグメント式進捗バー ---- */
.seg-bar { display: flex; gap: 4px; margin: -12px 0 18px; max-width: 460px; }
.seg { flex: 1; height: 7px; border-radius: 4px; background: var(--line-2); box-sizing: border-box; }
.seg.done { background: var(--brand-2); }
.seg.gate { background: var(--gold-soft); border: 1px solid #E3D5AE; }
.seg.gate.done { background: var(--gold); border-color: var(--gold); }

/* ---- CH3: 章の進め方 3ステップ図 ---- */
.ch-flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.chf-step { display: flex; align-items: center; gap: 9px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 14px; box-shadow: var(--shadow-xs); }
.chf-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; flex: 0 0 auto; }
.chf-ico .ico { width: 14px; height: 14px; }
.chf-lec { background: var(--line-2); color: var(--ink-2); }
.chf-prac { background: var(--green-soft); color: var(--green); }
.chf-gate { background: var(--gold-soft); color: var(--gold); }
.chf-t { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.chf-n { font-size: 11px; font-weight: 800; color: var(--faint); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.chf-arrow { align-self: center; color: var(--faint); font-weight: 800; font-size: 15px; }

/* ---- L1: レッスン位置ステッパー ---- */
.lesson-stepper { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.ls-count { font-size: 12px; font-weight: 800; color: var(--sub); letter-spacing: .03em; white-space: nowrap; }
.ls-dots { display: inline-flex; align-items: center; gap: 6px; }
.ls-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); box-sizing: border-box; }
.ls-dot.done { background: var(--green); }
.ls-dot.gate { background: var(--gold-soft); border: 1.5px solid var(--gold-2); }
.ls-dot.gate.done { background: var(--gold); border-color: var(--gold); }
.ls-dot.current { background: var(--brand-2); box-shadow: 0 0 0 3px rgba(47, 111, 126, .22); }
.ls-dot.gate.current { background: var(--gold-2); box-shadow: 0 0 0 3px rgba(194, 146, 51, .28); }

/* ---- L2: 完了チェックアニメーション ---- */
.done-anim { display: inline-flex; align-items: center; gap: 11px; color: var(--green);
  font-weight: 800; font-size: 14px; }
.done-anim .ico { width: 32px; height: 32px; padding: 7px; box-sizing: border-box; border-radius: 50%;
  background: var(--green); color: #fff; animation: donePop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes donePop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---- L3: 動画プレースホルダ（16:9＋再生ボタン） ---- */
.video-ph { margin: 16px 0; max-width: 520px; }
.vp-frame { aspect-ratio: 16 / 9; border-radius: var(--r-md); border: 1px solid var(--line);
  background: linear-gradient(145deg, #E9EBEA, #DDE1E0); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; }
.vp-play { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border-radius: 50%; background: rgba(20, 62, 73, .82); color: #fff; box-shadow: var(--shadow-sm); }
.vp-play .ico { width: 22px; height: 22px; margin-left: 3px; }
.vp-note { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--sub); }
.vp-caption { font-size: 12px; color: var(--faint); margin: 7px 2px 0; }

/* ---- G1: 判定前の中立チェックリスト ---- */
.ck-list li.pending { background: var(--surface-2); color: var(--sub); border: 1px dashed var(--line); }
.ck-list li.pending .ck-mark { background: #D8DBDD; color: #5B6165; }
.ck-note { font-size: 12px; color: var(--faint); margin: 0; }

/* ---- G2: 関門フロー図 / S1: 環境診断フロー図 ---- */
.gate-flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px 8px; margin: 20px 0 16px; box-shadow: var(--shadow-xs); }
.gf-label { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--sub); margin: 0 0 6px; }
.gate-flow svg { min-width: 640px; width: 100%; height: auto; font-family: var(--font); }

/* ---- G3: 証拠・ミニテストの状態タイル ---- */
.gate-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.g-tile { display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 15px;
  transition: background .25s ease, border-color .25s ease; }
.g-tile .gt-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--line); color: #fff; flex: 0 0 auto; }
.g-tile .gt-mark .ico { width: 11px; height: 11px; }
.gt-label { font-size: 13px; font-weight: 800; color: var(--ink-2); flex: 1; }
.gt-badge { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 10px;
  background: var(--line-2); color: var(--faint); }
.g-tile.ok { background: var(--green-soft); border-color: #CBE5D3; }
.g-tile.ok .gt-mark { background: var(--green); }
.g-tile.ok .gt-label { color: #17603A; }
.g-tile.ok .gt-badge { background: var(--green); color: #fff; }

/* ---- G4: ミニテスト回答ドット ---- */
.q-dots { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; }
.qd { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.qd.on { background: var(--brand-2); }

/* ---- G5: 章クリアバナー（メダル） ---- */
.clear-banner { display: flex; align-items: center; gap: 14px; }
.medal { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; flex: 0 0 auto; color: #fff;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 8px rgba(169, 126, 31, .35);
  animation: medalPop .6s cubic-bezier(.2, 1.5, .4, 1); }
.medal .ico { width: 24px; height: 24px; }
@keyframes medalPop {
  0%   { transform: scale(0) rotate(-14deg); opacity: 0; }
  65%  { transform: scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* ---- CE1: 修了証の登場アニメーション ---- */
.certificate { animation: certIn .7s cubic-bezier(.2, .8, .3, 1); }
@keyframes certIn {
  from { opacity: 0; transform: translateY(18px) scale(.965); }
  to   { opacity: 1; transform: none; }
}

/* ---- CE2: 修了証内の小型ラダースタンプ ---- */
.cert-ladder { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -4px 0 24px; }
.cl-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1.5px solid #E3D5AE; color: #C9B57F; font-size: 10px; font-weight: 800; }
.cl-step.on { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff;
  border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.cl-line { width: 20px; height: 1.5px; background: #E8DDBE; }

/* ---- S2: 診断後のマップ表示 ---- */
.skip-map { margin-top: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px 4px; }
.sm-label { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--sub); margin: 0 0 4px; }

/* ---- GL1: ヘッダ直下の極細プログレスバー ---- */
.global-progress { height: 3px; background: transparent; }
.gp-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--green));
  transition: width .4s ease; border-radius: 0 2px 2px 0; }

/* ---- GL2: 未開放通知（錠前＋ミニ図） ---- */
.notice-locked .nl-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.notice-locked .nl-head .ico { width: 18px; height: 18px; color: #8A6516; }
.lock-fig { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
.lf-box { display: inline-flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid #E3D5AE; border-radius: var(--r-sm); padding: 8px 14px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
a.lf-box { color: var(--brand); }
a.lf-box:hover { text-decoration: none; border-color: var(--brand-2); background: var(--brand-soft); }
.lf-box .ico { width: 13px; height: 13px; }
.lf-box.lf-this { background: var(--surface-2); border-style: dashed; color: var(--faint); }
.lf-arrow { font-size: 11.5px; font-weight: 800; color: var(--sub); white-space: nowrap; }

/* ---- LO1: ログインカードの簡易ラダー ---- */
.login-ladder { display: flex; align-items: flex-start; justify-content: center; gap: 5px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.ll-step { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.ll-badge { font-size: 10px; font-weight: 800; color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 1px 9px; }
.ll-name { font-size: 9.5px; color: var(--faint); font-weight: 600; white-space: nowrap; }
.ll-arrow { color: #C9CDD1; font-weight: 800; font-size: 12px; margin-top: 2px; }

/* ---- 印刷: 修了証だけを印刷する ---- */
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  .cert-stage, .cert-stage * { visibility: visible; }
  .cert-stage { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; }
  .certificate { box-shadow: none; animation: none; }
}

/* ============================ レスポンシブ ============================ */
@media (max-width: 760px) {
  #app { padding: 22px 16px 56px; }
  .hero { padding: 28px 22px 26px; border-radius: 16px; }
  .hero-title { font-size: 22px; }
  .ladder-track { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .ladder-track::before { display: none; }
  .ladder-fill { display: none; }
  .header-right { gap: 10px; }
  .learner { display: none; }
  .compare { grid-template-columns: 1fr; }
  .chapter-row { flex-wrap: wrap; }
  .chr-side { flex-direction: row; align-items: center; }
  .certificate { padding: 32px 22px 26px; }
  .nav-row { flex-wrap: wrap; }
  .page-title { font-size: 21px; }
  .stat-tiles { gap: 8px; }
  .stat-tile { padding: 10px 12px 9px; }
  .stat-num { font-size: 17px; }
  .stat-num.stat-none { font-size: 14px; }
  .next-card { min-width: 0; width: 100%; box-sizing: border-box; }
  .tl-rail { width: 30px; }
  .tl-item::before { left: 14px; }
  .chf-arrow { display: none; }
  .ch-flow { flex-direction: column; }
}
