/* ==============================================================
   新着案件 詳細ページ（single-ntc_job.php）専用スタイル
   カラー: #003870(ネイビー) / #0261C0(ブルー) / #ADA169(ゴールド)
   ============================================================== */

#job-detail {
  background: #f5f7fa;
  min-height: 60vh;
  padding: 40px 0 80px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #333;
  line-height: 1.7;
}

.job-detail__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── パンくず ─────────────────────────────────────── */
.job-detail__breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.job-detail__breadcrumb a {
  color: #0261C0;
  text-decoration: none;
}

.job-detail__breadcrumb a:hover {
  text-decoration: underline;
}

/* ── ヘッダー：タグ＋タイトル ─────────────────────── */
.job-detail__head {
  margin-bottom: 24px;
}

.job-detail__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* タグ共通スタイル（recruit-lp.css が未読込のため job-detail.css 側で定義）
   タイトル上タグ・リモートカード内タグ両方に適用 */
#job-detail .rlp-job-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  background: #eef2f7;
  color: #555;
  letter-spacing: .04em;
}

#job-detail .rlp-job-card__tag--new {
  background: #ff8f00 !important;
  color: #fff !important;
}

#job-detail .rlp-job-card__tag--hi {
  background: #fff0e0 !important;
  color: #d06000 !important;
}

#job-detail .rlp-job-card__tag--sub {
  background: #e8f0fe !important;
  color: #0261C0 !important;
}

.job-detail__title {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  color: #003870;
  line-height: 1.4;
  margin: 0;
}

/* ── サマリーバー ──────────────────────────────────── */
.job-detail__summary {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}

.job-detail__summary-rate {
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-detail__summary-rate-icon {
  display: flex;
  align-items: center;
}

.job-detail__yen-sign {
  font-size: 22px;
  font-weight: 900;
  color: #ADA169;
  line-height: 1;
  font-family: 'Noto Sans JP', sans-serif;
}

.job-detail__summary-rate-value {
  font-size: 24px;
  font-weight: 900;
  color: #003870;
  letter-spacing: -.01em;
}

.job-detail__summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.job-detail__summary-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #444;
}

.job-detail__summary-meta-item svg {
  color: #0261C0;
  flex-shrink: 0;
}

/* ── CTAボックス ──────────────────────────────────── */
.job-detail__cta-box {
  background: linear-gradient(135deg, #e8f0fb 0%, #f0f6ff 100%);
  border: 1px solid #c5d8f5;
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.job-detail__cta-box-text {
  font-size: 14px;
  font-weight: 600;
  color: #003870;
  margin: 0;
  line-height: 1.65;
}

/* ── ボタン共通 ───────────────────────────────────── */
.job-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, opacity .2s, background .2s;
  white-space: nowrap;
  box-sizing: border-box;
}

.job-detail__btn:hover {
  transform: translateY(-2px);
  opacity: .9;
  color: inherit;
}

.job-detail__btn--line {
  background: #06C755;
  color: #fff;
}

.job-detail__btn--line:hover {
  background: #05a847;
  color: #fff;
}

.job-detail__btn--form {
  background: #ff8f00;
  color: #fff;
}

.job-detail__btn--form:hover {
  background: #e07800;
  color: #fff;
}

.job-detail__btn--back {
  background: transparent;
  color: #0261C0;
  border: 1px solid #0261C0;
  font-size: 14px;
  padding: 12px 20px;
}

.job-detail__btn--back:hover {
  background: #0261C0;
  color: #fff;
  opacity: 1;
}

/* ── 詳細テーブル ─────────────────────────────────── */
.job-detail__table-wrap {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  margin-bottom: 32px;
}

.job-detail__table {
  width: 100%;
  border-collapse: collapse;
}

.job-detail__table th,
.job-detail__table td {
  padding: 18px 24px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: top;
}

.job-detail__table tr:last-child th,
.job-detail__table tr:last-child td {
  border-bottom: none;
}

.job-detail__table th {
  width: 180px;
  min-width: 140px;
  background: #f5f8fc;
  font-size: 14px;
  font-weight: 700;
  color: #003870;
  white-space: nowrap;
}

.job-detail__table td {
  font-size: 15px;
  color: #444;
  line-height: 1.75;
}

.job-detail__table td p {
  margin: 0 0 .75em;
}

.job-detail__table td p:last-child {
  margin-bottom: 0;
}

.job-detail__rate-text {
  font-size: 20px;
  color: #003870;
  font-weight: 900;
}

/* 職種バッジ */
.job-detail__type-badge {
  display: inline-block;
  background: #e8f0fe;
  color: #0261C0;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin: 0 6px 4px 0;
}

/* ── ボトムCTA ────────────────────────────────────── */
.job-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 32px 0 0;
}

