@charset "UTF-8";
/* =============================================================
 * 訪問リハ給与シミュレーター｜スタイル
 * 方針：白ベース／数字が主役／広告臭を出さない／スマホ優先
 * ============================================================= */

:root {
  /* 色 */
  --ink:        #16232b;   /* 本文 */
  --ink-2:      #4a5c66;   /* 補足文 */
  --ink-3:      #6b7c85;   /* さらに弱い補足 */
  --line:       #e0e4e0;   /* 罫線（わずかに暖色寄り） */
  --line-soft:  #ecefea;
  --bg:         #ffffff;
  --surface:    #f8f8f4;   /* うすい面（暖色寄りのオフホワイト） */
  --surface-2:  #f0f1ea;
  --hero-bg:    #fcfbf7;   /* ファーストビューの地色 */

  --brand:      #0b6b62;   /* 基調のティール */
  --brand-ink:  #08514a;   /* 濃いティール（文字用） */
  --brand-soft: #e6f2f0;   /* 淡いティール面 */
  --brand-line: #b9dbd6;

  --accent:     #b4531f;   /* 数字の強調に少しだけ使う暖色 */
  --accent-soft:#fdf1e8;

  /* 強調は「太字・文字サイズ・余白」で行う方針のため、
     黄色マーカーのような背景強調用の色は持たない */

  /* 形 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 40, 48, .05), 0 6px 20px rgba(16, 40, 48, .05);

  /* 余白 */
  --gap: 16px;
  --pad: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic",
               Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

/* 数字は等幅にして桁を揃える */
.num, .big-num, td.num, .money { font-variant-numeric: tabular-nums; }

a { color: var(--brand-ink); }
a:focus-visible,
button:focus-visible,
input:focus-visible + .chip,
.chip:focus-within {
  outline: 3px solid #1f7f9e;
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.container {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 18px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 50;
}
.skip-link:focus { left: 8px; top: 8px; }

/* =============== PR表記 =============== */
.pr-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
  padding: 7px 0;
}
.pr-bar .container { display: flex; gap: 8px; align-items: baseline; }
.pr-tag {
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-2);
}

/* =============== アイコン（インラインSVGスプライト） =============== */
/* スプライト本体は表示しない。display:none にすると <use> が効かない
   ブラウザがあるため、位置をずらして隠す。 */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-lg { width: 1.7em; height: 1.7em; stroke-width: 1.6; }

/* スクリーンリーダー用（見た目には出さない） */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =============== ヘッダー =============== */
.hero {
  padding: 22px 0 6px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line-soft);
}
/* 図は見出しの右上に重ねて置く。見出しに padding-right を取ることで
   文字と重ならず、かつ figure の分だけページが下に伸びないようにする。 */
.hero-top { position: relative; }
.hero-figure {
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  height: 76px;
  --fig-bg: #f3efe4;
  --fig-line: #d8d2c2;
  --fig-ink: var(--brand);
  --fig-soft: #e6f2f0;
  --fig-accent: var(--accent);
}
.hero h1 {
  font-size: 26px;
  line-height: 1.45;
  margin: 0 0 12px;
  padding-right: 86px;   /* 右上の図とぶつからないようにする */
  letter-spacing: -.01em;
  font-weight: 800;
  min-height: 76px;      /* 図がはみ出さない最低限の高さ */
}
.hero h1 .accent { color: var(--brand-ink); }
.hero .lead {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 15px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.pc-only { display: none; }
@media (min-width: 600px) { .pc-only { display: inline; } }

/* 補足チップ：通常は控えめに */
.hero-meta li {
  font-size: 12.5px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  font-weight: 500;
}
/* 「約1分で結果がわかる」だけ1段強く（濃い背景＋太字。派手にはしない） */
.hero-meta li.is-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}

/* =============== セクション共通 =============== */
section { padding: 28px 0; }
section + section { border-top: 1px solid var(--line-soft); }

