@charset "UTF-8";

/**
 * 求人一覧ページ
 * ------------------------------------------------------------------
 * 既存テーマ（assets/vendor/theme/style.css）の後に読み込む前提。
 * ヘッダー / フッター / お問い合わせCTA は既存スタイルをそのまま利用し、
 * 本ファイルでは検索一覧まわりのみを定義する。
 *
 * 命名は既存テーマの FLOCSS 風ルール（l- / c-）に合わせている。
 */

/* ------------------------------------------------------------------
   デザイントークン（Figma: PC_求人一覧 準拠）
   ------------------------------------------------------------------ */
:root {
  --job-primary:   #39b7df; /* メインカラー（見出し・ボタン・選択状態） */
  --job-ink:       #212121; /* 見出し・本文 */
  --job-text:      #3b3b3b; /* 補助テキスト */
  --job-muted:     #757575; /* プレースホルダ */
  --job-border:    #d1d1d1; /* フォームの枠線 */
  --job-divider:   #f2f2f2; /* 区切り罫線 */
  --job-field:     #f5f8fa; /* フォーム背景・バッジ背景 */
  --job-check-off: #e3e3e3; /* 未選択チェックボックス */
  --job-page:      #f1f1f1; /* ページ背景 */
  --job-white:     #ffffff;

  /* 件数などの数字に使うフォント（デザイナー指定） */
  --job-num-family: "Google Sans Flex", "Noto Sans JP", sans-serif;

  /* 本文フォント。
     既存テーマの指定は `calibri, sans-serif, "Noto Sans JP", sans-serif` で、
     汎用の sans-serif が Noto Sans JP より前にあるため日本語が
     システムフォントで描画されてしまう。デザインどおりにするため
     この画面では Noto Sans JP を先に置いた指定を使う。 */
  --job-jp-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;

  --job-sidebar-w: 304px;
  --job-main-w:    880px;
  --job-gap:       40px;

  /* ヘッダー（既存テーマ）の高さ。JS から実測値で上書きする */
  --job-header-h:  105px;
}

.l-main {
  background-color: var(--job-page);
}

/* 求人まわりの本文はデザインどおり Noto Sans JP で描画する
   （ヘッダー / フッターは既存テーマのままにしておく）

   既存テーマは html に letter-spacing:0.05em と font-feature-settings:"palt"
   を効かせているが、Figma はどちらも指定なし（letterSpacing 0 / palt なし）。
   そのままだと字送りが変わって文字が詰まって見えるため、
   求人まわりのページでは両方を打ち消してデザインに合わせる。 */
.c-job-search-title,
.l-job-search,
.c-job-filter-sheet,
.l-job-detail,
.l-apply {
  font-family: var(--job-jp-family);
  font-feature-settings: normal;
  letter-spacing: 0;
}

/* ------------------------------------------------------------------
   ページタイトル
   ------------------------------------------------------------------ */
.c-job-search-title {
  padding: 112px 24px 0;
  text-align: center;
}

.c-job-search-title__text {
  color: var(--job-ink);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.45;
}

/* ------------------------------------------------------------------
   全体レイアウト（サイドバー + 結果一覧）
   ------------------------------------------------------------------ */
.l-job-search {
  padding: 80px 0 120px;
}

.l-job-search__inner {
  align-items: flex-start;
  display: flex;
  gap: var(--job-gap);
  margin: 0 auto;
  /* 左右padding込み。コンテンツ実幅は 304 + 40 + 880 = 1224px */
  max-width: calc(var(--job-sidebar-w) + var(--job-gap) + var(--job-main-w) + 48px);
  padding: 0 24px;
}

/* ------------------------------------------------------------------
   絞り込みサイドバー
   ------------------------------------------------------------------ */
.c-job-filter {
  background-color: var(--job-white);
  border-radius: 10px;
  box-shadow: 6px 10px 20px rgba(0, 0, 0, 0.06);
  flex: 0 0 var(--job-sidebar-w);
  width: var(--job-sidebar-w);
}

