/* 勤怠管理。style.css と flow.css の上に重ねる（区分の色: 所定内は灰、法定内の残業は水色、時間外は琥珀、60 時間超は赤、法定休日は紫。深夜は斜線を重ねる） */
.fhead p a, .srcl a, .kt-go { color: #1d4ed8; text-underline-offset: 2px; }
.hint { display: inline-block; vertical-align: middle; font-size: 10.5px; font-weight: 700; line-height: 1.5; color: #475569; background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 999px; padding: 0 8px; margin-left: 6px; white-space: nowrap; }
.aitag { font: 600 10.5px var(--latin); color: #5b21b6; background: #ede9fe; border-radius: 5px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.srcl { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.kt-sub { margin: 22px 0 8px; font-size: 15.5px; }
.kt-subp { margin: 0 0 10px; font-size: 13px; color: var(--ink2); max-width: 60em; }
.kt-golink { margin: 6px 0 0; font-size: 13px; font-weight: 700; }
.kt-go { text-decoration: none; }
.kt-go:hover { text-decoration: underline; }

/* カード */
.kt-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kt-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kt-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.kt-card h3 { margin: 0; font-size: 14px; }
.kt-card p { margin: 5px 0 0; font-size: 13px; color: var(--ink2); }
.kt-card .srcl, .kt-card .kt-golink { margin-top: auto; padding-top: 8px; }
.kt-card .kt-golink + .srcl { margin-top: 0; padding-top: 4px; }
.kt-card.ai { background: #faf8ff; border-color: #dccdfb; }
.kt-tip { font-size: 12.5px !important; background: var(--line2); border-radius: 8px; padding: 5px 9px; }

/* 業務の流れ */
.kt-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.kt-sbtn { appearance: none; width: 100%; height: 100%; font: inherit; text-align: left; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 8px; align-items: center; }
.kt-sbtn:hover { border-color: #94a3b8; }
.kt-sbtn[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.kt-sno { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--line2); color: var(--ink2); font: 600 12px/22px var(--latin); text-align: center; }
.kt-sbtn[aria-pressed="true"] .kt-sno { background: #fbbf24; color: #0f172a; }
.kt-sbtn b { font-size: 13.5px; }
.kt-sbtn small { font-size: 11.5px; color: var(--muted); }
.kt-sbtn[aria-pressed="true"] small { color: #cbd5e1; }
.kt-step { padding: 14px 16px; }
.kt-sk { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.kt-step h3 { margin: 4px 0 8px; font-size: 17px; }
.kt-dl { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 6px 12px; font-size: 13.5px; }
.kt-dl dt { font-weight: 700; color: var(--muted); font-size: 12.5px; }
.kt-dl dd { margin: 0; color: var(--ink2); }

/* 決まりの分類 */
.kt-rtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kt-rtabs button, .kt-presets button, .kt-seg button, .kt-tlist button { appearance: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.kt-rtabs button:hover, .kt-presets button:hover, .kt-seg button:hover { border-color: #94a3b8; color: var(--ink); }
.kt-rtabs button[aria-selected="true"], .kt-presets button[aria-pressed="true"], .kt-seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 道具 1 */
.kt-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kt-lab { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.kt-in { padding: 14px 16px; display: grid; gap: 10px; }
.kt-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kt-lab2 { font-size: 12px; font-weight: 700; color: var(--ink2); }
.kt-seg { display: flex; flex-wrap: wrap; gap: 5px; }
.kt-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.kt-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.kt-in input { width: 100%; box-sizing: border-box; font: 600 15px var(--latin); color: var(--ink); background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 9px; padding: 7px 10px; }
.kt-note { margin: 0; font-size: 12.5px; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 6px 10px; }
.kt-note:empty { display: none; }
.kt-out { padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.kt-bar { position: relative; padding: 0 18px 20px; }
.kt-track { position: relative; height: 34px; border-radius: 8px; background: var(--line2); overflow: hidden; }
.kt-track i { position: absolute; top: 0; bottom: 0; }
.kt-track i.n, .kt-legend i.n, .kt-dot.n { background-image: repeating-linear-gradient(135deg, rgba(15, 23, 42, .38) 0 3px, transparent 3px 7px); }
.kt-track i.brk, .kt-legend i.brk { background: repeating-linear-gradient(90deg, #e2e8f0 0 4px, #f8fafc 4px 8px); }
.kt-axis { position: absolute; left: 18px; right: 18px; bottom: 0; height: 18px; }
.kt-tick { position: absolute; top: 2px; transform: translateX(-50%); font: 500 11px var(--latin); color: var(--muted); white-space: nowrap; }
.kt-tick.nt { color: #334155; font-weight: 600; }
.kt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink2); }
.kt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kt-legend i { width: 14px; height: 14px; border-radius: 4px; background-color: #94a3b8; }
.kt-legend i.n { background-color: #f8fafc; border: 1px solid #94a3b8; }
.kt-tablewrap { overflow-x: auto; }
.kt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kt-table th, .kt-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.kt-table thead th { font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.kt-table tbody th { font-weight: 700; }
.kt-table td:last-child, .kt-table th:last-child { text-align: right; font-family: var(--latin); }
.kt-table tfoot th, .kt-table tfoot td { border-bottom: 0; font-weight: 700; }
.kt-dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.kt-sum { margin: 0; font-size: 13.5px; color: var(--ink2); }
.kt-out .srcl { margin-top: 0; }

/* 道具 2 */
.kt-cap { padding: 14px 16px; display: grid; gap: 12px; }
.kt-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kt-mon { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: #f8fafc; display: grid; gap: 4px; }
.kt-mon b { font-size: 12.5px; }
.kt-mon label { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink2); }
.kt-mon input { width: 100%; box-sizing: border-box; font: 600 14px var(--latin); border: 1px solid #cbd5e1; border-radius: 7px; padding: 3px 6px; background: #fff; color: var(--ink); }
.kt-mon.warn { background: #fffbeb; border-color: #fcd34d; }
.kt-mon.ng { background: #fef2f2; border-color: #f87171; }
.kt-verdict { margin: 0; font-size: 14px; border-radius: 10px; padding: 9px 12px; }
.kt-verdict.ok { background: #f0fdf4; color: #14532d; }
.kt-verdict.warn { background: #fffbeb; color: #78350f; }
.kt-verdict.ng { background: #fef2f2; color: #7f1d1d; }
.kt-facts, .kt-issues { margin: 6px 0 0; padding-left: 1.2em; font-size: 13px; color: var(--ink2); display: grid; gap: 2px; }
.kt-issues { color: #991b1b; }

/* データの形 */
.kt-data { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.kt-tlist { display: grid; gap: 6px; }
.kt-tlist button { border-radius: 10px; text-align: left; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; }
.kt-tlist button code { font: 600 13px var(--latin); color: #1d4ed8; }
.kt-tlist button span { font-size: 12px; font-weight: 500; color: var(--ink2); }
.kt-tlist button[aria-pressed="true"] { background: #eff6ff; border-color: #93c5fd; }
.kt-tdetail { padding: 14px 16px; min-width: 0; }
.kt-tdetail h3 { margin: 0 0 6px; font-size: 16px; }
.kt-tdetail h3 code { font: 600 15px var(--latin); }
.kt-tdetail > p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink2); }
.kt-cols { width: 100%; border-collapse: collapse; font-size: 13px; }
.kt-cols th, .kt-cols td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.kt-cols thead th { font-size: 11.5px; color: var(--muted); }
.kt-cols code { font: 600 12.5px var(--latin); background: var(--line2); border-radius: 5px; padding: 0 5px; }
.kt-cols td:first-child { white-space: nowrap; width: 1%; }

/* 質問 */
.kt-ask { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: q; }
.kt-ask li { counter-increment: q; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 40px; position: relative; font-size: 13px; color: var(--ink2); }
.kt-ask li::before { content: counter(q); position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: #0d9488; color: #fff; font: 600 11.5px/20px var(--latin); text-align: center; }

/* チェックリスト */
.cklist { padding: 10px 16px; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.mlist label { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; cursor: pointer; padding: 5px 0; }
.mlist input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #0d9488; cursor: pointer; }
.mlist input:checked + span { color: var(--muted); text-decoration: line-through; }
.ckfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ckcount { font-family: var(--latin); font-size: 13px; color: var(--muted); }
.ckreset { appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink2); cursor: pointer; }

.kt-sbtn:focus-visible, .kt-rtabs button:focus-visible, .kt-presets button:focus-visible, .kt-seg button:focus-visible, .kt-tlist button:focus-visible, .kt-in input:focus-visible, .kt-mon input:focus-visible, .kt-go:focus-visible, .srcl a:focus-visible, .fhead p a:focus-visible, .mlist input:focus-visible, .ckreset:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1200px) {
  .kt-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .kt-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-grid3, .kt-ask { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-lab, .kt-data { grid-template-columns: minmax(0, 1fr); }
  .kt-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .kt-grid4, .kt-grid3, .kt-ask, .mlist { grid-template-columns: minmax(0, 1fr); }
  .kt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kt-row3 .kt-field:last-child { grid-column: 1 / -1; }
  .kt-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kt-mon label { grid-template-columns: minmax(0, 1fr); }
  .kt-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kt-tlist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kt-tlist button code { font-size: 11.5px; overflow-wrap: anywhere; }
  .kt-cols code { font-size: 11.5px; }
  .kt-dl dd { margin-bottom: 6px; }
  .kt-table th, .kt-table td { padding: 6px 5px; font-size: 12.5px; }
}
