/*
 * クチイレ！（架空の求人サイト）のスタイル。
 * 現代の求人サイトに共通する作り（白地・藍の1色・カード・バッジ・募集要項の表）を手書きで再現する。
 * スマホ優先で書き、600px / 768px / 960px で広げる。幅 360px で横スクロールが出ないようにする。
 * CSP で style 属性が使えないため、棒グラフなどの幅は .w-0〜.w-100 のクラスで指定する。
 */

/* ---------- トークン ---------- */
:root {
  --c-brand: #233a8b;
  --c-brand-strong: #19296a;
  --c-brand-soft: #eef1fa;
  --c-brand-line: #c7d0ec;
  --c-accent: #c93f21; /* 白抜き文字で 4.5:1 以上になるよう、SPEC の #d64526 から少し濃くしている */
  --c-accent-soft: #fff3ef;
  --c-warn: #8a5a00;
  --c-warn-soft: #fff7e2;
  --c-warn-line: #ecd08c;
  --c-star: #9a6c00; /* 白地で 4.6:1、塗っていない星（--c-star-off）と 3:1 以上 */
  --c-star-off: #d7dbe3;
  --c-text: #1d2433;
  --c-text-sub: #4a5263;
  --c-text-muted: #5f6778; /* 薄いグレーの地（--c-bg-muted）の上でも 4.5:1 以上 */
  --c-line: #dde1e8;
  --c-line-strong: #c3c9d4;
  --c-input-line: #878fa0; /* 入力欄の枠。白地で 3:1 以上（WCAG 1.4.11） */
  --c-bg: #ffffff;
  --c-bg-subtle: #f5f6f9;
  --c-bg-muted: #eceff4;
  --c-footer: #1d2433;

  /* リアル側（現実のこのウェブサイト）の枠。作中の配色（藍・朱と青みの灰色）と取り違えないよう、無彩色だけで描く */
  --c-real-bg: #f7f7f7;
  --c-real-line: #dcdcdc;
  --c-real-text: #333333;
  --c-real-sub: #595959; /* --c-real-bg の上でも 4.5:1 以上 */

  --font: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 21px;

  --radius-sm: 4px;
  --radius: 8px;
  --shadow-card: 0 1px 2px rgba(16, 24, 48, 0.06);
  --shadow-raise: 0 6px 18px rgba(16, 24, 48, 0.12);
  --focus-ring: 0 0 0 3px rgba(35, 58, 139, 0.2);

  --container: 1120px;
  --gutter: 16px;
}

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

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

/*
 * 本文が短いページでも、最下部のリアル側の帯が画面の下端に来るよう、body を縦の flex にして本文（.site-main）を伸ばす。
 * 帯が画面の途中に浮くと、作品の外側の枠ではなく、そのページのフッターのように見えるため。
 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-brand);
  color: #fff;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 840px;
}

.site-main {
  display: block;
  flex: 1 0 auto;
  min-height: 50vh;
}

/* 棒グラフ・星の塗りの幅（5% 刻み） */
.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

/* 新しいタブで開くリンクの印（読み上げには visually-hidden の「（新しいタブで開きます）」で伝える） */
.icon--external {
  width: 0.95em;
  height: 0.95em;
}

.btn--primary {
  background: var(--c-brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-brand-strong);
}

.btn--outline {
  border-color: var(--c-brand);
  background: #fff;
  color: var(--c-brand);
}

.btn--outline:hover {
  background: var(--c-brand-soft);
}

.btn--ghost {
  border-color: var(--c-line-strong);
  background: #fff;
  color: var(--c-text-sub);
}

.btn--ghost:hover {
  border-color: var(--c-text-muted);
  color: var(--c-text);
}

.btn--disabled {
  border-color: var(--c-line);
  background: var(--c-bg-muted);
  color: var(--c-text-muted);
  cursor: not-allowed;
}

.btn--lg {
  min-height: 50px;
  padding: 12px 22px;
  font-size: var(--fs-md);
}

.btn--small {
  min-height: 32px;
  padding: 4px 10px;
  font-size: var(--fs-xs);
}

.btn--block {
  display: flex;
  width: 100%;
}

.fav-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.fav-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.fav-btn[aria-pressed="true"] {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

.fav-btn[aria-pressed="true"] .fav-btn__icon {
  fill: currentColor;
}

.fav-btn--small {
  min-height: 30px;
  padding: 3px 10px;
  font-size: var(--fs-xs);
}

/* ---------- ヘッダー ---------- */
.site-header {
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 10px 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
}

.logo:hover {
  text-decoration: none;
}

.logo__emblem {
  width: 34px;
  height: 34px;
  color: var(--c-brand);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  color: var(--c-brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  /* サイト名末尾の全角「！」の前が空きすぎないよう、約物を詰める（共有画像の OgImage::LOGO_KERN と同じ意図）。 */
  font-feature-settings: "palt";
}

.logo__desc {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.today-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid var(--c-line);
  color: var(--c-text-sub);
  font-size: var(--fs-2xs);
  line-height: 1.5;
}

.today-box__date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.today-box__new,
.today-box__new a {
  color: var(--c-text-sub);
}

.today-box__new strong {
  color: var(--c-accent);
  font-size: var(--fs-sm);
}

.global-nav {
  background: var(--c-brand);
}

.global-nav__list {
  display: flex;
  padding-inline: 0;
}

.global-nav__item {
  flex: 1 1 auto;
  min-width: 0;
}

.global-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px 6px;
  color: #fff;
  font-size: var(--fs-2xs);
  line-height: 1.25;
  text-align: center;
}

.global-nav__link:hover {
  background: var(--c-brand-strong);
  text-decoration: none;
}

.global-nav__link[aria-current="page"] {
  background: var(--c-brand-strong);
  box-shadow: inset 0 -3px 0 #fff;
}

/* 藍の地では藍の枠が見えないので、キーボード操作の現在位置は白い枠で示す */
.global-nav__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.global-nav__icon {
  width: 20px;
  height: 20px;
}

.count-badge {
  position: absolute;
  top: 3px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ---------- 見出し・共通部品 ---------- */
.breadcrumbs {
  padding: 10px 0 6px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
}

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 6px;
  color: var(--c-line-strong);
}

.breadcrumbs a {
  color: var(--c-text-sub);
}

.page-head {
  margin: 8px 0 20px;
}

.page-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 12px;
}

