/**
 * thinx-company-teaser.css – Company teaser (#thxCompany) CSS
 *
 * 移管元: Post 12 (home) Elementor /4/0 widget_id=5aa5527 の inline <style>
 * 範囲:   #thxCompany ルートスコープに完全クローズ（外部への副作用なし）
 *
 * CSS 変数（ローカル定義、6 個）:
 *   --c-accent / --c-accent-rgb / --c-bg / --c-card-bg / --c-border / --c-muted
 *
 * 注意: CSS 変数 prefix --c-* は Contact teaser（#thxContact）と同じ値を使う。
 *       両者はスコープ ID で完全分離されているため値の衝突は起きないが、
 *       Phase 2-F の tokens 統合時に prefix を区別する判断材料になる。
 *
 * 移管時の処理:
 *   - 全 .thx-company-* セレクタに #thxCompany プレフィックスを追加してスコープ化
 *   - .thx-id-label / .thx-id-text の独自命名クラスも同様に #thxCompany スコープ化
 *     （他 teaser の .thx-{component}-* パターンから外れる Company 固有の命名）
 *   - .thx-container { ... } 定義は除外（thinx-base.css に同値定義あり、
 *     依存配列で thinx-base を指定して解決）。
 *
 * @keyframes:
 *   - co-pulse: Company 専用名前空間（CTA リンク hover 時の矢印円パルス用）。
 *     About svc-pulse / Recruit rec-pulse / Contact con-pulse と衝突しない。
 *
 * HTML 側に残る要素:
 *   - <p style="..."> のインラインスタイル 1 箇所（リード本文の装飾）。
 *     Elementor で編集可能にしておくため CSS への移管はしない。
 *
 * 命名規則メモ:
 *   ファイル名は thinx-company-teaser.css（home teaser の意）。
 *   下層 Company Detail ページ (Post 77 #thxCompanyDetail) は Phase 2-D で
 *   thinx-company.css として別途物理化予定。
 *
 * @package HelloElementorThinxChild
 */

/* Company Section
 *
 * Phase 3 Step 2-I（v1.1.9）でローカル変数を Phase 3 統合トークンへ
 * フォールバック付き var() 参照に移行。--c-* 変数名は維持（既存
 * var(--c-...) 参照箇所への影響なし、後方互換性 100%）。
 * 同 prefix --c-* は Contact teaser / Company Detail / Contact form /
 * Entry form と共有するが、スコープ ID で完全分離されているため
 * 値の衝突は起きない。Company teaser は 6 変数構成、すべて標準トークン参照。
 */
#thxCompany {
  --c-accent:     var(--thx-accent);
  --c-accent-rgb: var(--thx-accent-rgb);
  --c-bg:         var(--thx-bg);
  --c-card-bg:    var(--thx-card-bg);
  --c-border:     var(--thx-border);
  --c-muted:      var(--thx-muted);

  background-color: var(--c-bg);
  color: #ECE7DA;
  /* 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;
  margin-top: -1px;
}

/* 背景グリッド：92px同期 */
#thxCompany::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 の同値定義に依存（物理化時に除外） */

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

/* ラベルエリア */
#thxCompany .thx-company-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

#thxCompany .thx-company-title-ja {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

#thxCompany .thx-company-label {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--c-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

/* Phase 4-D（v2.1.0）でセリフ書体（Georgia + Noto Serif JP）を適用、
 * 「研究組織の論文タイトル」のような静かな知性を体現。
 * 色は cool white → warm cream へ転換。
 *
 * Phase 4-D-8（v2.1.7）：正典 .thx-philosophy-main-copy 準拠の line-height 補正。
 * 1.4 → 1.5。他 serif 系主タイトル群との完全統一を達成。 */
#thxCompany .thx-company-title-en {
  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;
}

/* Phase 4-D-7（v2.1.6）：Company teaser リード本文を CSS 側で一元管理。
 * 旧 Elementor HTML widget 内 <p style="...color: rgba(229,243,255,0.8)..."> の青白系 inline color を
 * 完全撤去し、warm cream rgba(236,231,218,0.9) のサイト本文標準色へ統一する。
 * HTML 側は <p>...</p>（inline style 削除済）の構造で本セレクタが直接適用される。
 * font-size / line-height / margin-bottom も inline から CSS へ移管して保守性を確保。
 *
 * Phase 4-D-13（v2.1.12）：DevTools で DB inline style 完全撤去と specificity 競合不在を確認したため、
 * Phase 4-D-12 で緊急追加した !important を撤去。通常宣言の (0,1,2,1) で確実に適用される。
 * THINX の CSS 設計原則（!important は最終手段、原則使用しない）に復帰。 */
#thxCompany .thx-company-main > p {
  font-size: 16px;
  line-height: 2;
  color: rgba(236, 231, 218, 0.9);
  margin-bottom: 30px;
}

/* --- 修正箇所：About Usと同じカードデザインを採用 --- */
#thxCompany .thx-company-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
}

#thxCompany .thx-company-card-item { margin-bottom: 30px; }
#thxCompany .thx-company-card-item:last-child { margin-bottom: 0; }

/* Company 固有の独自命名クラス（.thx-{component}-* パターンから外れる） */
#thxCompany .thx-id-label {
  font-size: 13px;
  color: var(--c-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* Phase 4-D-4（v2.1.3）：Stance / Focus / Promise 本文を 15px へ昇格、line-height 微調整。 */
#thxCompany .thx-id-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(236, 231, 218, 0.7);
}

/* 詳細リンクボタン */
#thxCompany .thx-company-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 20px;
}

#thxCompany .thx-company-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;
}

#thxCompany .thx-company-link:hover .thx-company-btn-text {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

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

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

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

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

@media (max-width: 900px) {
  #thxCompany { padding: 80px 0 !important; }
  #thxCompany .thx-company-layout { grid-template-columns: 1fr; gap: 40px; }
}
