/* Moshiru ツール 共通の見た目。
   余白は8の倍数（4は細部だけ）。差し色は深い緑1色。角丸8px、影は薄く1段だけ。紫・グラデーション・絵文字は使わない。 */
:root {
  --bg: #f6f7f8;
  --fg: #2b2f33;
  --muted: #5b6168;
  --faint: #8a9097;
  --accent: #1f6f5c;
  --accent-fg: #fff;
  --accent-soft: #e6f0ed;
  --card: #fff;
  --line: #dcdfe3;
  --line-soft: #eceef0;
  --err: #b3261e;
  --err-soft: #fbeceb;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(29, 33, 37, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, li, label, td, th, button, .btn, main.page, .devbar { word-break: auto-phrase; }
h1, h2, h3 { text-wrap: balance; line-height: 1.5; font-feature-settings: "palt"; }
p { text-wrap: pretty; margin: 0 0 16px; }
h1 { font-size: 24px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 32px 0 8px; }
h3 { font-size: 16px; margin: 24px 0 8px; }
a { color: var(--accent); }
.nb { display: inline-block; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-feature-settings: "tnum"; }

/* ---------- 枠 ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 16px; color: var(--fg); text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 13px; }
.nav { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: var(--radius); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover { background: var(--bg); color: var(--fg); }
.nav a.on { color: var(--accent); font-weight: 700; }
.who { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.who button { width: auto; min-height: 32px; margin: 0; padding: 4px 8px; font-size: 13px; }
.devbar { background: #2b2f33; color: #e8e9ea; font-size: 13px; }
.devbar div { max-width: 1080px; margin: 0 auto; padding: 4px 24px; }
.devbar a { color: #fff; }
main.page { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
main.narrow { max-width: 560px; }
.crumb { font-size: 13px; margin: 0 0 8px; }
.crumb a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stack > .card + .card, main > .card + .card { margin-top: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stack > * + * { margin-top: 16px; }

/* ---------- 部品 ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; margin: 0;
  font: inherit; font-weight: 700; font-size: 14px; text-decoration: none;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-fg); cursor: pointer;
}
button.sub, .btn.sub { background: var(--card); color: var(--accent); }
button.plain, .btn.plain { background: transparent; border-color: transparent; color: var(--muted); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label.field { display: block; margin: 0 0 16px; font-size: 14px; font-weight: 700; }
label.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=number], input[type=tel], input[type=url], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 16px; min-height: 40px;
  font: inherit; font-weight: 400; color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
textarea { min-height: 120px; line-height: 1.7; resize: vertical; }
input[type=number] { max-width: 160px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; margin: 0 16px 8px 0; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 4px; line-height: 24px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.tag.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tag.st-new { border-color: var(--accent); color: var(--accent); }
.tag.st-interview { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.tag.st-hired { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag.st-declined { color: var(--faint); }

.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.notice.warn { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--fg); }
.error { color: var(--err); background: var(--err-soft); border-radius: var(--radius); padding: 8px 16px; font-weight: 700; margin: 16px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

table.list { width: 100%; border-collapse: collapse; background: var(--card); }
table.list th, table.list td { text-align: left; padding: 8px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: 14px; }
table.list th { color: var(--muted); font-weight: 400; font-size: 13px; white-space: nowrap; }
table.list tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

.meter { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.meter-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.tabs a { padding: 8px 16px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 700; font-size: 14px; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- ツールのカード ---------- */
.tool { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.tool-head { display: flex; align-items: center; gap: 16px; }
.tool-icon { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.tool.soon .tool-icon { background: var(--bg); color: var(--muted); }
.tool h3 { margin: 0; font-size: 16px; }
.tool p { margin: 0; color: var(--muted); font-size: 14px; }
.tool .foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
a.card.tool:hover { border-color: var(--accent); }

/* ---------- 質問形式の設定（業務の型） ---------- */
.wizard { max-width: 640px; }
.wz-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.wz-no { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.wz-bar { flex: 1; display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.wz-bar li { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.wz-bar li.done { background: var(--accent); }
.wz-bar li.now { background: var(--accent); opacity: .45; }
.wz-q { font-size: 20px; margin: 0 0 8px; }
.wz-help { color: var(--muted); font-size: 14px; }
.wz-body { margin: 24px 0; }
.wz-nav { display: flex; justify-content: space-between; gap: 8px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; font-weight: 400; }
.choice input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice b { display: block; }
.choice span { color: var(--muted); font-size: 13px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.qrow { display: grid; grid-template-columns: 32px 1fr 104px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.qrow input { margin: 0; }
.qrow .qn { color: var(--muted); font-weight: 700; text-align: center; }
.qrow select { margin: 0; padding: 8px; }
.qrow button { min-height: 40px; padding: 0; }
.review dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
.review dt { color: var(--muted); font-size: 14px; }
.review dd { margin: 0; }
.review ol { margin: 0; padding-left: 24px; }

/* ---------- 応募者 ---------- */
.applicant-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.applicant-row:last-child { border-bottom: 0; }
.applicant-row:hover { background: #fafbfb; }
.applicant-row .nm { font-weight: 700; font-size: 16px; }
.applicant-row .meta { color: var(--muted); font-size: 13px; }
.applicant-row .three { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; font-size: 13px; }
.applicant-row .three div b { color: var(--muted); font-weight: 400; display: block; font-size: 12px; }
.answers { display: grid; gap: 16px; }
.answer { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.answer video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #1d2125; border-radius: var(--radius); display: block; }
.answer .qlabel { color: var(--accent); font-weight: 700; font-size: 13px; margin: 0; }
.answer h3 { margin: 0 0 8px; }
.answer .point { background: var(--accent-soft); border-radius: var(--radius); padding: 8px 16px; margin: 0 0 16px; font-weight: 700; }
.answer .transcript { color: var(--fg); font-size: 14px; margin: 0; }
.overall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.overall div b { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.side { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.qr-box { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr-box > svg, .qr-box > img { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; background: #fff; }
.link-box { display: flex; gap: 8px; }
.link-box input { margin: 0; font-family: ui-monospace, monospace; font-size: 13px; }
.link-box button { flex: none; }

@media (max-width: 760px) {
  .topbar-in { padding: 8px 16px; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; }
  main.page { padding: 24px 16px 48px; }
  .card { padding: 16px; }
  .answer { grid-template-columns: 1fr; gap: 16px; }
  .answer video { max-width: 280px; }
  .overall, .applicant-row .three { grid-template-columns: 1fr; }
  .applicant-row { padding: 16px; }
  .side { grid-template-columns: 1fr; }
  .review dl { grid-template-columns: 1fr; gap: 0; }
  .review dd { margin-bottom: 8px; }
  .qrow { grid-template-columns: 24px 1fr 88px 40px; }
}
@media print {
  .topbar, .devbar, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- イキトウゴウ：求人票（募集づくりの質問）と求人ページの欄 ---------- */
.job-form .field { margin-bottom: 16px; }
.job-form .field .hint { margin-bottom: 4px; }
.photo-pick { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.photo-pick figure { margin: 0; width: 160px; }
.photo-pick img { width: 160px; height: 120px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.photo-pick button { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.file-btn { cursor: pointer; }
.job-panel { border-top: 1px solid var(--line-soft); margin-top: 24px; padding-top: 24px; }
.job-panel h3 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-panel .dates { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }
.job-panel .google { background: var(--bg); border-radius: var(--radius); padding: 16px; margin-top: 16px; font-size: 14px; }
.job-panel .google p { margin: 0 0 8px; }
.job-panel .google p:last-child { margin: 0; }

/* 写真の了解の確認 */
.check-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.7; }
.check-line input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--accent, #1f6b57); }

/* 節約できた金額（ダッシュボードの上） */
.savings { margin-bottom: 24px; }
.sv-big { margin: 4px 0; font-size: 32px; font-weight: 700; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sv-sub { font-size: 15px; font-weight: 400; color: var(--muted); }
.savings details { margin-top: 8px; }
.savings summary { cursor: pointer; color: var(--accent); }