.page-kicker {
  color: var(--c-brand);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.page-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.4;
}

.page-lead {
  margin-top: 6px;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--c-brand);
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.35;
}

.section-title a {
  color: inherit;
}

.section-title--accent {
  border-left-color: var(--c-accent);
}

.section-title__count::before {
  content: "（";
}

.section-title__count::after {
  content: "件）";
}

.section-title__count {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  font-weight: 400;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.section-head .section-title,
.section-head .job-section__title {
  margin-bottom: 0;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.note {
  margin-top: 8px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
  line-height: 1.6;
}

/*
 * 文中のリンクは、周りの文字との色の差だけでは見分けにくい（藍と --c-text-muted は 1.8:1）ので下線を付ける（WCAG 1.4.1）。
 * ボタンやカードのように形でリンクと分かるものは対象にしない。
 */
.note a,
.empty-state__tips a,
.req-table td a,
.closed-banner a,
.related-news__list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose > * + * {
  margin-top: 8px;
}

.prose-list {
  display: grid;
  gap: 3px;
}

.prose-list li {
  position: relative;
  padding-left: 1.1em;
}

.prose-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.25em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-brand);
}

.prose-heading {
  margin-top: 18px;
  font-size: var(--fs-md);
  font-weight: 800;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1.75;
  white-space: nowrap;
}

.badge--accent {
  background: var(--c-accent);
  color: #fff;
}

.badge--new {
  border-color: var(--c-brand);
  background: #fff;
  color: var(--c-brand);
}

.badge--brand {
  border-color: var(--c-brand-line);
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

.badge--warn {
  border-color: var(--c-warn-line);
  background: var(--c-warn-soft);
  color: var(--c-warn);
}

.badge--muted {
  border-color: var(--c-line-strong);
  background: var(--c-bg-muted);
  color: var(--c-text-sub);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg-subtle);
  color: var(--c-text-sub);
  font-size: var(--fs-2xs);
  line-height: 1.8;
}

.tag--link {
  position: relative;
  z-index: 1;
  color: var(--c-brand);
}

.tag--link:hover {
  border-color: var(--c-brand);
  text-decoration: none;
}

.tag-list--large .tag {
  padding: 3px 12px;
  font-size: var(--fs-sm);
}

.stars {
  display: inline-flex;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.stars__on {
  color: var(--c-star);
}

.stars__off {
  color: var(--c-star-off);
}

.star-meter {
  position: relative;
  display: inline-block;
  color: var(--c-star-off);
  font-size: 20px;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

.star-meter::before,
.star-meter__fill::before {
  content: "★★★★★";
}

.star-meter__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  color: var(--c-star);
}

.bar {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 60px;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--c-bg-muted);
}

.bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c-brand);
}

.bar--muted .bar__fill {
  background: #98a1b3;
}

.notice-box {
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
  font-size: var(--fs-sm);
}

.notice-box--caution,
.notice-box--warn {
  border-color: var(--c-warn-line);
  background: var(--c-warn-soft);
}

.notice-box--warn {
  margin-bottom: 16px;
}

.notice-box__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--c-warn);
  font-size: var(--fs-md);
  font-weight: 800;
}

.notice-box__title .icon {
  width: 20px;
  height: 20px;
}

.side-box {
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 0;
}

.side-box__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-md);
  font-weight: 800;
}

.side-box__title .icon {
  color: var(--c-brand);
}

.side-box__text {
  margin-bottom: 12px;
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.side-box__empty {
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
}

.side-box__warn {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--c-warn-soft);
  color: var(--c-warn);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.side-box .more-link {
  margin-top: 10px;
}

.mini-table > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--c-line);
  font-size: var(--fs-xs);
}

.mini-table dt {
  flex: none;
  color: var(--c-text-sub);
}

.mini-table dd {
  font-weight: 700;
  text-align: right;
}

.link-list li + li {
  border-top: 1px dotted var(--c-line);
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  color: var(--c-text);
  font-size: var(--fs-sm);
}

.link-list a > span:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
}

.link-list .icon {
  color: var(--c-brand);
}

.link-list__count {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.empty-state {
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  text-align: center;
}

.empty-state__title {
  margin-bottom: 8px;
  color: var(--c-text);
  font-size: var(--fs-md);
  font-weight: 800;
}

.empty-state__tips {
  display: inline-grid;
  gap: 4px;
  padding-left: 1.2em;
  font-size: var(--fs-xs);
  text-align: left;
  list-style: disc;
}

.callout {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-brand-soft);
  font-size: var(--fs-sm);
}

.callout .icon {
  margin-top: 3px;
  color: var(--c-brand);
}

/* ---------- 表 ---------- */
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.req-table th,
.req-table td {
  padding: 12px;
  border: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}

.req-table th {
  width: 8.5em;
  background: var(--c-bg-subtle);
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.req-table td > * + * {
  margin-top: 6px;
}

.req-table__pay {
  font-size: var(--fs-md);
  font-weight: 800;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  border: 1px solid var(--c-line);
  text-align: left;
}

.data-table thead th {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-xs);
}

