/**
 * thinx-company-detail.css – Company Detail (#thxCompanyDetail) CSS
 *
 * 移管元: Post 77 (company) Elementor /0/0 widget_id=211fe7a の inline <style>
 * 範囲:   #thxCompanyDetail ルートスコープに完全クローズ（外部への副作用なし）
 *
 * 位置付け:
 *   - Phase 2-E 第 1 件（Phase 2-D 完了後の最初の物理化）。
 *   - Detail Profile 系の最もシンプルなパターン（JS-less / CTA 不在 /
 *     pulse animation 不在 / 対話 UI 不在 / 外部依存最少）。
 *   - Home の Company teaser（thinx-company-teaser.css）の詳細版 = 完結型
 *     Detail ページ。teaser からの遷移先で、Detail からの遷移誘導 CTA は無い。
 *
 * CSS 変数（ローカル定義、6 個）:
 *   --c-accent / --c-accent-rgb / --c-bg / --c-card-bg / --c-border / --c-muted
 *   ※ prefix --c-* は Contact teaser (#thxContact) / Company teaser (#thxCompany)
 *     と完全重複するが、スコープ ID で完全分離されているため値の衝突は起きない。
 *     Phase 2-F のグローバルトークン化候補（brand-system 系の --sol-* と同値）。
 *
 * 移管時の処理:
 *   - inline 元は #thxCompanyDetail / #thxCompanyDetail::before 以外の全 50
 *     クラスセレクタが「未スコープ」だったため、物理化時に #thxCompanyDetail
 *     プレフィックスを全クラスセレクタ・全擬似要素セレクタに付与してスコープ化。
 *   - 要素直下指定（.thx-ceo-photo img / .thx-ceo-message p / .thx-ach-list li /
 *     .thx-case-list li および li::before）も #thxCompanyDetail スコープで
 *     完全隔離。これらは .thx-* プレフィックス付き親子セレクタのため直接的な
 *     全サイト破壊リスクは低いが、スコープ化原則に従う。
 *   - .thx-container { max-width: 1120px; ... } 定義は除外（thinx-base.css に
 *     完全同値の定義あり、依存配列で thinx-base を指定して解決）。
 *     ※ Methodology / Solutions / Partnership / Service / About teaser と
 *       同じ「除外」パターン。inline 元に !important が無いため除外で問題なし。
 *   - @import url('Inter') は元から不在（system-ui 単独、Philosophy /
 *     Methodology / Solutions と同系統）。
 *   - !important は inline 元のまま 2 箇所温存（padding-top / @media padding）。
 *     Solutions と同じ最小限構成。
 *
 * @keyframes:
 *   - **無し**（CTA 不在、pulse animation 不在、対話 UI 不在の純粋な
 *     情報表示ページのため。Philosophy（CTA 不在）と並ぶ Phase 2-D / 2-E で
 *     最もシンプルな構造）。
 *
 * Font Awesome 依存:
 *   - **無し**（HTML 内に <i class="fas fa-*"> / <i class="fab ..."> 一切なし）。
 *   - inline <link rel="stylesheet" href="...fontawesome..."> も元から不在。
 *   - Methodology / Solutions の Step 2 で実施した Font Awesome inline <link>
 *     削除作業は本ページでは不要。
 *
 * 外部依存:
 *   - **CSS / JS の外部依存は全て無し**（@import / <link> / <script> /
 *     CDN すべて不在）。Phase 2-D / 2-E の中で最も外部依存が少ないページ。
 *   - HTML 内に <img src="http://localhost/thinx/wp-content/uploads/2026/02/
 *     headshot.jpg" alt="𠮷元一夢"> という CEO 写真リンクのみ存在（WordPress
 *     メディアライブラリ管理、HTML 構造の一部として温存）。
 *
 * 構造的位置付け:
 *   - Phase 2-E 第 1 件（detail / form page 系の最初）
 *   - JS-less（Hero / brand-system 不在、inline onclick 不在、純粋静的）
 *   - 5 セクション構成: ヘッダ + 会社スペック表（grid 240px+1fr）+ CEO プロフィール
 *     （写真 + メッセージ + 略歴）+ 主な実績（2 列 grid 4 card）+ 導入事例
 *     （4 件、各 case-card 内に Issue/Approach/Outcome 3 列 + flow chart）
 *   - 背景グリッド 92px は brand-system 系と完全同型
 *
 * ゴーストセレクタ:
 *   - .thx-ceo-message-group：HTML 側に存在するが CSS 側に定義なし。
 *     CEO メッセージ群のラッパー要素として HTML 構造上の意味は持つが、
 *     CSS で何もスタイル指定していないため、ブラウザ default style（block 要素）
 *     として正常動作。Philosophy の .thx-value-header-sync（レイアウト崩れを
 *     引き起こした補正必須ズレ）とは性質が異なり、補完ルール追加は不要。
 *     inline 元の状態を温存（機能変更禁止原則）。
 *     Phase 2-F の CSS クリーンアップ時に本当に CSS 定義が必要か判断候補。
 *
 * HTML 側に残る要素:
 *   - <section id="thxCompanyDetail">...</section> の HTML 構造
 *   - ヘッダ「会社情報 / Corporate Profile」+ 会社スペック表
 *   - CEO プロフィールカード（<img src=".../headshot.jpg">、CEO メッセージ、略歴）
 *   - 主な実績 4 card / 導入事例 4 件（各 case 内 flow chart 含む）
 *   - inline style 属性（温存対象）:
 *     - <span style="font-size: 13px; color: var(--c-muted);">文部科学省認定
 *       統計士 (認定証書番号221010061)</span> ← CSS 変数を inline で参照
 *       （#thxCompanyDetail スコープ内なので --c-muted は親から継承で取得可能）
 *     - <ul style="padding-left: 18px; margin: 0;"> ← リスト整形
 *
 * Phase: Phase 2-E 第 1 件（Phase 2-E 開始 minor bump v0.5.5 → v0.6.0）
 *
 * @package HelloElementorThinxChild
 */

