/* =========================================================
   動かして学ぶディープラーニング 共通スタイル
   ========================================================= */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #22262e;
  --muted: #6b7280;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-soft: #e8f0fe;
  --border: #e3e7ef;
  --green: #10b981;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --rose: #f43f5e;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(30, 41, 59, 0.06);
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Segoe UI", "Noto Sans JP", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4 { line-height: 1.4; }
a { color: var(--accent-dark); }

/* ---------- ヘッダー ---------- */
.site-header {
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  padding: 44px 24px 36px;
  text-align: center;
}
.site-header h1 { margin: 0 0 10px; font-size: 2.1rem; letter-spacing: 0.02em; }
.subtitle { margin: 0; opacity: 0.92; font-size: 1.05rem; }
.site-header.compact { padding: 12px 20px; text-align: left; }
.site-header.sticky { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; }
.nav-home { color: #fff; text-decoration: none; opacity: 0.92; font-weight: 600; }
.nav-home:hover { text-decoration: underline; }
.nav-title { font-weight: 700; font-size: 1.05rem; }
.progress-dots { display: flex; gap: 6px; align-items: center; }
.progress-dots .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); display: inline-block; transition: transform 0.1s; }
.progress-dots .dot.done { background: rgba(255, 255, 255, 0.85); }
.progress-dots .dot.current { background: #fbbf24; width: 15px; height: 15px; }
.progress-dots .dot:hover { transform: scale(1.3); }

/* ---------- レイアウト ---------- */
.container { width: min(1400px, 96vw); margin: 0 auto; padding: 20px 0 32px; }
.container.wide { width: min(1400px, 96vw); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 14px; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.sec-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--accent); }
.tag-ねらい { background: var(--green); } .tag-やってみる { background: var(--accent); } .tag-コード { background: #0f172a; } .tag-テスト { background: var(--rose); } .tag-まとめ { background: var(--violet); } .tag-記録 { background: #64748b; } .tag-しくみ { background: #0891b2; }

/* 章のヒーロー */
.chapter-hero { display: flex; gap: 22px; align-items: center; padding: 22px 30px; margin: 4px 0 20px; background: linear-gradient(135deg, #eef4ff, #f7f9ff); border: 1px solid #dbe6ff; border-radius: var(--radius); flex-wrap: wrap; }
.hero-num { font-size: 3rem; font-weight: 800; color: var(--accent-dark); line-height: 1; min-width: 60px; text-align: center; font-family: Georgia, "Times New Roman", serif; }
.hero-text { flex: 1 1 320px; }
.hero-title { font-size: 1.6rem; font-weight: 800; }
.hero-en { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.hero-tagline { margin: 4px 0 0; color: #334155; font-size: 1.05rem; }
.hero-meta { display: flex; flex-direction: column; gap: 8px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 0.9rem; white-space: nowrap; }
.chip-link { background: var(--rose); color: #fff; border-color: var(--rose); text-decoration: none; font-weight: 600; }
.chip-link:hover { filter: brightness(1.08); }

.muted { color: var(--muted); font-size: 0.92rem; }
.hint { font-size: 0.88rem; color: var(--muted); margin: 4px 0 0; }
.status { font-size: 0.92rem; color: var(--muted); }
.term { border-bottom: 2px dotted var(--accent); cursor: help; }
.goal { background: #ecfdf5; border-left: 5px solid var(--green); padding: 14px 18px; border-radius: 10px; margin: 12px 0; font-size: 1.02rem; }
.note { background: #fffbeb; border-left: 5px solid var(--amber); padding: 14px 18px; border-radius: 10px; margin: 14px 0; }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin: 14px 0; }
.box { border-radius: 12px; padding: 14px 18px; }
.box h4 { margin: 0 0 6px; font-size: 1rem; }
.box p, .box ul { margin: 0; }
.box ul { padding-left: 20px; }
.box-analogy { background: #fdf4ff; border: 1px solid #f0d9ff; }
.box-uses { background: #f0f9ff; border: 1px solid #cfe8ff; }
details.terms summary { cursor: pointer; font-weight: 700; color: var(--accent-dark); padding: 8px 0; list-style: none; }
details.terms summary::before { content: "▸ "; }
details.terms[open] summary::before { content: "▾ "; }
details.terms ul { margin-top: 4px; }
.card-review { background: #faf5ff; border-color: #e9d5ff; }
.takeaways { padding-left: 24px; font-size: 1.05rem; }
.takeaways li { margin: 6px 0; }

/* ---------- 操作部品 ---------- */
.btn { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 10px 20px; font-size: 1rem; cursor: pointer; font-weight: 600; transition: transform 0.05s, background 0.15s, box-shadow 0.15s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.running { background: var(--rose); }
.btn-outline { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); box-shadow: none; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-small { padding: 7px 14px; font-size: 0.92rem; }
a.btn { text-decoration: none; display: inline-block; }

.controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 12px 0; }
.controls label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px; }
.controls input[type="range"] { width: 170px; height: 28px; accent-color: var(--accent); }
.controls input[type="number"], .controls select, .controls input[type="text"] { padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; background: #fff; }
.val { font-family: Consolas, "Courier New", monospace; min-width: 3em; display: inline-block; color: var(--accent-dark); font-weight: 700; }

canvas { max-width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.canvas-row { display: flex; flex-wrap: wrap; gap: 20px; }
.canvas-row > div { flex: 1 1 360px; min-width: 0; }
.canvas-caption { font-size: 0.88rem; color: var(--muted); margin: 6px 0 0; }

table.data { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin: 8px 0; }
table.data th, table.data td { border: 1px solid var(--border); padding: 6px 10px; text-align: right; }
table.data th { background: #f1f5f9; font-weight: 600; }
table.data td:first-child, table.data th:first-child { text-align: left; }
table.data tr:nth-child(even) td { background: #fafbfd; }
.table-wrap { overflow-x: auto; }
.table-wrap.scroll { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap.scroll table { margin: 0; }
.table-wrap.scroll th { position: sticky; top: 0; background: #f1f5f9; z-index: 1; }

.quiz-q { margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--border); }
.quiz-text { font-weight: 700; margin: 0 0 8px; }
.quiz-choice { display: block; padding: 6px 10px; cursor: pointer; border-radius: 8px; }
.quiz-choice:hover { background: var(--accent-soft); }
.quiz-explain { font-size: 0.92rem; color: var(--muted); margin: 8px 0 0; min-height: 1em; }
.quiz-explain.ok { color: #047857; }
.quiz-explain.ng { color: #b91c1c; }
.quiz-result { font-weight: 700; margin-top: 10px; font-size: 1.05rem; }

.code { font-family: Consolas, "Courier New", monospace; background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 12px; font-size: 0.88rem; overflow-x: auto; white-space: pre; line-height: 1.7; }
.mono { font-family: Consolas, "Courier New", monospace; }
.grid-cells { display: inline-grid; gap: 2px; }
.cell { width: 28px; height: 28px; border: 1px solid #d1d5db; display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; user-select: none; border-radius: 3px; position: relative; }
.cell.hl { box-shadow: 0 0 0 3px #f59e0b; z-index: 2; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 0.8rem; margin: 2px; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.token { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: #f9fafb; cursor: pointer; }
.token:hover { border-color: var(--accent); }
.token.sel { background: var(--accent); color: #fff; border-color: var(--accent); }
.token.mask { background: #fde68a; }
.gen-out { min-height: 3em; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-family: Consolas, monospace; white-space: pre-wrap; word-break: break-all; font-size: 1rem; }
textarea { width: 100%; min-height: 90px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; font-family: inherit; font-size: 0.95rem; }
.result { margin-top: 12px; font-family: Consolas, "Courier New", monospace; white-space: pre-wrap; }

/* ---------- トップページ ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 10px; }
.ch-card { display: block; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s; position: relative; }
.ch-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30, 41, 59, 0.1); border-color: var(--accent); }
.ch-card .ch-no { font-family: Georgia, serif; font-weight: 800; font-size: 1.6rem; color: var(--accent-dark); line-height: 1; }
.ch-card .ch-title { font-weight: 700; font-size: 1.1rem; margin: 6px 0 2px; }
.ch-card .ch-en { color: var(--muted); font-size: 0.85rem; }
.ch-card .ch-desc { color: #475569; font-size: 0.92rem; margin: 8px 0 0; }
.ch-card .ch-meta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ch-card .ch-meta span { font-size: 0.78rem; background: #f1f5f9; border-radius: 999px; padding: 2px 9px; color: #475569; }
.ch-card.done { border-color: #a7f3d0; background: #f0fdf9; }
.ch-card .ch-done { position: absolute; right: 14px; top: 12px; background: var(--green); color: #fff; font-size: 0.75rem; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.ch-group { margin: 18px 0 6px; font-weight: 700; color: #334155; display: flex; align-items: center; gap: 8px; }
.ch-group::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.progress-bar { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--green), #34d399); border-radius: 999px; }
.site-footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 28px 16px; }

/* ---------- コードパネル ---------- */
.codepanel { background: #0f172a; border-radius: 14px; padding: 0 0 12px; color: #e2e8f0; margin: 10px 0; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #1e293b; font-size: 0.92rem; flex-wrap: wrap; gap: 6px; }
.code-title { font-weight: 700; color: #fbbf24; }
.code-hint { color: #94a3b8; font-size: 0.82rem; }
.code-body { padding: 10px 0; overflow-x: auto; font-family: Consolas, "Courier New", monospace; font-size: 0.9rem; line-height: 1.8; }
.code-line { display: flex; white-space: pre; padding: 0 14px; border-left: 3px solid transparent; }
.code-line.active { background: #1e3a5f; border-left-color: #fbbf24; }
.code-ln { width: 2em; color: #475569; text-align: right; margin-right: 14px; user-select: none; flex: none; }
.code-content { flex: 1; }
.c-kw { color: #c084fc; } .c-str { color: #86efac; } .c-num { color: #fcd34d; } .c-com { color: #64748b; }
.code-input { font-family: inherit; font-size: inherit; background: #334155; color: #fde68a; border: 1px solid #fbbf24; border-radius: 5px; padding: 0 5px; margin: 0 1px; height: 1.55em; vertical-align: middle; }
.code-input:focus { outline: 2px solid #fbbf24; background: #475569; }
select.code-input { padding: 0 2px; }
.code-bar { display: flex; gap: 10px; align-items: center; padding: 8px 16px; flex-wrap: wrap; }
.code-run { background: #16a34a; } .code-run:hover { background: #15803d; }
.codepanel .btn-outline { color: #cbd5e1; border-color: #64748b; } .codepanel .btn-outline:hover { background: #1e293b; }
.code-status { color: #94a3b8; font-size: 0.88rem; }
.code-fig { margin-left: auto; color: #93c5fd; font-size: 0.88rem; text-decoration: none; } .code-fig:hover { text-decoration: underline; }
.code-out { margin: 4px 16px 0; background: #020617; border: 1px solid #334155; border-radius: 10px; padding: 10px 14px; position: relative; }
.code-out-label { position: absolute; right: 12px; top: 8px; color: #64748b; font-size: 0.78rem; font-style: italic; }
.code-out-text { margin: 0; font-family: Consolas, "Courier New", monospace; font-size: 0.9rem; color: #e2e8f0; white-space: pre-wrap; word-break: break-all; min-height: 1.6em; line-height: 1.7; }

/* ---------- スマートフォン ---------- */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .container, .container.wide { width: 100%; padding: 12px 10px 24px; }
  .card { padding: 16px; border-radius: 12px; }
  .chapter-hero { padding: 16px; gap: 12px; }
  .hero-num { font-size: 2.2rem; min-width: 44px; }
  .hero-title { font-size: 1.3rem; }
  .hero-meta { flex-direction: row; flex-wrap: wrap; }
  .controls { gap: 8px; }
  .controls label { width: 100%; justify-content: space-between; }
  .controls input[type="range"] { width: 45%; }
  .nav-title { font-size: 0.9rem; }
  .progress-dots .dot { width: 8px; height: 8px; }
  .site-header h1 { font-size: 1.6rem; }
}
/* ---------- 図の配置ルール ----------
   ・図は列いっぱいに広がるが、元サイズの 1.25 倍まで（大きくなりすぎない）
   ・1 枚だけの図は中央寄せ。2 枚以上は .canvas-row で横に並べ、狭い画面では縦に落ちる */
.card > canvas, .card > .figure > canvas { margin: 0 auto; }
.card > .canvas-caption { text-align: center; }
.canvas-row > div { flex: 1 1 400px; }
.canvas-row > div > p:first-child { margin: 0 0 6px; font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-small { font-size: 0.85rem; font-weight: 500; }
details.deeper { margin: 10px 0; background: #fff; border: 1px solid #e9d5ff; border-radius: 10px; padding: 6px 14px; }
details.deeper summary { cursor: pointer; font-weight: 700; color: #6d28d9; }
details.deeper ul { margin: 6px 0 4px; }
.glossary-search { width: 100%; max-width: 480px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.gl-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.gl-item b { font-size: 1.02rem; }
.gl-item .gl-ch { font-size: 0.78rem; color: var(--accent-dark); text-decoration: none; background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.gl-item p { margin: 4px 0 0; font-size: 0.92rem; color: #334155; }
.site-footer .ref { font-size: 0.75rem; color: #9ca3af; max-width: 720px; margin: 6px auto 0; }
.site-footer .ref a { color: #9ca3af; }

/* ---------- 体験エリア（ツールバー・フィールド・図） ---------- */
.controls.toolbar { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; gap: 10px 12px; align-items: flex-end; }
.controls.toolbar + .controls.toolbar { margin-top: -8px; }
.controls.toolbar label.field { display: flex; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; min-width: 150px; }
.controls.toolbar label.field-range { min-width: 230px; }
.field-name { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 600; color: #64748b; letter-spacing: 0.02em; gap: 10px; }
.field-name .val { min-width: 0; font-size: 0.95rem; }
.field-row { display: flex; align-items: center; gap: 8px; }
.field-row input[type="range"] { width: 100%; flex: 1; height: 24px; margin: 0; }
.field-row select, .field-row input[type="number"], .field-row input[type="text"] { width: 100%; border: none; padding: 2px 0; font-size: 1rem; background: transparent; }
.field-row select { cursor: pointer; }
.controls.toolbar label.field-check { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 0.95rem; gap: 8px; align-self: center; }
.controls.toolbar label.field-check input { accent-color: var(--accent); width: 18px; height: 18px; }
.controls.toolbar .btn { align-self: center; }
.btn-primary { background: var(--accent); }
.btn-ghost { background: #fff; color: #334155; border: 1px solid #cbd5e1; box-shadow: none; }
.btn-ghost:hover { background: #f1f5f9; color: #0f172a; }
.btn.running, .btn-primary.running { background: var(--rose); }
.badge { display: inline-flex; align-items: center; gap: 6px; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 4px 12px; font-size: 0.88rem; font-weight: 500; }
.badge:empty { display: none; }
.figure { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); margin: 6px 0 12px; }
.figure canvas { border: none; border-radius: 0; margin: 0 auto; display: block; }
.figure .figure-title { margin: 0; padding: 8px 14px; font-size: 0.92rem; font-weight: 600; color: #334155; background: #f8fafc; border-bottom: 1px solid var(--border); }
.figure .figure-caption { margin: 0; padding: 8px 14px; font-size: 0.85rem; color: #64748b; background: #f8fafc; border-top: 1px solid var(--border); text-align: left; }
.canvas-row > div > .figure { height: auto; }
input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: #e2e8f0; border-radius: 999px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.3); margin-top: -6px; cursor: pointer; }
input[type="range"]::-moz-range-track { height: 6px; background: #e2e8f0; border-radius: 999px; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.3); cursor: pointer; }
@media (max-width: 640px) {
  .controls.toolbar label.field, .controls.toolbar label.field-range { min-width: 100%; }
}

/* ---------- しくみの図 ---------- */
.arch { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 10px 0; }
.arch-svg { width: 100%; height: auto; display: block; padding: 10px 6px 4px; font-family: inherit; }
.arch-label { font-size: 13px; font-weight: 600; }
.arch-label.op { font-size: 15px; }
.arch-sub { font-size: 11px; }
.arch-edge-label { font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.arch-node.clickable { cursor: pointer; }
.arch-node.clickable:hover rect, .arch-node.clickable:hover circle { filter: brightness(0.95); stroke-width: 3; }
.arch-node.selected rect, .arch-node.selected circle { stroke-width: 3.5; filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.5)); }
.arch-desc { background: #f8fafc; border-top: 1px solid var(--border); padding: 10px 16px; min-height: 3.6em; }
.arch-desc-title { margin: 0 0 2px; font-weight: 700; color: var(--accent-dark); }
.arch-desc-text { margin: 0; font-size: 0.95rem; color: #334155; }
.refs { margin-top: 12px; font-size: 0.85rem; color: #475569; }
.refs-title { font-weight: 700; color: #6d28d9; margin-bottom: 2px; }
.refs ul { margin: 0; padding-left: 18px; }
.refs li { margin: 2px 0; }
.gen-out:empty::before { content: "ここに生成した文章が 1 文字ずつ表示されます"; color: #94a3b8; }

/* ---------- 必要な操作と細かい設定の分離 ---------- */
details.adv-settings { margin: -4px 0 12px; }
details.adv-settings > summary { cursor: pointer; font-size: 0.85rem; color: #64748b; padding: 4px 6px; list-style: none; display: inline-block; }
details.adv-settings > summary::before { content: "▸ "; }
details.adv-settings[open] > summary::before { content: "▾ "; }
details.adv-settings .controls.toolbar { background: #fff; border-style: dashed; margin-top: 4px; }
details.adv-block { margin-bottom: 20px; }
details.adv-block > summary { cursor: pointer; list-style: none; background: #fff; border: 1px dashed #c4b5fd; border-radius: var(--radius); padding: 14px 24px; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; color: #334155; }
details.adv-block > summary::before { content: "▸"; color: #7c3aed; }
details.adv-block[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
details.adv-block[open] > summary::before { content: "▾"; }
details.adv-block > section.card { border-top-left-radius: 0; border-top-right-radius: 0; border-style: dashed; border-color: #c4b5fd; margin-top: 0; }
.adv-hint { font-weight: 400; font-size: 0.85rem; color: #94a3b8; margin-left: auto; }
.tag-発展 { background: var(--violet); }
