/*
 * ワークスタンド — 白×青
 * 白地に墨（--ink）。青（--blue）は主なボタン・リンク・選択中・ロゴ・見出しの強調だけ。
 * 赤は「急募」とエラー、緑は「積極採用中」と完了だけ。グラデーション・影は使わない（奥行きは1pxの枠の色の変化で表す）。
 * 書体は Noto Sans JP、大きな数字とロゴの英字だけ Inter。
 * 角丸：主なボタン・チップはピル、入力欄 10px、囲み 14px、カード 16px。
 * 余白は 8px 刻み（--s1〜）、文字の大きさは --fs-* の段階だけを使う。
 */
:root {
  /* 色 */
  --bg: #ffffff;
  --surface: #f4f4f7;       /* 薄いグレーの面（検索・要点・フッター・管理画面の地） */
  --surface-2: #fafbff;     /* 広告枠の面 */
  --ink: #0e0e10;
  --ink-2: #55555f;         /* 補足（白地で 7.4:1） */
  --ink-3: #8a8a94;         /* 重要でないラベルだけ（14px 以上） */
  --line: #ececf0;          /* 細い区切り・カードの枠 */
  --line-2: #d6d6de;        /* 入力欄・副ボタンの枠 */
  --line-on-surface: #e2e2e8;
  --blue: #2747ff;
  --blue-hover: #1834e6;
  --blue-tint: #eef1ff;
  --blue-line: #d9defc;
  --red: #d22c1f;           /* 白地・surface・red-tint の上の文字で AA（4.5:1 以上。tests/design-tokens.mjs） */
  --red-tint: #fff0ef;
  --green: #097c4d;         /* 白地・surface・green-tint の上の文字で AA（4.5:1 以上） */
  --green-tint: #e8f5ee;
  /* 会社アバターの地（どれも墨の文字で AA） */
  --tint-0: #e8ecff; --tint-1: #e3f3ec; --tint-2: #fcebe1; --tint-3: #efe8fa; --tint-4: #e2f1f6; --tint-5: #f3f0e4;

  /* 余白（8px 刻み） */
  --s-half: 4px; --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --gutter: 16px;

  /* 文字 */
  --fs-xs: 12px;  /* 注記だけ */
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 44px;

  /* 角丸 */
  --r-input: 10px; --r-panel: 14px; --r-card: 16px; --r-pill: 999px;

  --ease: 150ms ease;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  --latin: "Inter", "Noto Sans JP", "Hiragino Sans", sans-serif;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.75;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  margin: 0 0 .5em; line-height: 1.45; font-family: var(--font); font-weight: 700; color: var(--ink);
  font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase;
}
h1 { font-size: var(--fs-2xl); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: var(--fs-xl); letter-spacing: -.005em; }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(39, 71, 255, .35); text-underline-offset: .22em; transition: color var(--ease), text-decoration-color var(--ease); }
a:hover { color: var(--blue-hover); text-decoration-color: currentColor; }
img, svg { max-width: 100%; }
code { font-size: .9em; background: var(--surface); padding: 0 4px; border-radius: 4px; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); line-height: 1.7; }
.center { text-align: center; }
.mt { margin-top: var(--s5); }
.mt-sm { margin-top: var(--s4); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--bg); padding: var(--s1) 12px; border: 1px solid var(--ink); border-radius: var(--r-input); }
.skip:focus { left: var(--s1); top: var(--s1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 線のアイコン：文字のベースラインにそろえる */
.ico { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.14em; }
.ext .ico { margin-left: 4px; vertical-align: -.1em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.page { padding-top: var(--s3); padding-bottom: var(--s8); }
.page-title { font-weight: 900; font-size: var(--fs-xl); line-height: 1.4; letter-spacing: -.02em; margin: var(--s1) 0 var(--s2); }
.page-title em, .lead-title em { font-style: normal; color: var(--blue); }
.lead-text { font-size: var(--fs-md); max-width: 46em; }
.note { font-size: var(--fs-sm); background: var(--surface); border-radius: var(--r-input); padding: 12px var(--s2); }
.count { font-size: var(--fs-md); font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
@media (min-width: 760px) { .page { padding-top: var(--s4); } .page-title { font-size: var(--fs-2xl); } }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 64px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: var(--latin); font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1;
}
.wordmark:hover { color: var(--ink); }
/* ロゴ：カタカナの「ジョブピン」が主役、英字の JOBPIN は小さく添える（海外の同名サービスと区別するため） */
.wordmark-ja { font-family: var(--font); font-weight: 900; font-size: 21px; letter-spacing: .01em; }
.wordmark-en { align-self: center; margin-left: -2px; padding: 3px 6px 2px; border: 1px solid var(--line-2); border-radius: 4px;
  font-family: var(--latin); font-weight: 700; font-size: 10px; letter-spacing: .12em; color: var(--ink-2); line-height: 1; }
@media (max-width: 359px) { .wordmark-en { display: none; } }
.wordmark-mark { display: inline-block; width: 14px; height: 14px; flex: none; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: 0 2px 3px 1px;
  background: radial-gradient(circle at 50% 50%, #fff 0 24%, var(--blue) 27%); } /* ピンの形 */
.nav-toggle {
  min-height: 44px; padding: 0 var(--s2); font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); white-space: nowrap;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill); cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s1) var(--gutter) var(--s2);
}
.nav a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: var(--fs-md); }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  font-family: var(--latin); font-size: var(--fs-xs); font-weight: 700; line-height: 1; color: #fff; background: var(--blue); border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}
.nav .nav-post {
  margin-top: var(--s2); justify-content: center; border: 0; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 700;
}
.nav .nav-post:hover { color: #fff; background: #2a2a30; }
/* 横に並べるのは、項目が1行に収まる幅から（「求人を掲載したい方へ」「事業者の管理画面」を足して広くなった。SPEC §9-73 (1)）。それより狭い幅はメニューのボタン */
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .nav, .nav.is-open { display: flex; position: static; padding: 0; border: 0; gap: var(--s2); align-items: center; }
  .nav a { border: 0; font-size: var(--fs-sm); min-height: 40px; color: var(--ink-2); white-space: nowrap; transition: color var(--ease); }
  .nav a:hover { color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .nav .nav-post { margin: 0 0 0 var(--s1); min-height: 40px; padding: 0 18px; color: #fff; transition: background-color var(--ease); }
  .nav .nav-post:hover { color: #fff; }
}

/* ---------- お知らせ ---------- */
.flash { margin: var(--s2) 0 0; padding: 12px var(--s2); border-radius: var(--r-panel); background: var(--surface); font-size: var(--fs-md); color: var(--ink); }
.flash-error { background: var(--red-tint); }
.flash-error > strong:first-child { color: var(--red); }
.flash-success { background: var(--green-tint); }
.flash-info { background: var(--blue-tint); }
.flash a { font-weight: 700; }
.flash form { display: inline-block; margin-left: var(--s1); }
.pause-alert strong { display: block; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 44px; padding: 0 22px; font: inherit; font-size: var(--fs-md); font-weight: 700; line-height: 1.3;
  border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform 80ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active:not([aria-disabled="true"]) { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; vertical-align: 0; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-primary:active { background: #1229c4; }
.btn-secondary { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-secondary:active { background: var(--surface); }
.btn[aria-disabled="true"] { color: var(--ink-2); cursor: default; background: var(--surface); border-color: var(--surface); }
.btn-sm { min-height: 44px; padding: 0 var(--s2); font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; padding: 0 var(--s5); font-size: var(--fs-md); }
.btn-block { display: flex; width: 100%; }
.btn-text, .link-btn {
  font: inherit; font-size: var(--fs-sm); color: var(--ink-2); background: none; border: 0; padding: 0 var(--s-half); min-height: 44px;
  cursor: pointer; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: var(--line-2);
  transition: color var(--ease), text-decoration-color var(--ease);
}
.btn-text:hover, .link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.link-btn { color: var(--blue); text-decoration-color: rgba(39, 71, 255, .35); }
.link-btn:hover { color: var(--blue-hover); }
.link-btn.danger { color: var(--red); text-decoration-color: rgba(217, 45, 32, .35); }
.link-btn.strong { font-weight: 700; }
@media (min-width: 760px) { .btn-sm { min-height: 40px; } .link-btn { min-height: 32px; } }

/* ---------- 小さな表示 ---------- */
.row-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lbl { display: inline-flex; align-items: center; font-size: var(--fs-sm); line-height: 1.5; padding: 0; color: var(--ink); font-weight: 400; }
.lbl a { color: inherit; text-decoration: none; }
.lbl-ad {
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--bg); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
  padding: 0 6px; line-height: 20px; border-radius: 5px;
}
.lbl-urgent { background: var(--red); color: #fff; font-weight: 700; font-size: var(--fs-sm); padding: 0 7px; line-height: 22px; border-radius: 5px; }
.lbl-new { color: var(--blue); font-weight: 700; }
.lbl-hiring { color: var(--green); font-weight: 700; }
.lbl-plain { color: var(--ink); font-weight: 700; }
.lbl-type { color: var(--ink-2); }
/* 掲載の種類（人材紹介会社の求人・派遣）。広告と同じ枠の形で、文字は墨 */
.lbl-kind { border: 1px solid var(--ink); color: var(--ink); background: var(--bg); font-size: var(--fs-xs); font-weight: 700; padding: 0 6px; line-height: 20px; border-radius: 5px; }
.lbl-more { font-size: var(--fs-sm); color: var(--ink-2); align-self: center; }

/* 会社のアバター（頭文字・会社ごとに決まった地の色） */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px; background: var(--tint-0); color: var(--ink);
  font-weight: 700; font-size: var(--fs-md); line-height: 1;
}
.tint-1 { background: var(--tint-1); } .tint-2 { background: var(--tint-2); } .tint-3 { background: var(--tint-3); }
.tint-4 { background: var(--tint-4); } .tint-5 { background: var(--tint-5); }

/* ---------- フォーム ---------- */
.form { display: grid; gap: var(--s3); }
.form-boxed { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s3) var(--s2); }
.field { display: block; font-size: var(--fs-md); font-weight: 700; color: var(--ink); min-width: 0; }
.field > input, .field > select, .field > textarea { display: block; margin-top: var(--s1); }
.field > .hint, .field > .error { display: block; margin-top: var(--s-half); }
.field input, .field select, .field textarea,
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=search], input[type=number], select, textarea {
  font: inherit; font-size: var(--fs-md); font-weight: 400; color: var(--ink); background: var(--bg); letter-spacing: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-input); padding: 10px 14px; min-height: 48px; width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover, select:hover, textarea:hover { border-color: #b9b9c4; }
::placeholder { color: #6e6e78; opacity: 1; }
textarea { line-height: 1.7; resize: vertical; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2355555f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.req { font-size: var(--fs-xs); font-weight: 700; color: var(--blue); background: var(--blue-tint); padding: 1px 6px; margin-left: 6px; border-radius: 4px; vertical-align: 1px; }
.opt { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); background: var(--surface); padding: 1px 6px; margin-left: 6px; border-radius: 4px; vertical-align: 1px; }
.hint { font-size: var(--fs-sm); font-weight: 400; color: var(--ink-2); }
.error { font-size: var(--fs-sm); font-weight: 700; color: var(--red); }
/* 入力エラー：項目は赤い枠、フォームの上にエラーの一覧 */
[aria-invalid="true"], .field [aria-invalid="true"]:hover { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
[aria-invalid="true"]:focus { outline-color: var(--red); border-color: var(--red); }
.check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 1px; }
.error-summary { background: var(--red-tint); border: 2px solid var(--red); border-radius: var(--r-panel); padding: var(--s2); scroll-margin-top: 80px; }
.error-summary:focus { outline: 3px solid var(--red); outline-offset: 2px; }
.error-summary-title { margin: 0 0 var(--s1); font-weight: 700; color: var(--red); }
.error-summary ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.error-summary a { color: var(--red); font-weight: 700; text-decoration: underline; }
.check { display: block; position: relative; padding: 6px 0 6px 34px; font-size: var(--fs-md); font-weight: 400; min-height: 44px; cursor: pointer; line-height: 1.6; }
.check input { position: absolute; left: 0; top: 8px; width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--blue); }
.check.small { font-size: var(--fs-sm); }
.contract-warn { margin: var(--s2) 0 var(--s1); padding: 12px var(--s2); border-radius: var(--r-panel); background: var(--tint-2); font-size: var(--fs-sm); }
.contract-warn[hidden] { display: none; }
.contract-warn-title { margin: 0 0 var(--s-half); font-weight: 700; font-size: var(--fs-md); }
.contract-warn ul { margin: 0 0 var(--s1); padding-left: 1.2em; }
.contract-warn p.small { margin: 0; color: var(--ink-2); }
.contract-confirm { margin-top: var(--s2); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 var(--s2); }
.check-grid .check { min-height: 44px; padding-top: var(--s1); padding-bottom: var(--s1); }
.check-grid .check input { top: 10px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: var(--s1) 0 0; padding: var(--s3) 0 0; display: grid; gap: var(--s3); min-width: 0; }
legend { float: left; width: 100%; font-family: var(--font); font-weight: 700; font-size: var(--fs-lg); padding: 0; margin: 0; }
.form-row-2, .form-row-3 { display: grid; gap: var(--s2); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack { display: grid; gap: 12px; }
.inline-form { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 140px; }
.question-row { display: grid; gap: var(--s1); }
@media (min-width: 760px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
  .field-wide { grid-column: 1 / -1; }
  .form-boxed { padding: var(--s4); }
}

/* ---------- パンくず ---------- */
.breadcrumb { font-size: var(--fs-sm); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--line-2); }

/* ---------- トップ：見出しと検索 ----------
   スマートフォンでは最初の画面に「検索」と「最初の求人の頭」まで入るよう、見出しを小さく・余白を詰める */
.lead { padding: 20px 0 var(--s1); }
.lead-title {
  font-weight: 900; font-size: 22px; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 12px;
}
.lead-title + .lead-sub { margin: -6px 0 12px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.br-wide { display: none; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s1); background: var(--surface); border-radius: var(--r-panel); padding: var(--s1); }
.search-q, .search-btn { grid-column: 1 / -1; }
.search .field { margin: 0; }
.search .field input, .search .field select { margin: 0; border-color: var(--bg); min-height: 48px; font-size: var(--fs-md); }
.search .field select { padding-right: 28px; text-overflow: ellipsis; }
.search .field input:hover, .search .field select:hover { border-color: var(--line-2); }
.search .field input:focus, .search .field select:focus { border-color: var(--blue); }
.search-q { position: relative; }
.search-ico .ico { width: 18px; height: 18px; }
.search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); display: flex; pointer-events: none; }
.search-q input { padding-left: 44px; }
.search-btn { min-height: 48px; font-size: var(--fs-md); border-radius: var(--r-input); padding: 0 var(--s4); }
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s2); margin-top: 12px; }
.lead-facts { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.lead-facts strong { color: var(--ink); font-family: var(--latin); font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.02em; margin: 0 2px; }
.values { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: var(--fs-md); color: var(--ink); }
.biz-points { margin: 0 0 var(--s3); }
.seeker-trust { margin: var(--s2) 0 0; max-width: 40em; }
.seeker-trust li { padding: var(--s1) 0; }
.seeker-trust-note { margin: var(--s1) 0 0; max-width: 46em; }
.kyc-claim { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-input); background: var(--bg); line-height: 1.7; }
.values li { display: inline-flex; align-items: center; gap: var(--s1); }
.values .ico { width: 18px; height: 18px; color: var(--blue); vertical-align: 0; }
.lead-facts + .values { margin-top: var(--s1); }
.lead-meta .values { margin: 0; gap: 2px 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.lead-meta .values li { gap: var(--s-half); }
.lead-meta .values .ico { width: 16px; height: 16px; }
@media (max-width: 759px) {
  .search .field select { padding-left: 12px; padding-right: 28px; font-size: var(--fs-md); background-position: right 10px center; }
  .lead-meta .values li:nth-child(n+3) { display: none; } /* 狭い画面では1行に収める */
  .home-lists .list-col > .section:first-child { padding-top: var(--s3); }
}
@media (min-width: 760px) {
  .lead { padding: var(--s6) 0 var(--s2); }
  .lead-title { font-size: var(--fs-4xl); line-height: 1.25; letter-spacing: -.03em; margin-bottom: var(--s4); }
  .lead-title + .lead-sub { margin: calc(-1 * var(--s3)) 0 var(--s4); font-size: var(--fs-md); }
  .br-wide { display: inline; }
  .search { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; }
  .search-q, .search-btn { grid-column: auto; }
  .search .field input, .search .field select, .search-btn { min-height: 52px; }
  .lead-meta { gap: var(--s1) var(--s3); margin-top: var(--s2); }
  .lead-facts { font-size: var(--fs-md); }
  .lead-facts strong { font-size: var(--fs-xl); }
  .lead-meta .values { font-size: var(--fs-md); color: var(--ink); gap: var(--s1) var(--s3); }
  .lead-meta .values li { gap: var(--s1); }
  .lead-meta .values .ico { width: 18px; height: 18px; }
}

/* ---------- 見出し・セクション ---------- */
.section { padding: var(--s5) 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-half) var(--s2); margin-bottom: var(--s2); max-width: 760px; }
.section-head p { margin: 0; }
.section-head > a { font-size: var(--fs-md); }
.section-head .section-title { margin-bottom: 0; }
.section-title { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1) 12px; font-weight: 700; font-size: var(--fs-xl); letter-spacing: -.01em; line-height: 1.4; margin: 0 0 var(--s2); }
.section-title .lbl-ad { font-size: var(--fs-xs); }
.more-link { display: inline-flex; align-items: center; gap: var(--s-half); font-weight: 700; text-decoration: none; }
.more-link .ico { transition: transform var(--ease); }
.more-link:hover .ico { transform: translateX(2px); }

/* 分類（索引）：グループごとに丸いリンクを並べる */
.directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.directory > div { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.directory h3 { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); margin: 0 0 12px; line-height: 1.5; }
.directory ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.directory li a {
  display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; padding: 0 var(--s2);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4;
  white-space: nowrap; transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.directory li a:hover { border-color: var(--ink); color: var(--ink); }
.directory li a:active { background: var(--surface); }
.directory li a span { font-family: var(--latin); font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); }
.browse-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.browse-more { display: none; }
@media (max-width: 759px) {
  .section-index { padding-top: var(--s2); }
  .browse-head .section-title { font-size: var(--fs-md); margin: 0; }
  .browse-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-half); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
  .directory > div { padding: 12px 0; }
  /* 閉じているとき：職種だけを1行で横にスクロール */
  .browse:not(.is-open):not(:target) .directory { border-top: 0; }
  .browse:not(.is-open):not(:target) .dir-extra { display: none; }
  .browse:not(.is-open):not(:target) .dir-cat { padding: var(--s-half) 0 0; border-bottom: 0; }
  .browse:not(.is-open):not(:target) .dir-cat h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .browse:not(.is-open):not(:target) .dir-cat ul {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  .browse:not(.is-open):not(:target) .dir-cat ul::-webkit-scrollbar { display: none; }
  .browse:target:not(.is-open) .browse-more { display: none; } /* JS なしで開いたとき */
  .browse .dir-cat li a, .browse .dir-extra li a { font-size: var(--fs-sm); padding: 0 14px; }
}
@media (min-width: 760px) {
  .directory > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s3); align-items: start; }
  .directory h3 { margin: 0; line-height: 44px; }
  .directory li a { min-height: 40px; }
  .directory > div { padding: 20px 0; }
}

