/* おなじ地図（仮）── 見た目
   10/31 18:52 さき「色なしでもいいかも・会社っぽくない、ベンチャーっぽい感じ」＝白と黒だけ。
   ★さきは目が悪い＝薄い灰色に情報を載せない。文字は大きく。区別は色でなく、記号と線の形で（実線・点線・二重線・塗り） */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --line: #0a0a0a;
  --hair: #cfcfcf;
  --inv: #ffffff;
  --focus: #0a0a0a;
  /* 11/03 さき「2色じゃないほうがいい」＝列ごとに1色。区別は線の形のまま（色は目印を足すだけ）。責める赤は使わない。
     〈測〉白地で 6.2〜8.2:1／黒地で 9.4〜11.1:1＝どれも文字に使える */
  --c-voice: #0B6B6B; --c-issue: #8A5300; --c-means: #2747A8; --c-goal: #2A6E2F;
  font-size: 18px;
}
/* 11/03 さき「最初は白・暗いのはボタンで選ぶ」＝OS には合わせない。暗いのは右上のボタン（theme.js）で選んだ時だけ */
:root[data-theme="dark"] { --bg: #0b0b0b; --paper: #0b0b0b; --soft: #1a1a1a; --ink: #f5f5f5; --ink-2: #d0d0d0; --line: #f5f5f5; --hair: #6a6a6a; --inv: #0b0b0b; --focus: #f5f5f5;
  --c-voice: #5ED0CB; --c-issue: #F0B255; --c-means: #94B2FF; --c-goal: #82D58C; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

.topbar { max-width: 1240px; margin: 0 auto; padding: 12px 20px 0; display: flex; justify-content: flex-end; }
.theme-btn { min-height: 44px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; line-height: 1.75; letter-spacing: .01em; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 96px; }
h1 { font-size: 2rem; line-height: 1.3; margin: 0 0 8px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 0 0 4px; font-weight: 800; }
h3 { font-size: 1.05rem; margin: 0 0 6px; font-weight: 700; }
.sub { color: var(--ink-2); margin: 0 0 18px; font-size: 1.05rem; }
.muted { color: var(--ink-2); }
.pre { white-space: pre-wrap; }
.small { font-size: 1rem; }
/* はじめのページ：文章だけ1行を短く（約70字→40字前後） */
.prose { max-width: 40em; }
.btn.big { min-height: 52px; min-width: 200px; font-size: 1.1rem; }

.btn {
  font: inherit; font-size: 1rem; font-weight: 700; min-height: 46px; padding: 8px 20px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
}
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--ink); color: var(--inv); }
.btn.primary:hover { opacity: .85; }
.btn.small { min-height: 44px; padding: 6px 16px; font-size: 1rem; }
.btn.danger { border-style: dashed; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 区切りは枠でなく、上の太い線で */
.card { border-top: 3px solid var(--line); padding: 18px 0 26px; margin: 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.sec-head p { margin: 0; color: var(--ink-2); }

label { display: block; font-weight: 700; margin: 14px 0 4px; }
input[type=text], input[type=date], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--bg); color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
.hint { font-size: .95rem; color: var(--ink-2); margin: 4px 0 0; }

/* 立場のしるし（記号＋線の形） */
.pos { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 1rem; padding: 1px 10px; border-radius: 999px; border: 2px solid var(--line); white-space: nowrap; color: var(--ink); }
.pos.approve { background: var(--ink); color: var(--inv); }
.pos.neutral { border-width: 1.5px; }
.pos.concern { border-style: dashed; }
.pos.reject  { border-style: double; border-width: 4px; }

/* 1版目の帯（残している） */
.bar { display: flex; height: 22px; border: 2px solid var(--line); margin: 8px 0; }
.bar > span { display: block; height: 100%; }
.bar .approve { background: var(--ink); } .bar .neutral { background: var(--hair); }
.bar .concern { background: repeating-linear-gradient(45deg, var(--ink) 0 3px, var(--bg) 3px 7px); }
.bar .reject { background: var(--bg); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; }

/* 数 */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin-top: 8px; border-left: 2px solid var(--line); }
.stat { border-right: 2px solid var(--line); padding: 4px 14px; display: flex; flex-direction: column; }
.stat-n { font-size: 2.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }

/* 地図：4列 */
.board { display: grid; gap: 16px; align-items: start; }
.board.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .board.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board.cols-4, .board.cols-2 { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 12px; }
/* 列の色＝見出しの字・下線・カードの枠。字の色は列の色、本文は --ink のまま */
.col.voice { --c: var(--c-voice); } .col.issue { --c: var(--c-issue); } .col.means { --c: var(--c-means); } .col.goal { --c: var(--c-goal); }
.col-head { border-bottom: 4px solid var(--c, var(--line)); padding-bottom: 10px; scroll-margin-top: 72px; }
.col-head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--c, var(--ink)); }
.col-head p { margin: 2px 0 10px; color: var(--ink-2); font-size: 1rem; }

