/**
 * thinx-recruit-teaser.css – Recruit teaser (#thxRecruit) CSS
 *
 * 移管元: Post 12 (home) Elementor /6/0 widget_id=b8b9007 の inline <style>
 * 範囲:   #thxRecruit ルートスコープに完全クローズ（外部への副作用なし）
 *
 * CSS 変数（ローカル定義）:
 *   --r-accent / --r-accent-rgb / --r-bg / --r-card-bg / --r-border
 *
 * 移管時の処理:
 *   - 全 .thx-recruit-* セレクタに #thxRecruit プレフィックスを追加してスコープ
 *     明示（inline 元ではグローバル定義だったため、同名衝突回避のため）。
 *   - .thx-container { ... } 定義は除外（thinx-base.css に同値定義あり、
 *     依存配列で thinx-base を指定して解決）。
 *
 * @keyframes:
 *   - rec-pulse: Recruit 専用名前空間（CTA リンク hover 時の矢印円パルス用）。
 *     About teaser の svc-pulse と衝突しない。
 *
 * 命名規則メモ:
 *   ファイル名は thinx-recruit-teaser.css（home teaser の意）。
 *   下層 Recruit Detail ページ用 (Post 121 #thxRecruitDetail) は Phase 2-D で
 *   thinx-recruit.css として別途物理化予定。両者を区別するため -teaser 接尾辞を採用。
 *
 * @package HelloElementorThinxChild
 */

/* Recruit Section - 構造最適化版
 *
 * Phase 3 Step 2-C（v1.1.3）でローカル変数を Phase 3 統合トークンへ
 * フォールバック付き var() 参照に移行。--r-* 変数名は維持（既存
 * var(--r-...) 参照箇所への影響なし、後方互換性 100%）。
 * 同 prefix --r-* は Recruit Detail (#thxRecruitDetail) と共有するが
 * スコープ ID で完全分離されているため値の衝突は起きない。
 */
#thxRecruit {
  --r-accent:     var(--thx-accent);
  --r-accent-rgb: var(--thx-accent-rgb);
  --r-bg:         var(--thx-bg);
  --r-card-bg:    var(--thx-card-bg);
  --r-border:     var(--thx-border);

  background-color: var(--r-bg);
  color: #ECE7DA;

  /* 上下の余白をAbout Usと統一
   * Phase A-05a（v2.6.4）: HOME Section Rhythm 統一、80→100px。 */
  padding: 100px 0 !important;

  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  width: 100%;

  /* 境界線の隙間補正 */
  margin-top: -2px !important;
  margin-bottom: -2px !important;
}

/* 背景グリッド：92px同期 */
#thxRecruit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(200,190,170,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200,190,170,0.05) 1px, transparent 1px);
  background-size: 92px 92px;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 1;
}

/* .thx-container は thinx-base.css の同値定義に依存（物理化時に除外） */

#thxRecruit .thx-recruit-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

#thxRecruit .thx-recruit-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

/* 日本語タイトルを上に配置 */
#thxRecruit .thx-recruit-title-ja {
  font-size: 18px;
  font-weight: 700;
  color: var(--r-accent);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

/* Recruitラベル */
#thxRecruit .thx-recruit-label {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: rgba(236, 231, 218, 0.7);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

/* メインタイトル
 * Phase 4-D-8（v2.1.7）：正典 .thx-philosophy-main-copy 準拠の serif 化。
 * Phase 4-D（v2.1.0）の serif 化対象から取り残されていた sans 800 / 1.4 / 0.05em を
 * Georgia + Noto Serif JP / 400 / 1.5 / 0.02em へ統一。Anthropic 系「論文・エッセイ調」と整合。
 *
 * Phase A-03-5（v2.6.3）: Tier 2 H2 基準化、margin-bottom 30→0px。
 *   Service / News / About と同設計、H2 末尾の二重 margin を解消。 */
#thxRecruit .thx-recruit-title-main {
  font-family: Georgia, "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ECE7DA;
  margin-bottom: 0;
}

#thxRecruit .thx-recruit-desc {
  font-size: 16px;
  line-height: 2;
  color: rgba(236, 231, 218, 0.9);
  max-width: 600px;
  margin-bottom: 35px;
}

/* リンクボタン */
#thxRecruit .thx-recruit-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin-top: 20px;
}

#thxRecruit .thx-recruit-btn-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(55, 171, 157, 0.3);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

#thxRecruit .thx-recruit-link:hover .thx-recruit-btn-text {
  color: var(--r-accent);
  border-color: var(--r-accent);
}

#thxRecruit .thx-recruit-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(var(--r-accent-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
  color: var(--r-accent);
  /* Phase A-23（v2.9.14）: wrap 時の正円維持。 */
  flex-shrink: 0;
}

#thxRecruit .thx-recruit-link:hover .thx-recruit-arrow {
  background: var(--r-accent);
  color: #fff;
  border-color: var(--r-accent);
  box-shadow: 0 0 20px rgba(var(--r-accent-rgb), 0.6);
  transform: translateX(5px);
}

#thxRecruit .thx-recruit-link:hover .thx-recruit-arrow::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--r-accent);
  animation: rec-pulse 2s infinite;
}

/* 右側のハイライトカード */
#thxRecruit .thx-recruit-card {
  background: var(--r-card-bg);
  border: 1px solid var(--r-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
}

#thxRecruit .thx-recruit-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #ECE7DA;
  line-height: 1.5;
}

#thxRecruit .thx-recruit-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Phase 4-D-5（v2.1.4）：採用ポイント本文を 15px へ昇格、line-height 1.6 → 1.65。 */
#thxRecruit .thx-recruit-points li {
  display: flex;
  gap: 15px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.65;
  /* 修正：About Usセクションの灰色(rgba 0.7)と統一 */
  color: rgba(236, 231, 218, 0.7);
}

#thxRecruit .thx-recruit-points li:last-child {
  margin-bottom: 0;
}

#thxRecruit .thx-recruit-points .num {
  font-family: "Inter", sans-serif;
  color: var(--r-accent);
  font-weight: 800;
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

#thxRecruit .thx-recruit-points .text strong {
  display: block;
  /* 強調タイトルは白文字を維持してコントラストをつける */
  color: #ECE7DA;
  margin-bottom: 4px;
  font-weight: 700;
}

/*
 * @keyframes は @rule のためスコープなし（グローバル）。
 * "rec-pulse" は Recruit 専用名で他コンポーネントと衝突しない。
 */
@keyframes rec-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Phase A-05c（v2.6.5）: モバイル padding 60→80px、HOME 全セクション統一。 */
@media (max-width: 900px) {
  #thxRecruit { padding: 80px 0 !important; }
  #thxRecruit .thx-recruit-layout { grid-template-columns: 1fr; gap: 40px; }
  #thxRecruit .thx-recruit-card { padding: 30px; }
}