.employer-note p { margin-bottom: 12px; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.link-list li { min-height: 40px; display: flex; align-items: center; }
.link-list-col { display: block; }
.plain-ol { margin: 0; padding-left: 1.4em; }
.plain-ol li { margin-bottom: 6px; }
.two-col { display: grid; gap: 0 var(--s5); }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; } }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: var(--s2) 0 0; max-width: 640px; }
.figures div { background: var(--surface); border-radius: var(--r-panel); padding: var(--s2) 20px; }
.figures dt { font-size: var(--fs-sm); color: var(--ink-2); }
.figures dd { margin: 0; font-family: var(--latin); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }

/* ---------- 2カラム ---------- */
.layout-side { display: grid; gap: var(--s5); }
.list-col { min-width: 0; }
.sidebar { min-width: 0; display: grid; gap: var(--s2); align-content: start; }
@media (min-width: 1024px) {
  .layout-side { grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: var(--s5); }
  .sidebar-top { padding-top: var(--s5); }
  .home-lists > .sidebar { margin-top: 0; }
}
.side-section { border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; background: var(--bg); }
.side-title { font-family: var(--font); font-weight: 700; font-size: var(--fs-lg); margin-bottom: var(--s1); line-height: 1.45; }
.side-section > .lbl-ad { margin: 0 0 var(--s1); }
.side-section > :last-child { margin-bottom: 0; }
.aff-box { background: var(--surface-2); border-color: var(--blue-line); }
.aff-item { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--blue-line); text-decoration: none; color: var(--ink); font-size: var(--fs-md); }
.aff-item:first-of-type { border-top: 0; padding-top: 4px; }
.aff-item:hover { color: var(--ink); }
.aff-item strong { color: var(--blue); }
.aff-item:hover strong { text-decoration: underline; }
.aff-cta { font-size: var(--fs-sm); color: var(--ink-2); }
.house-ad { background: var(--surface-2); border-color: var(--blue-line); }
.alert-cond { background: var(--surface); padding: var(--s1) 12px; margin: 0; border-radius: var(--r-input); }
.alert-box .field { font-size: var(--fs-md); }
.alert-box { scroll-margin-top: 72px; }
.alert-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-input); font-size: var(--fs-sm); font-weight: 700; }
.alert-msg-success { background: var(--green-tint); }
.alert-msg-info { background: var(--blue-tint); }
.alert-msg-error { background: var(--red-tint); color: var(--red); }

/* ---------- 求人一覧（カード） ----------
 * 読む順：印 → 求人名 → 会社 → 給与 → 条件の1行 → こだわり条件。 */
.job-list { max-width: 760px; display: grid; gap: 12px; }
.job-row {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 20px var(--s2) var(--s2); transition: border-color var(--ease), background-color var(--ease);
}
.job-row:hover { border-color: var(--ink); }
.job-row:active { background: #fcfcfd; }
.job-row.is-pr { background: var(--surface-2); border-color: var(--blue-line); }
.job-row.is-pr:hover { border-color: var(--blue); }
.row-flags { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-sm); line-height: 1.5; min-height: 22px; }
.row-flags .lbl { font-size: var(--fs-sm); }
.row-flags .lbl-ad { font-size: var(--fs-xs); }
.row-date { margin-left: auto; color: var(--ink-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.row-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 12px; align-items: start; }
.row-title { min-width: 0; }
.row-title h3 { font-family: var(--font); font-weight: 700; font-size: var(--fs-lg); line-height: 1.5; letter-spacing: -.01em; margin: 0; }
.row-title h3 a { color: var(--ink); text-decoration: none; }
.job-row:hover .row-title h3 a { color: var(--ink); }
/* 行全体をクリック可能に（ボタンは上に重ねる） */
.row-title h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.row-title h3 a:focus-visible { outline: 0; }
.row-title h3 a:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 2px; }
.row-company { margin: 2px 0 0; font-size: var(--fs-md); color: var(--ink-2); line-height: 1.5; }
.row-kind { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink); line-height: 1.5; }
/* 求人ページ・応募フォームの「応募先は人材紹介会社です」「派遣会社が雇用し」 */
.kind-note { margin: var(--s2) 0; padding: 12px var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--bg); font-size: var(--fs-md); line-height: 1.7; }
.kind-note p { margin: 0; }
.kind-note p + p { margin-top: var(--s-half); font-size: var(--fs-sm); color: var(--ink-2); }
.contract-warn .type-switch, .type-switch { list-style: none; margin: 0 0 var(--s1); padding: 0; display: flex; flex-direction: column; gap: 4px; }
.type-switch li[hidden] { display: none; }
.row-salary { grid-column: 1 / -1; margin: 0; display: flex; align-items: baseline; gap: var(--s1); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.row-unit { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 400; }
.row-amount { white-space: nowrap; }
.row-salary .num { font-family: var(--latin); font-size: var(--fs-xl); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.row-salary .yen { font-size: var(--fs-sm); font-weight: 700; margin-left: 2px; }
.row-est { display: none; }
.row-meta { margin: 12px 0 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px var(--s2); }
.row-meta span { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.row-meta .ico { color: var(--ink-3); align-self: center; }
.row-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: var(--s2); }
.job-row .row-tags { flex: 1; min-width: 0; gap: 6px; }
.job-row .row-tags li { font-size: var(--fs-sm); line-height: 1.5; padding: 3px 10px; border-radius: 6px; background: var(--surface); color: #3a3a42; white-space: nowrap; }
.job-row.is-pr .row-tags li { background: #eef0f7; }
.job-row .row-tags .lbl-more { background: transparent; padding-left: 2px; color: var(--ink-2); }
.row-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--s1); flex: none; }
.cmp-btn, .fav-btn {
  font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); min-height: 44px; min-width: 44px; padding: 0 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease), transform 80ms ease;
}
.fav-btn { padding: 0; }
.cmp-btn .ico { width: 16px; height: 16px; vertical-align: 0; color: var(--ink-2); }
.fav-btn .ico { width: 18px; height: 18px; vertical-align: 0; color: var(--ink-2); }
.cmp-btn:hover, .fav-btn:hover { border-color: var(--ink); }
.cmp-btn:active, .fav-btn:active { transform: scale(.96); }
.cmp-btn[aria-pressed="true"] { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.cmp-btn[aria-pressed="true"] .ico { color: var(--blue); }
.fav-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); }
.fav-btn[aria-pressed="true"] .ico, .fav-btn-lg[aria-pressed="true"] .ico { fill: var(--blue); color: var(--blue); }
@media (min-width: 760px) {
  .job-row { padding: var(--s3); }
  .row-head { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--s2); }
  .row-salary { grid-column: 3; display: grid; justify-items: end; gap: 2px; text-align: right; min-width: 9em; }
  .row-unit { font-size: var(--fs-sm); line-height: 1.4; }
  .row-salary .num { font-size: var(--fs-2xl); }
  .row-est { display: block; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; white-space: nowrap; }
  .row-est-basis { display: block; }
  .row-meta, .row-foot { margin-left: 56px; }
  .cmp-btn, .fav-btn { min-height: 36px; min-width: 36px; }
  .cmp-btn { padding: 0 14px; }
}
/* 広告の枠（1画面に1つ。src/ad-slots.js）：いつも「広告」の印。画像は 3:1 の箱（読み込みで画面がずれない）。動き・影なし */
.ad-slot { margin: var(--s4) 0; padding: var(--s2); border: 1px solid var(--blue-line); border-radius: var(--r-card); background: var(--surface-2); min-width: 0; }
.ad-slot-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-half) var(--s1); margin: 0 0 var(--s1); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.ad-slot-name { font-weight: 700; color: var(--ink); min-width: 0; }
.ad-slot-link { display: block; color: var(--ink); text-decoration: none; }
.ad-slot-link:hover { color: var(--ink); }
.ad-slot-box { display: block; width: 100%; max-width: 720px; aspect-ratio: 3 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--bg); }
.ad-slot-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ad-slot-box-adsense { aspect-ratio: auto; height: 280px; }
.ad-slot-ins { display: block; width: 100%; height: 100%; }
.ad-slot-headline { display: block; margin-top: var(--s1); font-weight: 700; font-size: var(--fs-md); line-height: 1.6; }
.ad-slot-link:hover .ad-slot-headline { color: var(--blue); text-decoration: underline; }
.ad-slot-foot { margin: var(--s1) 0 0; color: var(--ink-2); }
.ad-preview { max-width: 600px; }
.check-list { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: var(--s1); }