/* Company Profile Detail Section - 配置同期・最終調整版
 *
 * Phase 3 Step 2-I（v1.1.9）でローカル変数を Phase 3 統合トークンへ
 * フォールバック付き var() 参照に移行。--c-* 変数名は維持（既存
 * var(--c-...) 参照箇所への影響なし、後方互換性 100%）。
 * 同 prefix --c-* は Contact teaser / Company teaser / Contact form /
 * Entry form と共有するが、スコープ ID で完全分離されているため
 * 値の衝突は起きない。Company Detail は 6 変数構成、すべて標準トークン参照。
 */
#thxCompanyDetail {
  --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;
  /* 【記憶した位置】padding-top を 140px に固定 */
  padding: 140px 0 100px !important;
  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  width: 100%;
}

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

/* --- Header Section --- */
#thxCompanyDetail .thx-page-header {
  text-align: center;
  margin-bottom: 80px;
}

#thxCompanyDetail .thx-page-title-ja {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: 0.15em;
  /* 【記憶した位置】マージンを 0 に固定 */
  margin-top: 0;
  margin-bottom: 12px;
  display: block;
}

#thxCompanyDetail .thx-page-label {
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--c-muted);
  text-transform: uppercase;
  /* 【記憶した位置】コンテンツ開始までの距離を 110px に固定 */
  margin-bottom: 110px;
  display: block;
  position: relative;
}

/* ページ識別を強めるアクセントライン（メイン） */
#thxCompanyDetail .thx-page-label::after {
  content: "";
  position: absolute;
  /* 【記憶した位置】青線の位置を -30px に固定 */
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--c-accent);
  opacity: 0.8;
}

/* --- スペック表 --- */
#thxCompanyDetail .thx-spec-grid {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  margin-bottom: 80px;
}

#thxCompanyDetail .thx-spec-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--c-border);
}

#thxCompanyDetail .thx-spec-row:last-child {
  border-bottom: none;
}

#thxCompanyDetail .thx-spec-label {
  padding: 32px 40px;
  background: rgba(55, 171, 157, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#thxCompanyDetail .thx-label-en {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

#thxCompanyDetail .thx-label-ja {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Phase 4-D-5（v2.1.4）：会社概要 spec 値本文を 15px へ昇格、line-height 1.8 → 1.75。 */
#thxCompanyDetail .thx-spec-value {
  padding: 32px 40px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(236, 231, 218, 0.9);
  display: flex;
  align-items: center;
}

/* --- CEOプロフィール --- */
#thxCompanyDetail .thx-ceo-profile-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  overflow: hidden;
  margin-bottom: 100px;
}

#thxCompanyDetail .thx-ceo-flex {
  display: flex;
  gap: 60px;
  padding: 60px;
}

#thxCompanyDetail .thx-ceo-photo-wrap {
  width: 300px;
  flex-shrink: 0;
}

#thxCompanyDetail .thx-ceo-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(55, 171, 157, 0.05);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
}

/* 要素直下指定（img）を #thxCompanyDetail スコープで完全隔離 */
#thxCompanyDetail .thx-ceo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#thxCompanyDetail .thx-ceo-details {
  flex: 1;
}

#thxCompanyDetail .thx-intro-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 24px;
  display: block;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#thxCompanyDetail .thx-ceo-message {
  font-size: 16px;
  line-height: 2;
  color: rgba(236, 231, 218, 0.9);
}

/* 要素直下指定（p）を #thxCompanyDetail スコープで完全隔離 */
#thxCompanyDetail .thx-ceo-message p {
  margin-bottom: 1.5em;
}