.data-table tbody th {
  background: var(--c-bg-subtle);
  font-weight: 700;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

/* ---------- トップ ---------- */
.hero {
  padding: 20px 0 22px;
  background: linear-gradient(160deg, var(--c-brand) 0%, var(--c-brand-strong) 100%);
  color: #fff;
}

/*
 * キービジュアル。スマホ・タブレット幅は、看板を中心に切り抜いた画像を上に置き、その下に藍の地の検索欄。
 * パソコン幅（960px〜）は画像全体を背景にし、右側の空に検索欄（hero__panel）を重ねる（看板は左側にある）。
 */
.hero--visual {
  padding-top: 0;
}

.hero__visual {
  position: relative;
}

.hero__visual picture,
.hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.hero__credit {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: var(--fs-2xs);
}

.hero--visual .hero__inner {
  padding-top: 16px;
}

/* スマホ・タブレット幅では、見出しはヘッダーのロゴの下の説明と同じ文なので、見た目からは省いて（読み上げには残す）、
   キービジュアルで下がった求人の欄を少しでも上げる。パソコン幅では検索欄の見出しとして出す。 */
@media (max-width: 959px) {
  .hero--visual .hero__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.hero__title {
  margin: 2px 0 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-search {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-raise);
}

.hero-search__field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--c-input-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-text-muted);
}

.hero-search__field:focus-within {
  border-color: var(--c-brand);
  box-shadow: var(--focus-ring);
}

.hero-search__input,
.hero-search__select {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--c-text);
  font-size: 16px;
}

.hero-search__select {
  appearance: none;
  padding-right: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7384' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 14px;
}

.hero-search__submit {
  min-height: 44px;
  font-size: var(--fs-md);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  margin-top: 12px;
  font-size: var(--fs-sm);
}

.hero__stats strong {
  font-size: 20px;
}

.hero__asof {
  font-size: var(--fs-2xs);
  opacity: 0.8;
}

.home-layout {
  display: grid;
  gap: 28px;
  padding-top: 20px;
}

.home-main {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.home-side {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-text);
}

.category-tile:hover {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
  text-decoration: none;
}

.category-tile__icon {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  stroke-width: 1.6;
}

/* 職種名は最長8文字。幅 360px の2列でも折り返さない大きさにする */
.category-tile__name {
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.35;
}

.category-tile__count {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.area-list {
  display: grid;
  gap: 8px;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-text);
}

.area-item:hover {
  border-color: var(--c-brand);
  text-decoration: none;
}

.area-item__code {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* 地域の紋章（assets/img/emblem-*.webp）。細い線画なので 64px より小さくしない。 */
.area-item__emblem {
  flex: none;
  width: 64px;
  height: 64px;
}

/* 地域ページの見出し: スマホ幅は紋章と地域名を横に並べ、紹介文は全幅で下に。768px〜は紋章を左に大きく置く。 */
.area-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
}

.area-head__emblem {
  width: 80px;
  height: 80px;
}

.area-head__lead {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .area-head {
    column-gap: 24px;
  }

  .area-head__emblem {
    grid-row: 1 / span 2;
    width: 128px;
    height: 128px;
  }

  .area-head__lead {
    grid-column: 2;
    align-self: start;
  }
}

.area-item__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.area-item__name {
  font-weight: 800;
}

.area-item__realm {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.area-item__meta {
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.area-item__arrow {
  color: var(--c-text-muted);
}

/* 特集バナー: 画像（特集の見出しが描かれている）と、その下の件数の帯。 */
.feature-banner {
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-brand-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-text);
}

.feature-banner:hover {
  box-shadow: var(--shadow-raise);
  text-decoration: none;
}

.feature-visual {
  display: block;
  width: 100%;
  height: auto;
}

.feature-banner__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--c-brand-line);
  color: var(--c-brand-strong);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.feature-banner__caption strong {
  font-size: var(--fs-lg);
}

.feature-banner__arrow {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--c-brand);
}

/* 特集の行き先（検索結果）と特集のページの見出しの上の画像 */
.feature-head {
  display: block;
  margin: 4px 0 14px;
  overflow: hidden;
  border-radius: var(--radius);
}

/* 特集の一覧 */
.feature-list {
  display: grid;
  gap: 16px;
}

.feature-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-text);
}

.feature-card:hover {
  border-color: var(--c-brand);
  text-decoration: none;
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px 16px;
}

.feature-card__kicker {
  padding: 0 6px;
  border-radius: 2px;
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 800;
}

.feature-card__title {
  color: var(--c-brand-strong);
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.4;
}

.feature-card__text,
.feature-card__count {
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
}

/* 特集のページ */
.feature-text {
  margin-top: 8px;
  line-height: 1.9;
}

.feature-voices {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.feature-voice {
  padding: 12px 14px;
  border-left: 4px solid var(--c-brand-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg-subtle, #f5f6f9);
}

.feature-voice__who {
  color: var(--c-brand-strong);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.feature-voice__text {
  margin: 4px 0 6px;
  line-height: 1.8;
}

/* サイドの特集の一覧（トップ・地域） */
.side-features {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.side-features a {
  display: block;
  font-weight: 800;
  line-height: 1.5;
}

.side-features span {
  display: block;
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.news-article__feature {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-weight: 700;
}

/* よくあるご質問（details で開閉。JS なしで動く） */
.faq-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.faq-toc a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--c-brand-line);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.faq-group {
  margin-top: 24px;
}

.faq-group__title {
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 4px solid var(--c-brand);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.faq-item {
  border-bottom: 1px solid var(--c-line);
}

.faq-item__q {
  display: flex;
  gap: 10px;
  padding: 12px 4px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: "＋";
  margin-left: auto;
  color: var(--c-brand);
}

.faq-item[open] > .faq-item__q::after {
  content: "－";
}

.faq-item__a {
  display: flex;
  gap: 10px;
  padding: 0 4px 14px;
  line-height: 1.8;
}

.faq-item__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
}

.faq-item__mark--a {
  background: var(--c-accent);
}

.faq-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* 適職診断（質問は1問ずつのページで、選択肢はリンク。入力欄と JS は使わない） */
.shindan {
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  box-shadow: var(--shadow-card);
}

.shindan__progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.shindan__count {
  color: var(--c-brand);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.shindan__count strong {
  font-size: var(--fs-xl);
}

.shindan__of {
  color: var(--c-text-muted);
}

.shindan-dots {
  display: flex;
  gap: 6px;
}

.shindan-dots__dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--c-brand-line);
  border-radius: 50%;
}

.shindan-dots__dot.is-done {
  border-color: var(--c-brand);
  background: var(--c-brand);
}

.shindan-dots__dot.is-current {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
}

.shindan__question {
  margin: 16px 0 14px;
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.6;
}

.shindan-choices {
  display: grid;
  gap: 10px;
}

.shindan-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--c-brand-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.5;
}

.shindan-choice:hover {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
  text-decoration: none;
}

.shindan-choice__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.shindan-choice:hover .shindan-choice__mark {
  background: var(--c-brand);
  color: #fff;
}

.shindan-choice__label {
  flex: 1 1 auto;
  min-width: 0;
}

.shindan-choice__arrow {
  flex: none;
  color: var(--c-brand);
}

.shindan__back {
  margin-top: 16px;
  font-size: var(--fs-sm);
}

.shindan__back a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.shindan-head {
  margin: 8px 0 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--c-brand-soft);
}

.shindan-head__title {
  margin-top: 4px;
  color: var(--c-brand-strong);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  /* 先頭の「の左の空きを詰める */
  font-feature-settings: "palt";
}

.shindan-head__catch {
  margin-top: 6px;
  font-size: var(--fs-md);
  font-weight: 700;
}

.shindan-head__category {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
}

.shindan-head__category .icon {
  color: var(--c-brand);
}

.shindan-head__category strong {
  color: var(--c-text);
}

.shindan-strengths {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.shindan-strengths li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.7;
}

.shindan-strengths .icon {
  flex: none;
  margin-top: 0.3em;
  color: var(--c-brand);
}

.shindan-actions {
  display: grid;
  gap: 8px;
}

/*
 * トップの注目のキーワード・注目の求人ランキング・こだわり条件、0件の入口、検索の説明と0件のときの案内、
 * 気になるリストが空のときの求人、お仕事探しガイドの応募の流れ、組合の窓口の一覧（点検 8・9・10・25・26）。
 */
.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
}