/* 空のとき：短い説明と1つの行動 */
.empty {
  display: grid; justify-items: center; text-align: center; gap: var(--s1);
  padding: var(--s5) var(--s3); border: 1px dashed var(--line-2); border-radius: var(--r-card); background: var(--bg);
}
.empty > * { margin: 0; }
.empty .muted { max-width: 30em; font-size: var(--fs-md); }
.empty .btn { margin-top: var(--s1); }
.empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--blue-tint); color: var(--blue); margin-bottom: var(--s-half); }
.empty-ico .ico { width: 24px; height: 24px; vertical-align: 0; }
.empty-title { font-weight: 700; font-size: var(--fs-lg); line-height: 1.5; text-wrap: balance; word-break: auto-phrase; }

/* ---------- 一覧：絞り込み ---------- */
.filter-panel { background: var(--surface); border-radius: var(--r-panel); padding: var(--s2); margin-bottom: var(--s2); }
.filter-panel .field input, .filter-panel .field select { border-color: var(--bg); }
.filter-panel .field input:hover, .filter-panel .field select:hover { border-color: var(--line-2); }
.filter-panel .field input:focus, .filter-panel .field select:focus { border-color: var(--blue); }
.filter-grid { display: grid; gap: 12px; }
.filter-features { margin-top: var(--s2); border-top: 1px solid var(--line-on-surface); padding-top: 12px; gap: var(--s1); }
.filter-features legend { font-family: var(--font); font-weight: 700; font-size: var(--fs-md); padding: 0; }
.filter-features legend .muted { font-weight: 400; font-size: var(--fs-sm); }
.filter-submit { margin-top: 12px; }
.sheet-head { display: none; }
@media (min-width: 760px) {
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-submit { display: flex; justify-content: flex-end; }
  .filter-panel { padding: 20px var(--s3); }
}
@media (min-width: 1024px) {
  .filter-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr; }
  .filter-features { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--s2); align-items: start; }
  .filter-features legend { width: auto; padding-top: 10px; }
  .filter-features legend .muted { display: block; line-height: 1.5; }
  .filter-features .check-grid { grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); }
  .check-grid .check { min-height: 40px; font-size: var(--fs-md); padding-top: 6px; padding-bottom: 6px; }
  .check-grid .check input { top: 9px; }
}

/* 選んでいる条件 */
.filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) 12px; margin: 0 0 var(--s3); font-size: var(--fs-sm); }
.filter-summary-label { font-weight: 700; color: var(--ink-2); }
.filter-summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.filter-summary li a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  color: var(--blue); font-weight: 700; text-decoration: none; background: var(--blue-tint); border: 1px solid transparent; border-radius: var(--r-pill);
  transition: border-color var(--ease);
}
.filter-summary li a:hover { border-color: var(--blue); color: var(--blue); }
.filter-summary .x { font-size: var(--fs-md); line-height: 1; font-weight: 400; }
.filter-summary-clear { font-size: var(--fs-sm); min-height: 36px; display: inline-flex; align-items: center; color: var(--ink-2); text-decoration-color: var(--line-2); }
.filter-summary-clear:hover { color: var(--ink); }
@media (max-width: 759px) { .filter-summary li a, .filter-summary-clear { min-height: 44px; } }

/* 件数・並び順 */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-half) var(--s2); margin-bottom: 12px; max-width: 760px; }
.list-count { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.list-count strong { font-family: var(--latin); font-weight: 800; font-size: var(--fs-2xl); letter-spacing: -.03em; color: var(--ink); margin-right: 4px; line-height: 1.2; }
@media (min-width: 760px) { .list-count strong { font-size: var(--fs-3xl); } }
.sort-bar { display: flex; align-items: center; gap: 0 var(--s2); font-size: var(--fs-sm); flex-wrap: wrap; }
.sort-bar a, .sort-bar strong { display: inline-flex; align-items: center; min-height: 44px; }
.sort-bar a { color: var(--ink-2); text-decoration: none; transition: color var(--ease); }
.sort-bar a:hover { color: var(--ink); }
.sort-bar strong { color: var(--ink); font-weight: 700; }
.sort-note { margin: 0 0 12px; }

/* 学生ページのよく使う条件 */
.quick-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: var(--s3) 0 var(--s2); }
.quick-toggles > .muted { width: 100%; font-weight: 700; }
.toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s2); font-size: var(--fs-sm);
  color: var(--ink); text-decoration: none; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.toggle:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.toggle.on { font-weight: 700; background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.toggle.on::before { content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
@media (min-width: 760px) { .quick-toggles > .muted { width: auto; margin-right: var(--s1); } }

/* ページ送り */
.pagination { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s4) 0 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg); color: var(--ink); text-decoration: none; font-family: var(--latin); font-weight: 700; font-size: var(--fs-md);
  font-variant-numeric: tabular-nums; transition: border-color var(--ease);
}
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a[rel] { font-family: var(--font); }

/* ---------- 全画面・下からのシート（スマートフォン） ---------- */
.sheet-title { font-family: var(--font); font-size: var(--fs-lg); font-weight: 700; margin: 0; }
.sheet-list { list-style: none; margin: 0 0 12px; padding: 0; }
.sheet-list li { border-bottom: 1px solid var(--line); }
.sheet-list a, .sheet-list strong { display: flex; align-items: center; min-height: 52px; font-size: var(--fs-md); }
.sheet-list a { color: var(--ink); text-decoration: none; }
.sheet-list strong { color: var(--blue); }
.sheet-bottom { display: none; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(24px); opacity: 0; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (max-width: 759px) {
  .sheet { display: none; }
  .sheet.is-open, .sheet:target {
    display: block; position: fixed; inset: 0; z-index: 120; margin: 0; border: 0; border-radius: 0;
    background: var(--bg); overflow-y: auto; padding: 0 var(--gutter) var(--s3); overscroll-behavior: contain;
    animation: sheet-in 200ms ease-out;
  }
  .sheet.is-closing { animation: sheet-out 180ms ease-in forwards; }
  .sheet.sheet-bottom.is-open, .sheet.sheet-bottom:target { top: auto; max-height: 75vh; border-radius: 20px 20px 0 0; animation-name: sheet-up; }
  .sheet.sheet-bottom.is-closing { animation: sheet-down 180ms ease-in forwards; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; background: var(--bg); padding: var(--s1) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s2); min-height: 60px; }
  .filter-panel.is-open, .filter-panel:target { padding-bottom: 0; }
  .filter-panel.is-open .field input, .filter-panel.is-open .field select, .filter-panel:target .field input, .filter-panel:target .field select { border-color: var(--line-2); }
  .filter-panel.is-open .filter-features, .filter-panel:target .filter-features { border-top-color: var(--line); }
  .filter-panel.is-open .filter-submit, .filter-panel:target .filter-submit {
    position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 12px 0 0; border-top: 1px solid var(--line);
  }
  .filter-panel .filter-submit .btn { width: 100%; }
}
html.sheet-open { overflow: hidden; }
html.sheet-open body::after, html.sheet-closing body::after { content: ""; position: fixed; inset: 0; z-index: 110; background: rgba(14, 14, 16, .4); animation: fade-in 200ms ease-out; }
html.sheet-closing:not(.sheet-open) body::after { animation: fade-out 180ms ease-in forwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ---------- 画面下の固定バー ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; }
.dock-bar { display: flex; gap: var(--s1); align-items: center; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.dock-bar .btn { flex: 1; }
.dock-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; font-family: var(--latin); font-size: var(--fs-xs); font-weight: 700; color: #fff; background: var(--blue); border-radius: var(--r-pill); }
.dock-salary { flex: 1; font-family: var(--latin); font-weight: 800; font-size: var(--fs-md); line-height: 1.35; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.dock-apply .btn { flex: 0 0 auto; padding: 0 var(--s4); }
.dock-jobform span { flex: 1; font-weight: 700; }
@media (min-width: 760px) { .dock-list, .dock-apply { display: none; } }
@media (min-width: 1024px) { .dock-jobform { display: none; } }
.cmp-tray { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
.cmp-tray-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.cmp-tray-text { margin: 0; flex: 1; font-size: var(--fs-md); }
.cmp-tray-text strong { font-family: var(--latin); font-weight: 800; color: var(--blue); }

/* ---------- 求人詳細 ---------- */
.job-detail { min-width: 0; }
.job-detail-head { padding: var(--s2) 0 var(--s3); }
.job-detail-head .row-tags { margin-bottom: 12px; gap: 6px 12px; }
.job-detail-head .row-tags .lbl { font-size: var(--fs-sm); }
.job-kicker { margin: 0 0 var(--s1); font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.job-detail-head h1 { font-size: var(--fs-2xl); font-weight: 900; line-height: 1.4; letter-spacing: -.02em; margin-bottom: var(--s2); }
.job-company-lg { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s3); }
.job-company-lg p { margin: 0; display: grid; line-height: 1.5; }
.job-company-lg a { font-weight: 700; color: var(--ink); text-decoration: none; }
.job-company-lg a:hover { text-decoration: underline; }
.job-company-loc { font-size: var(--fs-sm); color: var(--ink-2); display: inline-flex; gap: 6px; align-items: baseline; }
.job-company-loc .ico { align-self: center; color: var(--ink-3); }
.job-head-actions { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; }
.fav-btn-lg .ico, .cmp-btn-lg .ico { color: var(--ink-2); }
.cmp-btn-lg[aria-pressed="true"], .fav-btn-lg[aria-pressed="true"] { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.cmp-btn-lg[aria-pressed="true"] .ico { color: var(--blue); }
@media (min-width: 760px) { .job-detail-head h1 { font-size: var(--fs-3xl); line-height: 1.35; } }

/* 要点 */
.keyfacts { background: var(--surface); border-radius: var(--r-card); padding: 20px 20px 12px; margin: 0 0 var(--s1); }
.keyfacts h2 { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 var(--s1); }
.keyfacts dl { margin: 0; }
.keyfacts dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--s2); padding: 12px 0; border-top: 1px solid var(--line-on-surface); }
.keyfacts dt { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; line-height: 1.7; display: flex; gap: var(--s1); align-items: flex-start; }
.keyfacts dt .ico { width: 16px; height: 16px; margin-top: 4px; color: var(--ink-2); }
.keyfacts dd { margin: 0; font-size: var(--fs-md); line-height: 1.6; }
.keyfacts .kf-salary dd { font-family: var(--latin); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.35; }
.na { color: var(--ink-2); }
/* 深夜（22時〜翌5時）の時給：基本の時給（大きい数字）のすぐ下に、小さく */
.night-line { display: block; flex-basis: 100%; font-family: var(--font); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; color: var(--ink-2); line-height: 1.6; white-space: normal; }
.night-note { margin: var(--s1) 0 0; font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-2); }
.night-pay { margin-top: var(--s2); }
.keyfacts dd.na { font-family: var(--font); font-size: var(--fs-md); font-weight: 400; letter-spacing: 0; }
@media (min-width: 760px) { .keyfacts { padding: var(--s3) var(--s4) var(--s2); } .keyfacts dl div { grid-template-columns: 9em minmax(0, 1fr); } }

/* 月収の目安 */
.estimate { margin-top: var(--s1); padding: var(--s2); background: var(--bg); border-radius: var(--r-panel); margin-bottom: var(--s1); }
.estimate-title { font-weight: 700; font-size: var(--fs-md); margin: 0 0 var(--s1); }
.estimate-title .muted { font-weight: 400; font-size: var(--fs-sm); margin-left: 4px; }
.estimate-calc { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: 0 0 var(--s1); font-size: var(--fs-md); }
.estimate-calc label { display: inline-flex; align-items: center; gap: 6px; }
.estimate-calc input { width: 4.4em; text-align: right; padding: 6px 10px; min-height: 44px; font-variant-numeric: tabular-nums; }
.estimate-calc output { font-family: var(--latin); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.estimate p.muted { margin-bottom: 0; }

.job-section { padding: var(--s4) 0 var(--s1); border-top: 1px solid var(--line); margin-top: var(--s4); }
.job-section > h2 { font-size: var(--fs-xl); font-weight: 700; margin-bottom: var(--s2); }
.job-tags { border-top: 0; padding-top: var(--s2); margin-top: 0; }
.job-tags .row-tags { gap: var(--s1); }
.job-tags .lbl a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); transition: background-color var(--ease); }
.job-tags .lbl a:hover { background: #e9e9ee; }
.tag-line { margin: 12px 0 0; }
.prose { font-size: var(--fs-md); line-height: 1.9; max-width: 40em; }
.job-dates { margin-top: var(--s3); }
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: transparent; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table thead th { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; padding-top: 12px; padding-bottom: 12px; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tfoot th, .table tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: 700; }
.table .num, .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td a strong { color: var(--ink); }
.table-kv { border-top: 1px solid var(--line); }
.table-kv th { width: 30%; font-weight: 700; color: var(--ink-2); font-size: var(--fs-sm); padding-left: 0; }
.table-kv td { font-size: var(--fs-md); }
.table-kv tbody tr:last-child > *, .table-kv tr:last-child > * { border-bottom: 1px solid var(--line); }
.table-sm th, .table-sm td { padding: 10px 12px; font-size: var(--fs-sm); }
/* 項目と内容の表：狭い画面では項目を上に積む */
@media (max-width: 599px) {
  .table-kv, .table-kv tbody, .table-kv tr, .table-kv th, .table-kv td { display: block; width: auto; }
  .table-kv th { border-bottom: 0; padding: 14px 0 2px; }
  .table-kv td { padding: 0 0 14px; }
  .table-kv tr { border-bottom: 1px solid var(--line); }
  .table-kv tr > * { border-bottom: 0 !important; }
}

/* 応募 */
.apply-section { scroll-margin-top: var(--s2); }
.flow { list-style: none; counter-reset: step; margin: 0 0 var(--s2); padding: 0; display: grid; gap: var(--s1); }
.flow li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 14px var(--s2); background: var(--surface); border-radius: var(--r-panel); align-items: start; }
.flow li::before {
  content: counter(step); grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: 1px;
  font-family: var(--latin); font-weight: 800; font-size: var(--fs-sm); color: #fff; background: var(--blue); border-radius: var(--r-pill);
}
.flow strong { font-size: var(--fs-md); line-height: 1.8; }
.flow span { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3, 1fr); } .flow li { padding: var(--s2) 20px; } }
.response-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s1); font-size: var(--fs-md); padding: 12px var(--s2); background: var(--green-tint); border-radius: var(--r-panel); }
.response-note .muted { margin-left: 0; }
.apply-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s3) var(--s2); }
.apply-form .check .muted { display: block; font-size: var(--fs-sm); }
.apply-form > .btn-lg { justify-self: start; min-width: 15em; }
.remember-note { margin: 0; font-size: var(--fs-md); background: var(--blue-tint); border-radius: var(--r-input); padding: 4px 6px 4px 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s-half); }
@media (min-width: 760px) { .apply-form { padding: var(--s4); } }
@media (max-width: 759px) { .apply-form > .btn-lg { justify-self: stretch; } }