h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -.01em;
}
/* セクションの大見出し。薄い地色＋左の緑ラインで軽く区切るだけにして、
   全面を濃い枠で囲わない（広告LPらしくしないため） */
.sec-h {
  padding: 9px 14px 9px 14px;
  margin-bottom: 14px;
  border-left: 4px solid var(--brand);
  border-radius: 0 4px 4px 0;
  background: var(--surface-2);
}
h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}
.section-note {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 14px;
}

/* =============== 計算フォーム =============== */
.calc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: var(--pad) 16px 18px;
  margin-top: 6px;
}

.field { border: 0; padding: 0; margin: 0 0 22px; }
.field:last-of-type { margin-bottom: 14px; }

.field > legend {
  padding: 0;
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.field-no {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(2px);
}
.field-hint {
  margin: -4px 0 10px;
  font-size: 13px;
  color: var(--ink-3);
}

/* 選択チップ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.cols-2 > .chip-wrap { flex: 1 1 calc(50% - 4px); }
.chips.cols-4 > .chip-wrap { flex: 1 1 calc(25% - 6px); }

.chip-wrap { position: relative; flex: 0 1 auto; }
.chip-wrap input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
  cursor: pointer;
}
.chip small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0;
}
.chip-wrap input:checked + .chip {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.chip-wrap input:checked + .chip small { color: var(--brand-ink); }
@media (hover: hover) {
  .chip-wrap input:not(:checked):hover + .chip { border-color: #b9c7cc; background: var(--surface); }
}

/* 送信ボタン */
.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s ease;
}
.btn:hover { background: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn-sub {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 9px;
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #fdf0ee;
  border: 1px solid #f0cdc6;
  color: #8c3520;
  font-size: 14px;
  font-weight: 600;
}
.form-error[hidden] { display: none; }

/* =============== 結果 =============== */
#result[hidden] { display: none; }

.result-head {
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 18px;
}
.result-head h3 { font-size: 17px; margin-bottom: 12px; color: var(--brand-ink); }

.stat-row { display: flex; gap: 10px; }
.stat {
  flex: 1 1 0;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
  padding: 10px 12px 11px;
  text-align: center;
}
.stat dt { font-size: 12.5px; color: var(--ink-2); margin: 0 0 2px; }
.stat dd { margin: 0; }
.big-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-ink);
  letter-spacing: -.02em;
}
.big-num .unit { font-size: 14px; font-weight: 700; margin-left: 2px; }
.stat .approx { font-size: 12px; color: var(--ink-3); }

