/* 採用と面接。style.css・flow.css・fm.css の上に重ねる（接頭辞 hi-。よいは緑、よくないは赤、場合によるは琥珀） */
.hi-lead { margin: 0 0 10px; font-size: 13.5px; color: var(--ink2); max-width: 60em; }
.hi-inl { display: block; margin-top: 4px; }
.hi-k { margin: 0; font: 600 12px var(--latin); color: var(--muted); }
.hi-ph { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.hi-blank { color: #94a3b8; }
.hi-score { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
.hi-scorebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hi-scorebar .hi-score { margin: 0; }

/* 採用の流れ */
.hi-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hi-step { appearance: none; width: 100%; height: 100%; font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 8px 10px; color: var(--ink); display: flex; gap: 9px; align-items: center; }
.hi-step:hover { border-color: #94a3b8; }
.hi-step b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--latin); background: #e2e8f0; color: #334155; }
.hi-step span { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; min-width: 0; }
.hi-step small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.hi-step.on { background: #0f172a; border-color: #0f172a; color: #fff; }
.hi-step.on b { background: #0d9488; color: #fff; }
.hi-step.on small { color: #cbd5e1; }
.hi-panel { padding: 12px 14px; }
.hi-panel h3 { margin: 4px 0 8px; font-size: 17px; }
.hi-dl { margin: 0; display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 5px 12px; font-size: 13.5px; }
.hi-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.hi-dl dd { margin: 0; color: var(--ink); }
.hi-nav { margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; }
.hi-nav button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--ink2); }
.hi-nav button:hover:not([disabled]) { border-color: #94a3b8; }
.hi-nav button[disabled] { opacity: .4; cursor: default; }

/* 選ぶ練習（要件・見方・聞いてよいか） */
.hi-quiz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hi-q { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hi-q > p:first-child { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.hi-q.ok { border-color: #86efac; }
.hi-q.ng { border-color: #fca5a5; }
.hi-q.mid { border-color: #fcd34d; }
.hi-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.hi-opts button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.hi-opts button:hover { border-color: #94a3b8; color: var(--ink); }
.hi-opts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hi-fb { margin: 0; font-size: 12.5px; border-radius: 8px; padding: 6px 9px; background: var(--line2); color: var(--ink2); }
.hi-q.ok .hi-fb { background: #f0fdf4; color: #14532d; }
.hi-q.ng .hi-fb { background: #fef2f2; color: #7f1d1d; }
.hi-q.mid .hi-fb { background: #fffbeb; color: #78350f; }
.hi-fb .srcl, .hi-checks .srcl { color: inherit; opacity: .85; }
.hi-q .fm-go { margin: 0; }

/* 評価の基準表を作る */
#hiRubItems { margin-bottom: 10px; }
.hi-compose { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; align-items: start; }
.hi-parts { display: grid; gap: 8px; min-width: 0; }
.hi-part { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 8px 10px 10px; min-width: 0; }
.hi-part legend { font-size: 13px; font-weight: 700; padding: 0 4px; display: flex; align-items: center; gap: 6px; }
.hi-part legend i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px var(--latin); background: #e2e8f0; color: #334155; }
.hi-popts { display: grid; gap: 5px; }
.hi-popt { appearance: none; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 6px 10px; color: var(--ink); line-height: 1.5; }
.hi-popt small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.hi-popt:hover { border-color: #94a3b8; }
.hi-popt[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.hi-popt[aria-pressed="true"] small { color: #cbd5e1; }
.hi-out { padding: 12px 14px; position: sticky; top: 12px; min-width: 0; }
.hi-out h3 { margin: 0 0 8px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hi-out h3 small { font-size: 11.5px; font-weight: 700; color: #0f766e; background: #f0fdfa; border-radius: 6px; padding: 0 7px; }
.hi-rq { background: #f8fafc; border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.hi-rq b { display: block; font-size: 11.5px; color: var(--muted); }
.hi-rq p { margin: 2px 0 0; }
.hi-rq ul { margin: 4px 0 0; padding-left: 1.2em; font-size: 12.5px; color: var(--ink2); }
.hi-rlv { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.hi-rlv li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; font-size: 12.5px; border-radius: 8px; padding: 5px 9px; background: #f8fafc; }
.hi-rlv li b { font-size: 12px; color: var(--ink2); }
.hi-rlv li.good { background: #f0fdf4; }
.hi-rlv li.bad { background: #fef2f2; }
.hi-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.hi-checks li { border-radius: 8px; padding: 5px 9px; }
.hi-checks li.good { background: #f0fdf4; color: #14532d; }
.hi-checks li.bad { background: #fef2f2; color: #7f1d1d; }
.hi-checks li.mid { background: #fffbeb; color: #78350f; }

/* 4 つの見方の表 */
.hi-methods tbody th { white-space: nowrap; }
.hi-methods thead th:first-child { width: 8em; }

/* 14 事項 */
.hi-14 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.hi-14g { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.hi-14g h4 { margin: 0 0 6px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.hi-14g h4 small { font: 600 11.5px var(--latin); color: var(--muted); }
.hi-14g ul { margin: 0; padding-left: 1.2em; font-size: 12.5px; color: var(--ink2); display: grid; gap: 2px; }

/* 面接官 3 人のすり合わせ */
.hi-panelwrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 12px; align-items: start; }
.hi-pitems { display: grid; gap: 8px; min-width: 0; }
.hi-pi { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.hi-pi h4 { margin: 0 0 6px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hi-tag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; background: #e2e8f0; color: #334155; }
.hi-tag.must { background: #ccfbf1; color: #115e59; }
.hi-prs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hi-prs li { display: grid; grid-template-columns: 9.5em 34px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 12.5px; }
.hi-rn { font-weight: 700; color: var(--ink2); }
.hi-sc { appearance: none; font: 600 15px var(--latin); width: 34px; height: 30px; border-radius: 8px; border: 1px solid #94a3b8; background: #f8fafc; color: var(--ink); cursor: pointer; }
.hi-sc:hover { border-color: #0f172a; }
.hi-sc.none { display: inline-grid; place-items: center; border: 1px dashed var(--line); background: transparent; color: #94a3b8; cursor: default; font-weight: 500; }
.hi-note { color: var(--ink2); min-width: 0; }
.hi-note.warn { color: #b45309; font-weight: 700; }
.hi-note.muted { color: var(--muted); }
.hi-spread { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.hi-spread.warn { color: #b45309; font-weight: 700; }
.hi-cons { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.hi-cons > span { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.hi-ck { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; min-width: 34px; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.hi-ck:hover { border-color: #94a3b8; color: var(--ink); }
.hi-ck[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hi-psum { padding: 12px 14px; position: sticky; top: 12px; min-width: 0; }
.hi-psum h3 { margin: 0 0 6px; font-size: 14px; }
.hi-sumk { margin: 0; font-size: 13px; color: var(--ink2); }
.hi-sumk b { font: 600 15px var(--latin); color: var(--ink); }
.hi-flags { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.hi-flags li { background: #fffbeb; color: #78350f; border-radius: 8px; padding: 5px 9px; }
.hi-dec { margin: 10px 0 0; font-size: 13.5px; font-weight: 700; border-radius: 8px; padding: 7px 10px; background: var(--line2); color: var(--ink2); }
.hi-dec.good { background: #f0fdf4; color: #14532d; }
.hi-dec.bad { background: #fef2f2; color: #7f1d1d; }
.hi-dec.mid { background: #fffbeb; color: #78350f; }
.hi-rule { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.hi-model { margin: 8px 0 0; font-size: 12.5px; color: var(--ink2); background: #f8fafc; border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; }
.hi-pbar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hi-psum .srcl { margin-top: 8px; }

.hi-step:focus-visible, .hi-nav button:focus-visible, .hi-opts button:focus-visible, .hi-popt:focus-visible, .hi-sc:focus-visible, .hi-ck:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-width: 1100px) {
  .hi-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hi-quiz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hi-compose, .hi-panelwrap { grid-template-columns: minmax(0, 1fr); }
  .hi-out, .hi-psum { position: static; }
  .hi-14 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hi-steps, .hi-quiz, .hi-14 { grid-template-columns: minmax(0, 1fr); }
  .hi-dl { grid-template-columns: minmax(0, 1fr); gap: 1px 0; }
  .hi-dl dd { margin-bottom: 6px; }
  .hi-rlv li { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .hi-prs li { grid-template-columns: 34px minmax(0, 1fr); gap: 2px 8px; }
  .hi-prs .hi-rn { grid-column: 1 / -1; }
  .hi-stack thead { display: none; }
  .hi-stack tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line2); }
  .hi-stack th, .hi-stack td { display: block; border: 0; padding: 2px 2px; }
  .hi-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
  .hi-methods tbody th { white-space: normal; }
}