.owner-info .kv { margin: 0 0 var(--s2); }
.kv { border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); }
.kv dt { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 700; line-height: 1.75; }
.kv dd { margin: 0; min-width: 0; }
.report { margin-top: 12px; }
.report summary { cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2); min-height: 44px; display: flex; align-items: center; }
.report summary:hover { color: var(--ink); }
.report form { margin-top: var(--s1); max-width: 420px; }
.sticky-apply { position: sticky; top: var(--s2); display: grid; gap: var(--s1); }
.sticky-apply p { margin: 0; }
.side-salary { font-family: var(--latin); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; font-variant-numeric: tabular-nums; margin-bottom: var(--s1) !important; }

/* ---------- 比べる ---------- */
.compare-wrap { overflow-x: auto; max-width: 100%; margin: var(--s2) 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-card); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--bg); font-size: var(--fs-sm); table-layout: fixed; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 14px 12px; vertical-align: top; text-align: left; }
.compare-table tr > :last-child { border-right: 0; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { background: var(--bg); font-weight: 400; }
.compare-table tbody th { width: 8.5em; background: var(--surface); font-size: var(--fs-sm); color: var(--ink-2); position: sticky; left: 0; z-index: 1; }
.compare-corner { width: 8.5em; background: var(--surface) !important; position: sticky; left: 0; z-index: 2; }
.compare-title { display: block; font-weight: 700; font-size: var(--fs-lg); line-height: 1.5; margin: 4px 0 var(--s1); color: var(--ink); text-decoration: none; }
.compare-title:hover { color: var(--blue); }
.compare-actions { display: flex; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.compare-actions a { font-weight: 700; }
.compare-salary { font-family: var(--latin); font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.compare-table td.na { font-size: var(--fs-sm); }
.compare-table.cols-1 { min-width: 0; }
@media (max-width: 759px) { .compare-table tbody th, .compare-corner { width: 6.5em; } .compare-table { min-width: 600px; } }

/* ---------- 企業ページ ---------- */
.company-head { padding: 0 0 var(--s1); }
.company-info { background: var(--surface); border-radius: var(--r-card); padding: 20px var(--s3) var(--s1); margin-bottom: var(--s4); }
.company-info h2 { font-size: var(--fs-lg); }
.company-info .kv { border-top-color: var(--line-on-surface); }
.company-info .kv div { border-bottom-color: var(--line-on-surface); }
.company-info .kv div:last-child { border-bottom: 0; }

/* ---------- 料金 ---------- */
/* いちばん大事な料金を1つの囲みに（大きな数字・チェックの行・主ボタン1つ） */
.price-card { border: 1px solid var(--line-2); border-radius: var(--r-card); padding: var(--s3) var(--s2); margin: var(--s3) 0 var(--s2); }
.price-card-label { font-size: var(--fs-md); font-weight: 700; color: var(--ink-2); margin: 0; }
.price-big { margin: 0; font-family: var(--latin); font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.price-big-unit { font-family: var(--font); font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; margin-left: 2px; }
.price-big-ex { margin: 0 0 var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.check-lines { list-style: none; margin: 0; padding: 0; }
.check-lines li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-md); line-height: 1.7; }
.check-lines li:last-child { border-bottom: 1px solid var(--line); }
.check-lines .ico { margin-top: 4px; color: var(--ink); }
.check-lines .muted { display: inline-block; font-size: var(--fs-sm); }
/* 一覧の中の「くわしい決まり」（.more）：白い面の上なので枠を見せる */
.check-lines .more { margin-top: var(--s1); }
.check-lines .more > summary { min-height: 48px; padding-top: var(--s1); padding-bottom: var(--s1); border-color: var(--line-2); }
.check-lines .more > summary:hover { border-color: var(--ink); }
.check-lines .more-body { padding: 12px 0 0; }
.check-lines .more-body p { margin: 0 0 var(--s1); }
.campaign-note { margin: 0 0 var(--s2); padding: var(--s2); background: var(--blue-tint); border: 1px solid var(--blue-line); border-radius: var(--r-panel); font-size: var(--fs-md); line-height: 1.7; }
.campaign-note strong { color: var(--blue); }
.price-card-cta { margin: var(--s3) 0 var(--s1); }
.price-card-cta .btn { width: 100%; }
.price-card-note { margin: 0; }
@media (min-width: 760px) {
  .price-card { padding: var(--s4); }
  .price-card-cta .btn { width: auto; }
}
/* お支払いまでの流れ：番号つきの縦の一覧（カードにしない） */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 var(--s3) 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  font-family: var(--latin); font-weight: 800; font-size: var(--fs-sm); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 8px; border-left: 1px solid var(--line-2); }
.steps strong { display: block; font-size: var(--fs-md); line-height: 1.8; }
.steps span { display: block; color: var(--ink-2); line-height: 1.7; }
/* 料金の例 */
.price-examples th[scope=row] { font-weight: 700; color: var(--ink); }
.price-examples .ex-detail { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--ink-2); }
.price-examples .ex-amount { display: block; font-family: var(--latin); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
.price-examples .tax-ex { display: block; }
.price-examples th, .price-examples td { padding-left: 0; }
.price-examples td.num { padding-right: 0; }
.plain-ul { margin: 0 0 var(--s2); padding-left: 1.2em; }
.plain-ul li { margin-bottom: var(--s1); }
.faq details > p:last-child { margin-bottom: var(--s2); }
/* 人材紹介会社の料金：自社の求人の料金と分けて、最後に控えめに */
.pricing-agency { margin-top: var(--s6); border-top: 1px solid var(--line); }
.pricing-agency .section-title { font-size: var(--fs-lg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; min-height: 56px; display: flex; align-items: center; padding: var(--s1) 0; list-style: none; justify-content: space-between; gap: var(--s2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--latin); font-weight: 700; font-size: 20px; color: var(--ink-2); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 var(--s2); font-size: var(--fs-md); }

/* ---------- 文書ページ ---------- */
.prose-page { line-height: 1.9; }
.prose-page h2 { font-size: var(--fs-xl); font-weight: 700; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); }
.prose-page ul, .prose-page ol { padding-left: 1.5em; }
.prose-page li { margin-bottom: 6px; }
.alert-status { background: var(--surface); border-radius: var(--r-card); padding: var(--s3); }

/* ---------- ログイン等 ---------- */
.auth { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 480px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s3) 20px; }
.auth-card h1 { font-size: var(--fs-2xl); }
@media (min-width: 760px) { .auth-card { padding: var(--s5); } }

/* ---------- 事業者・運営画面（薄いグレーの地に白いカード） ---------- */
.is-console main { background: var(--surface); }
.is-console .site-footer { margin-top: 0; border-top: 1px solid var(--line-on-surface); }
.is-console .page { padding-bottom: var(--s10); }
.is-console .auth-card { border-color: var(--bg); }
.is-console .table-wrap { background: var(--bg); border-radius: var(--r-panel); padding: 0 var(--s1); }
.is-console .empty { background: var(--bg); }
.is-console .flash { background: var(--bg); }
.is-console .flash-error { background: var(--red-tint); }
.is-console .flash-info { background: var(--blue-tint); }
.is-console .note, .is-console code { background: var(--bg); }

.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.dash-head form { margin: 0; }
.dash-head > h1, .dash-head > div:first-child { flex: 1 1 auto; }
.dash-head > .breadcrumb { flex: 1 1 0; min-width: 0; margin: 0; }
.dash-head > .breadcrumb + .dash-actions .btn-text { min-height: 0; padding-top: 0; }
.dash-actions { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; }
.billing-panel { display: grid; gap: 12px; margin: var(--s2) 0 var(--s3); }
.billing-panel > div { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--bg); border-radius: var(--r-card); font-size: var(--fs-md); min-width: 0; }
.billing-panel strong { font-family: var(--latin); font-weight: 800; font-size: var(--fs-xl); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.billing-panel strong small { font-family: var(--font); font-weight: 400; font-size: var(--fs-sm); letter-spacing: 0; }
.billing-panel form { margin: 0; }
.billing-panel .link-btn { padding: 0; min-height: 32px; text-align: left; align-self: flex-start; }
.billing-panel .lbl { align-self: flex-start; }
@media (min-width: 760px) { .billing-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .billing-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.meter { display: block; height: 6px; background: var(--surface); border-radius: var(--r-pill); overflow: hidden; margin: 2px 0 4px; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: var(--r-pill); }
.cap-form select { width: auto; flex: 1 1 140px; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
.dash-links { margin: var(--s2) 0; }
.toggles { min-width: 160px; }
.toggles form { margin: 0 0 6px; }
.toggles .small { display: block; margin-bottom: 6px; }
.toggle-btn {
  font: inherit; font-size: var(--fs-sm); min-height: 36px; padding: 0 12px; cursor: pointer; width: 100%; text-align: left;
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.toggle-btn:hover { border-color: var(--ink); color: var(--ink); }
.toggle-btn.on { color: var(--blue); background: var(--blue-tint); border-color: var(--blue); font-weight: 700; }
.toggle-btn.on.urgent { color: var(--red); background: var(--red-tint); border-color: var(--red); }
.actions { white-space: nowrap; }
.actions a, .actions form { display: block; margin: 0 0 4px; font-size: var(--fs-sm); }
.actions .link-btn { font-size: var(--fs-sm); padding: 0; min-height: 30px; }
.status { display: inline-flex; align-items: center; font-size: var(--fs-sm); font-weight: 700; padding: 0 var(--s1); line-height: 24px; border-radius: 6px; background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.is-console .app-card .status, .is-console .table .status { background: var(--surface); }
.s-live, .st-hired { color: var(--green) !important; background: var(--green-tint) !important; }
.s-pending_review, .st-interview, .st-contacted { color: var(--blue) !important; background: var(--blue-tint) !important; }
.s-rejected { color: var(--red) !important; background: var(--red-tint) !important; }
.st-rejected, .s-closed, .st-declined { color: var(--ink-2); }
.st-new { color: var(--red) !important; background: var(--red-tint) !important; }
.badge-card { background: var(--bg); border-radius: var(--r-card); padding: var(--s3); margin-top: var(--s4); }
.badge-card textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--fs-sm); }

/* 事業者ホーム */
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dash-id { min-width: 0; }
.dash-kicker { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.dash-name { margin: 2px 0 0; font-size: var(--fs-xl); font-weight: 900; line-height: 1.4; letter-spacing: -.01em; }
.dash-menu { position: relative; flex: none; }
.dash-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 var(--s2);
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill); cursor: pointer;
  transition: border-color var(--ease);
}
.dash-menu > summary::-webkit-details-marker { display: none; }
.dash-menu > summary:hover { border-color: var(--ink); }
.dash-menu > summary .ico { transform: rotate(90deg); transition: transform var(--ease); }
.dash-menu[open] > summary .ico { transform: rotate(-90deg); }
.dash-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-panel);
}
.dash-menu-list a, .dash-menu-list button {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r-input);
  font: inherit; font-size: var(--fs-md); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left;
}
.dash-menu-list a:hover, .dash-menu-list button:hover { background: var(--surface); color: var(--ink); }
.dash-menu-list form { margin: 0; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.dash-menu-list button { color: var(--ink-2); }

.home-grid { display: grid; gap: var(--s3); margin-top: var(--s3); }
.home-main, .home-side { min-width: 0; }
.home-block { margin-top: var(--s4); }
.home-h { font-family: var(--font); font-weight: 700; font-size: var(--fs-lg); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.home-h a { font-size: var(--fs-sm); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.home-h a:hover { text-decoration: underline; }
.review-note { margin: 12px 0 0; }
.block-empty { padding: 20px; background: var(--bg); border-radius: var(--r-panel); margin: 0; }

/* 今日やること：いまの1件を大きく、残りはチェックリスト */
.today { background: var(--bg); border-radius: var(--r-card); padding: var(--s2); scroll-margin-top: var(--s2); }
.today-head { display: grid; gap: 10px; margin-bottom: var(--s2); }
.today-head h2 { margin: 0; font-size: var(--fs-lg); font-weight: 900; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.today-left { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.today-left b { font-family: var(--latin); font-size: var(--fs-xl); font-weight: 800; color: var(--blue); margin: 0 2px; }
.today-progress { display: flex; align-items: center; gap: 12px; }
.today-bar { flex: 1 1 auto; height: 6px; background: var(--surface); border-radius: var(--r-pill); overflow: hidden; }
.today-bar i { display: block; height: 100%; background: var(--blue); border-radius: var(--r-pill); transition: width 400ms ease; }
.today-count { flex: none; font-size: var(--fs-sm); color: var(--ink-2); }
.today-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; background: var(--green-tint); border-radius: var(--r-input); font-size: var(--fs-sm); line-height: 1.6; }
.today-note .ico { color: var(--green); width: 18px; height: 18px; margin-top: 1px; }

.task { border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: var(--s2); transition: opacity 160ms ease, transform 160ms ease; }
.task.is-leaving { opacity: 0; transform: translateY(-6px); }
.task.is-entering { opacity: 0; transform: translateY(8px); }
.task-billing { border-color: var(--red); background: var(--red-tint); }
.task-kicker { margin: 0 0 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--blue); }
.task-billing .task-kicker { color: var(--red); }
.task-title { margin: 0 0 8px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.5; }
.task-title:focus { outline: none; }
.task-meta { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.task-quote { margin: 0 0 12px; padding: 12px var(--s2); background: var(--surface); border-radius: var(--r-input); font-size: var(--fs-sm); line-height: 1.75; color: var(--ink); }
.task-facts { display: flex; flex-wrap: wrap; gap: 4px var(--s2); margin: 0 0 var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.task-body { margin: 0 0 var(--s2); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.task-hint { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; text-align: center; }
.task-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); margin: 0; }
.task-actions > :first-child, .task-actions > input[type=hidden] + * { grid-column: 1 / -1; }
.task-actions form { margin: 0; display: grid; }
.task-actions .btn { width: 100%; min-height: 48px; padding: 0 12px; }
.task-actions .btn-primary { min-height: 52px; }
.task-more { margin: 12px 0 0; font-size: var(--fs-sm); text-align: center; }
.task-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.task-later { margin: 4px 0 -8px; text-align: center; }
.task-later .btn-text { font-size: var(--fs-sm); }

.today-clear { display: flex; gap: var(--s2); align-items: flex-start; padding: 20px; background: var(--surface-2); border: 1px solid var(--blue-line); border-radius: var(--r-panel); }
.today-clear-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.today-clear-mark .ico { width: 22px; height: 22px; }
.today-clear-title { margin: 6px 0 4px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.5; }
.today-clear-body { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

.todo-list { list-style: none; margin: var(--s2) 0 0; padding: 0; border-top: 1px solid var(--line); }
.todo-list li { border-bottom: 1px solid var(--line); }
.todo-list li:last-child { border-bottom: 0; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px; color: var(--ink); text-decoration: none; font-size: var(--fs-md); line-height: 1.5; }
a.check-row:hover { color: var(--blue); }
.check-box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--bg); }
a.check-row:hover .check-box { border-color: var(--blue); }
.check-label { flex: 1 1 auto; min-width: 0; }
.check-go { flex: none; color: var(--ink-3); display: inline-flex; }
.is-done .check-box { background: var(--green); border-color: var(--green); color: #fff; }
.is-done .check-box .ico { width: 14px; height: 14px; stroke-width: 2.5; }
.is-done .check-label { color: var(--ink-2); } /* 済んだ行も読める濃さに（済みは取り消し線と「済」の印で分かる） */
.is-done s { text-decoration-thickness: 1px; }
.check-done { flex: none; font-size: var(--fs-sm); font-weight: 700; color: var(--green); background: var(--green-tint); border-radius: 6px; padding: 0 8px; line-height: 24px; }
.today-snoozed { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* 新しい応募 */
.new-apps { list-style: none; margin: 0 0 var(--s1); padding: var(--s-half) 20px; background: var(--bg); border-radius: var(--r-panel); }
.new-apps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); align-items: center; }
.new-apps li:last-child { border-bottom: 0; }
.new-apps .who { font-weight: 700; }
.new-apps .who a { color: var(--ink); text-decoration: none; }
.new-apps .who a:hover { color: var(--blue); text-decoration: underline; }
/* 行のどこを押しても応募を開ける（名前のリンクは文字の高さしかないので、押せる範囲を行いっぱいに広げる） */
.new-apps li { position: relative; }
.new-apps .who a::after { content: ""; position: absolute; inset: 0; }
.new-apps .what { grid-column: 1; color: var(--ink-2); font-size: var(--fs-sm); }
.new-apps .when { grid-column: 1; color: var(--ink-2); font-size: var(--fs-sm); }
.new-apps .status { grid-column: 2; grid-row: 1 / span 3; justify-self: end; }

/* 掲載中の求人（小さなカード） */
.home-side { background: var(--bg); border-radius: var(--r-card); padding: 20px; align-self: start; }
.home-side .block-empty { padding: 0 0 var(--s2); }
.jobs-mini { list-style: none; margin: 0 0 var(--s2); padding: 0; }
.job-mini { padding: var(--s2) 0; border-top: 1px solid var(--line); }
.job-mini-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-mini-title { min-width: 0; color: var(--ink); font-weight: 700; font-size: var(--fs-md); line-height: 1.6; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-mini-title:hover { color: var(--blue); text-decoration: underline; }
.job-mini-head .status { flex: none; margin-top: 2px; }
.job-mini-meta { margin: 4px 0 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.job-mini-meta b { font-family: var(--latin); font-weight: 800; color: var(--ink); }
.job-mini-meta .status { vertical-align: 1px; }
.job-mini-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--s1); }
.job-mini-tools form { margin: 0; }
.job-mini-tools .toggle-btn { min-height: 44px; text-align: center; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-mini-tools .btn-sm { min-height: 44px; padding: 0 var(--s2); }
.job-mini-tools [data-poster-link] { grid-column: 1 / -1; }
.home-side .btn-block { min-height: 48px; }

/* くわしい数字・広告・お支払い・バッジ（閉じておく） */
.dash-more { display: grid; gap: 12px; margin-top: var(--s5); }
.more { scroll-margin-top: var(--s2); }
.more > summary {
  list-style: none; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 64px; padding: 12px 52px 12px 20px; background: var(--bg); border: 1px solid var(--bg); border-radius: var(--r-panel); cursor: pointer;
  transition: border-color var(--ease);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { border-color: var(--line-2); }
.more > summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform var(--ease), margin var(--ease);
}
.more[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.more-title { font-weight: 700; font-size: var(--fs-md); line-height: 1.5; }
.more-sub { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.more-body { padding: var(--s1) 0 var(--s2); }
.more-body > .week { background: var(--bg); border-radius: var(--r-panel); padding: 12px 20px; margin: 0; }
.more-body > .perf:first-child, .more-body > .ad-panel:first-child { margin-top: var(--s1); }
.more-body > textarea { background: var(--bg); }
.week { list-style: none; }
.week li { padding: 6px 0; font-size: var(--fs-md); line-height: 1.6; }
.week b { font-family: var(--latin); font-weight: 800; font-size: var(--fs-xl); letter-spacing: -.02em; margin: 0 2px; font-variant-numeric: tabular-nums; }
.week .muted { font-size: var(--fs-sm); }
.more-body .table-wrap { margin-bottom: 12px; }
.card-label { font-size: var(--fs-lg) !important; }

@media (min-width: 760px) {
  .dash-name { font-size: var(--fs-2xl); }
  .today { padding: var(--s3) 28px; }
  .today-head { grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); align-items: center; }
  .today-head h2 { justify-content: flex-start; font-size: var(--fs-xl); }
  .task { padding: var(--s3); }
  .task-title { font-size: var(--fs-xl); }
  .task-actions { display: flex; flex-wrap: wrap; }
  .task-actions .btn, .task-actions .btn-primary { width: auto; min-height: 44px; padding: 0 22px; }
  .task-actions .btn-primary { min-width: 9em; }
  .task-more { display: inline-block; margin: 0 0 0 4px; text-align: left; }
  .task-hint { text-align: left; margin-top: 8px; }
  .task-later { text-align: right; margin: 4px -4px -8px 0; }
  .new-apps li { grid-template-columns: 9em minmax(0, 1fr) 6.5em 7em; }
  .new-apps .what { grid-column: 2; font-size: var(--fs-md); color: var(--ink); }
  .new-apps .when { grid-column: 3; }
  .new-apps .status { grid-column: 4; grid-row: auto; justify-self: start; }
}
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s4); }
}
@media (prefers-reduced-motion: reduce) { .task, .today-bar i { transition: none; } }

/* 広告枠（クリック課金） */
.ad-panel { margin: var(--s4) 0 var(--s3); scroll-margin-top: var(--s2); }
.ad-lead { color: var(--ink-2); line-height: 1.8; margin: 4px 0 12px; max-width: 64em; }
.ad-lead strong { color: var(--ink); }
.ad-jobs { display: grid; gap: 12px; margin-bottom: 12px; }
.ad-job { padding: 20px; background: var(--bg); border-radius: var(--r-card); min-width: 0; scroll-margin-top: var(--s2); }
.ad-job-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s2); }
.ad-job-head h3 { margin: 0; font-size: var(--fs-md); line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.ad-job-head h3 a { color: var(--ink); text-decoration: none; }
.ad-job-head h3 a:hover { color: var(--blue); }
.ad-reason { margin: 12px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--blue); }
.ad-reason.is-stop { color: var(--red); }
.ad-today, .ad-estimate { margin: 12px 0 4px; line-height: 1.7; }
.ad-today strong { font-family: var(--latin); font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.ad-estimate { padding: 12px var(--s2); background: var(--surface-2); border: 1px solid var(--blue-line); border-radius: var(--r-input); }
.ad-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px var(--s2); margin: 12px 0; }
.ad-controls form { margin: 0; }
.ad-form { align-items: flex-end; }
.ad-budget { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; flex: 1 1 220px; min-width: 0; }
.ad-budget select { flex: none; width: 100%; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
.ad-stats { width: 100%; }
.ad-stats th[scope=row] { font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.ad-stats th, .ad-stats td { padding-left: 8px; padding-right: 8px; }
.ad-stats thead th { font-size: var(--fs-sm); }
.ad-stats td { font-family: var(--latin); font-variant-numeric: tabular-nums; }
.ad-state-link { text-decoration: none; display: inline-block; margin: 2px 0 4px; }
@media (min-width: 1024px) { .ad-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bill-job { display: block; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
/* 成果 */
.perf { margin: var(--s4) 0 var(--s3); }
.perf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--s2); }
.perf-head p { margin: 0; }
.kpi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 var(--s2); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: var(--s2) 20px; background: var(--bg); border-radius: var(--r-panel); min-width: 0; }
.kpi span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; }
.kpi strong { font-family: var(--latin); font-weight: 800; font-size: var(--fs-2xl); letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi small { font-size: var(--fs-sm); color: var(--ink-2); }
.kpi-em { grid-column: 1 / -1; }
.kpi-em strong { color: var(--blue); }
@media (min-width: 760px) { .kpi-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpi-em { grid-column: auto; } }
.chart { position: relative; margin: 0; background: var(--bg); border-radius: var(--r-card); padding: 20px; }
.chart-title { font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--s1); }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-2); font-size: 36px; font-family: var(--latin); }
@media (min-width: 760px) { .chart .axis { font-size: 14px; } }
.chart .bar { fill: var(--blue); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover { fill: rgba(39, 71, 255, .06); }
.chart-tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: var(--fs-sm); padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.chart-table summary { cursor: pointer; font-size: var(--fs-sm); min-height: 44px; display: flex; align-items: center; color: var(--blue); font-weight: 700; }
.chart-table .table-wrap { padding: 0; }
.hint-box { background: var(--blue-tint); border-radius: var(--r-panel); padding: 12px var(--s2); font-size: var(--fs-md); margin-top: 12px; }

/* 応募者 */
.app-filter { display: flex; gap: var(--s1); align-items: flex-end; flex-wrap: wrap; margin: var(--s2) 0 var(--s2); }
.app-filter .field { flex: 1 1 260px; max-width: 480px; }
.app-filter .btn { min-height: 48px; }
.stage-tabs { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s2); }
.stage-tabs a, .stage-tabs strong {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s2); font-size: var(--fs-sm); text-decoration: none;
  color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill); transition: border-color var(--ease), color var(--ease);
}
.stage-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.stage-tabs strong { color: #fff !important; background: var(--ink) !important; border-color: var(--ink); }
.stage-tabs span { font-family: var(--latin); font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 759px) { .stage-tabs a, .stage-tabs strong { min-height: 44px; } }
.app-list { display: grid; gap: 12px; margin-top: var(--s2); }
.app-card { padding: 20px; background: var(--bg); border-radius: var(--r-card); display: grid; gap: 12px; scroll-margin-top: 12px; font-size: var(--fs-md); min-width: 0; }
.app-card header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.app-card header strong { font-weight: 700; font-size: var(--fs-lg); }
.app-card p { margin: 0; }
.app-card .prose { font-size: var(--fs-md); background: var(--surface); border-radius: var(--r-input); padding: 12px var(--s2); max-width: none; }
.qa { margin: 0; }
.qa div { padding: var(--s1) 0; border-bottom: 1px solid var(--line); }
.qa dt { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; }
.qa dd { margin: 0; font-size: var(--fs-md); }
.app-actions { display: grid; gap: 12px; }
.app-contact { display: grid; gap: var(--s1); align-content: start; min-width: 0; } /* メールで連絡する・サイトでメッセージ（縦に並べる） */
.app-record { display: grid; gap: var(--s1); }
.app-record label { display: grid; gap: 4px; font-weight: 700; }
.app-record select { max-width: 220px; }
.app-memo-toggle summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; color: var(--blue); font-weight: 700; }
.app-memo-toggle[open] summary { margin-bottom: 4px; }
/* 求人ページ・会社のページのリンクをコピーする箱（views/partials/share-link.ejs）。入力欄＋副ボタン＋開閉の手順 */
.share-link { min-width: 0; margin: var(--s2) 0 0; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1); align-items: center; }
.copy-row input { min-width: 0; font-family: var(--latin); }
.copy-status { min-height: 0; margin: var(--s-half) 0 0; }
.copy-status:empty { display: none; }
.share-steps summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; }
.share-steps ol { margin: 0 0 var(--s1); padding-left: 1.4em; line-height: 1.7; }
.share-steps li { margin: 0 0 var(--s1); }
.share-mini > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; font-size: var(--fs-sm); }
.share-mini .share-link { margin-top: 0; }
.app-save { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.saved-note { font-size: var(--fs-sm); font-weight: 700; color: var(--green); white-space: nowrap; }
.saved-note::before { content: "✓ "; }
@media (min-width: 760px) {
  .app-card { padding: var(--s3); }
  .app-actions { grid-template-columns: auto 1fr; align-items: start; gap: var(--s2); }
  .app-record { grid-template-columns: 200px 1fr auto; align-items: end; }
}
.app-fee { font-size: var(--fs-sm); border-top: 1px solid var(--line); padding-top: 12px; }

/* 請求 */
.pay-card { background: var(--bg); border-radius: var(--r-card); padding: 20px; margin-bottom: 12px; }
.pay-card .table-wrap { padding: 0; }
.pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1); margin-bottom: var(--s1); }
.pay-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pay-total strong { font-family: var(--latin); font-weight: 800; font-size: var(--fs-xl); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* 利用明細 */
/* お支払いと領収書・管理画面のお支払いの欄：文の中でない単独のリンクも 44px の高さで押せるように */
.tap-links a { display: inline-flex; align-items: center; min-height: 44px; }
.tap-links a + a { margin-left: var(--s2); }
.statement-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1) var(--s2); margin-bottom: var(--s2); }
.statement { background: var(--bg); border-radius: var(--r-card); padding: var(--s3) 20px; }
.statement-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: var(--s2); margin-bottom: var(--s2); }
.statement-head h1 { font-size: var(--fs-2xl); margin: 0; }
.statement-buyer { margin: 4px 0 0; font-weight: 700; }
.statement-meta { margin: 0; font-size: var(--fs-sm); }
.statement-meta div { display: flex; gap: 10px; }
.statement-meta dt { color: var(--ink-2); min-width: 6em; }
.statement-meta dd { margin: 0; font-variant-numeric: tabular-nums; }
.statement-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; background: var(--surface); border-radius: var(--r-panel); padding: var(--s2) 20px; margin: var(--s2) 0 var(--s1); }
.statement-amount strong { font-family: var(--latin); font-weight: 800; font-size: var(--fs-3xl); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.statement .table-wrap { padding: 0; }
.statement-note { margin-top: var(--s2); padding: 12px 16px; border-radius: var(--r-panel); background: var(--surface); font-size: var(--fs-sm); }
@media (min-width: 760px) { .statement { padding: var(--s6); } }
/* 店頭ポスター（/employer/jobs/:id/poster）。画面では見本を枠で囲む。印刷は下の @media print（A4 縦・1枚） */
.poster-tools .btn { min-width: 200px; }
.poster { page: poster; display: grid; justify-items: center; gap: var(--s2); text-align: center; padding: var(--s4) var(--s3); margin: 0 auto var(--s4); max-width: 560px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-card); min-width: 0; }
.poster p { margin: 0; }
.poster-company { font-size: var(--fs-lg); font-weight: 700; }
.poster-kicker { font-size: var(--fs-md); font-weight: 700; color: var(--blue); padding: 0 var(--s2); border: 1px solid var(--blue-line); border-radius: var(--r-pill); }
.poster-title { font-size: var(--fs-2xl); font-weight: 900; line-height: 1.4; word-break: auto-phrase; }
.poster-facts { margin: 0; width: 100%; display: grid; gap: 0; text-align: left; border-top: 1px solid var(--line); }
.poster-facts > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: var(--s2); padding: var(--s1) 0; border-bottom: 1px solid var(--line); }
.poster-facts dt { font-weight: 700; color: var(--ink-2); }
.poster-facts dd { margin: 0; font-weight: 700; min-width: 0; }
.poster-qr { width: 100%; max-width: 280px; line-height: 0; }
.poster-qr svg { width: 100%; height: auto; display: block; }
.poster-url { font-family: var(--latin); font-size: var(--fs-md); font-weight: 700; word-break: break-all; }
.poster-howto { font-size: var(--fs-md); font-weight: 700; max-width: 24em; }
.poster-brand { display: inline-flex; align-items: center; gap: var(--s-half); font-size: var(--fs-sm); font-weight: 900; color: var(--ink-2); }
.poster-brand .wordmark-mark { width: 10px; height: 10px; }
.poster-brand-en { font-family: var(--latin); font-weight: 700; font-size: var(--fs-xs); margin-left: var(--s-half); }