/* ── エディター自由入力ブロック ───────────────────── */
.job-detail__free-content {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.job-detail__free-content h2,
.job-detail__free-content h3,
.job-detail__free-content h4 {
  color: #003870;
  font-weight: 700;
  margin: 1.2em 0 .6em;
}

.job-detail__free-content p {
  margin: 0 0 1em;
}

.job-detail__free-content p:last-child {
  margin-bottom: 0;
}

.job-detail__free-content ul,
.job-detail__free-content ol {
  padding-left: 1.5em;
  margin: 0 0 1em;
}

.job-detail__free-content li {
  margin-bottom: .4em;
}

/* ── 担当者からのコメント ─────────────────────────── */
.job-detail__comment {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  position: relative;
}

.job-detail__comment-title {
  font-size: 16px;
  font-weight: 700;
  color: #003870;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-detail__comment-title svg {
  color: #0261C0;
  flex-shrink: 0;
}

.job-detail__comment-body {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  padding: 20px 24px;
  background: #f5f8fc;
  border-left: 4px solid #0261C0;
  border-radius: 0 8px 8px 0;
}

.job-detail__comment-body p {
  margin: 0 0 .8em;
}

.job-detail__comment-body p:last-child {
  margin-bottom: 0;
}

/* ── リモートワークが可能な案件 ──────────────────── */
.job-detail__remote-section {
  background: #f0f5ff;
  padding: 56px 0 64px;
  margin-top: 0;
}

.job-detail__remote-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #003870;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #0261C0;
}

.job-detail__remote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.job-detail__remote-card {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s;
}

.job-detail__remote-card:hover {
  box-shadow: 0 6px 20px rgba(0, 38, 90, .12);
  transform: translateY(-2px);
  color: inherit;
}

.job-detail__remote-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.job-detail__remote-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #003870;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-detail__remote-card-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf0f5;
}

.job-detail__remote-card-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
}

.job-detail__remote-card-meta li svg {
  color: #0261C0;
  flex-shrink: 0;
}

.job-detail__remote-card-meta li .job-detail__yen-sign {
  font-size: 14px;
  color: #ADA169;
}

/* ── レスポンシブ（600px以下）────────────────────── */
@media screen and (max-width: 600px) {
  #job-detail {
    padding: 24px 0 60px;
  }

  .job-detail__inner {
    padding: 0 16px;
  }

  .job-detail__summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }

  .job-detail__summary-rate-value {
    font-size: 20px;
  }

  .job-detail__free-content {
    padding: 20px 16px;
  }

  .job-detail__table th {
    width: 110px;
    min-width: 110px;
    padding: 14px 12px;
    font-size: 12px;
    white-space: normal;
  }

  .job-detail__table td {
    padding: 14px 12px;
    font-size: 14px;
  }

  .job-detail__comment {
    padding: 20px 16px;
  }

  .job-detail__comment-body {
    padding: 16px;
  }

  .job-detail__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .job-detail__btn {
    width: 100%;
    justify-content: center;
  }

  .job-detail__remote-section {
    padding: 40px 0 48px;
  }

  .job-detail__remote-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
  .job-detail__remote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
