@charset "utf-8";

/* ==========================================================================
   リクルート詳細コンテンツ用スタイル（topics-recruit-base.css）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. レイアウト
   -------------------------------------------------------------------------- */
.recruit-detail-section {
  padding: 40px 0 100px;
  background-color: #fcfbf9; /* 一覧と同じ上質な生成り色 */
  color: #333333;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.recruit-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   2. 詳細ヘッダー
   -------------------------------------------------------------------------- */
.recruit-detail-header {
  border-bottom: 2px solid #8b7355; /* 西川グループの上品なゴールドライン */
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.recruit-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* メタ情報のシンプルバッジ */
.recruit-status,
.recruit-badge,
.recruit-date {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 3px;
  display: inline-block;
}

.recruit-status {
  background-color: #a93c3c;
  color: #ffffff;
  font-weight: bold;
}

.recruit-badge {
  background-color: #1b2d4a;
  color: #ffffff;
}

.recruit-date {
  background-color: transparent;
  color: #777777;
  padding: 4px 0;
  margin-left: auto; /* 右寄せ */
}

.recruit-detail-title {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.4;
  color: #1b2d4a; /* 本社カラー：ネイビー */
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. 募集要項テーブル（流し込み対応自動装飾）
   -------------------------------------------------------------------------- */
.recruit-detail-body {
  margin-bottom: 50px;
}

.recruit-detail-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #dcd6cd;
}

.recruit-detail-table th,
.recruit-detail-table td {
  padding: 24px 20px;
  border-bottom: 1px solid #eae5dd;
  font-size: 0.95rem;
  line-height: 1.7;
}

.recruit-detail-table th {
  width: 220px;
  background-color: #f7f3eb; /* 視認性を高める薄めのベージュ */
  font-weight: bold;
  color: #555555;
  text-align: left;
  vertical-align: top;
}

.recruit-detail-table td {
  background-color: #ffffff;
  color: #333333;
}

/* --------------------------------------------------------------------------
   4. テーブル内要素の自動装飾（特別なクラス不要）
   -------------------------------------------------------------------------- */

/* td直下の太字は、自動で見出し風（ゴールド）または給与ハイライトに */
.recruit-detail-table td strong {
  color: #8b7355;
  font-size: 1.05rem;
  display: inline-block;
  margin-bottom: 4px;
}

/* td直下のpタグ間の余白を統一 */
.recruit-detail-table td p {
  margin: 0 0 12px 0;
}
.recruit-detail-table td p:last-child {
  margin-bottom: 0;
}

/* テーブル内の標準テキストリンク（電話やメールアドレスなど） */
.recruit-detail-table td a {
  color: #1b2d4a;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.recruit-detail-table td a:hover {
  color: #8b7355;
}

/* td内に普通の ul リストを入れるだけで、ゴールドのドット付きリストに自動化 */
.recruit-detail-table td ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.recruit-detail-table td ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.recruit-detail-table td ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  background-color: #8b7355;
  border-radius: 50%;
}

/* td内の ol リストは勝手に番号がつかないようにリセット（書いた文字がそのまま出ます） */
.recruit-detail-table td ol {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.recruit-detail-table td ol li {
  margin-bottom: 6px;
  padding: 0;
}

/* --------------------------------------------------------------------------
   5. 戻るボタン
   -------------------------------------------------------------------------- */
.recruit-detail-back {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.btn-back-to-list {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 240px;
  height: 50px;
  background-color: #333333;
  color: #ffffff;
  border: 1px solid #333333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-back-to-list:hover {
  background-color: #8b7355;
  border-color: #8b7355;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. レスポンシブ
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .recruit-detail-section {
    padding: 30px 0 60px;
  }

  .recruit-detail-header {
    margin-bottom: 25px;
    padding-bottom: 16px;
  }

  .recruit-detail-meta {
    margin-bottom: 10px;
  }

  .recruit-date {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }

  .recruit-detail-title {
    font-size: 1.3rem;
  }

  /* テーブルを縦並びに切り替え */
  .recruit-detail-table,
  .recruit-detail-table tbody,
  .recruit-detail-table tr,
  .recruit-detail-table th,
  .recruit-detail-table td {
    display: block;
    width: 100% !important;
  }

  .recruit-detail-table th {
    padding: 12px 15px;
    border-bottom: none;
    font-size: 0.85rem;
  }

  .recruit-detail-table td {
    padding: 12px 15px 20px;
    border-bottom: 1px solid #eae5dd;
  }
}