/* 猪野組 日報アプリ — 配色は備品管理・inogumi.pages.dev と同じロゴ実測値 */
:root {
  --red: #EB072A;
  --red-dark: #C00622;
  --dark: #4F4F4F;
  --gray: #CACACA;
  --safety-yellow: #F5C400;
  --bg-soft: #F7F6F2;
  --text: #3A3A3A;
  --white: #FFFFFF;
  --done: #2E7D32;
  --warn-bg: #FFF6D9;
  --warn-fg: #8A6D00;
  --danger-bg: #FDE7E9;
  --danger-fg: #C62828;
  --holiday-bg: #E3F0FA;
  --holiday-fg: #1D5A99;
  --line: #E3E0D8;
  --radius: 12px;
  --shadow: 0 1px 4px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }

/* ---------- ヘッダー ---------- */
header.app-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}
.app-title { font-size: 17px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 7px; }
.app-title .logo-mark {
  background: var(--red); color: #fff; border-radius: 6px;
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.header-spacer { flex: 1; }
.person-badge {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 13px; color: var(--dark); white-space: nowrap;
}

/* ---------- ナビ（スマホ＝下固定／PC＝ヘッダー下） ---------- */
nav.app-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: var(--white); border-top: 1px solid var(--line);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
}
nav.app-nav button {
  flex: 1; border: none; background: none; cursor: pointer;
  padding: 7px 2px 6px; font-size: 11px; color: #888;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative;
}
nav.app-nav button .nav-icon { font-size: 20px; line-height: 1; }
nav.app-nav button.active { color: var(--red); font-weight: 700; }
.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 22px);
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

main.app-main { padding: 14px 14px 84px; max-width: 860px; margin: 0 auto; }

@media (min-width: 820px) {
  nav.app-nav {
    position: sticky; top: 59px; bottom: auto;
    border-top: none; border-bottom: 1px solid var(--line);
    justify-content: center; gap: 6px; padding: 4px 0;
  }
  nav.app-nav button { flex: 0 0 auto; flex-direction: row; font-size: 14px; padding: 9px 18px; gap: 7px; border-radius: 8px; }
  nav.app-nav button.active { background: #FCEBEE; }
  .nav-badge { position: static; margin-left: 4px; }
  main.app-main { padding-bottom: 40px; }
}

/* ---------- 汎用 ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
}
.view-title { font-size: 18px; font-weight: 700; color: var(--dark); margin: 4px 0 12px; }
.muted { color: #888; font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 12px 18px;
  min-height: 44px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:active { background: var(--red-dark); }
.btn-outline { background: var(--white); color: var(--dark); border: 1.5px solid var(--gray); }
.btn-small { padding: 7px 12px; min-height: 36px; font-size: 13px; border-radius: 8px; }
.btn-danger-text { background: none; border: none; color: var(--danger-fg); font-size: 13px; cursor: pointer; text-decoration: underline; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; }
.empty-note { text-align: center; color: #999; padding: 40px 10px; font-size: 14px; }

/* ---------- ログイン ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { width: 100%; max-width: 380px; text-align: center; }
.login-logo {
  width: 64px; height: 64px; border-radius: 16px; background: var(--red); color: #fff;
  font-size: 34px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.login-box h1 { font-size: 21px; color: var(--dark); margin: 0 0 4px; }
.login-box .sub { color: #888; font-size: 13px; margin-bottom: 22px; }
.login-box .btn { margin-bottom: 14px; }
.setup-note {
  background: var(--warn-bg); color: var(--warn-fg); font-size: 13px;
  border-radius: 8px; padding: 8px 12px; text-align: left; margin: 0 0 12px;
}

/* ---------- フォーム ---------- */
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.field label .req { color: var(--red); font-size: 11px; margin-left: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--gray); border-radius: 10px;
  padding: 11px 12px; font-size: 16px; background: var(--white); color: var(--text);
  font-family: inherit;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }

