/**
 * タテルート 求人機能 フロントCSS
 *
 * 既存テーマ（cocoon-child-custom）のデザイントークンを使う。
 * 独自の色は定義せず、--primary / --text / --border 等を参照する。
 *
 * デザインルール（社内）
 *   - 見出しに英語大文字のアイブロウを使わない
 *   - 枠線の左・上にアクセントカラーのボーダーを使わない
 *   - 赤はマイナス（募集終了・警告）のみに使う
 */

/* ---------- 検索フォーム ---------- */
.trj-search-section {
  padding: 28px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.trj-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}
.trj-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.trj-field select,
.trj-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px; /* iOSでの自動ズームを防ぐため16px以上 */
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trj-field select:focus,
.trj-field input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.trj-field-submit button { width: 100%; }

.trj-detail-filters {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.trj-detail-filters > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 0;
}
.trj-detail-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
}
.trj-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
  /*
   * 高さをそろえない。そろえると、同じ行のどれか1つを開いたときに
   * 他の枠まで引き伸ばされ、中身が空のまま開いたように見える。
   */
  align-items: start;
}

/*
 * 種別ごとの絞り込み
 *
 * 画面幅にかかわらず同じ開閉にする。
 * 以前は「広い画面では常に開いて見せる」ためにブラウザ既定の
 * details の閉じ方をCSSで打ち消していたが、最近のブラウザは
 * display ではなく content-visibility で隠すようになったため効かず、
 * 「開閉できるのに矢印が無い」「開くと同じ行の枠が空のまま伸びる」状態になっていた。
 * ブラウザ標準の挙動を打ち消す実装はやめ、開閉の矢印を常に出す。
 */
.trj-filter-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--bg);
}
.trj-filter-group > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.trj-filter-group > summary::-webkit-details-marker { display: none; }
.trj-filter-group > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex: none;
}
.trj-filter-group[open] > summary::after { transform: rotate(-135deg); }
.trj-filter-options { margin-top: 8px; }

.trj-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  padding: 3px 0;
  cursor: pointer;
}
.trj-check-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 選択中の条件 ---------- */
.trj-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.trj-active-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.trj-chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
}
.trj-clear {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
}

/* ---------- 一覧 ---------- */
.trj-list-section { padding: 32px 0 56px; }
.trj-list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.trj-count { font-size: 15px; color: var(--text-secondary); margin: 0; }
.trj-count strong { font-size: 20px; color: var(--text); }
.trj-sort { display: flex; gap: 4px; }
.trj-sort-link {
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.trj-sort-link.active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.trj-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.trj-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trj-card-head { display: flex; gap: 6px; margin-bottom: 10px; }
.trj-card-title {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  margin: 0 0 14px;
}
.trj-card-title a { color: var(--text); text-decoration: none; }
.trj-card-title a:hover { color: var(--primary); }

.trj-card-facts { margin: 0 0 12px; }
.trj-card-facts > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-light);
}
.trj-card-facts dt { font-size: 12px; color: var(--text-muted); }
.trj-card-facts dd { font-size: 14px; color: var(--text); margin: 0; }
.trj-salary { font-weight: 700; color: var(--primary); }

.trj-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.trj-tag {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
}
.trj-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.trj-card-date { font-size: 12px; color: var(--text-muted); }
.trj-card-btn { padding: 8px 18px; font-size: 14px; }

