/**
 * thinx-about.css – About teaser (#thxAbout) CSS
 *
 * 移管元: Post 12 (home) Elementor /2/0 widget_id=9894367 の inline <style>
 * 範囲:   #thxAbout ルートスコープに完全クローズ（外部への副作用なし）
 *
 * CSS 変数（ローカル定義）:
 *   --a-accent / --a-accent-rgb / --a-bg / --a-card-bg / --a-border
 *
 * 移管時の処理:
 *   - 全 .thx-about-* / .thx-stat-* セレクタに #thxAbout プレフィックスを追加して
 *     スコープ明示（inline 元ではグローバル定義だったため、同名衝突回避のため）。
 *   - .thx-container { ... } 定義は除外（thinx-base.css に同値定義あり、
 *     依存配列で thinx-base を指定して解決）。
 *
 * 注意:
 *   - @keyframes svc-pulse は inline 元に存在するが About 自身では未使用
 *     （Service セクション用と推定、Phase 2-F で重複整理候補）。
 *
 * @package HelloElementorThinxChild
 */

/* About Us Section - 構造最適化版
 *   - コンテナの強制高さを解除
 *   - 境界線のネガティブ補正
 *
 * Phase 3 Step 2-B（v1.1.2）でローカル変数を Phase 3 統合トークンへ
 * フォールバック付き var() 参照に移行。--a-* 変数名は維持（既存
 * var(--a-...) 参照箇所への影響なし、後方互換性 100%）。
 */
#thxAbout {
  --a-accent:     var(--thx-accent);
  --a-accent-rgb: var(--thx-accent-rgb);
  --a-bg:         var(--thx-bg);
  --a-card-bg:    var(--thx-card-bg);
  --a-border:     var(--thx-border);

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

  /* 上下の余白をデザインとして必要な分(80px)だけに固定 */
  /* Phase A-05a（v2.6.4）: HOME Section Rhythm 統一、80→100px。
   * 6 セクション共通基準値、スクロールリズム統一。 */
  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%;
  min-height: 0 !important; /* 強制解除 */
}

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

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

/* --- タイトル修正：日本語を上に配置するスタイル ---
 *
 * Phase A-03-2/3（v2.6.3）: Tier 2 Section Headline 基準化。
 *   - margin-bottom 40→80px（Service / 他 teaser と統一、維持）
 *   - align-items: center + text-align: center 追加（中央寄せ統一） ← 下記で revert
 *
 * Phase A-03-3-revert（v2.7.2）: 実機評価結果に基づき中央寄せを取りやめ、
 * 左寄せに復帰。
 *   理由: About は 2 カラム grid（1.2fr 0.8fr）の左カラム内で中央寄せに
 *         なるため、HOME 内の他セクション（Service / Company / Recruit /
 *         Contact、いずれも左寄せ基準）との視線軸が断絶し、スクロール時の
 *         リズムが崩れ、THINX の論文的・知的な印象が損なわれていた。
 *   変更: align-items center→flex-start, text-align center→left
 *   維持: margin-bottom 80px（Tier 2 基準）、display flex column、
 *         Heading System / Reveal Animation 全て不変。
 *   Tier 2 設計は「中央寄せ統一」ではなく「Heading 値の統一」が本質、
 *   配置は各セクションの 2 カラム/1 カラム構造に従う運用へ更新。 */
#thxAbout .thx-about-header {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

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

#thxAbout .thx-about-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-4（v2.6.3）: Tier 2 H2 基準化、margin-bottom 30→0px。
 *   header の margin-bottom 80px で section 末尾余白を制御するため、
 *   H2 末尾の二重 margin を解消。Service / News と同設計。 */
#thxAbout .thx-about-title {
  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;
  margin-bottom: 0;
  color: #ECE7DA;
}

/* --- テキスト・デザイン・アニメーション数値は一切変更なし --- */
#thxAbout .thx-about-content { font-size: 16px; line-height: 2; color: rgba(236, 231, 218, 0.9); max-width: 600px; }
#thxAbout .thx-about-content p { margin-bottom: 24px; }
#thxAbout .thx-about-content strong { color: var(--a-accent); font-weight: 700; }

#thxAbout .thx-about-link { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; margin-top: 20px; }
#thxAbout .thx-about-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; }
#thxAbout .thx-about-link:hover .thx-about-btn-text { color: var(--a-accent); border-color: var(--a-accent); }

#thxAbout .thx-about-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(var(--a-accent-rgb), 0.3);
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: all 0.4s ease; color: var(--a-accent);
  /* Phase A-23（v2.9.14）: flex-shrink: 0 で wrap 時の縦長楕円化を防止、正円維持。 */
  flex-shrink: 0;
}
#thxAbout .thx-about-link:hover .thx-about-arrow {
  background: var(--a-accent); color: #fff; border-color: var(--a-accent);
  box-shadow: 0 0 20px rgba(var(--a-accent-rgb), 0.6); transform: translateX(5px);
}
#thxAbout .thx-about-link:hover .thx-about-arrow::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--a-accent); animation: svc-pulse 2s infinite;
}

#thxAbout .thx-about-card { background: var(--a-card-bg); border: 1px solid var(--a-border); border-radius: 24px; padding: 40px; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); position: relative; }
#thxAbout .thx-about-card-stat { margin-bottom: 30px; }
#thxAbout .thx-about-card-stat:last-child { margin-bottom: 0; }
#thxAbout .thx-stat-label { font-size: 13px; color: var(--a-accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px; display: block; }
/* Phase 4-D-4（v2.1.3）：About 統計テキスト本文を 15px へ昇格、line-height 微調整。 */
#thxAbout .thx-stat-text { font-size: 15px; line-height: 1.65; color: rgba(236, 231, 218, 0.7); }

/*
 * @keyframes は @rule のためスコープなし（グローバル）。
 * inline 元では "svc-pulse" という汎用名で定義されており、Service セクション
 * 物理化時に重複定義になる可能性。Phase 2-F で整理候補。
 */
@keyframes svc-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

/* 修正箇所：スマホ対応の最適化（gapとpaddingの微調整）
 * Phase A-05c（v2.6.5）: モバイル padding 60→80px。
 *   HOME 全 7 セクションを 80px 0 で統一、スクロールリズム整合。 */
@media (max-width: 900px) {
  #thxAbout { padding: 80px 0 !important; }
  #thxAbout .thx-about-layout {
    grid-template-columns: 1fr;
    gap: 40px; /* PC版の60pxから縮小し、縦のつながりを改善 */
  }
}