/* 歩合グループ */
.group { margin-bottom: 20px; }
.group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.group-head h3 { margin: 0; font-size: 15.5px; }
.badge {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-hours { background: #e7f0f7; color: #1b5279; border: 1px solid #c2d9e8; }
.badge-count { background: #f0eef8; color: #4b3f80; border: 1px solid #d6cfeb; }
.badge-none  { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge-match { background: var(--accent-soft); color: var(--accent); border: 1px solid #f0cfb4; }
.badge-annual{ background: #eaf3ec; color: #2c6440; border: 1px solid #c6dfcd; }
/* バッジ内のアイコン */
.badge { display: inline-flex; align-items: center; gap: 4px; }
.badge .ic { width: 1em; height: 1em; vertical-align: 0; stroke-width: 2; }

.group-desc { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }

.res-list { list-style: none; margin: 0; padding: 0; }
.res-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}
.res-item + .res-item { margin-top: 8px; }
.res-name { font-weight: 700; font-size: 14.5px; }
.res-cond { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.res-money { flex: none; text-align: right; }
.money {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.money.zero { color: var(--ink-3); font-size: 17px; }
.money-year { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }

/* まとめレンジ */
.range-box {
  border: 2px solid var(--brand);
  border-radius: var(--r-lg);
  padding: 16px;
  background: #fff;
  margin-bottom: 18px;
}
.range-box .label { font-size: 13.5px; color: var(--ink-2); margin: 0 0 2px; }
.range-value {
  font-size: 27px;
  font-weight: 800;
  color: var(--brand-ink);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0;
}
.range-value .unit { font-size: 15px; font-weight: 700; }
.range-value .sep { color: var(--ink-3); margin: 0 2px; font-weight: 700; }
.range-year { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.range-year strong { color: var(--ink); font-size: 16px; }

/* 補足は「背景の色」で目立たせない。細い罫線と余白だけで区切る */
.range-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 400;
}
.callout {
  margin: 12px 0 0;
  padding: 0 0 0 13px;
  border-left: 2px solid var(--line);
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 400;
}
.callout + .callout { margin-top: 9px; }
.callout strong { font-weight: 700; color: var(--ink); }

/* 年収比較 */
.compare-salary {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  background: var(--surface);
  margin-bottom: 18px;
}
.salary-now {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.salary-now b { font-size: 19px; color: var(--ink); font-weight: 800; }
.salary-list { list-style: none; margin: 10px 0 0; padding: 0; }
.salary-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.salary-list .co { font-weight: 700; }
.salary-list .cond { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.salary-list .amt { flex: none; font-weight: 800; font-size: 16px; }
.salary-diff {
  margin: 12px 0 0;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-sm);
  font-size: 14px;
}
.salary-diff .d { font-size: 18px; font-weight: 800; color: var(--brand-ink); }
.salary-diff strong { font-weight: 800; }
.note-caution {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.75;
}
.note-small { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* =============== 比較カード =============== */
[hidden] { display: none !important; }

/* カード一覧の下は、次のセクション見出しとの間に余白を取る */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 8px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 15px 13px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.card-head { margin-bottom: 10px; }
.card h3 { margin: 0 0 3px; font-size: 15.5px; line-height: 1.45; }
.card .area { font-size: 12px; color: var(--ink-3); }
.card-body { flex: 1 1 auto; }

/* 要点の数字ブロック（今回の条件 / 公開年収例） */
.card-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.fig {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 9px 11px 10px;
  min-width: 0;
  /* 年収例の件数が違っても、カード間で高さがそろって見えるようにする */
  min-height: 92px;
}
/* 年収例が複数ある会社は、2件目以降を少し詰めて高さの差を抑える */
.fig .fig-value + .fig-cond + .fig-value { margin-top: 5px; }
.fig-now { background: var(--brand-soft); border-color: var(--brand-line); }
.fig-label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.fig-now .fig-label { color: var(--brand-ink); font-weight: 700; }
.fig-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.fig-now .fig-value { color: var(--brand-ink); }
.fig-value.is-zero { color: var(--ink-2); font-size: 15px; }
.fig-value.is-none { color: var(--ink-3); }
.fig-cond {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-top: 1px;
}
.fig-none { display: block; font-size: 12.5px; color: var(--ink-3); }

/* 詳細（アコーディオン） */
.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--brand-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
@media (hover: hover) { .acc-btn:hover { background: var(--surface); } }
.acc-mark {
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .15s ease;
}
.acc-btn[aria-expanded="true"] .acc-mark {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.acc-panel {
  margin-top: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}

.card .detail-dl { margin: 0; font-size: 13.5px; }
.card .detail-dl > div {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.card dt { color: var(--ink-3); font-size: 12.5px; }
.card dd { margin: 0; }
.card dd .strong { font-weight: 700; }
.card dd .sub { display: block; font-size: 11.5px; color: var(--ink-3); }
/* 歩合条件はカードの主役。数字を大きく見せる */
.card .lede {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
/* 金額が入らない求人は、文章なので通常の大きさに戻す */
.card .lede-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0;
}
.card .badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
/* 年収例の金額も数字を優先して読ませる */
.card .amt-strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card .facts {
  margin: 10px 0 0;
  padding: 9px 11px;
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--ink-2);
  list-style: none;
}
.card .facts li { position: relative; padding-left: 13px; }
.card .facts li + li { margin-top: 5px; }
.card .facts li::before {
  content: "";
  position: absolute; left: 3px; top: .62em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-3);
}
.card .src {
  margin-top: auto;
  padding-top: 11px;
  font-size: 12.5px;
}
/* 出典リンクはタップしやすい大きさにする（最低44px） */
.card .src a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
@media (hover: hover) {
  .card .src a:hover { background: #d8ebe8; }
}
.card .src .q {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.65;
  border-left: 2px solid var(--line);
  padding-left: 8px;
}
.card .caution {
  margin-top: 10px;
  padding: 0 0 0 12px;
  background: none;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.75;
  font-weight: 400;
}

/* =============== 説明・比較表 =============== */
.why-list { margin: 0; padding: 0; list-style: none; }
.why-list li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 14.5px;
}
.why-list li::before {
  content: "";
  position: absolute; left: 6px; top: 1.05em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand);
}
/* 結論は「文字サイズ・太さ・余白」で見せる（背景では強調しない） */
.why-point {
  margin: 20px 0 0;
  padding: 2px 0 2px 16px;
  background: none;
  border-left: 4px solid var(--brand);
  font-size: 16.5px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: -.005em;
}

.vs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vs-table caption { text-align: left; font-size: 13px; color: var(--ink-3); padding-bottom: 8px; }
.vs-table th, .vs-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.vs-table thead th {
  background: var(--surface-2);
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
}
/* 病院／訪問リハの見出しはアイコンを上、名称を下に置いて一目で区別できるようにする */
.vs-table thead th.col-hosp,
.vs-table thead th.col-visit {
  padding: 11px 8px 10px;
}
.vs-table thead th .ic-lg { display: block; margin: 0 auto 3px; }
.vs-table thead th.col-hosp { color: #3d5a70; background: #eef2f5; }
.vs-table thead th.col-visit { color: var(--brand-ink); background: var(--brand-soft); }
.vs-table tbody th {
  background: var(--surface);
  font-weight: 600;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  width: 5.8em;
}
.vs-table tbody th .ic { margin-right: 5px; color: var(--ink-3); }
/* 列ごとに背景をごく薄く変えて、どちらの話か迷わないようにする */
.vs-table tbody td:nth-of-type(1) { background: #fbfcfd; }
.vs-table tbody td:nth-of-type(2) { background: #fafdfc; }
.vs-table td { line-height: 1.65; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =============== CTA（結果直後と下部の2か所） =============== */
.cta {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 20px 16px;
  text-align: center;
}
.cta h2, .cta h3 { font-size: 19px; margin: 0 0 8px; line-height: 1.5; }
.cta p { margin: 0 0 16px; font-size: 14px; color: var(--ink-2); max-width: 46em; margin-inline: auto; }
.cta .btn { max-width: 420px; margin-inline: auto; }

/* 第1CTA（計算結果の直後）はブランド色を薄く敷いて結果の続きに見せる */
.cta-result {
  margin-top: 18px;
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.cta-result .cta-kicker {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-ink);
}
.cta-result h3 { color: var(--brand-ink); }
.pr-label {
  display: inline-block;
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
}
.cta-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-weight: 400;
}
.cta-status[hidden] { display: none; }

/* =============== 注意書き・フッター =============== */
.disclaimer {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 7px; }

.site-footer {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 0 34px;
  font-size: 13px;
  color: var(--ink-2);
}
/* フッターの見出しも .sec-h の帯を付けるので、極端に小さくしない */
.site-footer h2 { font-size: 17px; margin-bottom: 12px; }
.src-list { margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; }
/* スマホ：会社名の次の行にリンクを置く */
.src-list li {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.src-list .src-name { display: block; color: var(--ink-2); }
.src-list a {
  display: inline-block;
  padding: 3px 0;
  font-weight: 600;
}
/* PC：会社名とリンクを近づけて、1行として読めるようにする */
@media (min-width: 700px) {
  .src-list { max-width: 860px; }
  .src-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px 14px;
  }
  .src-list .src-name { display: inline; }
  .src-list a { white-space: nowrap; }
}
/* フッターのサイト内リンク（全ページ共通） */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 14px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
}
.footer-nav a[aria-current="page"] { color: var(--ink-3); font-weight: 500; }

.copyright { font-size: 12.5px; color: var(--ink-3); margin: 0; }

/* =============== 運営者情報・プライバシーポリシーのページ =============== */
.page-head {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.back-link {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 0;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.legal { padding: 26px 0 40px; }
.legal h1 {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.legal-updated { margin: 0 0 26px; font-size: 12.5px; color: var(--ink-3); }
.legal section { margin-bottom: 34px; }
.legal h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 22px 0 6px;
  padding-left: 11px;
  border-left: 3px solid var(--brand-line);
}
.legal section > h3:first-of-type { margin-top: 18px; }
.legal p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.9;
  max-width: 62ch;
}
.legal p strong { font-weight: 700; }
.legal-note {
  font-size: 13px !important;
  color: var(--ink-2);
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.legal-back { margin-top: 30px; font-size: 14px; }

.legal-dl { margin: 0 0 4px; font-size: 14.5px; }
.legal-dl > div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.legal-dl dt { color: var(--ink-3); font-size: 13px; }
.legal-dl dd { margin: 0; font-weight: 600; }

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  max-width: 30em;
}
.contact-label { font-size: 12.5px; color: var(--ink-3); }
.contact-mail {
  font-size: 16px;
  font-weight: 700;
  word-break: break-all;
}

@media (min-width: 600px) {
  .legal h1 { font-size: 26px; }
  .legal { padding: 32px 0 48px; }
}

/* =============== レスポンシブ =============== */
@media (min-width: 600px) {
  .hero { padding-top: 32px; padding-bottom: 10px; }
  .hero-figure { width: 104px; height: 104px; }
  .hero h1 { font-size: 32px; padding-right: 120px; min-height: 104px; }
  .hero .lead { font-size: 16px; }
  h2 { font-size: 22px; }
  .calc-card { padding: 26px 24px 22px; }
  section { padding: 34px 0; }
  .big-num { font-size: 32px; }
  .range-value { font-size: 32px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .chips.cols-4 > .chip-wrap { flex: 1 1 calc(25% - 6px); }
}

@media (min-width: 860px) {
  .container { max-width: 820px; }
}

/* =============== PC（1024px以上）：横幅を活用する =============== */
@media (min-width: 1024px) {
  .container { max-width: 1060px; }

  /* ただし文章は横に伸ばしすぎない（1行が長いと読みにくいため） */
  .hero .lead,
  .section-note,
  .group-desc,
  .why-point,
  .callout,
  .disclaimer,
  .excluded-note { max-width: 68ch; }

  .hero h1 { font-size: 36px; padding-right: 140px; min-height: 116px; }
  .hero-figure { width: 116px; height: 116px; }

  /* 入力フォームは2列にして、結果までの距離を縮める */
  .calc-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    align-items: start;
  }
  .calc-card > .form-error,
  .calc-card > .btn,
  .calc-card > .btn-sub { grid-column: 1 / -1; }
  .calc-card > .btn { max-width: 460px; margin-inline: auto; }

  /* 結果の要約は横に並べて上下の移動を減らす */
  .stat-row { gap: 16px; }
  .big-num { font-size: 38px; }
  .range-value { font-size: 38px; }

  /* 求人カードは3列。5社すべて同じ幅・同じカラム基準（左揃え）にそろえる。
     5社だと最後の行が2枚になるが、通常のカード一覧と同じ並びなので
     1社だけ特別扱いに見えない（中央寄せや全幅化はしない）。 */
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .vs-table { font-size: 15px; }
  .vs-table th, .vs-table td { padding: 12px 16px; }
}

/* 印刷 */
@media print {
  .cta, .pr-bar { display: none; }
  body { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