@page poster { size: A4 portrait; margin: 14mm; }
@media print {
  body, .is-console main { background: #fff; }
  .site-header, .site-footer, .no-print, .flash, .dock, .skip, .breadcrumb { display: none !important; }
  .page { padding: 0; }
  .statement { border: 0; padding: 0; background: #fff; border-radius: 0; }
  .statement-amount, .statement-note { background: #fff; border: 1px solid #000; }
  a { color: inherit; text-decoration: none; }
  /* 店頭ポスター：A4 縦（@page poster）の1枚に収める。見本の枠・角丸は付けない */
  .poster { max-width: none; width: 100%; margin: 0; padding: 4mm 0 0; border: 0; border-radius: 0; gap: 5mm; align-content: start; break-inside: avoid; }
  .poster-company { font-size: 18pt; }
  .poster-kicker { font-size: 14pt; }
  .poster-title { font-size: 28pt; line-height: 1.35; }
  .poster-facts { font-size: 13pt; }
  .poster-facts > div { padding: 2mm 0; }
  .poster-qr { max-width: 90mm; }
  .poster-url { font-size: 13pt; }
  .poster-howto { font-size: 14pt; }
  .poster-brand { font-size: 10pt; }
}

/* 運営 */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: var(--s2) 0 var(--s3); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: var(--s2) 20px; background: var(--bg); border-radius: var(--r-panel); min-width: 0; }
.stat span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; }
.stat strong { font-family: var(--latin); font-weight: 800; font-size: var(--fs-xl); letter-spacing: -.02em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat small { font-size: var(--fs-sm); color: var(--ink-2); }
.stat-alert { background: var(--red-tint); }
.stat-alert strong { color: var(--red); }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.review-card { display: grid; gap: 12px; padding: 20px; margin-bottom: 12px; background: var(--bg); border-radius: var(--r-card); font-size: var(--fs-md); min-width: 0; }
.review-card p { margin: 4px 0; }
.review-card .lbl { margin-right: 6px; }
.review-actions { display: grid; gap: var(--s1); align-content: start; }
.review-actions form { margin: 0; }
@media (min-width: 760px) { .review-card { grid-template-columns: minmax(0, 1fr) 260px; padding: 20px var(--s3); } }
.ai-box { border-left: 3px solid var(--ink-3); padding: 10px 14px; margin: var(--s1) 0; background: var(--surface); border-radius: 0 var(--r-input) var(--r-input) 0; font-size: var(--fs-md); }
.ai-approve { border-left-color: var(--green); }
.ai-fix { border-left-color: var(--blue); }
.ai-human { border-left-color: var(--red); }
.ai-box ul { margin: 6px 0 0; padding-left: 1.2em; }
.request-ref { background: var(--bg); border-radius: var(--r-panel); padding: 12px var(--s2); margin-bottom: var(--s2); }

/* 求人フォーム＋プレビュー */
.jobform-layout { display: grid; gap: var(--s4); }
.jobform { min-width: 0; }
.is-console .jobform fieldset, .is-console .form-boxed { background: var(--bg); border: 0; border-radius: var(--r-card); padding: var(--s3) 20px; margin: 0; }
.is-console .form > fieldset + fieldset { margin-top: 0; }
.preview-pane { min-width: 0; }
.preview-h { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); margin: var(--s3) 0 var(--s1); }
.preview-h:first-of-type { margin-top: var(--s1); }
.preview-pane .keyfacts { margin: 0; }
.checklist { list-style: none; margin: 0 0 var(--s1); padding: 0; }
.checklist li { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); }
.checklist .mark { font-size: var(--fs-sm); font-weight: 700; padding: 0 4px; border-radius: 6px; text-align: center; align-self: start; line-height: 24px; margin-top: 1px; }
.checklist .ok .mark { color: var(--green); background: var(--green-tint); }
.checklist .ng .mark { color: var(--ink-2); background: var(--surface); }
.checklist .detail { display: block; font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 1023px) {
  .preview-pane { display: none; }
  .preview-pane.is-open, .preview-pane:target {
    display: block; position: fixed; inset: 0; z-index: 120; background: var(--bg); overflow-y: auto; padding: 0 var(--gutter) var(--s3);
    animation: sheet-in 200ms ease-out;
  }
  .preview-pane.is-closing { animation: sheet-out 180ms ease-in forwards; }
  .preview-pane .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: var(--s1) 0; border-bottom: 1px solid var(--line); min-height: 60px; }
}
@media (min-width: 1024px) {
  .jobform-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s4); }
  .preview-pane { position: sticky; top: var(--s2); align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border-radius: var(--r-card); padding: var(--s1) 20px 20px; }
  .preview-pane .sheet-head { display: none; }
  .preview-pane .job-list[data-preview-row] .row-head { grid-template-columns: 40px minmax(0, 1fr); }
  .preview-pane .job-list[data-preview-row] .row-salary { grid-column: 1 / -1; display: flex; justify-items: start; text-align: left; }
  .preview-pane .job-list[data-preview-row] .row-salary .num { font-size: var(--fs-xl); }
  .preview-pane .job-list[data-preview-row] .row-meta, .preview-pane .job-list[data-preview-row] .row-foot { margin-left: 0; }
  .preview-pane .job-row { padding: 20px; }
}
.preview-pane .job-row { pointer-events: none; }

