/* =================================================
   派遣案件一覧・詳細 共通CSS（整理済・最終版）
================================================= */

/* ===============================
   全体レイアウト
=============================== */

.dispatch-archive {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5em 1em;
}

/* ===============================
   案件カード
=============================== */

.dispatch-job {
  position: relative;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 24px 28px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dispatch-job:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* 募集終了案件 */
.dispatch-job.is-closed {
  background: #f7f7f7;
  opacity: 0.6;
}

.dispatch-job.is-closed:hover {
  box-shadow: none;
  transform: none;
}

/* ===============================
   バッジ（NEW / 募集中 / 募集終了）
=============================== */

.dispatch-job-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dispatch-job-status {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}

/* 状態別 */
.dispatch-job-status.is-open {
  background: #1e9f5b;
}

.dispatch-job-status.is-new {
  background: linear-gradient(135deg, #ff9800, #ff5722);
}

.dispatch-job-status.is-closed {
  background: #777;
}

/* 募集終了でもバッジは薄くしない */
.dispatch-job.is-closed .dispatch-job-status {
  opacity: 1;
}

/* NEW 左アクセント */
.dispatch-job:has(.dispatch-job-status.is-new) {
  border-left: 6px solid #ff7a00;
  padding-left: 22px;
}

/* ===============================
   タイトル・本文
=============================== */

.dispatch-job-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.dispatch-job-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.dispatch-job-excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ==========================
   派遣案件 詳細ページ
========================== */
.single-dispatch-job .dispatch-job-detail {
  max-width: 800px;
  margin: 0 auto 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* ステータス表示 */
.single-dispatch-job .dispatch-job-detail-status {
  margin-bottom: 20px;
}


/* ===============================
   タグ
=============================== */

.job-feature {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  background: #f0f0f0;
  border-radius: 6px;
  margin: 0 6px 6px 0;
}

/* ===============================
   詳細ボタン
=============================== */

.dispatch-job-button {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #333;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.dispatch-job-button:hover {
  background: #000;
}

/* 募集終了時 */
.dispatch-job.is-closed .dispatch-job-button {
  background: #aaa;
  pointer-events: none;
}


/* ===============================
   ページネーション
=============================== */

.dispatch-pagination {
  margin-top: 3em;
  text-align: center;
}

.dispatch-pagination a,
.dispatch-pagination span {
  margin: 0 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #f0f0f0;
}

.dispatch-pagination .current {
  background: #222;
  color: #fff;
}

/* ===============================
   一覧レイアウト（PC 2カラム）
=============================== */

@media (min-width: 768px) {
  .dispatch-job-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ===============================
   絞り込みフォーム
=============================== */

.dispatch-filter {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 20px;
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* セレクト */
.dispatch-filter select {
  width: 100%;
  min-width: 220px;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: #111;
}

/* チェック */
.dispatch-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.dispatch-filter input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* ボタン */
.dispatch-filter button {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #222, #444);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.dispatch-filter button:hover {
  background: linear-gradient(135deg, #000, #333);
}

.dispatch-apply-cta {
  text-align: center;
  margin: 40px 0;
}
.dispatch-apply-button {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.dispatch-apply-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.2);
}


/* ===============================
   スマホ対応
=============================== */

@media (max-width: 767px) {
  .dispatch-filter {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dispatch-filter select,
  .dispatch-filter button {
    width: 100%;
  }
  .dispatch-apply-button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