.hero-keywords__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  opacity: 0.9;
}

.hero-keywords__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-keywords__item {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.6;
}

.hero-keywords__item:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* 藍の地では藍の枠が見えないので、キーボード操作の現在位置は白い枠で示す */
.hero-keywords__item:focus-visible {
  outline-color: #fff;
}

.ranking {
  display: grid;
  gap: 8px;
}

.ranking__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s;
}

.ranking__item:hover,
.ranking__item:focus-within {
  border-color: var(--c-brand);
}

.ranking__rank {
  display: grid;
  grid-row: span 2;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  background: var(--c-bg-muted);
  color: var(--c-text);
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1;
}

.ranking__item:nth-child(-n + 3) .ranking__rank {
  background: var(--c-brand);
  color: #fff;
}

.ranking__unit {
  font-size: var(--fs-2xs);
}

.ranking__body {
  min-width: 0;
}

.ranking__link {
  color: var(--c-text);
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.45;
}

/* 行全体をリンクの押せる範囲にする */
.ranking__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ranking__link:hover {
  color: var(--c-brand);
}

.ranking__meta {
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.ranking__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin-top: 2px;
}

.ranking__pay strong {
  font-weight: 800;
}

.ranking__interest {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 12px;
  border: 1px solid var(--c-brand-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-brand-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
}

a.tag-chip:hover {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
  text-decoration: none;
}

.tag-chip__count {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
  font-weight: 400;
}

/* 0件の職種・こだわり条件はリンクにせず、枠を点線にして控えめに出す（文字は 4.5:1 を保つ） */
.tag-chip--empty,
.category-tile--empty {
  border-style: dashed;
  border-color: var(--c-line-strong);
  background: var(--c-bg-subtle);
  color: var(--c-text-muted);
}

.tag-chip--empty {
  font-weight: 400;
}

.category-tile--empty:hover {
  border-color: var(--c-line-strong);
  background: var(--c-bg-subtle);
}

.category-tile--empty .category-tile__icon {
  background: var(--c-bg-muted);
  color: var(--c-text-muted);
}

.link-list__empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}

.link-list__empty > span:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
}

.link-list .link-list__empty .icon {
  color: var(--c-text-muted);
}

.search-lead {
  max-width: 48em;
  margin: -4px 0 14px;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
}

.empty-state__lead {
  margin-bottom: 4px;
  font-size: var(--fs-xs);
}

.empty-state__tips + .empty-state__tips {
  margin-top: 8px;
}

.search-suggest,
.fav-suggest {
  margin-top: 24px;
}

.fav-suggest__title {
  font-size: var(--fs-md);
  font-weight: 800;
}

.flow-steps {
  display: grid;
  gap: 8px;
  counter-reset: flow-step;
}

.flow-steps__item {
  position: relative;
  padding: 10px 12px 10px 50px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: flow-step;
}

.flow-steps__item::before {
  content: counter(flow-step);
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
}

.flow-steps__name {
  font-weight: 800;
}

.flow-steps__desc {
  margin-top: 2px;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
}

.office-table th[scope="row"] {
  white-space: nowrap;
}

/* ---------- お知らせ ---------- */
.news-list {
  border-top: 1px solid var(--c-line);
}

.news-row {
  border-bottom: 1px solid var(--c-line);
}

.news-row__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 10px 2px;
  color: var(--c-text);
}

.news-row__link:hover .news-row__title {
  color: var(--c-brand);
  text-decoration: underline;
}

.news-row__date {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
  font-variant-numeric: tabular-nums;
}