.node { background: var(--paper); border: 2px solid var(--c, var(--line)); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.node.voice { --c: var(--c-voice); border-style: solid; }
.node.issue { --c: var(--c-issue); border-style: solid; border-width: 2px 2px 2px 8px; }
.node.means { --c: var(--c-means); border-style: solid; }
/* 11/02 さき「白がまぶしい」＝目標は塗らず、太い枠で */
.node.goal  { --c: var(--c-goal); border-width: 4px; }

/* スマホ：1列になると目標まで遠い→列へ飛ぶ帯を上に固定 */
.col-jump { display: none; }
@media (max-width: 640px) {
  .col-jump { display: flex; gap: 8px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; margin: 0 0 10px; border-bottom: 2px solid var(--line); overflow-x: auto; }
  .col-jump button { flex: none; font: inherit; font-size: 1rem; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--c); background: var(--bg); color: var(--c); font-weight: 800; cursor: pointer; }
}
.node.is-focus { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--line); }
.node[hidden] { display: none; }
.opt-title { font-size: 1.1rem; font-weight: 800; margin: 0; line-height: 1.45; }
.quote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); font-size: 1.02rem; }
.tag { font-size: 1rem; font-weight: 700; padding: 0 9px; border-radius: 999px; border: 1.5px solid var(--line); }
.tag.side-client { background: var(--ink); color: var(--inv); }
.tag.side-vendor { border-style: solid; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.conn { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.conn { gap: 8px; }
.conn-h { font-weight: 800; font-size: 1rem; margin-right: 2px; }
.chip { font: inherit; font-size: 1rem; text-align: left; padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; max-width: 100%; }
.chip:hover { background: var(--soft); }
.hole { margin: 0; padding: 6px 10px; border-radius: 10px; border: 2px dashed var(--line); font-size: 1rem; }
.qflag { margin: 0; font-weight: 800; padding: 4px 10px; border-radius: 10px; border: 2px solid var(--line); }
.qflag::before { content: "● "; }
.focus-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--ink); color: var(--inv); font-weight: 700; }
.focus-bar .btn { background: var(--ink); color: var(--inv); border-color: var(--inv); }
.answer { margin: 8px 0 0; padding: 8px 12px; border-left: 4px solid var(--line); background: var(--soft); }

/* 表 */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th, td { border-bottom: 1.5px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { border-bottom-width: 3px; white-space: nowrap; }
td.heat { text-align: center; font-weight: 800; font-size: 1.05rem; }
td.heat[data-n="0"] { font-weight: 400; font-size: 1rem; color: var(--ink-2); }
.gap-note { margin: 14px 0 0; padding: 12px 14px; border: 2px dashed var(--line); border-radius: 12px; }

/* 一覧 */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1.5px solid var(--hair); padding: 12px 0; }
.list > li:last-child { border-bottom: 0; }
.task.done .t-title { text-decoration: line-through; color: var(--ink-2); }
.phase { font-size: 1rem; font-weight: 700; padding: 0 8px; border-radius: 999px; border: 1.5px solid var(--line); margin-right: 6px; }
.opt { border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.stance { border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; }

dialog { border: 2px solid var(--line); border-radius: 18px; padding: 0; width: min(660px, calc(100vw - 24px)); background: var(--bg); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog form { padding: 20px 22px; }
dialog .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.checks.one { grid-template-columns: 1fr; }
.checks label { font-weight: 400; margin: 0; display: flex; gap: 10px; align-items: center; min-height: 40px; }
.checks input { width: 22px; height: 22px; flex: none; accent-color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--inv); padding: 10px 20px; border-radius: 999px; font-weight: 700; display: none; z-index: 10; }
.live { font-size: 1rem; font-weight: 700; }
.state { font-weight: 800; }
.err { font-weight: 800; text-decoration: underline; }

@media print {
  :root, :root[data-theme] { font-size: 11px; --bg: #fff; --paper: #fff; --ink: #000; --ink-2: #333; --inv: #fff; --line: #000;
    --c-voice: #0B6B6B; --c-issue: #8A5300; --c-means: #2747A8; --c-goal: #2A6E2F; }
  .noprint, dialog, .toast, .topbar, .col-jump { display: none !important; }
  .node { break-inside: avoid; }
  .node[hidden] { display: flex; }
  .wrap { max-width: none; padding: 0; }
  .board.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* やさしい気づかせ（黄色）。字は本文と同じ色・同じ大きさ＝色だけに頼らず「！」と枠も付ける */
.warn { margin: 14px 0 0; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #FFF1B8; color: #0a0a0a; font-weight: 700; }
.warn::before { content: "！ "; }
.warn[hidden] { display: none; }
:root[data-theme="dark"] .warn { background: #3d3300; color: #f5f5f5; }
.consent .line { margin-top: 10px; padding-top: 10px; border-top: 2px dashed var(--line); }
.consent { margin-top: 16px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; }
.consent ul { margin: 6px 0 10px; padding-left: 1.2em; }
.consent li { margin: 4px 0; }

/* 口の重めの注意（11/03 さき「個人情報は入れないでくださいくらい重めでもいい」）。黄色の一言と同じ色・こちらは常に出す */
.warn-strong { margin: 8px 0 0; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #FFF1B8; color: #0a0a0a; }
:root[data-theme="dark"] .warn-strong { background: #3d3300; color: #f5f5f5; }
input[type=file] { font: inherit; font-size: 1rem; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; min-height: 44px; padding: 6px 18px; margin-right: 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }

/* お試し版の札（11/03） */
.trial { display: inline-block; vertical-align: middle; font-size: 1rem; font-weight: 800; padding: 2px 12px; border: 2px solid var(--line); border-radius: 999px; background: #FFF1B8; color: #0a0a0a; }
:root[data-theme="dark"] .trial { background: #3d3300; color: #f5f5f5; }