/* ---------- バッジ ---------- */
.trj-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 4px;
  white-space: nowrap;
}
.trj-badge-new { color: #fff; background: var(--primary); }
.trj-badge-exp { color: var(--text-secondary); background: var(--bg-soft); border: 1px solid var(--border); }
.trj-exp-inexperienced_ok { color: var(--dark); background: var(--primary-light); border-color: var(--primary-light); }

/* ---------- 0件 ---------- */
.trj-empty { padding: 40px 0; text-align: center; }
.trj-empty p { color: var(--text-secondary); }
.trj-empty-sub { margin-top: 24px; font-weight: 600; color: var(--text); }
.trj-empty .trj-cards { margin: 16px 0 28px; text-align: left; }

/* ---------- 詳細 ---------- */
/* ファーストビューに大事な情報を多く入れるため、タイトルと3項目のカードを小さめにする（COO 2026-10-15）。
   テーマの .tr-page-title（36px／960px以下28px）より小さく */
.trj-single .tr-page-title { font-size: 28px; margin-bottom: 0; }
.trj-single-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.trj-job-id { font-size: 12px; color: var(--text-muted); font-family: ui-monospace, monospace; }

/* 勤務地・給与・職種
   応募者がもっとも先に見る3項目。本文の表に埋もれないよう、
   白いカードで浮かせ、給与はさらに大きく色を付ける。
   （社内ルールにより、枠の左・上にアクセント色のボーダーは使わない） */
.trj-single-summary {
  /* 区切り線は gap の地色で見せる。列数が変わっても線の向きを直す必要がない。
     auto-fit で幅に応じて 3列 → 2列 → 1列 と自動で折り返す。 */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: 14px 0 18px;
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.trj-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  min-width: 0;
  background: var(--bg);
}
.trj-summary-item-salary { background: var(--primary-soft); }

.trj-summary-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text-muted);
}
.trj-summary-item-salary .trj-summary-icon { background: var(--bg); color: var(--primary); }
.trj-summary-icon svg { width: 16px; height: 16px; }

.trj-summary-body { min-width: 0; }
.trj-single-summary dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}
.trj-single-summary dd {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin: 0;
  word-break: break-word;
}
.trj-single-summary dd.trj-salary {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.trj-dates { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-top: 24px; } /* 本文の最後（COO 2026-10-15） */

.trj-closed-notice {
  margin: 12px 0 20px;
  padding: 14px 18px;
  background: #FDECEA;
  border: 1px solid #F0B7B5;
  border-radius: var(--radius);
}
.trj-closed-notice p { margin: 0; color: #A4282A; font-size: 14px; }
.trj-closed-notice p + p { margin-top: 4px; color: var(--text-secondary); }

.trj-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* 上部の応募ボタン：横に広げて中央に置く（COO 2026-10-15）。
   .trj-btn-apply の文字サイズはテーマの .tr-btn（14px）が後から読まれて効かないので、2つのクラスで指定する */
.trj-cta-top { justify-content: center; margin: 0; }
.trj-cta-top .trj-btn-apply { width: 100%; max-width: 480px; padding: 16px 32px; font-size: 17px; }
.trj-btn-apply { padding: 15px 40px; font-size: 17px; font-weight: 700; }
.trj-btn-line { padding: 15px 28px; font-size: 15px; }

/* 下部の応募CTA：一言＋上部より大きいボタン（2026-10-14 COO）
   枠の色付き罫線は使わず、クリーム色の背景で区切る（デザインのNGルール） */
.trj-cta-bottom {
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 8px 0 40px; /* 募集主の情報の上（COO 2026-10-15） */
  padding: 32px 24px 26px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #FFEDD5 0%, rgba(255, 237, 213, 0) 70%), var(--primary-soft);
  border-radius: var(--radius-lg);
}
.trj-cta-lead { margin: 0 0 18px; font-size: 19px; font-weight: 700; line-height: 1.6; color: var(--dark); }
.trj-cta-lead span,
.trj-cta-note span { display: inline-block; }
.trj-cta-bottom .trj-btn-apply { width: 100%; max-width: 480px; padding: 22px 32px; font-size: 20px; }
.trj-cta-note { margin: 14px 0 0; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--dark-2); }

.trj-detail-section { padding: 36px 0 64px; }
.trj-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}
.trj-detail-block { margin-bottom: 32px; }
.trj-detail-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.trj-detail-table > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
}
.trj-detail-table dt { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.trj-detail-table dd { font-size: 15px; line-height: 1.8; color: var(--text); margin: 0; }
.trj-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* 右カラム
   カードと見出しは子テーマの .tr-sidebar-block / .tr-sidebar-title を使う
   （記事詳細のサイドバーと同じ定義。テーマ側の変更に自動で追従する）。
   ここではリストだけを、記事サイドバーの人気記事リストと同じ見せ方にそろえる。 */
.trj-detail-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* 本文と同じ高さまで伸ばして、年収診断のバナーが追従できる余地を作る */
  align-self: stretch;
}
/* 年収診断のバナー（右カラムの最後）。ヘッダーの下に固定して追従する。
   top は子テーマの記事サイドバー（.tr-sidebar-cta）と同じ値（テーマ2.6.1でヘッダーを縮めたので90→80） */
