:root {
  --bg: #f6f3ee; --surface: #fff; --surface-2: #efe7d9; --border: #ddd0ba; --text: #241f18; --muted: #756b5c;
  --accent: #b8632e; --accent-soft: #f1e0cc; --ok: #3c7a52; --ok-soft: #e1efe4; --warn: #b3791e; --warn-soft: #f6ead2;
  --bad: #a53f3f; --bad-soft: #f6dede; --gray-soft: #ebe7e0; --purple-soft: #ece3f5; --blue-soft: #e1ecf7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: 14px; line-height: 1.6; }
a { color: var(--accent); }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--text); color: var(--bg); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 16px; align-items: center; }
.brand { color: var(--accent-soft); font-weight: 800; text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.brand span { color: #fff; font-weight: 600; }
#search { flex: 1; max-width: 520px; padding: 7px 12px; border-radius: 999px; border: none; font-size: 13px; }
.nav { max-width: 1240px; margin: 0 auto; padding: 0 16px 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #e9dfcf; text-decoration: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.nav a.active, .nav a:hover { background: var(--accent); color: #fff; }
.sot-banner { max-width: 1240px; margin: 10px auto 0; padding: 6px 16px; font-size: 11.5px; color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 8px 16px 40px; }
h1 { font-size: 22px; margin: 14px 0 4px; } h2 { font-size: 16px; margin: 26px 0 10px; color: var(--accent); } h3 { font-size: 14px; margin: 14px 0 6px; }
.lead { color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.grid { display: grid; gap: 12px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.card.click { cursor: pointer; } .card.click:hover { border-color: var(--accent); }
.card h3 { margin-top: 0; }
.kpi .label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.kpi .value { font-size: 22px; font-weight: 800; margin-top: 2px; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--accent); }
.pill { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--gray-soft); color: var(--muted); margin: 0 4px 2px 0; white-space: nowrap; }
.s-green { background: var(--ok-soft); color: var(--ok); } .s-yellow { background: var(--warn-soft); color: var(--warn); } .s-red { background: var(--bad-soft); color: var(--bad); } .s-gray { background: var(--gray-soft); color: var(--muted); }
.t-FACT { background: var(--blue-soft); color: #2d5f8f; } .t-DECISION { background: var(--ok-soft); color: var(--ok); } .t-TARGET { background: var(--warn-soft); color: var(--warn); } .t-HYPOTHESIS { background: var(--purple-soft); color: #6a4a8e; } .t-TBD { background: var(--gray-soft); color: var(--muted); }
.gt-A { background: var(--ok-soft); color: var(--ok); } .gt-B { background: var(--warn-soft); color: var(--warn); } .gt-C { background: var(--bad-soft); color: var(--bad); }
.fix { background: var(--text); color: #fff; }
.sheets { background: #e3f1e6; color: #1e6b35; border: 1px dashed #1e6b35; }
.muted { color: var(--muted); } .small { font-size: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 12.5px; }
th { text-align: left; background: var(--surface-2); font-size: 11px; color: var(--muted); padding: 8px; }
td { padding: 8px; border-top: 1px solid var(--surface-2); vertical-align: top; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.filters button { border: 1px solid var(--border); background: var(--surface); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--text); }
.filters button.on { background: var(--accent); color: #fff; border-color: transparent; }
.lanes { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 10px; overflow-x: auto; }
.lane { background: var(--surface-2); border-radius: 12px; padding: 10px; min-height: 120px; }
.lane h3 { margin: 0 0 8px; font-size: 12px; }
.lane .card { padding: 10px; margin-bottom: 8px; font-size: 12.5px; }
.pipeline { display: flex; gap: 3px; flex-wrap: wrap; margin: 6px 0; }
.pipeline span { font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.loop { display: flex; flex-direction: column; gap: 6px; }
.loop .step { display: flex; gap: 10px; align-items: center; }
.loop .node { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.loop .node.gate { border: 2px solid var(--accent); background: var(--accent-soft); font-weight: 700; }
.loop .who { width: 110px; font-size: 11px; font-weight: 800; text-align: right; color: var(--muted); }
.loop .arrow { text-align: center; color: var(--muted); font-size: 12px; margin-left: 120px; }
.who-Human { color: var(--accent) !important; } .who-n8n { color: #1e6b35 !important; } .who-ChatGPT { color: #2d5f8f !important; } .who-Claude { color: #6a4a8e !important; }
.timeline { border-left: 3px solid var(--border); padding-left: 14px; }
.timeline .item { position: relative; margin-bottom: 12px; }
.timeline .item::before { content: ""; position: absolute; left: -21px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.timeline .item.superseded::before { background: var(--border); }
blockquote { margin: 6px 0; padding: 8px 12px; background: #fffaf2; border-left: 4px solid var(--accent); border-radius: 6px; }
.ai-label { font-size: 10.5px; font-weight: 800; color: #6a4a8e; background: var(--purple-soft); padding: 1px 8px; border-radius: 999px; }
.human-label { font-size: 10.5px; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; }
dl.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; margin: 6px 0; font-size: 13px; }
dl.kv dt { color: var(--muted); font-weight: 700; font-size: 12px; }
.drawer { position: fixed; inset: 0; background: rgba(36,31,24,.35); z-index: 50; display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(720px, 100%); height: 100%; overflow-y: auto; background: var(--bg); padding: 20px 22px 40px; position: relative; }
.drawer-close { position: absolute; top: 12px; right: 14px; border: none; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.map-col { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; }
.map-col > div { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.map-col h3 { margin: 0 0 8px; font-size: 12px; }
.map-col .card { padding: 8px 10px; margin-bottom: 6px; font-size: 12px; }
pre.ctx { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; white-space: pre-wrap; font-size: 12px; max-height: 60vh; overflow: auto; }
.btn { border: none; background: var(--accent); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 12px; text-decoration: none; display: inline-block; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.footer { text-align: center; color: var(--muted); font-size: 11px; padding: 24px; }
@media (max-width: 720px) { .lanes, .map-col { grid-template-columns: repeat(5, 80vw); } .loop .who { width: 70px; } .loop .arrow { margin-left: 80px; } dl.kv { grid-template-columns: 1fr; } }
/* 2026-10-03: 動画Player・サムネ比較・ホームの見出しカード */
.player { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.player-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.player video { display: block; width: 100%; max-height: 72vh; background: #000; border-radius: 10px; }
.video-empty { color: var(--muted); }
details.older { margin: 10px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
details.older summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.older-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.thumb { margin: 0; background: var(--surface); border: 2px solid var(--border); border-radius: 12px; overflow: hidden; }
.thumb img, .thumb-missing { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.thumb-missing { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.thumb figcaption { padding: 8px 10px; }
.thumb.adopted, .title-cand.adopted { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft); }
.title-cand { background: var(--surface); border: 2px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.title-text { font-size: 16px; font-weight: 800; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.check { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: 13px; color: var(--muted); }
.check.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.ok-mark { color: var(--ok); font-weight: 800; }
.hero .label { font-size: 12px; font-weight: 700; color: var(--muted); }
.hero .value { font-size: 20px; font-weight: 800; margin: 2px 0; }
.hero .sub { font-size: 12px; color: var(--muted); }
.hero.alert { border-color: var(--bad); background: var(--bad-soft); }
.big { font-size: 17px; font-weight: 800; margin: 4px 0 6px; }
.lane-blocked { background: var(--bad-soft); }
.todo-row { margin-bottom: 4px; }
@media (max-width: 720px) { .table-wrap table { min-width: 680px; } }
.priority { border: 2px solid var(--accent); background: var(--accent-soft); }
.priority.calm { border-color: var(--border); background: var(--surface); }
.priority-row { margin: 4px 0; font-size: 14px; font-weight: 700; }
.build-alert { max-width: 1240px; margin: 8px auto 0; padding: 10px 16px; background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad); border-radius: 12px; font-size: 13px; }
.review-link { font-weight: 400; margin: 2px 0 6px 4px; }
/* 2026-10-04: ひとことメモ（Human Capture） */
.home { display: flex; flex-direction: column; }
.home > section { min-width: 0; }
.memo-card { border: 2px solid var(--accent); }
.memo-card h3 { margin: 0 0 6px; }
.memo-card textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; resize: vertical; background: #fffdf9; }
.memo-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.memo-kinds button { border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.memo-kinds button.on { background: var(--accent); color: #fff; border-color: transparent; }
.memo-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.memo-actions .btn { font-size: 15px; padding: 10px 22px; }
.memo-bad { color: var(--bad) !important; font-weight: 700; }
.memo-list { margin-top: 12px; }
.memo-item { border-top: 1px solid var(--surface-2); padding: 8px 0; }
.memo-item:first-of-type { border-top: none; }
.memo-text { font-weight: 600; }
.memo-fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; border: none; border-radius: 999px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; padding: 14px 20px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.reload-note { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 45; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 12px; max-width: calc(100% - 32px); }
.reload-note button { margin-left: 6px; border: none; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.lan-card { margin-top: 12px; }
.lan-card code { word-break: break-all; }
@media (max-width: 720px) {
  .memo-fab { display: block; }
  .reload-note { bottom: 80px; }
  /* スマホ: ①ひとことメモ ②あなたの確認待ち ③今やること を先に */
  .home .h-memo { order: 1; } .home .h-judge { order: 2; } .home .h-next { order: 3; } .home .h-stage { order: 4; } .home .h-ready { order: 5; } .home .h-rest { order: 6; }
  .footer { padding-bottom: 90px; }
}
.memo-actions .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 720px) { .memo-hint-pc { display: none; } }
/* 2026-10-04: 収益（事業・採算） */
.econ-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); font-size: 13px; margin-bottom: 4px; }
.econ-alert { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); font-size: 13px; margin-bottom: 8px; }
.kpi .value.neg, td.neg { color: var(--bad); }
.econ-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--gray-soft); }
.econ-bar i, .econ-legend i { display: inline-block; }
.b-fixed { background: var(--accent); } .b-usage { background: #d9a35a; } .b-direct { background: var(--ok); }
.econ-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; }
.econ-legend i { width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.tool-row { border-top: 1px solid var(--surface-2); padding: 8px 0; }
.tool-row:first-child { border-top: none; }
.tool-row summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tool-cost { margin-left: auto; font-size: 13px; color: var(--muted); }
/* 2026-10-05: クラウド版 */
.cloud-banner { background: var(--blue-soft); border-radius: 10px; color: #2d5f8f; font-size: 12.5px; }
.cloud-banner.cloud-stale { background: var(--warn-soft); color: var(--warn); }
.mac-only { color: var(--muted); }
.memo-pending { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
/* 2026-10-06: LONGシリーズ */
.series-strip .series-row { display: flex; align-items: stretch; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.series-item { flex: 1; min-width: 180px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.series-item.click { cursor: pointer; } .series-item.click:hover { outline: 2px solid var(--accent); }
.series-arrow { align-self: center; color: var(--muted); font-weight: 800; }
/* 2026-10-07: YouTube投稿セット */
.pp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.copy-btn { padding: 5px 12px; font-size: 12px; }
pre.pp-text { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; font-size: 13px; line-height: 1.7; max-height: 50vh; overflow: auto; font-family: inherit; }
.thumb.recommended, .title-cand.recommended { border-color: var(--warn); }
.thumb-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f3ece2, #e6dccd); text-align: center; padding: 10px; }
.thumb-copy span { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1.3; }
.thumb-copy small { margin-top: 6px; color: var(--muted); font-size: 11px; }
/* A/Bテスト（サムネ＋タイトルのPattern比較） */
.ab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.ab-card { background: var(--surface); border: 2px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ab-card.winner { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft); }
.ab-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.ab-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