.news-row__title {
  flex: 1 1 100%;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.news-list--plain {
  border-top: 0;
}

.news-list--plain .news-row {
  border-bottom-color: var(--c-warn-line);
}

.news-list--plain .news-row:last-child {
  border-bottom: 0;
}

.news-cat {
  display: inline-block;
  min-width: 64px;
  padding: 0 6px;
  border: 1px solid;
  border-radius: 3px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.news-cat--info {
  border-color: var(--c-brand-line);
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

.news-cat--caution {
  border-color: var(--c-warn-line);
  background: var(--c-warn-soft);
  color: var(--c-warn);
}

.news-cat--stop {
  border-color: var(--c-text-sub);
  background: var(--c-text-sub);
  color: #fff;
}

.news-cat--rule {
  border-color: var(--c-line-strong);
  background: var(--c-bg-muted);
  color: var(--c-text-sub);
}

.news-article {
  padding: 8px 0 20px;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
}

.news-article__body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-md);
}

.news-article__sign {
  margin-top: 20px;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  text-align: right;
}

/* ---------- 求人カード ---------- */
.job-list {
  display: grid;
  gap: 12px;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.job-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.job-stack {
  display: grid;
  gap: 8px;
}

.job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.job-card:hover {
  border-color: var(--c-brand-line);
  box-shadow: var(--shadow-raise);
}

.job-card:focus-within {
  border-color: var(--c-brand);
}

.job-card.is-closed {
  background: var(--c-bg-subtle);
}

.job-card.is-closed .job-card__link,
.job-card.is-closed .job-card__pay {
  color: var(--c-text-muted);
}

.job-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.job-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-brand);
  font-weight: 700;
}

.job-card__id {
  font-variant-numeric: tabular-nums;
}

.job-card__title {
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.45;
}

.job-card__link {
  color: var(--c-text);
}

/* カード全体をリンクの押せる範囲にする（気になるボタンとタグは z-index で上に出す） */
.job-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.job-card__link:hover {
  color: var(--c-brand);
}

.job-card__subtitle,
.job-card__employer {
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.job-card__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}

.job-card__pay strong {
  font-size: var(--fs-lg);
  font-weight: 800;
}

.pay-unit {
  display: inline-block;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1.8;
}

.job-card__hourly,
.job-card__paynote {
  color: var(--c-text-sub);
  font-size: var(--fs-2xs);
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.job-card__meta > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-card__meta dt {
  display: flex;
  color: var(--c-text-muted);
}

.job-card__meta dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.danger-name {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.job-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.job-card__interest {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.job-card__foot .fav-btn {
  margin-left: auto;
}

.job-card--compact {
  gap: 4px;
  padding: 12px;
}

.job-card--compact .job-card__title {
  font-size: var(--fs-sm);
}

.job-card--compact .job-card__pay strong {
  font-size: var(--fs-md);
}

/* ---------- 求人一覧・検索 ---------- */
.result-count {
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
}

.result-count strong {
  color: var(--c-brand);
  font-size: 22px;
  font-weight: 800;
}

.result-count__range {
  margin-left: 4px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--c-brand-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 3px 2px 10px;
  border: 1px solid var(--c-brand-line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-xs);
}

.chip__kind {
  flex: none;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.chip__label {
  min-width: 0;
  color: var(--c-brand-strong);
  font-weight: 700;
}

.chip__remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--c-text-sub);
}

.chip__remove:hover {
  background: var(--c-brand);
  color: #fff;
}

.chips-bar__clear {
  margin-left: auto;
  font-size: var(--fs-xs);
}

.search-layout {
  display: grid;
  gap: 16px;
}

.search-layout__main {
  min-width: 0;
}

.filter {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}

.filter__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.filter__summary::-webkit-details-marker {
  display: none;
}

.filter__summary .icon {
  color: var(--c-brand);
}

.filter__active {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.filter__chevron {
  margin-left: auto;
  transition: transform 0.2s;
}

.filter[open] .filter__chevron {
  transform: rotate(180deg);
}

.filter__form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--c-line);
}

.field {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
}

.field__hint {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.input,
.select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--c-input-line);
  border-radius: var(--radius-sm);
  background-color: #fff;
  font-size: 16px;
}

.input:focus,
.select:focus {
  border-color: var(--c-brand);
  outline: 0;
  box-shadow: var(--focus-ring);
}

.select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7384' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 14px;
}

.check-list {
  display: grid;
  gap: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--c-brand);
}

.filter__actions {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.filter__reset {
  font-size: var(--fs-xs);
}

.sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

.sort-bar__label {
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.sort-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sort-bar__item {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.sort-bar__item:hover {
  border-color: var(--c-brand);
  text-decoration: none;
}

.sort-bar__item.is-current {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: #fff;
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 8px;
}

.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pagination__page,
.pagination__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-brand);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.pagination__page:hover,
.pagination__step:hover {
  border-color: var(--c-brand);
  text-decoration: none;
}

.pagination__page.is-current {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: #fff;
}

.pagination__step.is-disabled {
  border-color: var(--c-line);
  background: var(--c-bg-subtle);
  color: var(--c-text-muted);
}

.pagination__gap {
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: var(--c-text-muted);
}

/* ---------- 求人詳細 ---------- */
.closed-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--c-line-strong);
  border-left: 5px solid var(--c-text-muted);
  border-radius: var(--radius);
  background: var(--c-bg-muted);
}

.closed-banner__icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--c-text-sub);
}

.closed-banner__title {
  font-size: var(--fs-md);
  font-weight: 800;
}

.closed-banner__reason {
  font-size: var(--fs-sm);
}

.closed-banner__date,
.closed-banner__more {
  margin-top: 2px;
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

/* 関連するお知らせ（お知らせの related_jobs を逆にたどる）。募集終了の求人は理由の枠の中、募集中は事務局の注意枠の後 */
.closed-banner__news {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--c-line-strong);
  font-size: var(--fs-xs);
}

.closed-banner__news-title {
  color: var(--c-text-sub);
  font-weight: 800;
}

.related-news {
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
}

.related-news__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  font-weight: 800;
}

.related-news__title .icon {
  color: var(--c-brand);
}

.related-news__list {
  display: grid;
  gap: 4px;
  font-size: var(--fs-sm);
}

.related-news__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.related-news__date {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.job-layout {
  display: grid;
  gap: 20px;
}

.job-detail {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.job-head {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-brand);
  border-radius: var(--radius);
  background: #fff;
  min-width: 0;
}

.job-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.job-head__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-brand);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.job-head__title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
}