/* ---------- フッター ---------- */
.site-footer { background: var(--surface); margin-top: var(--s10); padding: var(--s6) 0 var(--s4); font-size: var(--fs-sm); color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
.footer-about { grid-column: 1 / -1; }
.footer-about p { margin: 0; max-width: 28em; }
.footer-name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-md); color: var(--ink); margin-bottom: var(--s1) !important; }
.footer-name .wordmark-mark { width: 11px; height: 11px; }
.site-footer h2 { font-family: var(--font); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin: 0 0 var(--s1); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink-2); text-decoration: none; transition: color var(--ease); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: var(--s4); display: grid; gap: var(--s1); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 var(--s3); border-top: 1px solid var(--line-on-surface); padding-top: var(--s2); font-size: var(--fs-sm); }
.footer-bottom nav a { color: var(--ink-2); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.footer-bottom small { font-size: var(--fs-xs); color: var(--ink-2); font-family: var(--latin); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-about { grid-column: auto; }
}

/* ---------- 学生向け ---------- */
.hero-title { font-size: 30px; line-height: 1.3; letter-spacing: -.03em; }
@media (min-width: 760px) { .hero-title { font-size: var(--fs-3xl); } }
.page-student .lead-facts { margin-top: 0; }
.notice { background: var(--red-tint); border-color: var(--red-tint); }
.notice .side-title { color: var(--red); }
.notice .plain-ol li::marker { color: var(--red); font-weight: 700; }

.table-wide { min-width: 880px; }
/* 狭い画面の表：枠の中だけ横にスクロールし、列が細くなりすぎないようにする */
@media (max-width: 759px) {
  .table-wrap .table:not(.table-kv) th, .table-wrap .table:not(.table-kv) td { min-width: 5.5em; }
  .table-wrap .table:not(.table-kv) td:first-child { min-width: 9.5em; }
  .table-wrap .table-wide td:first-child { min-width: 15em; }
}
.two-col .flow { grid-template-columns: 1fr; }
@media (max-width: 599px) {
  .keyfacts dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .keyfacts .kf-salary dd { font-size: var(--fs-xl); }
}
@media (min-width: 760px) {
  .page-student .lead-facts { display: inline-block; margin: 0 var(--s3) 0 0; }
  .page-student .values { display: inline-flex; margin-top: 0; }
}
.table td a { text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.statement-items td:first-child { white-space: nowrap; min-width: 0 !important; }
/* 日本語の文節で折り返し、行末の1文字だけの行を避ける（対応ブラウザのみ） */
.lead-text, .keyfacts dd, .todo-title, .side-title, .row-title h3, .compare-title { word-break: auto-phrase; }
/* 管理画面に出す求人のタイトル（今日やること・新しい応募・掲載中の求人・下書き）も文節で折り返す */
.check-label, .new-apps .what, .job-mini-title, .task-meta, .drafts-main a, .dock-salary { word-break: auto-phrase; }

/* ---------- 狭い画面（640px 未満）で表を1行ずつのカードに積む（.table-stack。各セルの data-label を見出しにする） ---------- */
.toggle-btn { white-space: nowrap; }
@media (max-width: 639px) {
  .table-wrap:has(> .table-stack) { overflow-x: visible; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td, .table-stack tfoot { display: block; width: auto; min-width: 0 !important; }
  .table-stack.table-wide { min-width: 0; }
  .table-stack thead { display: none; }
  .table-stack tbody tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table-stack tbody td { display: grid; grid-template-columns: 7em minmax(0, 1fr); justify-items: start; align-items: baseline; gap: 2px 12px; padding: 4px 0; border: 0; text-align: left !important; white-space: normal; }
  .table-stack tbody td > * { grid-column: 2; }
  /* 中身が複数（ボタン・リンク）のセルは、見出しの下に横に並べる */
  .table-stack tbody td.toggles, .table-stack tbody td.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; }
  .table-stack tbody td.toggles::before, .table-stack tbody td.actions::before { flex: 0 0 100%; }
  .table-stack tbody td::before { content: attr(data-label); font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
  .table-stack tbody td.stack-head { display: block; padding-bottom: 8px; }
  .table-stack tbody td.stack-head::before { content: none; }
  .table-stack tbody td[data-label=""]::before { content: none; }
  .table-stack tbody td:empty { display: none; } /* 中身のないセル（例：いまの端末の行の「操作」）は、積んだときに空の行を作らない */
  .table-stack tfoot tr { display: flex; justify-content: space-between; gap: 12px; }
  .table-stack tfoot td, .table-stack tfoot th { border: 0; padding: 6px 0; }
  .table-stack .toggles { min-width: 0; }
  .table-stack .toggles form, .table-stack .toggles .small, .table-stack .actions a, .table-stack .actions form { display: inline-flex; margin: 0; }
  .table-stack .toggle-btn { width: auto; }
  .table-stack .actions { white-space: normal; }
}

/* ---------- タッチ操作・狭い画面では押しやすい大きさ（44px 以上）に。パソコンでは大きくしない ---------- */
@media (pointer: coarse), (max-width: 759px) {
  .btn-sm, .toggle-btn, .report summary, [data-sheet-close], .app-memo-toggle summary { min-height: 44px; }
  .link-btn, .actions .link-btn, .billing-panel .link-btn, .pay-line .link-btn { min-height: 44px; }
  .actions a { display: inline-flex; align-items: center; min-height: 44px; }
  [data-sheet-close] { display: inline-flex; align-items: center; padding: 0 var(--s1); }
  .admin-actions .btn, .admin-actions button, .table .btn-sm { min-height: 44px; }
  /* 単独で置いたリンク（フッター・リンクの一覧・こだわり条件）と、開閉の見出しも 44px 以上に */
  .site-footer li a, .footer-bottom nav a, .job-tags .lbl a { min-height: 44px; }
  .link-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .is-console details.mt-sm > summary, .review-card details > summary { padding-block: 10px; min-height: 44px; }
  /* 行の高さは変えずに、押せる範囲だけを上下に広げる（パンくず・文の途中ではない小さなリンク） */
  .breadcrumb a { padding-block: 10px; margin-block: -10px; }
  .table td a.small, .review-card a.small, .pay-total a.small, .job-company-lg a { padding-block: 11px; }
}

/* 税込を主に、税抜は小さく併記 */
.tax-ex { font-size: max(.8em, var(--fs-xs)); font-weight: 400; color: var(--ink-2); white-space: nowrap; } /* 小さく添えるが、注記の大きさ（12px）より小さくしない */
/* 1段の画面では、サイドバーの「応募する」は追従させない（下の固定バーがあり、求人アラートの結果を隠してしまうため） */
@media (max-width: 1023px) { .sticky-apply { position: static; } }

/* ---------- 求人フォーム：1ページのまま3つの段階に分ける（1 仕事の内容 / 2 働き方と給与 / 3 応募の受け方） ---------- */
.form-step { display: grid; gap: var(--s3); scroll-margin-top: 64px; }
.is-console .form-step { gap: 12px; }
.step-h { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xl); font-weight: 700; margin: var(--s2) 0 0; line-height: 1.4; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: var(--latin); font-size: var(--fs-sm); font-weight: 800;
}
.step-nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.step-nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-nav a {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2);
  text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap;
}
.step-nav a .step-num { width: 20px; height: 20px; font-size: 12px; background: var(--line-2); color: var(--ink); }
.step-nav a[aria-current="step"] { color: var(--blue); border-bottom-color: var(--blue); }
.step-nav a[aria-current="step"] .step-num { background: var(--blue); color: #fff; }
@media (min-width: 760px) {
  .step-nav { margin: 0; padding: 0; border-radius: var(--r-panel); border: 0; }
  .step-nav a { font-size: var(--fs-sm); }
}
@media (min-width: 1024px) { .step-nav { position: static; } }
/* 労働条件／契約条件：どちらの雇用形態向けかを見出しに付ける */
.cond-for { display: inline-block; margin-left: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--blue); background: var(--blue-tint); padding: 2px 8px; border-radius: 6px; vertical-align: 2px; }
.cond-pick { background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--r-panel); padding: var(--s2); margin: 0; }
/* 給与：単位・下限・上限を1行に。金額の右に「万円／円」 */
.salary-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px var(--s2); }
.salary-row > .field:first-child { grid-column: 1 / -1; }
.amount { position: relative; display: block; }
.amount input { padding-right: 3.6em; text-align: right; font-family: var(--latin); font-variant-numeric: tabular-nums; }
.amount-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); pointer-events: none; }
@media (min-width: 760px) {
  .salary-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .salary-row > .field:first-child { grid-column: auto; }
}
.jobform .error-summary { margin-bottom: var(--s1); }
.amount { margin-top: var(--s1); }
.req, .opt { white-space: nowrap; }
@media (max-width: 759px) {
  .cond-for { display: table; margin: 6px 0 0; }
  .step-nav a { gap: 4px; font-size: 12.5px; letter-spacing: -.01em; }
  .step-nav a .step-num { width: 18px; height: 18px; font-size: 11px; }
}
@media (pointer: coarse), (max-width: 759px) {
  .section-head .more-link { min-height: 44px; }
  .employer-note .link-list li { min-height: 44px; }
}

