/* オーナーコックピット v3 (2026-09-13) — LPと同じ「実在のオフィス」ライト体系。
   スマホ最優先(1カラム化・タップ44px・stickyヘッダー)。 */
:root {
  --bg: #f7f6f3; --surface: #ffffff; --ink: #17201b; --ink-2: #3d4a43;
  --muted: #6f7b74; --line: #e6e3dc; --accent: #0e7a4a; --accent-soft: #e7f3ec;
  --amber: #b4831d; --danger: #b3372f;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(23,32,27,.05);
  --shadow-md: 0 2px 6px rgba(23,32,27,.05), 0 12px 32px rgba(23,32,27,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif; line-height: 1.7; font-size: 14.5px; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; font-weight: normal; }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }
a.muted { text-decoration: none; }
a.muted:hover { color: var(--accent); }

.overlay { position: fixed; inset: 0; background: rgba(23,32,27,.35); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 16px; }
.login-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px 32px; width: 360px; text-align: center; box-shadow: var(--shadow-md); }
.login-box h1 { font-size: 20px; font-weight: 800; }
.login-box input { width: 100%; margin: 20px 0 10px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 15px; }
.login-box .btn { width: 100%; padding: 12px; }

#app { max-width: 1140px; margin: 0 auto; padding: 20px 16px 64px; }
header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
header h1 { font-size: 19px; font-weight: 800; }
.chip { font-size: 11px; background: var(--accent-soft); color: var(--accent); border-radius: 20px; padding: 2px 10px; vertical-align: middle; margin-left: 6px; font-weight: 600; }
.header-stats { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 10px; width: 100%; max-width: 480px; }
.stat { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; box-shadow: var(--shadow-sm); }
.stat span { font-size: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat label { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

section { margin-bottom: 30px; }
h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }

.employee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.employee { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: relative; box-shadow: var(--shadow-sm); }
.employee.recruiting { border-style: dashed; opacity: .75; box-shadow: none; }
.employee .name { font-weight: 700; margin-top: 6px; }
.employee .role { font-size: 11.5px; color: var(--muted); }
.employee .pay { font-size: 11.5px; color: var(--ink-2); margin-top: 8px; border-top: 1px solid var(--line); padding-top: 7px; font-variant-numeric: tabular-nums; }
.employee .badge { position: absolute; top: 10px; right: 10px; font-size: 10px; border-radius: 12px; padding: 1px 8px; font-weight: 600; }
.badge.active { background: var(--accent-soft); color: var(--accent); }
.badge.hiring { background: #efeeea; color: var(--muted); }
.badge.training { background: #f7efdc; color: var(--amber); }
.mono { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; font-size: 14px; color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.card .type, .modal-box .type { font-size: 11px; color: var(--amber); font-weight: 700; }
.card .title { font-size: 14px; margin: 4px 0; font-weight: 600; }
.card .meta { font-size: 11.5px; color: var(--muted); }
.card .actions, .modal-box .actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; min-height: 40px; }
.btn:hover { box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #0a6a40; }
.btn.danger { color: var(--danger); }
.btn.link-btn { color: var(--accent); }
.btn.small-btn { padding: 5px 12px; font-size: 12px; min-height: 0; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.off { background: #efeeea; color: var(--muted); }

textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); padding: 12px 14px; font-size: 14px; font-family: inherit; margin-bottom: 10px; }
.directive-list { margin-top: 14px; }
.directive-list .card { padding: 10px 14px; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); font-size: 13.5px; }

.inq-row { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.inq-row .inq-main { flex: 1; min-width: 0; }
.inq-row .inq-text { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.inq-row .inq-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.inq-badge { font-size: 10.5px; border-radius: 12px; padding: 2px 10px; font-weight: 600; white-space: nowrap; }
.inq-badge.open { background: var(--accent-soft); color: var(--accent); }
.inq-badge.closed { background: #efeeea; color: var(--muted); }
.inq-badge.wait { background: #f7efdc; color: var(--amber); }

.pipeline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pipeline .stage { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 13px; font-size: 12px; }
.pipeline .stage b { color: var(--accent); margin-left: 6px; }

.feed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; max-height: 420px; overflow-y: auto; box-shadow: var(--shadow-sm); }
.feed-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: none; }
.feed-who { font-weight: 700; white-space: nowrap; }
.feed-what { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.feed-meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.feed-err .feed-meta { color: var(--danger); }

.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: min(720px, 94vw); max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fulltext { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-y: auto; flex: 1; }

.empty { color: var(--muted); font-size: 13px; padding: 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
footer { margin-top: 40px; text-align: center; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 22px; font-size: 13px; z-index: 20; box-shadow: var(--shadow-md); }