#thxCompanyDetail .thx-ceo-history {
  margin-top: 40px;
  border-top: 1px solid var(--c-border);
  padding-top: 40px;
}

#thxCompanyDetail .thx-history-label {
  font-size: 13px;
  color: var(--c-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* Phase 4-D-5（v2.1.4）：BIOGRAPHY 経歴本文を 15px へ昇格、line-height 1.8 → 1.75。 */
#thxCompanyDetail .thx-history-text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(236, 231, 218, 0.7);
}

/* --- 実績・事例セクション見出し --- */
#thxCompanyDetail .thx-achievements-header {
  text-align: center;
  margin-bottom: 80px;
}

#thxCompanyDetail .thx-achievements-title-ja {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

#thxCompanyDetail .thx-achievements-label {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 60px;
  display: block;
  position: relative;
}

#thxCompanyDetail .thx-achievements-label::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--c-accent);
  opacity: 0.8;
}

#thxCompanyDetail .thx-achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 100px;
}

#thxCompanyDetail .thx-achievement-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);
}

#thxCompanyDetail .thx-ach-category {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

#thxCompanyDetail .thx-ach-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
}

#thxCompanyDetail .thx-ach-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 要素直下指定（li / li::before）を #thxCompanyDetail スコープで完全隔離
 * Phase 4-D-5（v2.1.4）：実績リスト本文を 15px へ昇格、line-height 1.8 → 1.75。 */
#thxCompanyDetail .thx-ach-list li {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(236, 231, 218, 0.7);
  margin-bottom: 16px;
  padding-left: 1.5em;
  position: relative;
}

#thxCompanyDetail .thx-ach-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 700;
}

/* --- 事例グリッド --- */
#thxCompanyDetail .thx-case-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#thxCompanyDetail .thx-case-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 50px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

#thxCompanyDetail .thx-case-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  line-height: 1.4;
}

#thxCompanyDetail .thx-case-title::before {
  content: "CASE";
  font-size: 13px;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  font-weight: 800;
}

#thxCompanyDetail .thx-case-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 40px;
}

#thxCompanyDetail .thx-case-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}

#thxCompanyDetail .thx-case-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 要素直下指定（li / li::before）を #thxCompanyDetail スコープで完全隔離
 * Phase 4-D-5（v2.1.4）：事例リスト本文を 15px へ昇格、line-height 1.8 → 1.75。 */
#thxCompanyDetail .thx-case-list li {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(236, 231, 218, 0.8);
  margin-bottom: 12px;
  position: relative;
  padding-left: 1.2em;
}

#thxCompanyDetail .thx-case-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--c-accent);
}

/* --- ケース内フローチャート --- */
#thxCompanyDetail .thx-flow-container {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px dashed var(--c-border);
  width: 100%;
}

#thxCompanyDetail .thx-flow-steps {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
}

#thxCompanyDetail .thx-flow-item {
  flex: 1;
  background: rgba(55, 171, 157, 0.05);
  border: 1px solid rgba(55, 171, 157, 0.2);
  border-radius: 12px;
  padding: 24px 15px;
  text-align: center;
  position: relative;
}

#thxCompanyDetail .thx-flow-label {
  display: block;
  font-size: 14px;
  color: var(--c-accent);
  margin-bottom: 8px;
  font-weight: 700;
}

/* Phase 4-D-5（v2.1.4）：フロー詳細本文を 15px へ昇格、line-height 1.5 維持。 */
#thxCompanyDetail .thx-flow-text {
  font-size: 15px;
  color: #fff;
  line-height: 1.5;
  font-weight: 500;
}

#thxCompanyDetail .thx-flow-arrow {
  display: flex;
  align-items: center;
  color: var(--c-border);
  font-weight: bold;
  font-size: 18px;
}

/* レスポンシブ */
@media (max-width: 900px) {
  #thxCompanyDetail { padding: 130px 0 80px !important; }
  #thxCompanyDetail .thx-page-label { margin-bottom: 60px; }
  #thxCompanyDetail .thx-spec-row { grid-template-columns: 1fr; }
  #thxCompanyDetail .thx-spec-label { padding: 24px 30px 8px; background: none; }
  #thxCompanyDetail .thx-spec-value { padding: 8px 30px 24px; }
  #thxCompanyDetail .thx-ceo-flex { flex-direction: column; padding: 40px 24px; gap: 40px; }
  #thxCompanyDetail .thx-ceo-photo-wrap { width: 100%; }
  #thxCompanyDetail .thx-achievements-grid { grid-template-columns: 1fr; }
  #thxCompanyDetail .thx-case-content { grid-template-columns: 1fr; gap: 30px; }
  #thxCompanyDetail .thx-case-card { padding: 30px 24px; }
  #thxCompanyDetail .thx-flow-steps { flex-direction: column; }
  #thxCompanyDetail .thx-flow-arrow { transform: rotate(90deg); margin: 10px 0; }
}
