@charset "utf-8";

/* ==========================================================================
   リクルートメインコンテンツ用スタイル（main-content-recruit.css）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. セクション・コンテナ基本設計
   -------------------------------------------------------------------------- */
.recruit-content-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-content-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   2. 求人リスト（一覧構造）
   -------------------------------------------------------------------------- */
.recruit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 60px 0;
  border-top: 1px solid #dcd6cd;
}

.recruit-item {
  border-bottom: 1px solid #eae5dd;
}

.recruit-link {
  display: flex;
  align-items: center;
  padding: 24px 15px;
  text-decoration: none;
  color: #333333;
  transition: background-color 0.3s ease;
  position: relative;
}

/* リンク付き（募集中）の場合のホバー効果 */
a.recruit-link:hover {
  background-color: #f7f3eb;
  text-decoration: none;
}

a.recruit-link:hover .recruit-item-title {
  color: #8b7355;
  transform: translateX(4px);
}

/* 募集終了時のスタイル */
.recruit-link.is-closed {
  background-color: #f2ede6;
  opacity: 0.7;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   3. メタ情報（ステータス・企業バッジ）
   -------------------------------------------------------------------------- */
.recruit-meta {
  display: flex;
  flex-direction: column; /* 縦並びにして情報を整理 */
  gap: 8px;
  flex-shrink: 0;
  width: 240px; /* 被り防止のため180pxから240pxへ拡張 */
}

/* 日付表示スタイル */
.recruit-date {
  display: block;
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  color: #8b7355; /* 上質なゴールド系ブロンズ */
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* 募集終了時の日付カラー */
.recruit-link.is-closed .recruit-date {
  color: #888888;
}

/* 募集ステータス（募集中 / 終了） */
.recruit-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 8px;
  text-align: center;
  width: fit-content;
}

.status-open {
  background-color: #a93c3c; /* 際立つ上品な赤 */
  color: #ffffff;
}

.status-closed {
  background-color: #777777;
  color: #ffffff;
}

/* グループカテゴリバッジ */
.recruit-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: bold;
  color: #555555;
  border-left: 3px solid #8b7355; /* 左側にゴールドのライン */
  padding-left: 8px;
  word-break: break-all; /* テキストが領域幅を超えた場合に適切に改行 */
  word-wrap: break-word; /* 長い単語の溢れ出しを防止 */
  line-height: 1.4;
}

/* グループ会社毎のラインカラー微調整（必要に応じて個別に設定可能） */
.badge-hq { border-left-color: #1b2d4a; }   /* 本社：ダークネイビー */
.badge-hotel { border-left-color: #8b7355; }/* ホテル：ロイヤルブロンズ */
.badge-trade { border-left-color: #4a7a5d; }/* 商社流通：ディープグリーン */

/* --------------------------------------------------------------------------
   4. 求人ボディ（タイトル ＆ タグ）
   -------------------------------------------------------------------------- */
.recruit-body {
  flex-grow: 1;
  padding-right: 40px; /* 矢印との被り防止 */
}

.recruit-item-title {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 10px 0;
  color: #222222;
  transition: all 0.3s ease;
}

/* 特徴・条件タグ */
.recruit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recruit-tags span {
  font-size: 0.75rem;
  padding: 3px 10px;
  background-color: #ffffff;
  border: 1px solid #dcd6cd;
  color: #666666;
}

/* 雇用形態タグのみ少し強調 */
.recruit-tags .tag-employment {
  background-color: #f5f0e6;
  border-color: #cfc4b3;
  color: #8b7355;
  font-weight: bold;
}

/* 右端の矢印アイコン */
.recruit-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #bcae9b;
  border-right: 2px solid #bcae9b;
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.3s ease, right 0.3s ease;
}

a.recruit-link:hover .recruit-arrow {
  border-color: #8b7355;
  right: 16px;
}

/* --------------------------------------------------------------------------
   5. ページネーション
   -------------------------------------------------------------------------- */
.recruit-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.recruit-pagination .page-number,
.recruit-pagination .page-next {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border: 1px solid #dcd6cd;
  background-color: #ffffff;
  color: #666666;
  text-decoration: none;
  font-family: "Georgia", serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.recruit-pagination .page-number.current {
  background-color: #333333;
  color: #ffffff;
  border-color: #333333;
  font-weight: bold;
  cursor: default;
}

.recruit-pagination .page-number:not(.current):hover,
.recruit-pagination .page-next:hover {
  background-color: #8b7355;
  color: #ffffff;
  border-color: #8b7355;
  text-decoration: none;
}

.recruit-pagination .page-next {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   6. レスポンシブ対応（タブレット・スマホ最適化）
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .recruit-content-section {
    padding: 30px 0 60px;
  }

  .recruit-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px;
  }

  .recruit-meta {
    width: 100%;
    flex-direction: row; /* スマホ時は横並びにして高さを抑える */
    flex-wrap: wrap; /* コンテンツが溢れた際の回り込みを許可 */
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
  }
  
  .recruit-date {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  
  .recruit-badge {
    margin-bottom: 0;
  }

  .recruit-body {
    padding-right: 20px;
  }

  .recruit-item-title {
    font-size: 1rem;
    padding-right: 15px;
  }
  
  .recruit-arrow {
    right: 10px;
  }
}