* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
       background: #f3f4f6; color: #1f2937; font-size: 15px; }
.nav { display: flex; align-items: center; gap: 4px; background: #1e3a5f; color: #fff;
       padding: 0 12px; flex-wrap: wrap; }
.nav .brand { font-weight: 700; padding: 12px 8px; }
.nav a { color: #cbd5e1; text-decoration: none; padding: 12px 10px; }
.nav a.active, .nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav .spacer { flex: 1; }
.nav .user { color: #94a3b8; padding: 12px 4px; }
.main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h2 { margin: 0 0 12px; font-size: 17px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: #6b7280; gap: 4px; }
input, select, button { font: inherit; padding: 7px 10px; border: 1px solid #d1d5db;
        border-radius: 6px; background: #fff; }
button { background: #1e3a5f; color: #fff; border: none; cursor: pointer; }
button.secondary { background: #e5e7eb; color: #1f2937; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
th { background: #f9fafb; font-size: 12px; color: #6b7280; white-space: nowrap; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #f0f7ff; }
.table-wrap { overflow-x: auto; }
.banner-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
        border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px;
        background: #e5e7eb; color: #374151; white-space: nowrap; }
.muted { color: #9ca3af; font-size: 12px; }
.login-box { max-width: 360px; margin: 10vh auto; }
.login-box input { width: 100%; margin-bottom: 10px; }
.login-box button { width: 100%; }
.kpi-row { display: flex; gap: 12px; flex-wrap: wrap; }
.kpi { flex: 1; min-width: 130px; background: #fff; border-radius: 10px; padding: 14px;
        box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kpi .num { font-size: 26px; font-weight: 700; }
.kpi .label { font-size: 12px; color: #6b7280; }
.memo-full { white-space: pre-wrap; }
.memo-clamp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
/* 会議モード: ヘッダー行＋全幅メモ行の2段組。コンタクトごとに帯と余白で明確に区切る */
/* overflow-x:auto だと sticky が効かないため clip にする（スクロール追従ヘッダー用） */
.meeting-wrap { overflow-x: clip; }
.meeting-table { table-layout: fixed; }
.meeting-table tr.meeting-head td { background: #e8eef5; border-bottom: 0;
        border-top: 14px solid #fff; font-weight: 600;
        position: sticky; top: 0; z-index: 2;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meeting-table .memo-full { overflow-wrap: break-word; }
.meeting-table tbody tr:first-child td { border-top: 0; }
.meeting-table tr.meeting-memo td { border-bottom: 0; padding-top: 8px; padding-bottom: 14px; }
.meeting-table .memo-full { font-size: 16px; line-height: 1.75; }
/* 会議モード・プレゼン表示 */
body.present { font-size: 18px; }
body.present .main { max-width: 1400px; }
body.present td, body.present th { padding: 12px 14px; }
body.present .meeting-table tr.meeting-head td { border-top-width: 18px; }
body.present .memo-full { font-size: 21px; line-height: 1.75; }
.person-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.person-tabs a { padding: 8px 14px; border-radius: 999px; background: #e5e7eb;
        color: #1f2937; text-decoration: none; }
.person-tabs a.active { background: #1e3a5f; color: #fff; }
@media (max-width: 640px) {
  .main { padding: 10px; }
  .memo-clamp { max-width: 180px; }
}