.job-head__subtitle {
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.job-head__employer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.job-head__kind {
  padding: 0 6px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
  font-weight: 400;
}

.job-pay {
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
}

.job-pay__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.job-pay__unit {
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
}

.job-pay__amount {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.job-pay__note {
  margin-top: 4px;
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.job-pay__hourly {
  margin-top: 2px;
  color: var(--c-brand);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.job-facts {
  display: grid;
  gap: 4px;
  font-size: var(--fs-sm);
}

.job-facts li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-facts .icon {
  color: var(--c-text-muted);
}

.job-facts__label {
  min-width: 4.5em;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.job-actions .btn--lg {
  flex: 1 1 220px;
}

.job-actions--center {
  justify-content: center;
}

.office-note {
  padding: 16px;
  border: 2px solid var(--c-warn-line);
  border-radius: var(--radius);
  background: var(--c-warn-soft);
}

.office-note__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--c-warn);
  font-size: var(--fs-md);
  font-weight: 800;
}

.office-note__title .icon {
  width: 22px;
  height: 22px;
}

.office-note__wage {
  margin-bottom: 8px;
  color: var(--c-warn);
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* 求人詳細の目次（スマホで募集要項まで遠いので、見出しの下から各節へ飛べるようにする） */
.toc.toc--job {
  margin-bottom: 0;
}

.job-section__title[id],
.side-box__title[id] {
  scroll-margin-top: 12px;
}

.job-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}

.job-section__title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-brand);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.job-section__count {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  font-weight: 400;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.data-grid__item {
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg-subtle);
}

.data-grid dt {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.data-grid dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: var(--fs-md);
  font-weight: 800;
}

.data-grid__sub {
  color: var(--c-text-sub);
  font-size: var(--fs-2xs);
}

.insight-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.insight {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-brand-soft);
}

.insight__label {
  color: var(--c-text-sub);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.insight__value {
  font-size: var(--fs-sm);
}

.insight__value strong {
  margin: 0 2px;
  color: var(--c-brand-strong);
  font-size: 20px;
  font-weight: 800;
}

.compare {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
}

.compare__title {
  font-size: var(--fs-xs);
  font-weight: 800;
}

.compare__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
}

.compare__label {
  flex: none;
  width: 4.5em;
  color: var(--c-text-sub);
}

.compare__value {
  flex: none;
  min-width: 5.5em;
  font-weight: 700;
  text-align: right;
}

.compare__summary {
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.timeline__item {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 14px;
}

.timeline__time {
  padding-top: 1px;
  color: var(--c-brand);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-align: right;
}

.timeline__text {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
}

.timeline__text::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--c-brand);
  border-radius: 50%;
  background: #fff;
}

.timeline__text::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -16px;
  left: 4.5px;
  width: 2px;
  background: var(--c-brand-line);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item:last-child .timeline__text::after {
  display: none;
}

.voices {
  display: grid;
  gap: 12px;
}

.voice {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
}

.voice__photo {
  text-align: center;
}

.voice__silhouette {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: #dfe3eb;
  color: #aab3c4;
}

.voice__silhouette .icon {
  width: 62px;
  height: 62px;
  margin-bottom: -6px;
}

.voice__caption {
  margin-top: 4px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
  line-height: 1.3;
}

.voice__who {
  margin-bottom: 4px;
  color: var(--c-brand-strong);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.apply-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 16px;
  border: 1px solid var(--c-brand-line);
  border-radius: var(--radius);
  background: var(--c-brand-soft);
  text-align: center;
}

.apply-box__lead {
  font-weight: 700;
}

.apply-box .job-actions {
  width: 100%;
}

.job-side {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.side-box--summary {
  display: none;
}

.side-summary__title {
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1.45;
}

.side-summary__pay {
  font-size: var(--fs-lg);
  font-weight: 800;
}

.side-box--summary .fav-btn {
  width: 100%;
}

.related {
  margin-top: 28px;
}

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -4px 12px rgba(16, 24, 48, 0.08);
}

.sticky-cta__apply {
  flex: 1 1 auto;
  min-height: 46px;
  font-size: var(--fs-md);
}

.sticky-cta .fav-btn {
  min-height: 46px;
}

/*
 * 下部固定ボタン（募集中の求人だけ。page-job--cta）の分だけ、ページの最後が隠れないようにする。
 * Tab で移ったフォーカスがバーの裏に隠れないよう、スクロールの下端もバーの高さ（約67px＋端末の下端の余白）だけ上げる（WCAG 2.4.11）。
 */
.page-job--cta {
  padding-bottom: 72px;
}