/* 条件の並ぶ領域。PCではここだけがスクロールする */
.c-job-filter__scroll {
  padding: 32px 24px 0;
}

/* --- 見出し（アイコン + テキスト + 下線） --- */
.c-job-filter__heading {
  align-items: center;
  border-bottom: 1px solid var(--job-primary);
  color: var(--job-primary);
  display: flex;
  font-size: 20px;
  font-weight: 700;
  gap: 8px;
  line-height: 1.45;
  padding-bottom: 12px;
}

.c-job-filter__heading svg {
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.c-job-filter__block {
  padding-top: 24px;
}

.c-job-filter__label {
  color: var(--job-ink);
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

/* --- 年収（下限 / 上限） --- */
.c-job-filter__row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.c-job-filter__row + .c-job-filter__row {
  margin-top: 8px;
}

.c-job-filter__unit {
  color: var(--job-ink);
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.5;
}

/* --- サイドバー下部（件数・検索・リセット） --- */
.c-job-filter__foot {
  background-color: var(--job-white);
  padding: 12px 24px 16px;
}

.c-job-filter__result {
  align-items: baseline;
  color: var(--job-primary);
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 6px;
}

.c-job-filter__result-label {
  font-size: 13px;
  font-weight: 700;
}

.c-job-filter__result-count {
  font-family: var(--job-num-family);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.c-job-filter__submit {
  /* 既存テーマのリセットで button の text-align が inherit になるため明示する */
  align-items: center;
  background-color: var(--job-primary);
  border: none;
  border-radius: 50px;
  color: var(--job-white);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  height: 55px;
  justify-content: center;
  text-align: center;
  transition: opacity 0.3s;
  width: 100%;
}

.c-job-filter__submit:hover {
  opacity: 0.8;
}

.c-job-filter__reset {
  margin-top: 8px;
  text-align: center;
}

.c-job-filter__reset a {
  color: var(--job-ink);
  font-size: 10px;
  line-height: 1.8;
  text-decoration: underline;
}

.c-job-filter__reset a:hover {
  opacity: 0.7;
}

/* ------------------------------------------------------------------
   カスタムドロップダウン（c-dd）
   ------------------------------------------------------------------
   ネイティブ <select> は OS 既定の選択リストが出て見た目を統一できないため、
   button + パネルによる自前実装に置き換えている。
   ------------------------------------------------------------------ */
.c-dd {
  position: relative;
  width: 100%;
}

.c-dd__btn {
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  background-color: var(--job-field);
  /* デザイン上は枠線なし。ホバー時だけ枠を出すため透明で確保しておく */
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--job-ink);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 13px;
  gap: 10px;
  height: 48px;
  justify-content: space-between;
  padding: 0 16px;
  transition: border-color 0.15s;
  width: 100%;
}

.c-dd__btn:hover,
.c-dd.is-open .c-dd__btn {
  border-color: var(--job-primary);
}

.c-dd__btn:focus-visible {
  border-color: var(--job-primary);
  outline: 2px solid var(--job-primary);
  outline-offset: 1px;
}

.c-dd__val {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-dd__chev {
  color: var(--job-ink);
  display: inline-flex;
  flex: 0 0 auto;
  transition: transform 0.2s;
}

.c-dd__chev svg {
  height: 18px;
  width: 18px;
}

.c-dd.is-open .c-dd__chev {
  transform: rotate(180deg);
}

/* --- 開閉パネル --- */
.c-dd__panel {
  background-color: var(--job-white);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(33, 33, 33, 0.13);
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  transform: scale(0.97) translateY(-4px);
  transform-origin: top center;
  transition: opacity 0.16s, transform 0.2s, visibility 0.16s;
  visibility: hidden;
  z-index: 20;

  /* 閉じている間も絶対配置の箱として高さを持つと、
     親のスクロール範囲が余分に伸びてしまうため潰しておく */
  max-height: 0;
  overflow: hidden;
  padding: 0 6px;
}

.c-dd.is-open .c-dd__panel {
  max-height: 280px;
  opacity: 1;
  overflow-y: auto;
  padding: 6px;
  transform: scale(1) translateY(0);
  visibility: visible;
}

/* 下に開くと隠れてしまう場合は上向きに開く（JSが c-dd--up を付ける） */
.c-dd--up .c-dd__panel {
  bottom: calc(100% + 6px);
  top: auto;
  transform: scale(0.97) translateY(4px);
  transform-origin: bottom center;
}

.c-dd--up.is-open .c-dd__panel {
  transform: scale(1) translateY(0);
}

.c-dd__opt {
  align-items: center;
  background: none;
  border: none;
  border-radius: 7px;
  color: var(--job-text);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 13px;
  gap: 8px;
  padding: 10px 12px;
  text-align: left;
  transition: background-color 0.12s, color 0.12s;
  width: 100%;
}

.c-dd__opt:hover {
  background-color: var(--job-field);
  color: var(--job-primary);
}

.c-dd__opt.is-selected {
  color: var(--job-primary);
  font-weight: 700;
}

.c-dd__dot {
  /* svg をインラインのまま置くとベースラインに載って下にずれるため、
     フレックスにして中央に固定する */
  align-items: center;
  color: var(--job-primary);
  display: flex;
  flex: 0 0 auto;
  height: 16px;
  justify-content: center;
  opacity: 0;
  width: 16px;
}

.c-dd__dot svg {
  height: 100%;
  width: 100%;
}

.c-dd__opt.is-selected .c-dd__dot {
  opacity: 1;
}

/* --- 複数選択のドロップダウンはチェックボックス表示にする ---
   単一選択（チェックが付くだけ）と区別が付くよう、未選択でも枠を出す */
.c-dd[data-multiple] .c-dd__dot {
  border: 1.5px solid var(--job-border);
  border-radius: 4px;
  height: 18px;
  opacity: 1;
  padding: 2px;
  transition: background-color 0.12s, border-color 0.12s;
  width: 18px;
}

.c-dd[data-multiple] .c-dd__dot svg {
  color: var(--job-white);
  opacity: 0;
  transition: opacity 0.12s;
}

.c-dd[data-multiple] .c-dd__opt.is-selected .c-dd__dot {
  background-color: var(--job-primary);
  border-color: var(--job-primary);
}

.c-dd[data-multiple] .c-dd__opt.is-selected .c-dd__dot svg {
  opacity: 1;
}

/* ------------------------------------------------------------------
   勤務地（地域アコーディオン）
   ------------------------------------------------------------------ */
.c-job-area__group:not(.c-job-area__group--open) .c-job-area__prefectures {
  display: none;
}

.c-job-area__region {
  align-items: center;
  border-top: 1px solid var(--job-divider);
  display: flex;
  gap: 0;
  height: 46px;
  position: relative;
}

/* 最後の地域（九州／沖縄）は下にも罫線を引いてリストを閉じる */
.c-job-area__group:last-child {
  border-bottom: 1px solid var(--job-divider);
}

.c-job-area__region-check {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.c-job-area__region-name {
  color: var(--job-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.c-job-area__group--open .c-job-area__region-name,
.c-job-area__region-check input:checked ~ .c-job-area__region-name {
  font-weight: 700;
}

/* 「選択中」バッジ */
.c-job-area__badge {
  background-color: var(--job-field);
  border-radius: 30px;
  color: var(--job-primary);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 25px;
  margin-right: 16px;
  text-align: center;
  width: 67px;
}

/* 開閉ボタン（＋ / −） */
.c-job-area__toggle {
  align-items: center;
  background: none;
  border: none;
  color: var(--job-ink);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 20px;
}

.c-job-area__toggle::before,
.c-job-area__toggle::after {
  background-color: currentColor;
  content: "";
  position: absolute;
  transition: transform 0.2s, opacity 0.2s;
}

.c-job-area__toggle::before {
  height: 1px;
  width: 12px;
}

.c-job-area__toggle::after {
  height: 12px;
  width: 1px;
}

/* 展開中は「−」にする（縦棒を消す） */
.c-job-area__group--open .c-job-area__toggle::after {
  opacity: 0;
  transform: scaleY(0);
}

/* 都道府県リスト */
.c-job-area__prefectures {
  padding: 0 0 8px 22px;
}

.c-job-area__pref {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  height: 34px;
}

.c-job-area__pref-name {
  color: var(--job-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.c-job-area__pref input:checked ~ .c-job-area__pref-name {
  font-weight: 700;
}

/* チェックボックス外観 */
.c-job-area input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--job-check-off);
  border: 1px solid var(--job-check-off);
  border-radius: 1px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 14px;
  margin: 0;
  position: relative;
  width: 14px;
}

.c-job-area input[type="checkbox"]:checked,
.c-job-area input[type="checkbox"]:indeterminate {
  background-color: var(--job-primary);
  border-color: var(--job-primary);
}

/* 一部だけ選択されている地域は「−」で表す */
.c-job-area input[type="checkbox"]:indeterminate::after {
  border-width: 0 0 1.5px 0;
  height: 0;
  left: 2.5px;
  top: 5px;
  transform: none;
  width: 7px;
}

.c-job-area input[type="checkbox"]::after {
  border: solid var(--job-white);
  border-width: 0 1.5px 1.5px 0;
  content: "";
  height: 7px;
  left: 4.3px;
  position: absolute;
  top: 1.5px;
  transform: rotate(45deg);
  width: 4px;
}

.c-job-area input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--job-primary);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   検索結果カラム
   ------------------------------------------------------------------ */
.c-job-result {
  flex: 1 1 var(--job-main-w);
  min-width: 0;
}

/* --- ツールバー（並び順 / 件数 / ページネーション） --- */
.c-job-result__toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 13px;
}

.c-job-result__sort {
  flex: 0 0 152px;
  width: 152px;
}

/* 並び順は白背景（サイドバーのフォームとは別扱い）。影は付けない */
.c-job-result__sort .c-dd__btn {
  background-color: var(--job-white);
  border-color: var(--job-divider);
}

.c-job-result__count {
  align-items: baseline;
  color: var(--job-ink);
  display: flex;
  flex: 1 1 auto;
  gap: 3px;
  white-space: nowrap;
}

.c-job-result__count-num {
  font-family: var(--job-num-family);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.c-job-result__count-unit,
.c-job-result__count-range {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.c-job-result__count-range {
  margin-left: 5px;
}

/* ------------------------------------------------------------------
   求人カード
   ------------------------------------------------------------------ */
.c-job-card-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-job-card {
  background-color: var(--job-white);
  border-radius: 5px;
  box-shadow: 3px 10px 16px rgba(0, 0, 0, 0.06);
  padding: 24px 24px 32px;
}

/* --- カード上部（タグ + 会社名） --- */
.c-job-card__head {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.c-job-card__tag {
  background-color: var(--job-ink);
  border-radius: 2px;
  color: var(--job-white);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 25px;
  min-width: 66px;
  padding: 0 9px;
  text-align: center;
}

.c-job-card__company {
  color: var(--job-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

/* --- タイトル --- */
.c-job-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 16px;
}

.c-job-card__title a {
  color: var(--job-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.3s;
}

.c-job-card__title a:hover {
  color: var(--job-primary);
  text-decoration: underline;
}

/* --- カード下部（画像 + 情報 + ボタン） --- */
.c-job-card__body {
  align-items: flex-start;
  display: flex;
  gap: 23px;
}

.c-job-card__thumb {
  background-color: #d9d9d9;
  border-radius: 5px;
  flex: 0 0 232px;
  height: 136px;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 232px;
}

.c-job-card__thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* 「※写真はイメージです」は画像の右下に重ねる */
.c-job-card__thumb-note {
  bottom: 4px;
  color: var(--job-white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.8;
  position: absolute;
  right: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* 求人情報（アイコン + ラベル + 値） */
.c-job-card__info {
  display: grid;
  flex: 1 1 auto;
  gap: 2px 0;
  /* アイコン / ラベル / 値。ラベルと値の間は「：」が担うので余白は入れない */
  grid-template-columns: 17px auto 1fr;
  margin: 0;
  padding-top: 2px;
}

.c-job-card__info-icon {
  align-items: center;
  color: var(--job-primary);
  display: flex;
  height: 25px;
  justify-content: center;
}

.c-job-card__info-icon svg {
  height: 17px;
  width: 17px;
}

.c-job-card__info dt,
.c-job-card__info dd {
  color: var(--job-ink);
  font-size: 14px;
  line-height: 25px;
  margin: 0;
}

.c-job-card__info dt {
  font-weight: 500;
  min-width: 48px;
  padding-left: 6px;
  white-space: nowrap;
}

.c-job-card__info dd {
  font-weight: 400;
}

/* 値の頭の「：」 */
.c-job-card__info dd::before {
  content: "：";
}

/* 詳細ボタン（画像の下端に揃える）
   ラベルはボタン中央、アイコンは右端から16pxに置く（デザイン準拠） */
.c-job-card__button {
  align-items: center;
  align-self: flex-end;
  background-color: var(--job-primary);
  border-radius: 30px;
  color: var(--job-white);
  display: flex;
  flex: 0 0 175px;
  font-size: 13px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  margin-left: auto;
  position: relative;
  transition: opacity 0.3s;
  width: 175px;
}

.c-job-card__button svg {
  height: 16px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
}

.c-job-card__button:hover {
  opacity: 0.8;
}

/* --- 検索結果0件 --- */
.c-job-card-list__empty {
  background-color: var(--job-white);
  border-radius: 5px;
  box-shadow: 3px 10px 16px rgba(0, 0, 0, 0.06);
  color: var(--job-text);
  font-size: 14px;
  padding: 64px 24px;
  text-align: center;
}

/* ------------------------------------------------------------------
   ページネーション
   ------------------------------------------------------------------ */
.c-job-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
}

.c-job-pagination--top {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.c-job-pagination--bottom {
  justify-content: center;
  margin-top: 40px;
}

/* 数字 */
.c-job-pagination__item {
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--job-ink);
  display: flex;
  font-family: var(--job-num-family);
  font-size: 18px;
  font-weight: 400;
  justify-content: center;
  line-height: 1.3;
  min-width: 20px;
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.2s;
}

a.c-job-pagination__item:hover {
  color: var(--job-primary);
}

.c-job-pagination__item.is-current {
  border-bottom-color: var(--job-primary);
  color: var(--job-primary);
  font-weight: 500;
}

/* 省略記号 */
.c-job-pagination__ellipsis {
  color: var(--job-ink);
  font-family: var(--job-num-family);
  font-size: 18px;
  line-height: 1.3;
  min-width: 20px;
  text-align: center;
}

/* 前へ / 次へ（円形） */
.c-job-pagination__nav {
  align-items: center;
  background-color: var(--job-white);
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--job-primary);
  display: flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  width: 30px;
}

.c-job-pagination__nav svg {
  height: 12px;
  width: 14px;
}

.c-job-pagination__nav:hover {
  background-color: var(--job-primary);
  color: var(--job-white);
}

.c-job-pagination__nav--prev {
  margin-right: 20px;
}

.c-job-pagination__nav--next {
  margin-left: 20px;
}

/* ------------------------------------------------------------------
   絞り込み起動ボタン + ボトムシート（タブレット以下）
   ------------------------------------------------------------------ */
.c-job-filter-trigger {
  align-items: center;
  background-color: var(--job-white);
  border: 1.5px solid var(--job-primary);
  border-radius: 12px;
  color: var(--job-primary);
  cursor: pointer;
  display: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 14px;
  transition: background-color 0.2s, color 0.2s;
  width: 100%;
}

.c-job-filter-trigger:hover {
  background-color: var(--job-primary);
  color: var(--job-white);
}

.c-job-filter-trigger svg {
  height: 18px;
  width: 18px;
}

/* --- オーバーレイ --- */
.c-job-filter-sheet {
  align-items: flex-end;
  background-color: rgba(33, 33, 33, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 0 12px 12px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.3s, visibility 0.3s;
  visibility: hidden;
  z-index: 60;
}

.c-job-filter-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.c-job-filter-sheet__panel {
  background-color: var(--job-white);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  max-width: 860px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s;
  width: 100%;
}

.c-job-filter-sheet.is-open .c-job-filter-sheet__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.c-job-filter-sheet__head {
  align-items: center;
  border-bottom: 1px solid var(--job-divider);
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  justify-content: space-between;
  padding: 16px 18px;
}

.c-job-filter-sheet__title {
  color: var(--job-ink);
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.c-job-filter-sheet__back {
  background: none;
  border: none;
  color: var(--job-ink);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  visibility: hidden;
  width: 36px;
}

.c-job-filter-sheet.is-detail .c-job-filter-sheet__back {
  visibility: visible;
}

.c-job-filter-sheet__close {
  align-items: center;
  background-color: var(--job-field);
  border: none;
  border-radius: 50%;
  color: var(--job-text);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 14px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: opacity 0.2s;
  width: 36px;
}

.c-job-filter-sheet__close:hover {
  opacity: 0.7;
}

.c-job-filter-sheet__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 18px;
}

/* --- 第1階層：条件メニュー --- */
.c-filter-menu__row {
  align-items: center;
  background: none;
  border: none;
  border-bottom: 1px solid var(--job-divider);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  gap: 12px;
  padding: 16px 4px;
  text-align: left;
  width: 100%;
}

.c-filter-menu__row:last-child {
  border-bottom: none;
}

.c-filter-menu__label {
  color: var(--job-ink);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  min-width: 96px;
}

.c-filter-menu__value {
  color: var(--job-muted);
  flex: 1 1 auto;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-filter-menu__row.is-selected .c-filter-menu__value {
  color: var(--job-primary);
}

.c-filter-menu__chev {
  color: var(--job-muted);
  flex: 0 0 auto;
  font-size: 18px;
}

/* --- 第2階層：移動してきた .c-job-filter__block（勤務地） --- */
.c-job-filter-sheet__body .c-job-filter__block {
  padding: 8px 0 16px;
}

.c-job-filter-sheet__body .c-job-filter__block > .c-job-filter__label {
  display: none;
}

/* --- 第2階層：単一選択のラジオリスト --- */
.c-filter-section + .c-filter-section {
  border-top: 1px solid var(--job-divider);
  margin-top: 6px;
  padding-top: 6px;
}

.c-filter-section__title {
  color: var(--job-text);
  font-size: 12px;
  font-weight: 700;
  padding: 14px 0 2px;
}

/* 年収の上限・下限（ネイティブのプルダウン） */
.c-filter-select-row {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.c-filter-select {
  background-color: var(--job-field);
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--job-ink);
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 14px;
  min-width: 0;
  padding: 12px 14px;
}

.c-filter-select:focus-visible {
  border-color: var(--job-primary);
  outline: 2px solid var(--job-primary);
  outline-offset: 1px;
}

.c-filter-select-row__suffix {
  color: var(--job-ink);
  flex: 0 0 auto;
  font-size: 14px;
}

.c-filter-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px 0;
}

.c-filter-option input {
  height: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.c-filter-option__radio {
  border: 1.5px solid var(--job-border);
  border-radius: 50%;
  display: grid;
  flex: 0 0 auto;
  height: 20px;
  place-items: center;
  transition: border-color 0.12s;
  width: 20px;
}

.c-filter-option__radio::after {
  background-color: var(--job-primary);
  border-radius: 50%;
  content: "";
  height: 10px;
  opacity: 0;
  transition: opacity 0.12s;
  width: 10px;
}

.c-filter-option input:checked + .c-filter-option__radio {
  border-color: var(--job-primary);
}

.c-filter-option input:checked + .c-filter-option__radio::after {
  opacity: 1;
}

.c-filter-option input:focus-visible + .c-filter-option__radio {
  outline: 2px solid var(--job-primary);
  outline-offset: 2px;
}

/* 複数選択の条件（職種）はチェックボックスで出す */
.c-filter-option__check {
  border: 1.5px solid var(--job-border);
  border-radius: 4px;
  display: grid;
  flex: 0 0 auto;
  height: 20px;
  place-items: center;
  position: relative;
  transition: background-color 0.12s, border-color 0.12s;
  width: 20px;
}

.c-filter-option__check::after {
  border: solid var(--job-white);
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  margin-top: -2px;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 0.12s;
  width: 5px;
}

.c-filter-option input:checked + .c-filter-option__check {
  background-color: var(--job-primary);
  border-color: var(--job-primary);
}

.c-filter-option input:checked + .c-filter-option__check::after {
  opacity: 1;
}

.c-filter-option input:focus-visible + .c-filter-option__check {
  outline: 2px solid var(--job-primary);
  outline-offset: 2px;
}

.c-filter-option__label {
  color: var(--job-text);
  font-size: 15px;
}

.c-filter-option input:checked ~ .c-filter-option__label {
  color: var(--job-primary);
  font-weight: 700;
}

/* --- シートのフッター --- */
.c-job-filter-sheet__foot {
  border-top: 1px solid var(--job-divider);
  flex: 0 0 auto;
  padding: 14px 18px 18px;
}

.c-job-filter-sheet__submit {
  align-items: center;
  background-color: var(--job-primary);
  border: none;
  border-radius: 50px;
  color: var(--job-white);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  padding: 16px 24px;
  text-align: center;
  transition: opacity 0.3s;
  width: 100%;
}

.c-job-filter-sheet__submit:hover {
  opacity: 0.8;
}

/* 第1階層は「件数 + 検索 + リセット」、第2階層は「この条件で検索する」 */
.c-job-filter-sheet__foot-detail {
  display: none;
}

.c-job-filter-sheet.is-detail .c-job-filter-sheet__foot-menu {
  display: none;
}

.c-job-filter-sheet.is-detail .c-job-filter-sheet__foot-detail {
  display: block;
}

.c-job-filter-sheet__result {
  align-items: baseline;
  color: var(--job-primary);
  display: flex;
  gap: 3px;
  justify-content: center;
  margin: 0 0 6px;
}

.c-job-filter-sheet__result-label {
  font-size: 13px;
  font-weight: 700;
}

.c-job-filter-sheet__result-count {
  font-family: var(--job-num-family);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.c-job-filter-sheet__reset {
  margin: 8px 0 0;
  text-align: center;
}

.c-job-filter-sheet__reset a {
  color: var(--job-ink);
  font-size: 10px;
  line-height: 1.8;
  text-decoration: underline;
}

.c-job-filter-sheet__reset a:hover {
  opacity: 0.7;
}

body.is-filter-open {
  overflow: hidden;
}

/* ------------------------------------------------------------------
   PC（サイドバー表示）専用
   ------------------------------------------------------------------ */
@media screen and (min-width: 1280px) {
  /* --- 絞り込みパネルの追従 ---
     ヘッダーの下に貼り付く形で固定する。
     パネルは画面より高くなるため、画面に収まる高さに制限したうえで
     パネル内をスクロールさせ、どの条件にも到達できるようにする。
     ヘッダー高は JS が --job-header-h に実測値を入れる。 */
  .c-job-filter {
    display: flex;
    max-height: calc(100vh - var(--job-header-h) - 48px);
    /* 角丸からはみ出さないように */
    overflow: hidden;
    position: sticky;
    top: calc(var(--job-header-h) + 24px);
  }

  /* フォームを縦フレックスにして、条件だけをスクロールさせ、
     「この条件の求人〜」から下はパネル下端に固定する */
  .c-job-filter__form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
  }

  .c-job-filter__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .c-job-filter__foot {
    flex: 0 0 auto;
  }
}

/* ------------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------------ */

/* タブレット以下：サイドバーを起動ボタン + ボトムシートに切り替える */
@media screen and (max-width: 1279px) {
  .l-job-search__inner {
    display: block;
    max-width: 928px;
  }

  .c-job-filter-trigger {
    display: flex;
  }

  /* 直下にある（＝シートへ移動していない）時だけ隠す */
  .l-job-search__inner > .c-job-filter {
    display: none;
  }

  .c-job-area__prefectures {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  /* ツールバーは「並び順（左） / 件数（右）」の2つだけにする */
  .c-job-pagination--top {
    display: none;
  }

  .c-job-result__toolbar {
    justify-content: space-between;
  }

  .c-job-result__sort {
    flex: 0 0 auto;
    order: 1;
    width: 152px;
  }

  .c-job-result__count {
    flex: 0 1 auto;
    justify-content: flex-end;
    order: 2;
  }
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  /* --- スマートフォン（Figma: SP_求人一覧 / 375px 基準）--- */

  .c-job-search-title {
    padding: 56px 20px 0;
  }

  .c-job-search-title__text {
    font-size: 24px;
  }

  .l-job-search {
    padding: 32px 0 64px;
  }

  .l-job-search__inner {
    padding: 0 20px;
  }

  .c-job-filter__scroll {
    padding: 20px 16px 0;
  }

  /* --- 絞り込みの起動ボタンは白いカード表示 --- */
  .c-job-filter-trigger {
    background-color: var(--job-white);
    border: none;
    border-radius: 5px;
    box-shadow: 6px 10px 16px rgba(0, 0, 0, 0.06);
    color: var(--job-primary);
    font-size: 18px;
    gap: 8px;
    height: 60px;
    margin-bottom: 16px;
    padding: 0 32px;
    position: relative;
  }

  .c-job-filter-trigger:hover {
    background-color: var(--job-white);
    color: var(--job-primary);
  }

  .c-job-filter-trigger svg {
    height: 26px;
    width: 26px;
  }

  /* 右端の開閉シェブロン */
  .c-job-filter-trigger::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    height: 8px;
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-70%) rotate(45deg);
    width: 8px;
  }

  /* 並び順（左） / 件数（右）の順序はタブレット側の指定を引き継ぐ */
  .c-job-result__toolbar {
    gap: 12px;
    margin-bottom: 16px;
  }

  .c-job-result__count-num {
    font-size: 20px;
  }

  .c-job-result__count-unit,
  .c-job-result__count-range {
    font-size: 11px;
  }

  /* --- カード --- */
  .c-job-card-list {
    gap: 16px;
  }

  .c-job-card {
    box-shadow: 6px 10px 16px rgba(0, 0, 0, 0.06);
    padding: 20px 20px 25px;
  }

  .c-job-card__head {
    gap: 10px;
    margin-bottom: 10px;
  }

  .c-job-card__company {
    font-size: 13px;
    line-height: 23px;
  }

  .c-job-card__title {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 10px;
  }

  .c-job-card__title a {
    -webkit-line-clamp: 3;
  }

  /* 画像 → 情報 → ボタン の縦積み */
  .c-job-card__body {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .c-job-card__thumb {
    aspect-ratio: 296 / 174;
    flex: none;
    height: auto;
    width: 100%;
  }

  /* 情報は PC と同じ「アイコン + ラベル + ：値」の横並び */
  .c-job-card__info {
    padding: 0 0 0 4px;
  }

  .c-job-card__info dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ボタンは幅175pxのまま中央に置く */
  .c-job-card__button {
    margin: 7px auto 0;
  }
}

@media screen and (max-width: 499px) {
  .c-job-pagination {
    gap: 8px;
  }

  .c-job-pagination__nav--prev {
    margin-right: 8px;
  }

  .c-job-pagination__nav--next {
    margin-left: 8px;
  }
}