/* ---------- 事業者の確認（なりすまし・闇バイト対策） ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lead-sm { font-size: var(--fs-md); color: var(--ink); margin: 0 0 var(--s3); }
/* 「確認済みの事業者」バッジ：青の細い枠。会社名の横に小さく */
.trust-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 7px 0 5px; border: 1px solid var(--blue-line); border-radius: var(--r-pill);
  background: var(--blue-tint); color: var(--blue); font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; vertical-align: 1px; cursor: help; }
.trust-badge svg { flex: none; }
.job-company-lg .trust-badge { justify-self: start; margin: 2px 0 0; }
.trust-note { display: block; margin-top: 4px; }
.company-trust { margin: 4px 0 0; }
.company-trust .trust-badge { margin-left: 0; }
/* 応募者への注意（応募完了・通報の画面） */
.safety-warn { margin: var(--s2) 0 0; padding: 14px var(--s2); border-left: 4px solid var(--red); border-radius: 0 var(--r-panel) var(--r-panel) 0; background: var(--red-tint); font-size: var(--fs-md); }
.safety-warn p { margin: 0 0 6px; }
.safety-warn p:last-child { margin-bottom: 0; }
/* 管理画面の上の「メールアドレスの確認」「本人確認」 */
.trust-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px var(--s2); margin: 0 0 var(--s2); padding: 14px var(--s2);
  border: 1px solid var(--blue-line); border-radius: var(--r-panel); background: var(--blue-tint); }