.trj-detail-side .trj-salary-side { position: sticky; top: 80px; }
.trj-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.trj-side-list li { padding: 0; margin: 0; border: none; list-style: none; position: static; }
.trj-side-list li::before { display: none; content: none; }
.trj-side-list a { display: block; padding: 0; color: inherit; text-decoration: none; transition: color .2s; }
.trj-side-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 8px;
}
.trj-side-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px; font-weight: 500;
  line-height: 1.65;
  color: var(--dark);
}
.trj-side-list a:hover .trj-side-title-text { color: var(--primary); }
.trj-side-meta { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; }

/* ---------- レスポンシブ（モバイルファースト前提の調整） ---------- */
@media (max-width: 1024px) {
  .trj-single .tr-page-title { font-size: 24px; }
  .trj-detail-layout { grid-template-columns: 1fr; gap: 28px; }
  /* 1列のときは本文の下に並ぶだけなので追従させない */
  .trj-detail-side { align-self: auto; }
  .trj-detail-side .trj-salary-side { position: static; width: 100%; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .trj-cards { grid-template-columns: 1fr; }
  .trj-list-head { flex-direction: column; align-items: flex-start; }
  .trj-sort { width: 100%; }
  .trj-sort-link { flex: 1; text-align: center; }
  .trj-detail-table > div { grid-template-columns: 1fr; gap: 4px; }
  .trj-card-facts > div { grid-template-columns: 64px 1fr; }
  .trj-cta { flex-direction: column; }
  .trj-btn-apply, .trj-btn-line { width: 100%; text-align: center; }
  .trj-cta-bottom { padding: 26px 16px 22px; }
  .trj-cta-lead { font-size: 17px; }
  .trj-cta-bottom .trj-btn-apply { padding: 20px 16px; font-size: 19px; }
  .trj-single .tr-page-title { font-size: 21px; }
  .trj-single-summary { grid-template-columns: 1fr; margin: 12px 0 16px; }
  .trj-summary-item { padding: 9px 14px; }
  .trj-summary-icon { width: 28px; height: 28px; }
  .trj-summary-icon svg { width: 15px; height: 15px; }
  .trj-single-summary dd { font-size: 15px; }
  .trj-single-summary dd.trj-salary { font-size: 18px; }
}

/* ---------- トップページの求人セクション（指示書 §7） ---------- */
.trj-home-search .trj-search {
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.trj-home-more { margin-top: 28px; text-align: center; }

.trj-browse-block { margin-bottom: 26px; }
.trj-browse-block:last-child { margin-bottom: 0; }
.trj-browse-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.trj-browse-links { display: flex; flex-wrap: wrap; gap: 8px; }
.trj-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.trj-browse-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.trj-browse-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ---------- 0件表示 ---------- */
.trj-empty { padding: 48px 20px; text-align: center; }
.trj-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}
.trj-empty p { color: var(--text-secondary); line-height: 1.9; }
.trj-empty-sub {
  margin-top: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.trj-empty .trj-cards { margin: 16px 0 8px; text-align: left; }
.trj-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 640px) {
  .trj-empty-actions { flex-direction: column; }
  .trj-empty-actions .tr-btn { width: 100%; }
}

/* ---------- 応募フォーム（指示書 §12・§18） ---------- */
/*
 * 応募フォームは入力に集中してもらう画面なので、フォームが画面に早く現れるよう
 * 上側の余白を他ページより狭くしている（2026年9月10日 COO依頼）。
 * テーマ側の要素（サイトヘッダー・ページ見出し）は body.trj-apply-page で、
 * プラグイン側の要素は .trj-apply 配下で詰める。いずれもこのページ限定。
 */
.trj-apply-section { padding: 18px 0 56px; }
/* 応募フォームの見出し（h1）は読み上げ用に残し、画面には出さない（0.4.8・COO 2026-10-15） */
.trj-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.trj-apply-container { max-width: 760px; }

/* サイトヘッダー（ロゴ40px＋上下18px → ロゴ30px＋上下10px） */
body.trj-apply-page .tr-header-inner { padding: 10px 32px; }
body.trj-apply-page .tr-logo img { height: 30px; }

/* ページ見出し（パンくず＋H1）。応募フォームでは0.4.8から出さないので、いまは応募完了の画面だけで使う */
.trj-apply .tr-page-head { padding: 16px 0 14px; }
.trj-apply .tr-breadcrumb { margin-bottom: 6px; }
.trj-apply .tr-page-title { font-size: 24px; margin-bottom: 0; }

/* 応募する求人：枠と見出しは .trj-form-block（ご本人について と同じ）。COO 2026-10-15 */
.trj-apply-job { margin-bottom: 18px; }
.trj-apply-job-title { font-size: 16px; font-weight: 700; line-height: 1.6; margin: 0 0 6px; }
.trj-apply-job-facts { margin: 0; }
.trj-apply-job-facts > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 2px 0;
}
.trj-apply-job-facts dt { font-size: 12px; color: var(--text-muted); line-height: 1.9; }
.trj-apply-job-facts dd { font-size: 14px; margin: 0; }
/* PCは勤務地と給与を横に並べる */
@media (min-width: 641px) {
  .trj-apply-job-facts { display: flex; flex-wrap: wrap; gap: 0 32px; }
  .trj-apply-job-facts > div { display: flex; align-items: baseline; gap: 10px; }
}

