/**
 * thinx-contact-teaser.css – Contact teaser (#thxContact) CSS
 *
 * 移管元: Post 12 (home) Elementor /5/0 widget_id=7e37ecd の inline <style>
 * 範囲:   #thxContact ルートスコープに完全クローズ（外部への副作用なし）
 *
 * CSS 変数（ローカル定義）:
 *   --c-accent / --c-accent-rgb / --c-bg / --c-card-bg / --c-border
 *
 * 注意: CSS 変数 prefix --c-* は Company teaser（/4/0 #thxCompany）と同じ値を使う。
 *       両者はスコープ ID で完全分離されているため値の衝突は起きないが、
 *       Phase 2-F の tokens 統合時に prefix を区別する判断材料になる。
 *
 * 移管時の処理:
 *   - 全 .thx-contact-* セレクタに #thxContact プレフィックスを追加してスコープ
 *     明示（inline 元ではグローバル定義だったため、同名衝突回避のため）。
 *   - .thx-container { ... } 定義は除外（thinx-base.css に同値定義あり、
 *     依存配列で thinx-base を指定して解決）。
 *
 * @keyframes:
 *   - con-pulse: Contact 専用名前空間（CTA リンク hover 時の矢印円パルス用）。
 *     About の svc-pulse / Recruit の rec-pulse と衝突しない。
 *
 * 命名規則メモ:
 *   ファイル名は thinx-contact-teaser.css（home teaser の意）。
 *   下層 Contact フォームページ (Post 136 #thxContactPage) は Phase 2-E で
 *   thinx-contact.css として別途物理化予定（CFW 連携あり）。
 *
 * @package HelloElementorThinxChild
 */

/* Contact Section - 構造最適化版 (About Us / Recruitと完全同期)
 *
 * Phase 3 Step 2-I（v1.1.9）でローカル変数を Phase 3 統合トークンへ
 * フォールバック付き var() 参照に移行。--c-* 変数名は維持（既存
 * var(--c-...) 参照箇所への影響なし、後方互換性 100%）。
 * 同 prefix --c-* は Company teaser / Company Detail / Contact form /
 * Entry form と共有するが、スコープ ID で完全分離されているため
 * 値の衝突は起きない。Contact teaser は 5 変数構成（--c-muted 不在）、
 * すべて標準トークン参照。
 */
#thxContact {
  --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);

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

  /* 上下の余白を全セクション共通の80pxに統一
   * Phase A-05a（v2.6.4）: HOME Section Rhythm 統一、80→100px。
   * 旧コメントの「80px」は v2.6.3 までの値、v2.6.4 から 100px が共通基準。 */
  padding: 100px 0 !important;

  /* セクション間の隙間を物理的に排除するネガティブマージン */
  margin-top: -2px !important;
  margin-bottom: -2px !important;

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

/* 背景グリッド：全セクション共通の92px / fixedで完全同期 */
#thxContact::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 の同値定義に依存（物理化時に除外） */

#thxContact .thx-contact-layout {
  display: grid;
  /* レイアウト比率を他セクションと統一 */
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

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

/* 日本語タイトルを上に配置するスタイルを統一 */
#thxContact .thx-contact-title-ja {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

/* Contactラベル */
#thxContact .thx-contact-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（v2.1.0）でセリフ書体（Georgia + Noto Serif JP）を適用。
 * 色は cool white → warm cream へ転換。
 *
 * Phase A-03-6（v2.6.3）: Tier 2 H2 基準化、margin-bottom 30→0px。
 *   Service / News / About / Recruit teaser と同設計、二重 margin 解消。 */
#thxContact .thx-contact-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;
}

/* メイン説明文：他セクションの本文(0.9)と統一 */
#thxContact .thx-contact-desc {
  font-size: 16px;
  line-height: 2;
  color: rgba(236, 231, 218, 0.9);
  max-width: 600px;
  margin-bottom: 35px;
}

/* リンクボタンのデザイン継承 */
#thxContact .thx-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin-top: 20px;
}

#thxContact .thx-contact-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;
}

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

#thxContact .thx-contact-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;
}

#thxContact .thx-contact-link:hover .thx-contact-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);
}

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

/* 右側のインフォメーションカード */
#thxContact .thx-contact-info-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;
}

#thxContact .thx-contact-info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#thxContact .thx-contact-methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

#thxContact .thx-contact-methods li {
  margin-bottom: 24px;
}

#thxContact .thx-contact-methods li:last-child {
  margin-bottom: 0;
}

/* カード内ラベル：他セクションの補助テキスト(0.7)と統一 */
#thxContact .thx-contact-method-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(236, 231, 218, 0.7);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

/* ラベル内の日本語補助テキスト */
#thxContact .thx-contact-method-label span {
  font-size: 13px;
  margin-left: 8px;
  opacity: 0.8;
}

/* 情報の値（メールアドレス等）は白文字でコントラストを維持 */
#thxContact .thx-contact-method-value {
  font-size: 18px;
  font-weight: 600;
  color: #ECE7DA;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
}

/*
 * @keyframes は @rule のためスコープなし（グローバル）。
 * "con-pulse" は Contact 専用名で他コンポーネントと衝突しない。
 */
@keyframes con-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) {
  #thxContact { padding: 80px 0 !important; }
  #thxContact .thx-contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #thxContact .thx-contact-info-card { padding: 30px; }
  #thxContact .thx-contact-method-value { font-size: 16px; }
}