.trust-banner > div { flex: 1 1 280px; min-width: 0; }
.trust-banner-title { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust-banner-body { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
/* 管理画面：規約改定のお知らせ（.note の余白だけ）・今日やることの表明・確約 */
.terms-notice { margin: 0 0 var(--s2); overflow-wrap: anywhere; }
/* 管理画面：お知らせ（最低賃金の改定・運営から。src/notices.js）。対応が必要なものは .status.s-rejected の印 */
.notices { margin: var(--s2) 0 var(--s3); }
.notices-h { font-size: var(--fs-lg); margin: 0 0 var(--s1); }
.notice-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--bg); }
.notice-item { padding: 14px var(--s2); min-width: 0; }
.notice-item + .notice-item { border-top: 1px solid var(--line); }
.notice-title { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s1); }
.notice-body { margin: 4px 0 0; max-width: 40em; line-height: 1.7; overflow-wrap: anywhere; }
.notice-fix { margin: var(--s1) 0 0; }
.notice-jobs { list-style: none; margin: 0; padding: 0; }
.notice-jobs li { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s1); min-height: 44px; }
.notice-jobs .notice-job-note { flex-basis: 100%; color: var(--ink-2); line-height: 1.7; padding-bottom: var(--s1); overflow-wrap: anywhere; }
.notice-jobs a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.task-pledge .check { margin: 0 0 12px; }
/* 求人フォーム：掲載前の確認 */
.attest { margin: var(--s4) 0 var(--s2); padding: var(--s2) var(--s2) 6px; border: 1px solid var(--line-2); border-radius: var(--r-card); }
.attest .step-h { margin-bottom: 6px; }
.attest-list { list-style: none; margin: 0; padding: 0; }
.attest-list li + li { border-top: 1px solid var(--line); }
.publish-note { margin-top: var(--s1); padding: 10px 12px; border-radius: var(--r-input); background: var(--blue-tint); }
/* 掲載までの手続き */
.pub-steps { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: 12px; }
.pub-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--bg); }
.pub-step.is-current { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.pub-step.is-done { background: var(--surface); border-color: var(--line); }
.pub-step-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface); color: var(--ink-2); }
.pub-step-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.pub-step.is-current .pub-step-mark { background: var(--blue); color: #fff; }
.pub-step.is-done .pub-step-mark { background: var(--green-tint); color: var(--green); }
.pub-step-title { font-size: var(--fs-lg); margin: 4px 0 6px; display: flex; align-items: center; gap: 8px; }
.pub-step-ok { font-size: var(--fs-sm); color: var(--green); font-weight: 700; }
.pub-step-body p { margin: 0 0 10px; }
.pub-copy { font-weight: 700; }
.pub-facts { margin: 0 0 12px; padding-left: 1.2em; font-size: var(--fs-sm); color: var(--ink-2); }
.pub-go { margin-bottom: var(--s2); }
/* 登録：法人／個人事業主 */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-input); font-size: var(--fs-md); cursor: pointer; }
.seg-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); font-weight: 700; }
.seg-opt input { accent-color: var(--blue); }
.entity, .proof { border: 0; padding: 0; margin: 0 0 var(--s2); min-width: 0; }
.entity legend, .proof legend { font-size: var(--fs-md); font-weight: 700; margin-bottom: 6px; padding: 0; }
.proof { padding: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-card); }
.proof .field { margin-bottom: 12px; }
.signup-note { margin: 0 0 var(--s2); padding: 10px 12px; border-radius: var(--r-input); background: var(--blue-tint); font-size: var(--fs-sm); }
/* 運営：初回審査の確認事項 */
.review-age { margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.review-age.is-late { color: var(--red); }
.trust-flags { margin: 10px 0; padding: 10px 12px; border-left: 4px solid var(--red); background: var(--red-tint); border-radius: 0 var(--r-input) var(--r-input) 0; }
.trust-flags ul { margin: 4px 0 0; padding-left: 1.1em; }
.trust-flags li.is-warn { font-weight: 700; }
.flag-code { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: #fff; font-size: 12px; color: var(--red); }
.owner-checks { display: grid; gap: 2px; margin: 8px 0; font-size: 14px; }
.owner-checks > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 8px; }
.owner-checks dt { color: var(--ink-2); }
.owner-checks dd { margin: 0; overflow-wrap: anywhere; }
.owner-check-box { margin: var(--s1) 0; padding: 12px var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-panel); }
.owner-check-box.is-required { border-color: var(--red); }
.owner-check-box ul { margin: 4px 0 var(--s1); padding-left: 1.1em; }
.owner-check-box fieldset { margin: var(--s1) 0; padding: 0; border: 0; display: grid; gap: 4px; }
.owner-check-box input[type="text"] { width: 100%; margin-bottom: var(--s1); }
.drafts-list { list-style: none; margin: 0; padding: 0; background: var(--bg); border-radius: var(--r-card); }
.drafts-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px var(--s2); }
.drafts-list li + li { border-top: 1px solid var(--line); }
.drafts-main { display: grid; min-width: 0; flex: 1 1 200px; font-weight: 700; overflow-wrap: anywhere; }
.still-open-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }
.still-open-actions form { margin: 0; }
.row-company:has(.trust-badge) { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.row-company .trust-badge { margin-left: 0; }
.safety-warn + p { margin-top: 12px; }

/* ---------- 管理画面：集計の2列（スマートフォンは1列） ---------- */
.admin-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 900px) { .admin-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* ---------- 運営管理画面：事業者の一覧。広い画面では「事業者」「状態」の列がつぶれないようにし、操作の欄は折り返す ---------- */
@media (min-width: 640px) {
  .admin-employers td:nth-child(2) { min-width: 15em; }
  .admin-employers td:nth-child(3) { min-width: 13em; }
  .admin-employers td.actions { white-space: normal; min-width: 15em; }
}
.site-footer .foot-legal { display: block; margin-bottom: var(--s1); }

/* ---------- プレオープンのお知らせ（届出の前。src/prelaunch.js） ---------- */
.prelaunch-bar { background: var(--blue-tint); border-bottom: 1px solid var(--blue-line); color: var(--ink); font-size: var(--fs-md); font-weight: 700; line-height: 1.6; padding: var(--s1) 0; text-align: center; }

/* ---------- 会社とのつながりの確認（事業者情報・今日やること） ---------- */
.link-sec { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.link-state { display: flex; gap: var(--s1); align-items: center; font-weight: 700; margin: 0; }
.link-state.is-ok { color: var(--green); }
.link-steps { margin: 0; padding-left: 1.4em; display: grid; gap: var(--s3); }
.link-steps p { margin: 0 0 var(--s1); }
.link-code { margin: 0 0 var(--s2); padding: var(--s1) var(--s2); background: var(--surface); border: 1px solid var(--line-on-surface); border-radius: var(--r-input); }
.link-code code { font-size: var(--fs-sm); user-select: all; word-break: break-all; background: none; padding: 0; border: 0; }
.link-methods { margin: 0 0 var(--s2); padding-left: 1.2em; }

/* ---------- 求人フォーム：労働条件のよく使う書き方・加入保険・ほかの雇用形態 ---------- */
.field-label { display: block; margin: 0 0 var(--s-half); font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
.cond-cell { min-width: 0; }
.picks { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s1); }
.toggle-sm { font-size: var(--fs-sm); font-family: inherit; cursor: pointer; }
.extra-types { margin-top: var(--s2); padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r-panel); }
.extra-types .hint { margin: var(--s1) 0 0; }
.copy-tools { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0 0 var(--s2); }
.copy-tools form { margin: 0; }
/* AIの下書き（求人フォームの上の箱と、AI が入れた欄の印） */
.ai-draft { margin: var(--s2) 0 var(--s3); padding: var(--s2); border: 1px solid var(--blue-line); border-radius: var(--r-panel); background: var(--bg); max-width: 760px; }
.ai-draft summary { cursor: pointer; min-height: 44px; padding: var(--s1) 0; display: list-item; list-style-position: inside; }
.ai-draft summary::marker { color: var(--blue); }
.ai-draft-h { display: inline; font-size: var(--fs-lg); margin: 0; }
.ai-draft details[open] > summary { margin-bottom: var(--s1); }
.ai-draft .form { display: grid; gap: var(--s2); }
.ai-draft .btn { justify-self: start; }
.job-examples { margin: var(--s2) 0 var(--s3); padding: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--bg); max-width: 760px; }
.job-examples summary { cursor: pointer; min-height: 44px; padding: var(--s1) 0; display: list-item; list-style-position: inside; }
.job-examples summary::marker { color: var(--blue); }
.job-examples-h { display: inline; font-size: var(--fs-lg); margin: 0; }
.job-examples details[open] > summary { margin-bottom: var(--s1); }
.job-examples details > * + * { margin-top: var(--s2); }
.job-examples select { width: 100%; }
.example-preview { padding: var(--s2); border-radius: var(--r-input); background: var(--surface); }
.example-preview p { margin: 0; }
.example-preview p + p { margin-top: var(--s1); }
.example-status:empty { display: none; }
.ai-draft .muted { margin: 0; }
/* AIアシスタントの料金と注意（毎回の同意の前に出す） */
.assist-price { padding: var(--s2); border-radius: var(--r-input); background: var(--surface); }
.assist-price p { margin: 0; }
.assist-price p + p { margin-top: var(--s1); }
.assist-caution { padding-top: var(--s1); border-top: 1px solid var(--line-on-surface); }
.ai-draft .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.ai-mark { display: inline-block; font-size: var(--fs-xs); font-weight: 700; color: var(--blue); border: 1px solid var(--blue-line); padding: 0 6px; margin-left: 6px; border-radius: 4px; vertical-align: 1px; line-height: 1.6; }

/* ---------- 求人ページ：アピール（要点の次）と、記載のない労働条件の案内 ---------- */
.appeal { margin: var(--s3) 0 0; padding: var(--s3) var(--s2); background: var(--blue-tint); border: 1px solid var(--blue-line); border-radius: var(--r-card); }
.appeal h2 { font-size: var(--fs-lg); margin: 0 0 var(--s1); color: var(--blue); }
.appeal h2 + .prose { margin-bottom: 0; }
.appeal .prose + h2 { margin-top: var(--s3); }
.appeal .prose { max-width: 40em; }
@media (min-width: 760px) { .appeal { padding: var(--s3); } }
.cond-later { margin: var(--s2) 0 0; padding: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--bg); }
.cond-later p { margin: 0 0 var(--s1); }
.cond-later ul { margin: 0; padding-left: 1.2em; }

/* ---------- 求人の充実度（作成画面のサイドとホーム） ---------- */
.quality-meter { display: flex; align-items: center; gap: var(--s1); margin: 0 0 var(--s1); }
.quality-bar { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.quality-bar > span { display: block; height: 100%; background: var(--blue); }
.quality-num { font-family: var(--latin); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3em; text-align: right; }
.quality-mini { font-size: var(--fs-sm); color: var(--ink-2); margin: var(--s-half) 0 0; }

/* 事業の確認の書類（views/employer/documents.ejs・views/admin/edocs-box.ejs）。いまの部品の組み合わせだけ */
.edocs-mynumber { margin-top: var(--s2); }
.edocs-mynumber p { margin: 0 0 var(--s-half); }
.edocs-what, .edocs-handling, .edocs-sent { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-half); }
.edocs-sent a, .edocs-pages a { display: inline-flex; align-items: center; min-height: 44px; margin-right: var(--s2); }
.edocs-box { margin-top: var(--s1); padding-top: var(--s1); border-top: 1px solid var(--line); display: grid; gap: var(--s1); }
.edocs-box p { margin: 0; }
.edocs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.edocs-list > li { padding-top: var(--s1); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.edocs-return, .edocs-accept { display: grid; gap: var(--s1); margin-top: var(--s1); }
.edocs-return select, .edocs-return input[type="text"], .edocs-accept input[type="text"] { width: 100%; }

/* 人と権限（/employer/team）：1人ずつ1pxの枠で区切る。操作のリンクは横に並べる（狭い画面では折り返す） */
.team-person { border: 1px solid var(--line-2); gap: var(--s1); }
.team-person ul { margin: 0; padding-left: 1.2em; }
.team-person li .inline-form { display: inline-flex; }
.team-person-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s2); }

/* ---------- サイト内のメッセージ（views/messages/thread.ejs）。本文は pre-wrap で改行を残す ---------- */
.msg-meta { margin: 0 0 var(--s1); }
.msg-list { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.msg { min-width: 0; padding: 12px var(--s2); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); }
.msg-mine { background: var(--blue-tint); border-color: var(--blue-line); }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s1); margin: 0 0 var(--s-half); font-size: var(--fs-sm); line-height: 1.5; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-md); line-height: 1.7; }
.msg-form { margin-top: var(--s3); }
.msg-form textarea { min-height: 9em; }
.msg-report { margin-top: var(--s4); }
.msg-report > summary { border-color: var(--line); }
@media (min-width: 640px) {
  .msg { max-width: 85%; }
  .msg-mine { margin-left: auto; }
}
