/* コミュニティナレッジ UI（2026-09-11 刷新版）
   ネイビーサイドバー＋ライトグレー地＋白カード＋ブルーCTA */
:root {
  --navy-950: #0e1a45;
  --navy-900: #13235c;
  --navy-800: #182b6e;
  --navy-line: rgba(255, 255, 255, .10);
  --side-tx: #aab6dd;
  --blue: #2f6bff;
  --blue-dark: #1f57e6;
  --blue-soft: #eef4ff;
  --bg: #f1f4fa;
  --card: #ffffff;
  --line: #e3e9f4;
  --ink: #17224a;
  --muted: #6b7695;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 34, 74, .05), 0 6px 22px rgba(23, 34, 74, .05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 14.5px; line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
code { background: #eceff7; border-radius: 5px; padding: 1px 6px; font-size: .92em; }
mark { background: #ffe89b; border-radius: 3px; padding: 0 2px; }

/* ── レイアウト ─────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; padding: 26px 34px 60px; max-width: 1240px; width: 100%; }

/* ── サイドバー ─────────────────────────── */
.side {
  width: 236px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--side-tx); padding: 20px 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 0; color: #fff; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand span { font-size: 16.5px; font-weight: 800; line-height: 1.25; letter-spacing: .02em; }
.side-label { font-size: 11px; letter-spacing: .12em; margin: 26px 10px 8px; color: #7d8bbd; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10.5px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--side-tx);
  transition: background .15s, color .15s;
}
.side-nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.on { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(47, 107, 255, .35); }
.side-nav .count { margin-left: auto; font-size: 12px; font-weight: 700; opacity: .85; }
.side-foot { margin-top: auto; border-top: 1px solid var(--navy-line); padding-top: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.3; }
.user-chip b { color: #fff; font-size: 13.5px; }
.user-chip small { font-size: 11px; color: #7d8bbd; }
.logout {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-top: 2px;
  border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--side-tx);
}
.logout svg { width: 17px; height: 17px; }
.logout:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 15px;
}

/* ── トップバー ─────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 20px;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 12px 34px; position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.crumb a { font-weight: 700; color: var(--ink); }
.crumb span { margin: 0 7px; color: #b6bfd6; }
.gsearch {
  margin-left: auto; display: flex; align-items: center; gap: 9px;
  background: #f4f6fb; border: 1px solid var(--line); border-radius: 11px;
  padding: 8px 14px; width: min(420px, 40vw); color: var(--muted);
}
.gsearch svg { width: 16px; height: 16px; flex-shrink: 0; }
.gsearch input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13.5px; }
.top-avatar { width: 36px; height: 36px; }

/* ── 見出し・共通 ───────────────────────── */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: .01em; display: flex; align-items: center; gap: 12px; }
h1 .h-ic { width: 30px; height: 30px; }
.sub { color: var(--muted); margin-top: 5px; font-size: 14px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.sec-head h2 { font-size: 19px; font-weight: 800; }
.sort-form select, .filter-form select {
  border: 1px solid var(--line); background: var(--card); border-radius: 9px;
  padding: 7px 12px; font-size: 13px; color: var(--muted); outline: none;
}
.result-n { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 9px 16px; font-size: 13.5px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap; transition: .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(47, 107, 255, .28); }
.btn.primary:hover { background: var(--blue-dark); }
.btn.primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn.outline { background: var(--card); border-color: #c9d7f5; color: var(--blue); }
.btn.outline:hover { border-color: var(--blue); }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #c3cde4; }
.btn.wide { width: 100%; margin-top: 12px; }

/* ── ソースピル ─────────────────────────── */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.pill b { font-weight: 700; color: var(--muted); }
.pill:hover { border-color: #c3cde4; }
.pill.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(47, 107, 255, .28); }
.pill.on b { color: #dbe6ff; }

/* ── 2カラム ────────────────────────────── */
.cols, .detail-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.rail { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 76px; }

/* ── ランキングカード ───────────────────── */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s;
}
.rank-card.open { border-color: #b9cdfb; box-shadow: 0 2px 4px rgba(47, 107, 255, .06), 0 10px 28px rgba(47, 107, 255, .10); }
.rank-row { display: flex; align-items: flex-start; gap: 16px; padding: 17px 18px 15px 20px; cursor: pointer; }
.rank-no { font-size: 21px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; line-height: 1.35; }
.rank-card:not(.open) .rank-no { color: #97a5c9; }
.rank-body { flex: 1; min-width: 0; }
.rank-body h3 { font-size: 16.5px; font-weight: 800; line-height: 1.45; }
.rank-body h3 a:hover { color: var(--blue); }
.meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.meta i { font-style: normal; margin: 0 4px; color: #b6bfd6; }
.meta.big { font-size: 13.5px; margin-bottom: 6px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.chip {
  font-size: 11.5px; font-weight: 700; border-radius: 7px; padding: 3.5px 10px;
  background: #eef1f8; color: #4a5578;
}
.chip.big { font-size: 12.5px; padding: 6px 12px; border-radius: 9px; }
.chip.c0 { background: #e3edff; color: #1d55d8; }
.chip.c1 { background: #ddf5e6; color: #157347; }
.chip.c2 { background: #fdf1d2; color: #96690a; }
.chip.c3 { background: #fde3e3; color: #c02626; }
.chip.c4 { background: #ece5fd; color: #6636cf; }
.chip.c5 { background: #daf3f7; color: #0f7b8f; }
.bkm { background: none; border: 0; color: #aeb9d4; padding: 4px; border-radius: 7px; }
.bkm svg { width: 19px; height: 19px; }
.bkm:hover { color: var(--blue); background: var(--blue-soft); }
.bkm.saved { color: var(--blue); }
.bkm.saved svg path { fill: currentColor; }
.chev { color: #aeb9d4; align-self: center; }
.chev svg { width: 17px; height: 17px; transition: transform .18s; }
.rank-card.open .rank-row .chev svg { transform: rotate(90deg); }

.reason { display: none; align-items: center; gap: 16px; justify-content: space-between; background: var(--blue-soft); margin: 0 10px 10px; border-radius: 10px; padding: 13px 16px; }
.rank-card.open .reason { display: flex; }
.reason-txt { font-size: 13px; color: #33406b; }
.reason-txt b { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 12.5px; margin-bottom: 2px; }
.reason-txt b svg { width: 15px; height: 15px; }
.reason-cta { display: flex; gap: 9px; flex-shrink: 0; }

.more {
  display: flex; align-items: center; gap: 7px; margin: 16px auto 0;
  background: none; border: 0; color: var(--muted); font-size: 13.5px; font-weight: 700;
}
.more svg { width: 16px; height: 16px; }
.more:hover { color: var(--blue); }

/* ── 右レールカード ─────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-h { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 800; margin-bottom: 8px; }
.card-h svg { width: 19px; height: 19px; flex-shrink: 0; }
.card-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.card-note { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.card-note.dim { color: #9aa4c0; margin-top: 6px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.src-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.src-row b { margin-left: auto; font-size: 14px; }
.src-name { font-size: 13.5px; font-weight: 600; }
.src-av {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
}
.src-av.f { background: #2f6bff; }
.src-av.d { background: #8b5cf6; }
.src-av.v { background: #e11d48; }
.src-av.a { background: #f59e0b; }
.src-av.s { background: #10b981; }
.src-av.m { background: #0ea5e9; }
.src-av.sm { width: 30px; height: 30px; font-size: 12.5px; }
.src-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 13.5px; }
.src-total b { font-size: 17px; }

/* ── 一覧・検索 ─────────────────────────── */
.filterbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.filterbar .pills { margin-bottom: 0; }
.filter-form { display: flex; gap: 10px; margin-left: auto; }
.filter-form .q { border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 7px 13px; font-size: 13px; width: 280px; outline: none; }
.filter-form .q:focus { border-color: var(--blue); }
.lec-list { display: flex; flex-direction: column; gap: 9px; }
.lec-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; transition: border-color .15s;
}
.lec-row:hover { border-color: #b9cdfb; }
.lec-row.tall { align-items: flex-start; }
.lec-row.tall .src-av { margin-top: 2px; }
.lec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lec-title { font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.has-sum { font-style: normal; color: #157347; font-weight: 700; }
.snippet { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.6; }
.bigsearch {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 10px 8px 16px; margin-bottom: 18px; color: var(--muted);
  box-shadow: var(--shadow);
}
.bigsearch svg { width: 18px; height: 18px; flex-shrink: 0; }
.bigsearch input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 14.5px; }

/* ── ナレッジカード ─────────────────────── */
.card-grid { display: flex; flex-direction: column; gap: 10px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.kcard summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; }
.kcard summary::-webkit-details-marker { display: none; }
.kcard-title { font-weight: 700; flex: 1; }
.kcard[open] .chev svg { transform: rotate(180deg); }
.kcard .prose { padding: 0 20px 18px; }

/* ── 講義詳細 ───────────────────────────── */
.detail-head { align-items: center; }
.detail-title { font-size: 24px; line-height: 1.5; display: block; }
.detail-cols .col-main { display: flex; flex-direction: column; gap: 18px; }
.fold summary { list-style: none; display: flex; align-items: center; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .card-h { margin-bottom: 0; flex: 1; }
.fold[open] summary .chev svg { transform: rotate(180deg); }
.transcript {
  white-space: pre-wrap; word-break: break-word;
  font-size: 13.5px; line-height: 1.9; color: #333e63;
  border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px;
  max-height: 70vh; overflow-y: auto;
}
.prose { font-size: 14px; color: #2a355e; }
.prose h1, .prose h2, .prose h3 { font-size: 15.5px; margin: 14px 0 6px; }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 4px; }
.prose ul, .prose ol { padding-left: 22px; margin: 6px 0; }
.prose p { margin: 6px 0; }
.prose table { border-collapse: collapse; margin: 10px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 11px; font-size: 13px; }
.prose th { background: #f4f6fb; }

/* ── テーマページ ───────────────────────── */
.note-band { background: var(--blue-soft); border: 1px solid #d3e2ff; color: #33406b; border-radius: 12px; padding: 14px 18px; font-size: 13.5px; margin-bottom: 20px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.t-ic { font-size: 19px; }
.theme-why { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }

/* ── エクスポート ───────────────────────── */
.exp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.exp-actions { display: flex; gap: 9px; }
.lec-row.pick { cursor: pointer; }
.lec-row.pick input { width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.lec-row.pick:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

/* ── ログイン ───────────────────────────── */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(800px 500px at 16% 10%, rgba(56, 189, 248, .16) 0%, transparent 55%),
    radial-gradient(700px 480px at 86% 86%, rgba(139, 92, 246, .14) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
}
.login-wrap { width: min(400px, 92vw); }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 11px; color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 26px; }
.login-brand svg { width: 38px; height: 38px; }
.login-card { background: var(--card); border-radius: 18px; padding: 30px 30px 26px; box-shadow: 0 24px 60px rgba(5, 12, 40, .45); }
.login-card h2 { font-size: 21px; margin-bottom: 4px; }
.login-card p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.login-card input {
  width: 100%; height: 46px; border: 1px solid #d5dcec; border-radius: 11px;
  padding: 0 14px; font-size: 15px; outline: none; margin-bottom: 12px;
}
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); }
.login-err { background: #fde3e3; color: #c02626; border-radius: 9px; padding: 9px 13px; font-size: 12.5px; margin-bottom: 12px; }
.login-foot { text-align: center; color: #7d8bbd; font-size: 12px; margin-top: 18px; }

/* ── レスポンシブ ───────────────────────── */
@media (max-width: 1100px) {
  .cols, .detail-cols { grid-template-columns: 1fr; }
  .rail { position: static; }
}
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; padding: 12px 14px; gap: 10px; }
  .brand span { display: none; }
  .brand { padding: 0; }
  .side-label, .side-foot { display: none; }
  .side { flex-direction: row; align-items: center; }
  .side-nav { flex-direction: row; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .side-nav a { padding: 8px 11px; white-space: nowrap; font-size: 12.5px; }
  .side-nav .count { display: none; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 11px 16px; position: static; }
  .gsearch { width: 100%; }
  .top-avatar { display: none; }
  h1 { font-size: 24px; }
  .reason { flex-direction: column; align-items: flex-start; }
  .filter-form { margin-left: 0; width: 100%; }
  .filter-form .q { flex: 1; width: auto; }
}

/* ── テーマ絞り込みピル（講義一覧） ──────── */
.theme-pills { gap: 8px; margin: 2px 0 16px; }
.theme-pills .pill.th { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; font-weight: 600; }

/* 悩み検索のヒット理由 */
.snippet.nayami-hit { color: #1d55d8; background: #eef4ff; border-radius: 7px; padding: 5px 9px; display: inline-block; }

/* ── 競合分析 案件詳細（kyogo_case） ───────────────────── */
.back-link { display:inline-block; color:#5b6b8c; text-decoration:none; font-size:13.5px; margin-bottom:10px; }
.back-link:hover { color:#2f6bff; }
.kc-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:16px; }
.kc-title { font-size:30px; font-weight:800; margin:0 0 6px; color:#101828; letter-spacing:-.01em; }
.kc-sub { display:flex; align-items:center; gap:10px; color:#5b6b8c; font-size:14px; }
.kc-sub .chip { background:#eef2fb; color:#3a4a68; border-radius:6px; padding:2px 9px; font-size:12.5px; font-weight:600; }
.btn.outline { background:#fff; border:1px solid #d5ddec; color:#2f6bff; border-radius:9px; padding:9px 15px; font-weight:600; text-decoration:none; font-size:13.5px; white-space:nowrap; }
.btn.outline:hover { border-color:#2f6bff; }
.btn.sm { padding:7px 13px; font-size:13px; }

.kc-tabs { display:flex; gap:22px; border-bottom:1px solid #e5e9f2; margin-bottom:20px; }
.kc-tab { background:none; border:none; padding:0 2px 12px; font-size:15px; font-weight:600; color:#8792a6; cursor:pointer; border-bottom:2.5px solid transparent; margin-bottom:-1px; }
.kc-tab b { display:inline-block; margin-left:5px; background:#eef2fb; color:#5b6b8c; border-radius:20px; padding:1px 8px; font-size:12px; }
.kc-tab.on { color:#2f6bff; border-bottom-color:#2f6bff; }
.kc-tab.on b { background:#2f6bff; color:#fff; }

.kc-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:18px; }
.kc-stat { background:#fff; border:1px solid #eceff5; border-radius:14px; padding:16px 18px; display:flex; gap:13px; align-items:center; }
.kc-stat-ic { width:40px; height:40px; border-radius:10px; background:#eef2fb; display:grid; place-items:center; font-size:18px; flex:none; }
.kc-stat-label { font-size:12px; color:#8792a6; }
.kc-stat-val { font-size:23px; font-weight:800; color:#101828; letter-spacing:-.01em; line-height:1.15; }
.kc-stat-note { font-size:11.5px; color:#a3adbd; }

.kc-adhead { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.kc-adtitle { font-size:19px; font-weight:700; margin:6px 0 10px; color:#1a2540; }
.kc-pills { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.tg { background:#f0f2f7; color:#5b6b8c; border-radius:7px; padding:3px 11px; font-size:12.5px; font-weight:600; }
.tg-media { background:#ffe4ec; color:#d6336c; }
.kc-meta2 { display:flex; gap:22px; color:#5b6b8c; font-size:13.5px; padding-bottom:14px; border-bottom:1px solid #eef1f6; margin-bottom:14px; }
.kc-meta2 i { color:#a3adbd; font-style:normal; margin-right:5px; }

.kc-learn { background:#eff5ff; border-radius:12px; padding:14px 16px; margin-bottom:18px; }
.kc-learn b { color:#2f6bff; font-size:14px; }
.kc-learn p { margin:6px 0 0; color:#3a4a68; font-size:13.5px; line-height:1.6; }

.kc-h4 { font-size:15px; font-weight:700; color:#1a2540; margin:20px 0 12px; }
.kc-h4 span { font-weight:500; color:#a3adbd; font-size:12.5px; margin-left:6px; }
.kc-flow { list-style:none; padding:0; margin:0; position:relative; }
.kc-flow li { display:grid; grid-template-columns:auto 190px 1fr; align-items:center; gap:14px; padding:9px 0; position:relative; }
.kc-flow-n { width:26px; height:26px; border-radius:50%; background:#eef2fb; color:#2f6bff; font-size:12px; font-weight:700; display:grid; place-items:center; z-index:1; }
.kc-flow li:not(:last-child)::before { content:""; position:absolute; left:13px; top:26px; bottom:-9px; width:1.5px; background:#e2e8f2; }
.kc-flow-t { font-weight:600; color:#1a2540; font-size:14px; }
.kc-flow-d { color:#8792a6; font-size:13px; }
.kc-hook { margin:0; padding:12px 16px; background:#f7f9fc; border-radius:10px; color:#2b3550; font-size:14px; position:relative; }
.kc-hook::before { content:"❝"; color:#c3ccdb; font-size:18px; margin-right:6px; }
.kc-hook-note { color:#8792a6; font-size:13px; margin:8px 0 0; }
.kc-list { margin:8px 0 0; padding-left:18px; color:#3a4a68; font-size:13.5px; line-height:1.7; }
.kc-list.risk li { color:#9a3b4a; }
.kc-btnrow { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }

.kc-info { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #f1f4f9; font-size:13px; }
.kc-info:last-child { border-bottom:none; }
.kc-info span:first-child { color:#8792a6; width:88px; flex:none; }
.kc-info code { font-family:ui-monospace,Menlo,monospace; color:#1a2540; font-size:12.5px; word-break:break-all; }
.kc-info .copy { margin-left:auto; background:none; border:none; color:#8792a6; cursor:pointer; font-size:14px; }
.line-ic { background:#06c755; color:#fff; font-size:10px; font-weight:800; border-radius:5px; padding:2px 5px; letter-spacing:.02em; }
.kc-lbl { font-size:12px; color:#8792a6; font-weight:600; }
.kc-qrnote { text-align:center; color:#a3adbd; font-size:12px; margin:8px 0 0; }

.kc-tl { display:grid; gap:12px; }
.kc-tl-item { display:flex; gap:12px; }
.kc-tl-day { background:#eef2fb; color:#2f6bff; font-weight:700; font-size:12px; border-radius:7px; padding:4px 9px; height:fit-content; flex:none; }
.kc-tl-day.line { background:#e4f8ee; color:#06a34a; }
.kc-tl-meta { color:#8792a6; font-size:12px; }
.kc-tl-subj { font-weight:600; color:#1a2540; margin-top:2px; }

@media (max-width:820px){ .kc-stats{grid-template-columns:1fr;} .kc-flow li{grid-template-columns:auto 1fr; } .kc-flow-d{grid-column:2;} }

/* ── 競合分析 フィルター＆案件カード ───────────────── */
.kc-filter { margin-bottom:20px; }
.kc-fpills { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.kc-fpills .pill { padding:7px 14px; font-size:13px; }
.kc-frow { display:flex; gap:14px; align-items:center; flex-wrap:wrap; background:#fff; border:1px solid #eceff5; border-radius:12px; padding:12px 16px; }
.kc-frow label { display:flex; flex-direction:column; gap:3px; font-size:11.5px; color:#8792a6; font-weight:600; }
.kc-frow select { border:1px solid #e1e7f0; border-radius:8px; padding:6px 10px; font-size:13px; color:#1a2540; background:#fff; outline:none; }
.kc-fsearch { border:1px solid #e1e7f0; border-radius:8px; padding:8px 12px; font-size:13px; min-width:190px; outline:none; align-self:flex-end; }
.kc-fsearch:focus, .kc-frow select:focus { border-color:#2f6bff; }
.kc-clear { color:#8792a6; font-size:12.5px; align-self:flex-end; padding-bottom:8px; }
.kc-clear:hover { color:#e11d48; }

.kc-case { display:block; text-decoration:none; color:inherit; transition:border-color .15s, box-shadow .15s; }
.kc-case:hover { border-color:#b9cdfb; box-shadow:0 2px 4px rgba(47,107,255,.06), 0 10px 26px rgba(47,107,255,.10); }
.kc-case-top { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.kc-case-top h3 { margin:0 0 4px; font-size:16.5px; font-weight:700; color:#101828; }
.kc-budget { font-size:19px; font-weight:800; color:#2f6bff; white-space:nowrap; letter-spacing:-.01em; }
.kc-budget small { font-size:11.5px; font-weight:600; color:#8792a6; margin-left:2px; }
.kc-case-foot { display:flex; gap:13px; align-items:center; margin-top:11px; font-size:12.5px; color:#5b6b8c; flex-wrap:wrap; }
.kc-case-foot b { color:#1a2540; }
.kc-case-foot .tg { font-size:11.5px; padding:2px 9px; }
.kc-case-foot .tg.ok { background:#e4f8ee; color:#06a34a; }

/* ── クリエイティブ集約・LP一覧 ───────────────────── */
.kc-crlist { display:grid; gap:2px; }
.kc-cr { display:flex; align-items:center; gap:13px; padding:11px 0; border-top:1px solid #f1f4f9; }
.kc-cr:first-child { border-top:none; }
.kc-cr-rank { width:24px; height:24px; border-radius:50%; background:#eef2fb; color:#2f6bff; font-size:11.5px; font-weight:700; display:grid; place-items:center; flex:none; }
.kc-cr-body { flex:1; min-width:0; }
.kc-cr-hook { font-size:13.5px; font-weight:600; color:#1a2540; line-height:1.45; }
.kc-cr-meta { display:flex; gap:8px; align-items:center; margin-top:4px; font-size:11.5px; color:#8792a6; flex-wrap:wrap; }
.kc-cr-meta .tg { font-size:11px; padding:1px 8px; }
.kc-cr-right { text-align:right; flex:none; }
.kc-cr-cost { font-size:14.5px; font-weight:800; color:#2f6bff; white-space:nowrap; }
.kc-cr-cost small { font-size:10.5px; font-weight:600; color:#a3adbd; }
.kc-cr-links { display:flex; gap:9px; justify-content:flex-end; margin-top:3px; font-size:11.5px; }
.kc-cr-links a { color:#5b6b8c; }
.kc-cr-links a:hover { color:#2f6bff; }
.kc-lplist { display:grid; gap:2px; }
.kc-lp { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-top:1px solid #f1f4f9; }
.kc-lp:first-child { border-top:none; }
.kc-lp-url { font-size:13px; color:#2f6bff; word-break:break-all; }
.kc-lp-note { font-size:11.5px; color:#8792a6; margin-top:2px; }
.src-av.c { background: #7c3aed; }
.src-av.n { background: #1f2937; }

/* 案件のLP QR（スマホで読んでその場で登録する用） */
.kc-lpqr { margin-top:14px; padding-top:14px; border-top:1px solid #f1f4f9; text-align:center; }
.kc-lpqr img { width:168px; image-rendering:pixelated; border:1px solid #eceff5; border-radius:10px; padding:8px; background:#fff; }

/* LINE友だち追加QR（案件ごとに自動表示） */
.kc-lineqr { text-align:center; padding:12px 0 14px; border-bottom:1px solid #f1f4f9; }
.kc-lineqr:last-of-type { border-bottom:none; padding-bottom:4px; }
.kc-lineqr img { width:172px; image-rendering:pixelated; border:1px solid #eceff5; border-radius:10px; padding:8px; background:#fff; }
.kc-lineurl { display:block; font-size:11px; color:#8792a6; word-break:break-all; margin-top:6px; }
.kc-lineurl:hover { color:#06a34a; }
