/* 医師のバイト相場チェッカー — グレーとオレンジ */
:root {
  color-scheme: light;
  --bg: #f1f1ef;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --surface-3: #ebebe8;
  --line: #e0e0dc;
  --line-strong: #c4c4bf;
  --ink: #232321;
  --ink-2: #5c5c57;
  --ink-3: #8b8b85;
  --on-color: #ffffff;
  --head: #2b2b29;
  --head-ink: #f4f4f1;
  --head-ink-2: #b9b9b3;
  --acc: #ea7a2f;
  --acc-d: #b8561a;
  --acc-t: #fdf1e7;
  --acc-t2: #f8d4b6;
  --shadow-2: 0 4px 16px rgba(35, 35, 33, 0.12), 0 1px 3px rgba(35, 35, 33, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --font-body: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161615; --surface: #1f1f1d; --surface-2: #262624; --surface-3: #2f2f2c;
    --line: #34342f; --line-strong: #4a4a45;
    --ink: #f2f2ef; --ink-2: #b2b2ab; --ink-3: #82827c;
    --head: #0f0f0e; --head-ink: #f2f2ef; --head-ink-2: #9a9a94;
    --acc: #f08c4a; --acc-d: #f6a56f; --acc-t: #36241a; --acc-t2: #5c391f;
    --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161615; --surface: #1f1f1d; --surface-2: #262624; --surface-3: #2f2f2c;
  --line: #34342f; --line-strong: #4a4a45;
  --ink: #f2f2ef; --ink-2: #b2b2ab; --ink-3: #82827c;
  --head: #0f0f0e; --head-ink: #f2f2ef; --head-ink-2: #9a9a94;
  --acc: #f08c4a; --acc-d: #f6a56f; --acc-t: #36241a; --acc-t2: #5c391f;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ヘッダー (濃いグレーの帯) */
.top { background: var(--head); color: var(--head-ink); padding: 18px 16px 20px; }
.top-in { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-title { font-size: 18px; font-weight: 800; line-height: 1.15; letter-spacing: 0.01em; white-space: nowrap; }
.sub { font-size: 11.5px; line-height: 1; color: var(--head-ink-2); font-weight: 600; letter-spacing: 0.04em; }
.lead { font-size: 13px; color: var(--head-ink-2); line-height: 1.6; }
.lead b { color: var(--acc); font-weight: 700; white-space: nowrap; }

.page { max-width: 640px; margin: 0 auto; padding: 14px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section-head h2 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--acc); }
.hint { font-size: 12px; color: var(--ink-3); text-align: right; }
.notice { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12.5px; color: var(--ink-2); }

/* 条件 */
.filters { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; border: 1px solid var(--line); border-radius: var(--radius-sm); height: 46px; padding: 0 40px 0 14px; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.seg { display: flex; background: var(--surface-3); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg button { flex: 1; height: 34px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--line); }

/* 結果 */
.result { padding: 20px 18px 16px; }
.result-loading, .result-empty { color: var(--ink-3); font-size: 14px; text-align: center; padding: 24px 0; }
.result-cond { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hero { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.hero .lbl { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hero .val { font-size: 40px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.hero .unit { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.band-note { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.band-note b { color: var(--ink); }
.range { margin-top: 18px; }
.range svg { display: block; width: 100%; height: 64px; overflow: visible; }
.range .track { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.range .cap { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.range .iqr { fill: var(--acc-t2); }
.range .med { fill: var(--acc); }
.range .med-ring { fill: none; stroke: var(--surface); stroke-width: 2; }
.range text { font-size: 12px; fill: var(--ink-3); font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.range text.strong { fill: var(--ink); font-weight: 600; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }

/* 最低・最高 */
.range svg { height: 46px; }
.ends { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.end { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.end--max { background: var(--acc-t); box-shadow: inset 0 0 0 1px var(--acc-t2); }
.end-lbl { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.end--max .end-lbl, .end--max .end-val { color: var(--acc-d); }
.end-val { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.end-val small { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-left: 3px; }
.end-job b { color: var(--ink); font-weight: 700; }
.end-job { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.job-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--acc-d); text-decoration: none; }
.job-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.job-closed { margin-top: 6px; font-size: 12px; color: var(--ink-3); }

/* いま募集中の高い求人 */
.jobs { list-style: none; padding: 0; display: flex; flex-direction: column; }
.job { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 2px; }
.job-main { display: flex; flex-direction: column; min-width: 0; }
.job-pay { font-size: 19px; font-weight: 700; line-height: 1.3; }
.job-pay small { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-left: 3px; }
.job-when { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.job-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .job-link { flex: none; margin-top: 0; height: 36px; padding: 0 10px 0 14px; border-radius: 8px; background: var(--acc-t); }
.fine { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

/* 中央値の一覧 (横棒) */
.bars { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bars li button { width: 100%; display: grid; grid-template-columns: 7.5em 1fr 5.6em; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; text-align: left; }
.bars li button:hover, .bars li button:focus-visible { background: var(--surface-2); outline: none; }
.bars li button[aria-current="true"] { background: var(--acc-t); }
.bars .name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .bar { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--acc); min-width: 4px; }
.bars .bar-track { height: 10px; }
.bars .v { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bars .v small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.bars li.na .name, .bars li.na .v { color: var(--ink-3); font-weight: 500; }
.link-btn { font-size: 13px; font-weight: 600; color: var(--acc-d); text-decoration: underline; text-underline-offset: 2px; padding: 8px 6px 0; }

/* カレンダーへの案内 */
.cta { display: grid; grid-template-columns: 56px 1fr; gap: 12px 14px; align-items: center; }
.cta img { width: 56px; height: 56px; object-fit: contain; }
.cta-text { display: flex; flex-direction: column; gap: 4px; }
.cta-text b { font-size: 15px; }
.cta-text span { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.cta .btn { grid-column: 1 / -1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 15px; border-radius: var(--radius-sm); padding: 0 18px; height: 48px; text-decoration: none; }
.btn--primary { background: var(--acc); color: var(--on-color); }
.btn--block { width: 100%; }

.about { padding: 4px 4px 0; }
.about h2 { font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.about ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-3); }

.site-foot { max-width: 640px; margin: 0 auto; padding: 8px 16px 32px; text-align: center; font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--acc-d); font-weight: 600; }

/* ホバーの説明 */
.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.5; padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow-2); max-width: 240px; font-variant-numeric: tabular-nums; }