.trj-apply-notice {
  padding: 14px 18px;
  margin-bottom: 24px;
  background: #FDECEA;
  border: 1px solid #F0B7B5;
  border-radius: var(--radius);
}
.trj-apply-notice p { margin: 0; color: #A4282A; font-size: 14px; }

.trj-apply-blocked { padding: 48px 20px; text-align: center; }
.trj-apply-blocked-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 20px; }

.trj-apply-lead { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; }
/* 必須の印（COO 2026-10-15「赤い※」） */
.trj-req { color: var(--danger); font-weight: 700; margin-left: 2px; }
.trj-apply-lead .trj-req { margin-left: 0; }

.trj-form-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin: 0 0 16px;
}
.trj-form-block legend {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 0 8px;
}
.trj-form-row { margin: 0 0 18px; }
.trj-form-row:last-child { margin-bottom: 0; }
.trj-form-row label,
.trj-form-row .trj-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.trj-form-row input[type="text"],
.trj-form-row input[type="email"],
.trj-form-row input[type="tel"],
.trj-form-row input[type="date"],
.trj-form-row select {
  width: 100%;
  padding: 12px;
  font-size: 16px; /* iOSでの自動ズームを防ぐため16px以上 */
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trj-form-row input:focus,
.trj-form-row select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.trj-form-row.has-error input,
.trj-form-row.has-error select { border-color: var(--danger); }

/* PCは項目名の横に入力欄を置いて縦の長さを抑える（COO 2026-10-15）。スマートフォンは縦積みのまま */
@media (min-width: 641px) {
  .trj-apply-form .trj-form-row-field {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    margin-bottom: 12px;
  }
  .trj-apply-form .trj-form-row-field:last-child { margin-bottom: 0; }
  .trj-apply-form .trj-form-row-field > label,
  .trj-apply-form .trj-form-row-field > .trj-form-label { margin: 0; }
  .trj-apply-form .trj-form-row-field > .trj-form-error { grid-column: 2; }
}
.trj-form-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--danger);
}
.trj-form-note { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.trj-radio-group { display: flex; gap: 20px; }
.trj-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  margin: 0;
  cursor: pointer;
}
.trj-checkbox { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.trj-checkbox input { margin-top: 3px; }
.trj-checkbox span { font-size: 15px; color: var(--text); }
.trj-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.trj-apply-submit { margin-top: 28px; text-align: center; }
.trj-apply-submit .trj-btn-apply { width: 100%; max-width: 420px; }
/* 送信中（連打防止）。押せないことが分かるように薄くし、浮き上がりを止める */
.trj-apply-submit .trj-btn-apply:disabled,
.trj-apply-submit .trj-btn-apply:disabled:hover {
  background: var(--primary);
  opacity: .6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* ---------- 応募完了 ---------- */
.trj-apply-complete { text-align: center; padding: 24px 0; }
.trj-complete-lead { font-size: 16px; color: var(--text); }
.trj-complete-no {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 40px;
  margin: 20px 0 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.trj-complete-no span { font-size: 12px; color: var(--text-muted); }
.trj-complete-no strong { font-size: 24px; font-family: ui-monospace, monospace; color: var(--primary); }
.trj-complete-next { margin: 32px 0; text-align: left; }
.trj-complete-next h2 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.trj-complete-next p { color: var(--text-secondary); line-height: 1.9; }
.trj-complete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 640px) {
  .trj-complete-actions { flex-direction: column; }
  .trj-complete-actions .tr-btn { width: 100%; }
  .trj-radio-group { gap: 28px; } /* 選択肢は2つとも短いので横に並べる（0.4.8） */
  /* 入力欄を少し低く（50px→44px。指で押しやすい下限の44pxは守る。0.4.8） */
  .trj-form-row input[type="text"],
  .trj-form-row input[type="email"],
  .trj-form-row input[type="tel"],
  .trj-form-row input[type="date"],
  .trj-form-row select { height: 44px; padding-top: 9px; padding-bottom: 9px; } /* 日付・選択は部品の都合で高く出るので高さで固定 */

  /* スマホは画面が短いのでさらに詰める */
  body.trj-apply-page .tr-header-inner { padding: 8px 16px; }
  body.trj-apply-page .tr-logo img { height: 26px; }
  .trj-apply .tr-page-head { padding: 12px 0 10px; }
  .trj-apply .tr-page-title { font-size: 20px; }
  .trj-apply-section { padding: 14px 0 40px; }
  .trj-apply-job { margin-bottom: 14px; } /* 余白は他の枠（.trj-form-block）とそろえる。見出しの位置がずれないように */
}

/* ---------- スマートフォンの追従応募ボタン（求人詳細） ---------- */
/*
 * 画面内に本来のCTAが出ているときは is-hidden が付いて消える（JSが動く場合のみ）。
 * 広い画面では出さない。ページ内のCTAが常に近くにあるため。
 */
.trj-sticky-apply { display: none; }

@media (max-width: 900px) {
  .trj-sticky-apply {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .trj-sticky-apply .tr-btn { width: 100%; }
  .trj-sticky-apply.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  /* 固定ボタンがページ末尾の内容に重ならないようにする */
  body.single-tr_job .tr-main { padding-bottom: 76px; }
}

/* =========================================================
   0.6.0 リニューアル（モック08 共通部品・モック09 v2 求人の相談導線。COO OK 2026-10-20／21）
   見た目だけを共通部品に合わせる。求人の項目・データ・並びは変えない。
   色：オレンジ #EC6A1E（濃い #C9560F・薄い #FFF1E6）、ネイビー #1D3557（薄い #EAF0F8）、生成り #F7F5F1
   見出しの書体（Zen Kaku Gothic New）と数字（Oswald）はテーマ2.7.0が読み込む
   ========================================================= */
.trj-single, .trj-search-section, .trj-list-section, .trj-sticky-apply {
  --trj-o: #EC6A1E; --trj-od: #C9560F; --trj-ot: #FFF1E6; --trj-n: #1D3557; --trj-ns: #EAF0F8;
  --trj-line: #DCE2EA; --trj-line2: #CBD5E1; --trj-paper: #F7F5F1; --trj-t2: #4B5563; --trj-muted: #6B7280;
  --trj-head: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; --trj-num: 'Oswald', 'Noto Sans JP', sans-serif;
}

/* ---------- 一覧：見出しの帯の件数 ---------- */
.trj-page-count { margin: 10px 0 0; font-size: 14px; color: #4B5563; }
.trj-page-count b { font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-weight: 500; font-size: 26px; color: #C9560F; margin-right: 2px; }

/* ---------- 一覧：検索 ---------- */
.trj-search-section { background: #fff; border-bottom: none; padding: 26px 0 0; }
.trj-search-section .trj-search {
  background: #fff; border-radius: 12px; box-shadow: 0 10px 26px rgba(29, 53, 87, .08); overflow: hidden; padding: 0;
}
.trj-search-h { margin: 0 !important; background: var(--trj-n); color: #fff; font-weight: 700; padding: 11px 20px; font-size: 15px; }
.trj-search-section .trj-search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; padding: 18px 20px 8px; }
.trj-search-section .trj-field label { font-size: 12.5px; font-weight: 700; color: var(--trj-muted); margin-bottom: 4px; }
.trj-search-section .trj-field select { height: 46px; border-color: var(--trj-line2); border-radius: 6px; font-size: 15px; }
.trj-search-section .trj-field-submit button {
  height: 46px; padding: 0 26px; border-radius: 6px; font-size: 15px; box-shadow: 0 3px 0 var(--trj-od); background: var(--trj-o);
}
.trj-search-section .trj-detail-filters { margin: 0; padding: 0 20px 14px; border-top: none; }
.trj-search-section .trj-detail-filters > summary { font-size: 13.5px; font-weight: 700; color: var(--trj-n); }
.trj-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.trj-quick span { font-size: 13.5px; font-weight: 700; color: var(--trj-n); margin-right: 4px; }
.trj-quick a {
  background: #fff; border: 1px solid var(--trj-line2); border-radius: 999px; padding: 5px 14px; font-size: 14px;
  color: #1F2937; text-decoration: none; line-height: 1.5;
}
.trj-quick a:hover { border-color: var(--trj-o); color: var(--trj-od); }

/* ---------- 一覧：結果 ---------- */
.trj-list-section { padding: 30px 0 60px; }
.trj-list-head { align-items: baseline; margin-bottom: 14px; }
.trj-list-section .trj-count { font-family: var(--trj-head); font-weight: 900; font-size: 22px; color: var(--trj-n); margin: 0; }
.trj-list-section .trj-count b { font-family: var(--trj-num); font-weight: 500; color: var(--trj-od); font-size: 28px; margin-right: 2px; }
.trj-sort { gap: 6px; }
.trj-sort-link { font-size: 13px; font-weight: 700; border: 1px solid var(--trj-line2); border-radius: 999px; padding: 3px 12px; color: #1F2937; }
.trj-sort-link.active { background: var(--trj-n); color: #fff; border-color: var(--trj-n); }

.trj-list-section .trj-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trj-list-section .trj-card { border: 1px solid var(--trj-line); border-radius: 12px; padding: 18px; box-shadow: none; transition: box-shadow .15s; }
.trj-list-section .trj-card:hover { box-shadow: 0 10px 24px rgba(29, 53, 87, .10); }
.trj-card-head { margin-bottom: 8px; }
.trj-list-section .trj-card-title { font-size: 15.5px; line-height: 1.55; margin: 0 0 8px; }
.trj-card-pay { font-family: var(--trj-num); font-weight: 500; font-size: 23px; color: var(--trj-od); margin: 0 0 6px; line-height: 1.3; }
.trj-card-pay small { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; color: var(--trj-muted); font-weight: 700; margin-right: 6px; }
.trj-list-section .trj-card-facts { margin: 0 0 8px; }
.trj-list-section .trj-card-facts > div { grid-template-columns: 52px 1fr; gap: 8px; padding: 1px 0; border-bottom: none; }
.trj-list-section .trj-card-facts dt { font-size: 13.5px; color: var(--trj-muted); }
.trj-list-section .trj-card-facts dd { font-size: 13.5px; }
.trj-card-cond { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.trj-card-cond span { font-size: 12px; font-weight: 700; color: var(--trj-n); background: var(--trj-ns); border-radius: 4px; padding: 0 7px; line-height: 1.7; }
.trj-card-go { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--trj-n); text-decoration: none; }
.trj-card-go:hover { color: var(--trj-od); }

/* バッジ（新着・経験者向け・未経験OK） */
.trj-badge { font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 1px 8px; border: none; }
.trj-badge-new { background: var(--trj-ot, #FFF1E6); color: var(--trj-od, #C9560F); }
.trj-badge-exp { background: var(--trj-ns, #EAF0F8); color: var(--trj-n, #1D3557); border: none; }
.trj-badge-exp.trj-exp-inexperienced_ok { background: var(--trj-o, #EC6A1E); color: #fff; }

/* 「まとめて探してもらう」の帯（job_list_mid・job_list_end） */
.trj-bulk {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--trj-n); color: #fff; border-radius: 14px; padding: 20px 24px; margin: 22px 0;
}
.trj-bulk p { margin: 0; }
.trj-bulk-h { font-family: var(--trj-head); font-weight: 900; font-size: 20px; line-height: 1.5; color: #fff; }
.trj-bulk-c { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 !important; }
.trj-bulk-c span { font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .14); border-radius: 4px; padding: 0 8px; }
.trj-bulk-s { font-size: 13px; color: #C9D4E5; }
.trj-bulk .trj-bulk-btn {
  flex: 0 0 auto; position: relative; background: var(--trj-o); color: #fff !important; font-size: 16px; padding: 14px 44px 14px 26px;
  border-radius: 6px; box-shadow: 0 4px 0 var(--trj-od);
}
.trj-bulk .trj-bulk-btn::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-top: 3px solid #fff; border-right: 3px solid #fff; transform: translateY(-50%) rotate(45deg);
}
.trj-empty .trj-bulk { text-align: left; }

/* ページ送り */
.trj-list-section .tr-pagination { margin-top: 30px; }

/* ---------- 詳細：見出しの帯 ---------- */
.trj-single .tr-page-head { padding-bottom: 26px; }
.trj-single .tr-page-title {
  font-family: var(--trj-head); font-weight: 900; font-size: 28px; line-height: 1.45; color: var(--trj-n); margin: 6px 0 14px;
}
.trj-single-badges { margin-bottom: 4px; }
.trj-job-id { font-family: inherit; }
.trj-single .trj-facts {
  display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0 0 18px; background: none; border: none; box-shadow: none; border-radius: 0; overflow: visible;
}
.trj-single .trj-fact { background: none; padding: 0; }
.trj-single .trj-facts dt { display: block; font-size: 12.5px; color: var(--trj-muted); font-weight: 700; margin: 0; letter-spacing: 0; }
.trj-single .trj-facts dd { font-size: 16px; font-weight: 700; color: #1F2937; }
.trj-single .trj-facts dd.trj-salary { font-family: var(--trj-num); font-weight: 500; font-size: 26px; color: var(--trj-od); letter-spacing: 0; }

/* 応募＋相談の2つ並び */
.trj-cta2 { display: flex; flex-wrap: wrap; gap: 12px; }
.trj-cta-top { display: block; }
.trj-cta-top .trj-cta2 { justify-content: flex-start; }
.trj-single .trj-cta2 .tr-btn {
  position: relative; min-width: 280px; width: auto; max-width: none; border-radius: 6px; font-size: 17px; font-weight: 700; line-height: 1.35;
}
.trj-single .trj-cta2 .trj-btn-apply { background: var(--trj-o); color: #fff !important; padding: 16px 46px 16px 30px; box-shadow: 0 4px 0 var(--trj-od); }
.trj-single .trj-cta2 .trj-btn-apply::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-top: 3px solid #fff; border-right: 3px solid #fff; transform: translateY(-50%) rotate(45deg);
}
/* テーマの .tr-btn（border:none）より後に効くよう、2つのクラスで指定する */
.tr-btn.trj-btn-consult {
  background: #fff; color: var(--trj-n, #1D3557) !important; border: 2px solid var(--trj-n, #1D3557);
  padding: 14px 26px; box-shadow: 0 4px 0 #C9D6E8; font-weight: 700;
}
.tr-btn.trj-btn-consult:hover { background: var(--trj-ns, #EAF0F8); }
.trj-cta2-note { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 12px 0 0; font-size: 13px; color: var(--trj-t2); }
.trj-cta2-note b { color: var(--trj-n); }

/* 本文 */
.trj-single .trj-detail-section { padding: 30px 0 70px; }
.trj-single .trj-detail-layout { gap: 44px; }
.trj-single .trj-detail-title {
  font-family: var(--trj-head); font-weight: 900; font-size: 21px; color: var(--trj-n); margin: 34px 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--trj-line);
}
.trj-single .trj-detail-block { margin-bottom: 0; }
.trj-single .trj-detail-main > .trj-detail-block:first-child .trj-detail-title { margin-top: 0; }
.trj-single .trj-detail-table { border-top: 1px solid var(--trj-line); font-size: 14.5px; }
.trj-single .trj-detail-table > div { grid-template-columns: 150px 1fr; gap: 0; padding: 0; border-bottom: 1px solid var(--trj-line); }
.trj-single .trj-detail-table dt,
.trj-single .trj-detail-table dd { padding: 11px 4px; font-size: 14.5px; }
.trj-single .trj-detail-table dt { color: var(--trj-muted); font-weight: 700; }

/* 本文の下の応募・相談 */
.trj-single .trj-cta-bottom {
  margin: 36px 0 8px; padding: 22px 24px; background: var(--trj-paper); border-radius: 14px; align-items: center;
}
.trj-single .trj-cta-lead { font-family: var(--trj-head); font-weight: 900; font-size: 21px; color: var(--trj-n); margin: 0 0 14px; }
.trj-cta-bottom .trj-cta2 { justify-content: center; }
.trj-single .trj-cta-note { margin: 10px 0 0; font-size: 13px; font-weight: 400; color: var(--trj-t2); }
.trj-cta-more { margin: 14px 0 0; font-size: 14px; color: var(--trj-t2); }
.trj-cta-more a { color: var(--trj-od); font-weight: 700; }

/* 右カラム：似ている求人 */
.trj-single .tr-sidebar-title { font-family: var(--trj-head); font-weight: 900; font-size: 16px; color: var(--trj-n); }
.trj-similar { gap: 10px; }
.trj-similar a { border: 1px solid var(--trj-line); border-radius: 10px; padding: 10px 12px; }
.trj-similar a:hover { border-color: #F3B48C; }
.trj-similar .trj-side-title-text { font-size: 13.5px; font-weight: 700; line-height: 1.5; margin: 4px 0 2px; color: #1F2937; }
.trj-similar .trj-side-meta { font-size: 12.5px; color: var(--trj-t2); margin-top: 0; }

/* スマホの追従：応募する・相談する の2つ並び */
.trj-sticky-apply .tr-btn { font-size: 15px; font-weight: 700; border-radius: 6px; }

@media (max-width: 900px) {
  .trj-search-section .trj-search-grid { grid-template-columns: 1fr 1fr; }
  .trj-search-section .trj-field-submit { grid-column: span 2; }
  .trj-list-section .trj-cards { grid-template-columns: 1fr 1fr; }
  .trj-bulk { flex-direction: column; align-items: stretch; }
  .trj-bulk .trj-bulk-btn { text-align: center; }
  .trj-sticky-apply { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .trj-sticky-apply .tr-btn { flex: 1; width: auto; padding: 13px 8px; }
  .trj-sticky-apply .tr-btn.trj-btn-consult { padding: 11px 8px; }
  .trj-sticky-apply .tr-btn-primary { background: #EC6A1E; color: #fff; }
}
@media (max-width: 640px) {
  .trj-search-section .trj-search-grid { grid-template-columns: 1fr; }
  .trj-search-section .trj-field-submit { grid-column: auto; }
  .trj-list-section .trj-cards { grid-template-columns: 1fr; }
  .trj-single .tr-page-title { font-size: 21px; }
  .trj-single .trj-facts { gap: 6px 22px; }
  .trj-single .trj-cta2 .tr-btn { min-width: 0; width: 100%; }
  .trj-btn-consult { font-size: 16px; }
  .trj-single .trj-detail-table > div { grid-template-columns: 110px 1fr; }
  .trj-single .trj-cta-bottom { padding: 22px 14px; }
  .trj-single .trj-cta-lead { font-size: 18px; }
  .trj-bulk { padding: 18px 16px; }
  .trj-bulk-h { font-size: 18px; }
}