@media (max-width: 959px) {
  html:has(> body.page-job--cta) {
    scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- 応募演出 ---------- */
.apply-target {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
}

.apply-target__label {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.apply-target__title {
  font-size: var(--fs-md);
  font-weight: 800;
}

.apply-target__meta {
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.apply {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}

.apply-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  transition: opacity 0.3s;
}

.apply-step::after {
  content: "";
  position: absolute;
  top: 46px;
  bottom: 2px;
  left: 21px;
  width: 2px;
  background: var(--c-line);
}

.apply-step:last-child {
  padding-bottom: 0;
}

.apply-step:last-child::after {
  display: none;
}

.apply-step__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--c-brand-line);
  border-radius: 50%;
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

.apply-step__icon .icon {
  width: 22px;
  height: 22px;
}

.apply-step__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.apply-step__text {
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.apply-step__status:empty {
  display: none;
}

.apply-step__status {
  padding: 0 8px;
  border-radius: 999px;
  font-size: var(--fs-2xs);
  font-weight: 700;
}

/* assets/app.js が .is-running を付けたときだけ、段階的に進める見た目にする */
.apply.is-running .apply-step {
  opacity: 0.45;
}

.apply.is-running .apply-step.is-active,
.apply.is-running .apply-step.is-done {
  opacity: 1;
}

.apply-step.is-active .apply-step__icon,
.apply-step.is-done .apply-step__icon {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: #fff;
}

.apply-step.is-active .apply-step__icon {
  animation: kuchiire-pulse 1s ease-in-out infinite;
}

.apply-step.is-done::after {
  background: var(--c-brand);
}

.apply-step.is-active .apply-step__status {
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

.apply-step.is-done .apply-step__status {
  background: var(--c-bg-muted);
  color: var(--c-text-sub);
}

@keyframes kuchiire-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(35, 58, 139, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(35, 58, 139, 0);
  }
}

.apply-result {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
}

.apply-result:focus {
  outline: 2px solid var(--c-brand);
}

.apply-result__body > * + * {
  margin-top: 6px;
}

.apply-result__title {
  font-size: var(--fs-lg);
  font-weight: 800;
}

.apply-result__title--pass {
  color: var(--c-brand);
}

.apply-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 事業所・地域 ---------- */
.two-col {
  display: grid;
  gap: 20px;
}

.two-col__main,
.two-col__side {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.employer-group {
  margin-bottom: 24px;
}

.employer-list {
  display: grid;
  gap: 8px;
}

.employer-item {
  display: grid;
  grid-template-areas: "name arrow" "kind arrow" "meta arrow";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-text);
}

.employer-item:hover {
  border-color: var(--c-brand);
  text-decoration: none;
}

.employer-item__name {
  grid-area: name;
  font-weight: 800;
}

.employer-item__kind {
  grid-area: kind;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.employer-item__meta {
  display: flex;
  flex-wrap: wrap;
  grid-area: meta;
  align-items: center;
  gap: 4px 12px;
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.employer-item__meta strong {
  color: var(--c-brand);
}

.employer-item__arrow {
  grid-area: arrow;
  color: var(--c-text-muted);
}

.review-summary {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
}

.review-summary__overall {
  text-align: center;
}

.review-summary__label {
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.review-summary__score {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
}

.review-summary__count {
  margin-top: 4px;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.review-axes {
  display: grid;
  gap: 6px;
}

.review-axes__row {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
}

.review-axes__row dd {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-axes__value {
  width: 2.5em;
  font-weight: 800;
  text-align: right;
}

.reviews {
  display: grid;
  gap: 12px;
}

.review {
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.review__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 800;
}

.review__avatar {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
  background: #dfe3eb;
  color: #aab3c4;
}

.review__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 8px;
  font-size: var(--fs-2xs);
}

.review__scores > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review__scores dt {
  color: var(--c-text-sub);
}

.review__scores .stars {
  font-size: 11px;
}

.review__score {
  margin-left: 3px;
  color: var(--c-text);
  font-weight: 800;
}

/* ---------- お仕事探しガイド・組合の概要・個人情報の取り扱い ---------- */
.toc {
  margin-bottom: 24px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--c-bg-subtle);
}

.toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.toc__list a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}

.guide {
  display: grid;
  gap: 32px;
}

.guide-section {
  min-width: 0;
  scroll-margin-top: 12px;
}

.guide-section > * + * {
  margin-top: 10px;
}

.guide-subtitle {
  margin: 20px 0 8px;
  font-size: var(--fs-md);
  font-weight: 800;
}

.term-list {
  border-top: 1px solid var(--c-line);
}

.term-list__row {
  display: grid;
  gap: 2px 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--c-line);
}

.term-list dt {
  font-size: var(--fs-sm);
  font-weight: 800;
}

.term-list dd {
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
}

.weekday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weekday-list li {
  padding: 3px 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.doc-section {
  margin-bottom: 28px;
}

.doc-section > * + * {
  margin-top: 12px;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}

.doc-sign {
  margin-top: 8px;
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  text-align: right;
}

.doc-back {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}

.history li {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--c-line);
  font-size: var(--fs-sm);
}

.history__year {
  color: var(--c-brand);
  font-weight: 800;
}

/* ---------- 気になるリスト ---------- */
.saved-section {
  margin-bottom: 28px;
}

.saved-list {
  display: grid;
  gap: 8px;
}

.saved-item {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}

.saved-item__link {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  color: var(--c-text);
}

.saved-item__link:hover {
  background: var(--c-brand-soft);
  text-decoration: none;
}

.saved-item__id {
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
}

.saved-item__title {
  color: var(--c-brand-strong);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.saved-item__meta {
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
}

.saved-item__remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  border: 0;
  border-left: 1px solid var(--c-line);
  background: var(--c-bg-subtle);
  color: var(--c-text-muted);
  cursor: pointer;
}

.saved-item__remove:hover {
  color: var(--c-accent);
}

/* ---------- エラーページ ---------- */
.error-page {
  padding-top: 40px;
  padding-bottom: 20px;
  text-align: center;
}

.error-page__code {
  color: var(--c-brand-line);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.error-page__message {
  max-width: 34em;
  margin: 12px auto 20px;
  color: var(--c-text-sub);
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ---------- 作中のフッター（組合のフッター） ---------- */
.site-footer {
  margin-top: 48px;
  padding: 24px 0 28px;
  background: var(--c-footer);
  color: #d7dbe3;
  font-size: var(--fs-xs);
}

.site-footer a {
  color: #fff;
}

/* 濃い地のフッターでも、キーボード操作の現在位置が見えるようにする */
.site-footer a:focus-visible {
  outline-color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 20px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-feature-settings: "palt";
}

.site-footer__emblem {
  width: 26px;
  height: 26px;
  color: #3d56b3;
}

.site-footer__reading {
  color: #aab3c4;
  font-size: var(--fs-2xs);
  font-weight: 400;
  letter-spacing: 0;
}

.site-footer__tagline {
  margin-top: 4px;
  color: #aab3c4;
}

.site-footer__meta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.site-footer__meta > div {
  display: flex;
  gap: 8px;
}

.site-footer__meta dt {
  flex: none;
  width: 6.5em;
  color: #aab3c4;
}

.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
}

.site-footer__copy {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8b93a5;
  font-size: var(--fs-2xs);
}

/*
 * ---------- リアル側（現実のこのウェブサイト） ----------
 * 作品の外側の枠。作中のブランド色（藍・朱）とロゴを使わず、白〜薄い灰色の地に灰色の小さな文字と細い罫線で描く。
 * 静的な 403.html・404.html の <style> にも同じ見た目の帯を書いている（変えるときはそろえる）。
 */
.real-band {
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-real-line);
  background: var(--c-real-bg);
  color: var(--c-real-sub);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

/* リンクの左端を、上の作中のフッター（.container の内側の余白の内側）の左端にそろえる */
.real-band__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
}

/* /about では、本文の列（.real-page・.real-header__inner の幅 760px）の左端にそろえる */
.page-real .real-band__list {
  max-width: calc(760px - 2 * var(--gutter));
}

.real-band a,
.real-header a,
.real-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.real-band a,
.real-header a {
  color: var(--c-real-sub);
}

.real-band a:hover,
.real-header a:hover {
  color: var(--c-real-text);
}

.real-band a:focus-visible,
.page-real :focus-visible {
  outline-color: var(--c-real-text);
}

.page-real .skip-link {
  background: var(--c-real-text);
}

/* リアルのページ（/about）の見出しの帯。作中のヘッダーの代わりに出す */
.real-header {
  border-bottom: 1px solid var(--c-real-line);
  background: var(--c-real-bg);
  color: var(--c-real-sub);
  font-size: var(--fs-xs);
}

.real-header__inner {
  max-width: 760px;
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.real-header__path {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.real-header__path li + li::before {
  content: "／";
  margin-right: 8px;
}

.real-page {
  max-width: 760px;
  margin-inline: auto;
  padding: 28px var(--gutter) 48px;
  color: var(--c-real-text);
  font-size: var(--fs-md);
  line-height: 1.8;
}

.real-page > * + * {
  margin-top: 12px;
}

.real-page a {
  color: var(--c-real-text);
}

.real-page__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.real-page__notice {
  padding: 12px 14px;
  border: 1px solid var(--c-real-line);
  background: var(--c-real-bg);
}

.real-page__section {
  padding-top: 20px;
}

.real-page__section > * + * {
  margin-top: 10px;
}

.real-page__heading {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-real-line);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.real-page__list {
  display: grid;
  gap: 6px;
  padding-left: 1.4em;
  list-style: disc;
}

.real-page__credit {
  color: var(--c-real-sub);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

.real-page__back {
  padding-top: 24px;
  font-size: var(--fs-sm);
}

/* ---------- 600px〜 ---------- */
@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .category-tile__name {
    font-size: var(--fs-sm);
  }

  .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-summary {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
  }
}

/* 狭い画面では募集要項の表を縦積みにする */
@media (max-width: 599px) {
  .req-table,
  .req-table tbody,
  .req-table tr,
  .req-table th,
  .req-table td {
    display: block;
    width: 100%;
  }

  .req-table tr {
    border: 1px solid var(--c-line);
    border-bottom: 0;
  }

  .req-table tr:last-child {
    border-bottom: 1px solid var(--c-line);
  }

  .req-table th,
  .req-table td {
    border: 0;
  }

  .req-table th {
    padding: 6px 10px;
  }

  .req-table td {
    padding: 10px;
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}

/* ---------- 768px〜 ---------- */
@media (min-width: 768px) {
  .site-header__bar {
    flex-wrap: nowrap;
    padding-block: 12px;
  }

  .today-box {
    display: block;
    width: auto;
    padding-top: 0;
    border-top: 0;
    font-size: var(--fs-xs);
    text-align: right;
  }

  .today-box__date {
    justify-content: flex-end;
  }

  .global-nav__list {
    gap: 2px;
    padding-inline: var(--gutter);
  }

  .global-nav__item {
    flex: 0 0 auto;
  }

  .global-nav__link {
    flex-direction: row;
    gap: 6px;
    padding: 10px 16px;
    font-size: var(--fs-sm);
    font-weight: 700;
  }

  .global-nav__icon {
    width: 18px;
    height: 18px;
  }

  .count-badge {
    position: static;
  }

  .hero {
    padding: 32px 0;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero-search {
    grid-template-columns: minmax(0, 1fr) 240px auto;
  }

  .page-title {
    font-size: 24px;
  }

  .input,
  .select {
    font-size: var(--fs-base);
  }

  .news-list:not(.news-list--compact) .news-row__title {
    flex: 1 1 0;
  }

  .job-head {
    padding: 20px;
  }

  .job-head__title {
    font-size: 26px;
  }

  .job-pay__amount {
    font-size: 30px;
  }

  .job-section {
    padding: 20px;
  }

  .data-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .data-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .voice {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .voice__silhouette {
    width: 88px;
    height: 88px;
  }

  .voice__silhouette .icon {
    width: 76px;
    height: 76px;
  }

  .employer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .term-list__row {
    grid-template-columns: 14em minmax(0, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------- 960px〜 ---------- */
@media (min-width: 960px) {
  .hero--visual {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 460px;
    padding: 36px 0;
    overflow: hidden;
  }

  .hero--visual .hero__visual {
    position: absolute;
    inset: 0;
  }

  .hero--visual .hero__visual picture,
  .hero--visual .hero__image {
    height: 100%;
  }

  .hero--visual .hero__image {
    object-fit: cover;
    object-position: 30% 22%;
  }

  .hero--visual .hero__credit {
    right: auto;
    bottom: 10px;
    left: 12px;
  }

  .hero--visual .hero__inner {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-top: 0;
  }

  .hero__panel {
    width: 440px;
    padding: 22px 22px 18px;
    border-radius: var(--radius);
    background: rgba(20, 33, 86, 0.88);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

  .hero__panel .hero__title {
    margin-top: 0;
    font-size: 22px;
  }

  .hero__panel .hero-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .search-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

  .search-layout__side {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .job-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .job-side {
    position: sticky;
    top: 12px;
  }

  .side-box--summary {
    display: grid;
    gap: 10px;
    border-top: 4px solid var(--c-brand);
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .sticky-cta {
    display: none;
  }

  .page-job--cta {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-card,
  .filter__chevron,
  .apply-step {
    transition: none;
  }

  .apply-step.is-active .apply-step__icon {
    animation: none;
  }
}

@media print {
  .global-nav,
  .sticky-cta,
  .fav-btn,
  .filter {
    display: none !important;
  }
}
