/* 開発の流れ。style.css・flow.css・br.css の上に重ねる（接頭辞 pc-） */
.pc-box { padding: 12px 14px; min-width: 0; }
.pc-mt { margin-top: 12px; }
.pc-nl { display: block; margin: 6px 0 0; }
.pc-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.pc-tip { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 6px 10px; }
.br-card .pc-tip { margin-top: 8px; }
.pc-tbl { font-size: 12.5px; }
.pc-tbl th, .pc-tbl td { padding: 6px 8px; }
.pc-tbl tbody th { font-weight: 700; }
.pc-cases { min-width: 860px; }
.pc-cases tbody th { min-width: 13em; }
.pc-steps { min-width: 900px; }
.pc-steps tbody th { min-width: 9em; }
.pc-words { min-width: 760px; }
.pc-words tbody th { min-width: 11em; }
.pc-who { min-width: 900px; }
.pc-who tbody th { min-width: 9em; }
.pc-alias { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.pc-k { display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1.6; border-radius: 5px; padding: 0 7px; }
.pc-k.pc-jun { background: #e0f2fe; color: #075985; }
.pc-k.pc-uke { background: #fef3c7; color: #92400e; }
.pc-k.pc-both { background: #ede9fe; color: #5b21b6; }
.pc-k.pc-sep { background: var(--line2); color: var(--ink2); }

/* 並べる練習 */
.pc-ord { padding: 12px 14px; display: grid; gap: 10px; min-width: 0; }
.pc-q { margin: 0; font-size: 13px; color: var(--ink2); }
.pc-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chip { appearance: none; font: inherit; font-size: 13px; font-weight: 700; text-align: left; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.pc-chip small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.pc-chip:hover { border-color: #94a3b8; }
.pc-chip[disabled] { opacity: .35; cursor: default; }
.pc-chip:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.pc-seq { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pc-seq li { display: flex; align-items: center; gap: 7px; min-height: 40px; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 5px 9px; font-size: 12.5px; font-weight: 700; background: var(--paper); }
.pc-seq li b { flex: none; font: 600 11px var(--latin); color: var(--muted); background: var(--line2); border-radius: 5px; padding: 0 5px; }
.pc-seq li.pc-ok { border-style: solid; border-color: #86efac; background: #f0fdf4; }
.pc-seq li.pc-ng { border-style: solid; border-color: #fca5a5; background: #fef2f2; }
.pc-empty { font-weight: 500; color: var(--muted); }
.pc-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-out { font-size: 13px; color: var(--ink2); }
.pc-out p { margin: 0; }
.pc-out ul { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 3px; }

/* 遅れの図 */
.pc-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.pc-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pc-lab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 6em; }
.pc-gantt { padding: 12px 14px; min-width: 0; }
.pc-chart { min-width: 760px; }
.pc-axis, .pc-row { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); align-items: center; }
.pc-axis .pc-track { height: 20px; }
.pc-axl { font-size: 11.5px; color: var(--muted); }
.pc-row { border-top: 1px solid var(--line2); min-height: 44px; }
.pc-name { font-size: 12.5px; font-weight: 700; padding: 4px 10px 4px 0; }
.pc-name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.pc-ent { display: block; font-size: 11px; font-weight: 700; color: #92400e; }
.pc-track { position: relative; height: 36px; }
.pc-tick { position: absolute; top: 0; height: 100%; padding-left: 4px; border-left: 1px solid var(--line); font: 600 11px var(--latin); color: var(--muted); white-space: nowrap; }
.pc-bar { position: absolute; height: 12px; border-radius: 4px; }
.pc-bar.pc-p { top: 4px; border: 1px dashed #94a3b8; background: transparent; box-sizing: border-box; }
.pc-bar.pc-n { top: 20px; }
.pc-bar.pc-same, .pc-sw.pc-swn { background: #cbd5e1; }
.pc-bar.pc-late, .pc-sw.pc-swl { background: #f59e0b; }
.pc-bar.pc-shift, .pc-sw.pc-sws { background: #60a5fa; }
.pc-bar.pc-cut, .pc-sw.pc-swc { background: #ef4444; }
.pc-relrow .pc-track { height: 38px; }
.pc-rel { position: absolute; transform: translateX(-100%); white-space: nowrap; font-size: 11.5px; font-weight: 700; padding-right: 5px; border-right: 2px solid currentColor; line-height: 16px; }
.pc-relp { top: 2px; color: var(--muted); }
.pc-reln { top: 20px; color: #b91c1c; }
.pc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.pc-sw { display: inline-block; width: 18px; height: 9px; border-radius: 3px; margin-right: 5px; }
.pc-sw.pc-swp { border: 1px dashed #94a3b8; }
.pc-res { padding: 12px 14px; margin-top: 10px; font-size: 13px; }
.pc-rhead { margin: 0 0 8px; }
.pc-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.pc-dl dt { font-weight: 700; color: var(--muted); font-size: 12.5px; }
.pc-dl dd { margin: 0; }
.pc-rnote { margin: 10px 0 0; font-size: 12.5px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }

/* 残す形 */
.pc-tpls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.pc-tpl { padding: 12px 14px; min-width: 0; }
.pc-wide { grid-column: 1 / -1; }
.pc-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-h4 { margin: 0; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.pc-ttbl { min-width: 820px; }
.pc-ttbl td:nth-child(2), .pc-ttbl td:nth-child(3), .pc-ltbl td:nth-child(6) { white-space: nowrap; }
.pc-ltbl { min-width: 1040px; }
.pc-stbl { min-width: 560px; }

@media (max-width: 1100px) {
  .pc-seq { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pc-seq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pc-dl dd { margin-bottom: 6px; }
}