/* ---------- 出勤区分チップ ---------- */
.att-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.att-chips button {
  border: 1.5px solid var(--gray); background: var(--white); color: var(--dark);
  border-radius: 999px; padding: 8px 15px; font-size: 14px; cursor: pointer; min-height: 40px;
}
.att-chips button.on { border-color: var(--red); background: #FCEBEE; color: var(--red); font-weight: 700; }

/* ---------- 日付・月ナビ ---------- */
.date-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.date-nav input[type="date"] {
  flex: 1; border: 1.5px solid var(--gray); border-radius: 10px;
  padding: 9px 10px; font-size: 16px; background: var(--white); font-family: inherit; min-width: 0;
}
.date-nav .nav-arrow {
  border: 1px solid var(--line); background: var(--white); border-radius: 8px;
  width: 42px; height: 42px; font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.month-label { flex: 1; text-align: center; font-size: 16px; font-weight: 700; color: var(--dark); }

/* ---------- 日報表示 ---------- */
.report-sec { margin-bottom: 12px; }
.report-sec h4 { margin: 0 0 3px; font-size: 12px; color: #888; font-weight: 700; }
.report-sec p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.report-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.report-head .rh-date { font-size: 16px; font-weight: 700; color: var(--dark); }
.report-head .rh-name { font-size: 14px; color: var(--dark); }
.badge {
  font-size: 12px; border-radius: 6px; padding: 2px 8px;
  background: var(--bg-soft); border: 1px solid var(--line); color: #666; white-space: nowrap;
}
.badge.att-work { background: #EAF4EB; border-color: #C4E0C7; color: var(--done); }
.badge.att-off { background: var(--holiday-bg); border-color: #C9DCF0; color: var(--holiday-fg); }
.badge.att-absent { background: var(--danger-bg); border-color: #F2BFC4; color: var(--danger-fg); }
.badge.att-none { background: #F1F1F1; border-color: #DDD; color: #999; }
.badge.cmt { background: #FFF3E0; border-color: #F2CFA8; color: #E65100; }
.updated-line { font-size: 11px; color: #AAA; margin-top: 6px; }

/* ---------- 未読お知らせ ---------- */
.unread-card {
  background: var(--warn-bg); border: 1px solid #EAD98F; border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 12px; cursor: pointer;
  font-size: 14px; color: var(--warn-fg); font-weight: 700;
}

/* ---------- カレンダー ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; color: #888; font-weight: 700; padding: 2px 0; }
.cal-dow.sun { color: var(--danger-fg); }
.cal-dow.sat { color: var(--holiday-fg); }
.cal-cell {
  border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  min-height: 52px; padding: 3px 4px; font-size: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative;
}
.cal-cell.blank { border: none; background: none; cursor: default; }
/* 土日祝は網掛け（休みの日がひと目で分かるように） */
.cal-cell.off { background: #EFEDE7; }
.cal-cell .d { font-size: 12px; color: var(--dark); }
.cal-cell.today { border: 2px solid var(--red); }
.cal-cell .mark { font-size: 10px; border-radius: 5px; padding: 0 4px; line-height: 1.6; white-space: nowrap; max-width: 100%; overflow: hidden; }
.cal-cell .mark.att-work { background: #EAF4EB; color: var(--done); }
.cal-cell .mark.att-off { background: var(--holiday-bg); color: var(--holiday-fg); }
.cal-cell .mark.att-absent { background: var(--danger-bg); color: var(--danger-fg); }
.cal-cell .cdot {
  position: absolute; top: 2px; right: 3px;
  width: 8px; height: 8px; border-radius: 50%; background: #E65100;
}
.cal-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: #888; }

/* ---------- 検索 ---------- */
.search-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.search-bar input {
  flex: 1; border: 1.5px solid var(--gray); border-radius: 999px;
  padding: 11px 18px; font-size: 16px; background: var(--white); min-width: 0;
}
.search-bar input:focus { outline: none; border-color: var(--red); }
.filter-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-row select {
  flex: 1; min-width: 120px; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 8px 6px; font-size: 14px; background: var(--white); color: var(--dark);
}

/* ---------- 一覧カード（検索結果・チーム） ---------- */
.item-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
}
.item-card:active { background: #FAF8F4; }
.item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-head .t { font-size: 15px; font-weight: 700; color: var(--dark); }
.item-head .r { font-size: 12px; color: #999; }
.item-body { font-size: 13px; color: #666; margin-top: 4px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- コメント ---------- */
.comment-list { margin: 10px 0 0; }
.comment-item {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 8px;
}
.comment-item.mine { background: #FCEBEE; border-color: #F2BFC4; }
.comment-item .c-head { font-size: 12px; font-weight: 700; color: var(--dark); }
.comment-item .c-head .c-time { font-weight: 400; color: #AAA; font-size: 11px; margin-left: 6px; }
.comment-item .c-body { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.comment-form textarea {
  flex: 1; border: 1.5px solid var(--gray); border-radius: 10px;
  padding: 9px 11px; font-size: 15px; min-height: 44px; max-height: 140px; resize: vertical; font-family: inherit;
}
.comment-form textarea:focus { outline: none; border-color: var(--red); }
/* 上司コメントの下書き・編集（2026-09-18） */
.comment-form .c-form-btns { display: flex; flex-direction: column; gap: 6px; }
.comment-item.draft { background: #FAFAFA; border-style: dashed; border-color: #BBB; }
.comment-item .c-head .badge { margin-left: 6px; font-weight: 400; }
.comment-item .c-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.comment-item .c-actions .btn { min-height: 36px; }
.comment-item .c-edit-input {
  width: 100%; box-sizing: border-box; border: 1.5px solid var(--gray); border-radius: 10px;
  padding: 8px 10px; font-size: 15px; min-height: 70px; resize: vertical; font-family: inherit; margin-top: 4px;
}
.comment-item .c-edit-input:focus { outline: none; border-color: var(--red); }

/* ---------- 設定・名簿 ---------- */
.master-list { list-style: none; margin: 6px 0; padding: 0; }
.master-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap;
}
.master-list li span.m-name { flex: 1; overflow-wrap: anywhere; min-width: 8em; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row input { flex: 1; border: 1.5px solid var(--gray); border-radius: 8px; padding: 9px 10px; font-size: 15px; min-width: 0; }

/* ---------- タスク行（予定・実績の編集） ---------- */
.sec-label { font-size: 13px; font-weight: 700; color: var(--dark); margin: 16px 0 6px; }
.sec-label .req { color: var(--red); font-size: 11px; margin-left: 5px; }
.sec-hint { font-size: 12px; color: #999; margin: -4px 0 8px; }
.task-row {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  padding: 10px 10px 8px; margin-bottom: 8px; position: relative;
}
.task-row .tr-content {
  width: calc(100% - 44px); border: 1.5px solid var(--gray); border-radius: 8px;
  padding: 8px 10px; font-size: 15px; background: var(--white); font-family: inherit;
}
.task-row input:focus, .task-row select:focus { outline: none; border-color: var(--red); }
.task-row .tr-line { display: flex; gap: 6px; align-items: center; margin-top: 7px; flex-wrap: wrap; }
.task-row .tr-line label { font-size: 12px; color: #888; white-space: nowrap; }
/* 業務の項目（2026-11-04）＝提出時は必須。選ぶまで分かるよう、未選択は枠を赤くする */
.task-row .tr-cat-line .tr-cat { flex: 1; min-width: 0; max-width: 260px; }
.task-row .tr-cat-line .tr-cat:invalid, .task-row .tr-cat-line .tr-cat[data-empty="1"] { border-color: var(--red); color: var(--muted); }
.tv-cat {
  display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 7px; font-size: 11px; color: var(--muted); margin-right: 2px; vertical-align: middle;
}
.task-row select {
  border: 1.5px solid var(--gray); border-radius: 8px; padding: 6px 3px;
  font-size: 14px; background: var(--white); font-family: inherit;
}
.task-row .tr-reason {
  flex: 1; border: 1.5px solid var(--gray); border-radius: 8px;
  padding: 7px 10px; font-size: 13px; background: var(--white); font-family: inherit; min-width: 0;
}
.task-row .tr-del {
  position: absolute; top: 8px; right: 8px; border: none; background: none;
  color: var(--danger-fg); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 4px;
}
.task-added-badge {
  font-size: 11px; color: #E65100; background: #FFF3E0;
  border: 1px solid #F2CFA8; border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}
.btn-add-row { margin-bottom: 4px; }
.add-row-group { display: flex; flex-wrap: wrap; gap: 8px; }

/* タスクの読み取り表示 */
.task-view { border-left: 3px solid var(--line); padding: 3px 0 3px 10px; margin: 0 0 8px 2px; }
.task-view .tv-head { font-size: 14px; font-weight: 700; color: var(--dark); }
.task-view .tv-meta { font-size: 12px; color: #888; }
.task-view .tv-reason { font-size: 13px; color: #666; white-space: pre-wrap; }

/* ---------- リアクション ---------- */
.react-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.react-bar button {
  border: 1.5px solid var(--gray); background: var(--white); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; cursor: pointer; min-height: 38px;
}
.react-bar button.on { border-color: var(--red); background: #FCEBEE; color: var(--red); font-weight: 700; }
.react-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.react-chip {
  font-size: 12px; background: #FFF8E6; border: 1px solid #EAD98F; color: #8A6D00;
  border-radius: 999px; padding: 3px 10px;
}

/* ---------- チャレンジテーマ（複数選択チップ） ---------- */
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.theme-chips button {
  border: 1.5px solid var(--gray); background: var(--white); color: var(--dark);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; min-height: 40px;
}
.theme-chips button.on { border-color: var(--red); background: #FCEBEE; color: var(--red); font-weight: 700; }
.theme-view { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.theme-chip {
  font-size: 13px; background: #FFF3E0; border: 1px solid #F2CFA8; color: #E65100;
  border-radius: 999px; padding: 4px 12px; font-weight: 700;
}

/* 下書きの色 */
.badge.att-draft { background: #F1F1F1; border-color: #DDD; color: #888; }
.cal-cell .mark.att-draft { background: #EEE; color: #999; }
.btn-row2 { display: flex; gap: 10px; margin-top: 4px; }
.btn-row2 .btn { flex: 1; }

/* ---------- モーダル ---------- */
#modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
}
#modal-box {
  background: var(--white); width: 100%; max-width: 560px;
  border-radius: 16px 16px 0 0; padding: 18px 16px 24px;
  max-height: 88vh; overflow-y: auto;
}
@media (min-width: 820px) {
  #modal-overlay { align-items: center; }
  #modal-box { border-radius: 16px; }
}
#modal-box h3 { margin: 0 0 14px; font-size: 17px; color: var(--dark); }
.modal-btns { display: flex; gap: 10px; margin-top: 14px; }
.modal-btns .btn { flex: 1; }

/* ---------- トースト ---------- */
#toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%);
  background: var(--dark); color: #fff; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; z-index: 60;
  opacity: 0; transition: opacity .25s; pointer-events: none;
  max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; }
@media (min-width: 820px) { #toast { bottom: 40px; } }

/* ---------- 使い方（ヘルプ） ---------- */
.help-first {
  background: var(--warn-bg); border: 1px solid #EAD98F; color: var(--warn-fg);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; line-height: 1.7;
}
.help-hero {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
}
.help-hero .hh-lead { margin: 0 0 6px; font-size: 15px; }
.help-hero .hh-me { margin: 0; font-size: 13px; color: #666; }
.help-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

details.help-sec {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
details.help-sec > summary {
  cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 700; color: var(--dark);
  padding: 14px 42px 14px 14px; position: relative;
}
details.help-sec > summary::-webkit-details-marker { display: none; }
details.help-sec > summary::after {
  content: '＋'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--red); font-weight: 700; font-size: 16px;
}
details.help-sec[open] > summary::after { content: '−'; }
details.help-sec[open] > summary { border-bottom: 1px solid var(--line); }
.hs-body { padding: 12px 14px 16px; font-size: 14px; }
.hs-h {
  margin: 16px 0 6px; font-size: 14px; color: var(--red);
  border-left: 4px solid var(--red); padding-left: 8px;
}
.hs-body > .hs-h:first-child { margin-top: 2px; }
.hs-ul { margin: 0; padding-left: 20px; }
.hs-ul li { margin-bottom: 6px; }
.hs-note { font-size: 13px; color: #777; margin: 8px 0 0; }

/* 3ステップ */
.help-steps .step { display: flex; gap: 10px; margin-bottom: 12px; }
.help-steps .sn {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff;
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
}
.help-steps .step b { font-size: 15px; color: var(--dark); }
.help-steps .step p { margin: 2px 0 0; font-size: 14px; }

/* 1日の流れ */
.flow .fl { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.flow .fl:last-child { border-bottom: none; }
.flow .ft {
  flex: 0 0 90px; font-size: 12px; font-weight: 700; color: var(--red);
  background: #FCEBEE; border-radius: 6px; padding: 3px 4px; text-align: center; height: fit-content;
}

/* 注意ボックス */
.help-tip, .help-warn {
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; line-height: 1.7;
}
.help-tip { background: #EAF4EB; border: 1px solid #C4E0C7; color: #245C28; }
.help-warn { background: var(--warn-bg); border: 1px solid #EAD98F; color: var(--warn-fg); }

/* ことばの意味 */
.kw { margin: 0; }
.kw dt { font-weight: 700; color: var(--dark); font-size: 14px; margin-top: 12px; }
.kw dd { margin: 2px 0 0; font-size: 14px; }
@media (min-width: 640px) {
  .kw { display: grid; grid-template-columns: 13em 1fr; column-gap: 14px; }
  .kw dt { margin-top: 0; padding: 9px 0; border-top: 1px solid var(--line); }
  .kw dd { padding: 9px 0; border-top: 1px solid var(--line); }
}

/* 権限の表 */
.table-scroll { overflow-x: auto; margin-bottom: 14px; }
.help-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.help-table th, .help-table td { border: 1px solid var(--line); padding: 6px 5px; text-align: center; }
.help-table th { background: var(--bg-soft); color: var(--dark); font-size: 12px; }
.help-table th:first-child, .help-table td:first-child { text-align: left; }
@media (min-width: 480px) {
  .help-table th, .help-table td { padding: 7px 9px; }
  .help-table th:first-child, .help-table td:first-child { white-space: nowrap; }
}

/* 権限べつカード */
.help-role {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  padding: 12px; margin-bottom: 10px;
}
.help-role.mine { border: 2px solid var(--red); background: #FFF7F8; }
.help-role .hr-head { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--dark); }
.help-role .hr-icon { font-size: 18px; }
.help-role .hr-you {
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 2px 10px;
}
.help-role .hr-who { margin: 4px 0 6px; font-size: 12px; color: #888; }
.help-role ul { margin: 0; padding-left: 20px; font-size: 14px; }
.help-role .hr-can li { margin-bottom: 3px; }
.help-role .hr-cant li { color: var(--danger-fg); font-size: 13px; margin-top: 4px; }

/* Q&A */
.qa { border-bottom: 1px solid var(--line); padding: 10px 0; }
.qa:last-child { border-bottom: none; }
.qa .qa-q { font-weight: 700; color: var(--dark); font-size: 14px; }
.qa .qa-q::before { content: 'Q. '; color: var(--red); }
.qa .qa-a { font-size: 14px; margin-top: 2px; }
.qa .qa-a::before { content: 'A. '; color: #999; font-weight: 700; }

.help-foot { text-align: center; font-size: 13px; color: #666; padding: 12px 0 6px; line-height: 1.8; }

/* 紙に印刷するとき（「🖨 印刷する」で全部ひらいてから印刷） */
@media print {
  header.app-header, nav.app-nav, .help-tools, .help-first, #help-go-today, #toast { display: none !important; }
  body { background: #fff; font-size: 12px; }
  main.app-main { padding: 0; max-width: none; }
  .help-hero, details.help-sec { box-shadow: none; border-color: #BBB; page-break-inside: avoid; break-inside: avoid; }
  details.help-sec > summary { background: #F2F2F2; }
  .view-title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 業務の合計時間（入力中にその場で出す） */
.task-total { text-align: right; font-size: 13px; color: var(--muted-fg, #666); padding: 6px 4px 2px; }
.task-total b { font-size: 15px; color: var(--dark); font-weight: 700; }
