/**
 * thinx-footer.css – Footer Sitemap (#thxSitemap) CSS
 *
 * 移管元: Post 346 (Footer Sitemap) Elementor HFE template /0/0 widget_id=1d089a4
 *         の inline <style>
 * 範囲:   #thxSitemap ルートスコープに完全クローズ（外部への副作用なし）
 *
 * 位置付け:
 *   - Phase 2-F 第 1 件（Phase 2-F 開始マーク、v0.6.3 → v0.7.0 minor bump）。
 *   - **HFE (Header Footer Elementor) template として全公開ページのフッターに表示**
 *     される。Header (#thxHeader, Phase 2-B 完了) と並ぶ「グローバルコンポーネント」
 *     SECTION C に enqueue 登録。
 *   - **既に全クラスセレクタが #thxSitemap でスコープ化済み**（Phase 2-A〜2-E で
 *     行ってきた「全クラスセレクタへのスコープ追加作業」が **不要**）。Phase 2 で
 *     物理化した全 14 コンポーネントの中で唯一の希有な構造。
 *
 * CSS 変数（ローカル定義、5 個）:
 *   --s-accent / --s-accent-rgb / --s-bg / --s-border / --s-text-dim
 *   ※ prefix --s-* は Service (#thxService) / Security Policy (#thxSecurityPage)
 *     と完全重複するが、スコープ ID で完全分離されているため値の衝突は起きない。
 *   ※ --s-text-dim は他コンポーネントの --*-muted (0.7) と異なる 0.6、命名も
 *     -text-dim（Footer 固有設計）。Phase 3 のグローバルトークン統合候補。
 *   ※ --s-border は 0.15（Partnership と同値、他 brand-system 系の 0.2 より薄い）。
 *
 * 移管時の処理:
 *   - **スコープ化作業: 一切不要**。inline 元から既に全 25 セレクタが #thxSitemap
 *     でスコープ化されているため、文字列の追加・置換は最小限。
 *   - .thx-container { max-width: 1120px !important; ... } は #thxSitemap スコープ
 *     済み + 全宣言に !important。Philosophy 同型の「スコープ + !important 温存」
 *     パターン。値は thinx-base.css と同じだが、HFE 親テーマからの外部干渉対策で
 *     !important を維持（inline 元のコメント「追加CSS干渉遮断・完全再現版」の
 *     意図を完全尊重）。
 *   - @import url('Inter') は元から不在。font-family: "Inter", system-ui, ... で
 *     参照のみ。Phase 2-F Step 2 の Inter @import 一本化対象外。
 *   - !important は inline 元のまま 118 箇所温存（全コンポーネントで最多）。
 *     HFE フッターは Elementor 親テーマ + プラグインの追加 CSS 干渉を強く受ける
 *     ため、徹底防御として全宣言に付与されている。機能変更禁止原則により温存。
 *
 * @keyframes:
 *   - dotBounceSitemap: ブランド identifier ロゴの「.」hover 時の bounce アニメ。
 *     Footer 専用命名で他コンポーネントとの衝突なし。header の dotBounceFinal と
 *     命名規則類似（dotBounce* 系として将来の統合候補だが Phase 3 以降）。
 *
 * @media:
 *   - 2 段切替（max-width: 900px / max-width: 480px）。他コンポーネントの 900px
 *     単独より詳細。900px で grid 4 列 → 2 列、480px で 2 列 → 1 列。
 *
 * 背景グリッド:
 *   - #thxSitemap::before で 92px 同期（brand-system 系と完全同型）。
 *
 * ゴーストセレクタ:
 *   - .thx-brand-ident: HTML 側に存在するが CSS 側に定義なし。Bottom 領域のラッパー
 *     要素として動作、ブラウザ default style で表示。
 *   - .thx-sitemap-col: HTML 側に存在するが CSS 側に定義なし。Grid 子要素として
 *     .thx-sitemap-grid 内に自動配置される。
 *   ※ 両方とも実害なし（Solutions の .thx-sol-statement / Company Detail の
 *     .thx-ceo-message-group と同じ「実害なしの死にコード」パターン）。
 *     inline 元のまま温存（機能変更禁止原則）。
 *     Phase 2-F Step 3 で他の死にコードと一括判断・削除候補。
 *
 * Font Awesome 依存:
 *   - **無し**（HTML 内に <i class="fa..."> 不在、inline <link> も不在）
 *
 * JS 依存:
 *   - **無し**（<script> ブロック / inline onclick / Canvas / observer すべて不在）
 *
 * HTML 側に残る要素:
 *   - <section id="thxSitemap">...</section> の HTML 骨格（55 行）
 *   - <header class="thx-sitemap-header"> + サイトマップタイトル
 *   - <div class="thx-sitemap-grid"> 内に 4 列の <div class="thx-sitemap-col">
 *     - 各 col に <div class="thx-sitemap-category"> + <ul class="thx-sitemap-list">
 *     - メインメニュー / 事業内容 / 採用情報 / 企業情報 のカテゴリリンク
 *   - <div class="thx-sitemap-bottom"> 内に <div class="thx-brand-ident">
 *     - <a class="thx-ident-logo">THINX<span>.</span></a>（hover で dot bounce）
 *     - <p class="thx-ident-subtext"> ブランドメッセージ
 *   - inline style 属性: 無し
 *   - <img>: 無し
 *
 * Phase 2-A〜2-E との違い:
 *   - **配置形態が HFE template**（全ページ共通フッター、影響範囲が全公開ページ）
 *   - **既スコープ化完了**（スコープ追加作業ゼロ）
 *   - **!important 件数が全コンポーネントで最多 118 箇所**（HFE 干渉遮断）
 *   - enqueue 位置が **SECTION C**（ページコンポーネントではなくグローバル）
 *
 * Phase: Phase 2-F 第 1 件（v0.6.3 → v0.7.0 minor bump、Phase 2-F 開始マーク）
 *
 * @package HelloElementorThinxChild
 */

/* =========================================================
    THINX Sitemap Section - 追加CSS干渉遮断・完全再現版

    Phase 3 Step 2-H（v1.1.8）でローカル変数を Phase 3 統合トークンへ
    フォールバック付き var() 参照に移行。--s-* 変数名は維持（既存
    var(--s-...) 参照箇所への影響なし、後方互換性 100%）。
    同 prefix --s-* は Security (#thxSecurityPage) / Service (#thxService) と
    共有するが、スコープ ID で完全分離されているため値の衝突は起きない。
    重要バリアント（Footer 固有、2 件）:
      - --s-border は 0.15（標準 0.2 と異なる、Partnership 同型）のため
        --thx-border-thin を参照（Step 2-E Partnership に続く 2 回目の -thin 使用）。
      - --s-text-dim は 0.6 + 命名違い（標準 --thx-muted は 0.7、--*-muted 命名）の
        ため --thx-muted-dim を参照（Step 2-H 初の -dim 使用、命名違いも吸収）。
   ========================================================= */

#thxSitemap {
    --s-accent:     var(--thx-accent);
    --s-accent-rgb: var(--thx-accent-rgb);
    --s-bg:         var(--thx-bg);
    --s-border:     var(--thx-border-thin);
    --s-text-dim:   var(--thx-muted-dim);

    /* 追加CSSのInterフォントを強制適用 */
    font-family: "Inter", system-ui, -apple-system, sans-serif !important;
    background-color: var(--s-bg) !important;
    color: #ECE7DA !important;
    padding: 120px 0 80px !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: -1px !important;
}

/* 背景グリッド同期：92px固定 */
#thxSitemap::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    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) !important;
    background-size: 92px 92px !important;
    background-attachment: fixed !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/*
 * .thx-container は #thxSitemap スコープ + 全宣言に !important 温存。
 * Philosophy 同型の「スコープ + !important 温存」パターン。
 * 値は thinx-base.css と同じだが、HFE 親テーマからの外部干渉対策で !important 維持。
 */
#thxSitemap .thx-container {
    /* Phase A-01（v2.6.0）: 1120→1280px へ同期（旧 #thxSitemap、ロールバック余地）。 */
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* --- セクションヘッダー --- */
#thxSitemap .thx-sitemap-header {
    margin-bottom: 80px !important;
    text-align: left !important;
}

#thxSitemap .thx-sitemap-title-ja {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--s-accent) !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 8px !important;
    display: block !important;
}

#thxSitemap .thx-sitemap-label {
    font-size: 13px !important;
    letter-spacing: 0.4em !important;
    color: var(--s-text-dim) !important;
    text-transform: uppercase !important;
    display: block !important;
}

/* --- Sitemap Grid --- */
#thxSitemap .thx-sitemap-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 60px 40px !important;
    position: relative !important;
}

#thxSitemap .thx-sitemap-category {
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--s-border) !important;
    position: relative !important;
}

#thxSitemap .thx-sitemap-category::after {
    content: "" !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 30px !important;
    height: 1px !important;
    background: var(--s-accent) !important;
    box-shadow: 0 0 10px var(--s-accent) !important;
}

/*
 * 要素直下指定（.ja / .en）も #thxSitemap .thx-sitemap-category 配下に閉じている
 * ため安全。.ja / .en は汎用名だが、必ず .thx-sitemap-category の子として参照される。
 */
#thxSitemap .thx-sitemap-category .ja {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: 0.05em !important;
    display: block !important;
    margin-bottom: 6px !important;
}

#thxSitemap .thx-sitemap-category .en {
    font-size: 13px !important;
    letter-spacing: 0.2em !important;
    color: var(--s-accent) !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    display: block !important;
}

#thxSitemap .thx-sitemap-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#thxSitemap .thx-sitemap-list li {
    margin-bottom: 24px !important;
}

/* aタグの詳細度を上げて追加CSSを上書き */
#thxSitemap .thx-sitemap-list a {
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--s-text-dim) !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    line-height: 1.2 !important;
    border-bottom: none !important;
}

/* Phase 4-D-3（v2.1.2）：Footer サイトマップ補助テキストを 14px へ昇格。 */
#thxSitemap .thx-sitemap-list a span {
    font-size: 14px !important;
    margin-top: 4px !important;
    opacity: 0.5 !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
}

/* ホバー演出 */
#thxSitemap .thx-sitemap-list a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(55, 171, 157, 0.4) !important;
    transform: translateX(12px) !important;
}

#thxSitemap .thx-sitemap-list a::before {
    content: "→" !important;
    position: absolute !important;
    left: -20px !important;
    top: 1px !important;
    opacity: 0 !important;
    color: var(--s-accent) !important;
    font-size: 13px !important;
    transition: all 0.4s ease !important;
}

#thxSitemap .thx-sitemap-list a:hover::before {
    left: -18px !important;
    opacity: 1 !important;
}

/* --- Bottom Area --- */
#thxSitemap .thx-sitemap-bottom {
    margin-top: 100px !important;
    padding-top: 40px !important;
    border-top: 1px solid var(--s-border) !important;
}

/*
 * @keyframes は @rule のためスコープなし（グローバル）。
 * dotBounceSitemap は Footer 専用名で他コンポーネントと衝突しない。
 * header の dotBounceFinal と命名規則類似（Phase 3 の dotBounce* 系統合候補）。
 */
@keyframes dotBounceSitemap {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

#thxSitemap .thx-ident-logo {
    font-size: 25px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #fff !important;
    margin-bottom: 20px !important;
    transition: all 0.4s ease !important;
}

#thxSitemap .thx-ident-logo span {
    color: #37AB9D !important;
    display: inline-block !important;
}

#thxSitemap .thx-ident-logo:hover span {
    animation: dotBounceSitemap 0.6s ease-in-out infinite !important;
    text-shadow: 0 0 15px rgba(55, 171, 157, 0.8) !important;
}

/* Phase 4-D-3（v2.1.2）：Footer 識別エリア補助テキストを 14px へ昇格。 */
#thxSitemap .thx-ident-subtext {
    font-size: 14px !important;
    color: var(--s-text-dim) !important;
    line-height: 2 !important;
    margin: 0 !important;
    letter-spacing: 0.02em !important;
}

/* Responsive */
@media (max-width: 900px) {
    #thxSitemap { padding: 80px 0 60px !important; }
    #thxSitemap .thx-sitemap-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 40px 30px !important; }
}

@media (max-width: 480px) {
    #thxSitemap .thx-sitemap-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ================================================================
 *  Phase F-01 Footer Redesign（v2.5.0）
 *  ----------------------------------------------------------------
 *  旧 #thxSitemap セクション風 → #thxFooter Anthropic 系コンパクト
 *  フッターへ全面再設計。Inter 統一・グロウ廃止・階層整理。
 *
 *  主な変更:
 *    - ID: #thxSitemap → #thxFooter
 *    - サイトマップタイトル「サイトマップ / SITE MAP INDEX」削除
 *    - 旧テキストロゴ「THINX.」→ Wordmark v5 SVG へ置換
 *    - ブランド ident subtext 削除 → 住所 + Copyright で階層整理
 *    - bottom の border-top 廃止（hairline なし、余白で階層分離、
 *      92px グリッド線との二重表現を回避）
 *    - section padding 120/80 → 80/40px（Anthropic 系コンパクト）
 *    - Hover translateX(12px) / text-shadow glow / 矢印 ::before 廃止
 *    - category::after の box-shadow glow 削除、hairline のみ
 *    - 全フォント Inter 統一（Serif 不使用）
 *    - THINX-LAB. の外部リンクアイコンは Header
 *      .thx-service-external-icon（Phase 5-H12 確定）と完全同一仕様
 *    - 92px グリッド背景は維持
 *    - 4 カラム grid 構成維持
 *
 *  階層整理（下段）:
 *    - ロゴ：Wordmark SVG 32px（重要度 1、左寄せ）
 *    - 住所：Inter 11px / 0.5α（重要度 2、右寄せ）
 *    - Copyright：Inter 10.5px / 0.35α / 0.08em（重要度 3、最も控えめ）
 *
 *  旧 #thxSitemap CSS（上記）はロールバック余地として残置。
 *  HFE Post 346 で HTML を旧構造に戻せば即座に復活可能。
 *  運用安定確認後、Phase F-02 で旧 CSS を削除予定。
 * ================================================================ */

#thxFooter {
    background-color: #020B16;
    color: #ECE7DA;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    margin-top: -1px;
}

/* 92px グリッド背景（brand-system 同型、旧 #thxSitemap から継承） */
#thxFooter::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;
}

#thxFooter .thx-container {
    /* Phase A-01（v2.6.0）: 1120→1280px へ同期、サイト全体コンテナ幅拡張。 */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ================================================================
 *  上段：4 カラム grid
 * ================================================================ */
#thxFooter .thx-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 32px;
}

#thxFooter .thx-footer-category {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 0.5px solid rgba(236, 231, 218, 0.1);
    position: relative;
}

#thxFooter .thx-footer-category::after {
    content: "";
    position: absolute;
    bottom: -0.5px;
    left: 0;
    width: 24px;
    height: 0.5px;
    background: #37AB9D;
}

#thxFooter .thx-footer-category .ja {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ECE7DA;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

#thxFooter .thx-footer-category .en {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #37AB9D;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: block;
}

#thxFooter .thx-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#thxFooter .thx-footer-list li {
    margin-bottom: 18px;
}

#thxFooter .thx-footer-list a {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(236, 231, 218, 0.72);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#thxFooter .thx-footer-list a span {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(236, 231, 218, 0.4);
    letter-spacing: 0.02em;
    margin-top: 4px;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover: 色変化のみ（translateX / glow / 矢印 ::before すべて廃止）*/
#thxFooter .thx-footer-list a:hover {
    color: #ECE7DA;
}

#thxFooter .thx-footer-list a:hover span {
    color: rgba(236, 231, 218, 0.65);
}

/* ================================================================
 *  外部リンクアイコン（THINX-LAB. のみ）
 *  Phase 5-H12 で確定した Header .thx-service-external-icon と
 *  完全同一仕様（width / height / stroke / stroke-width / transition）
 *  でサイト全体の UI 一貫性を担保する。
 * ================================================================ */
#thxFooter .thx-footer-item--external a span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#thxFooter .thx-footer-external-icon {
    width: 13px;
    height: 13px;
    stroke: rgba(236, 231, 218, 0.55);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    transition: stroke 0.2s ease-out;
}

#thxFooter .thx-footer-item--external a:hover .thx-footer-external-icon,
#thxFooter .thx-footer-item--external a:focus-visible .thx-footer-external-icon {
    stroke: rgba(236, 231, 218, 0.85);
}

/* ================================================================
 *  下段：ロゴ + 住所 + Copyright（縦積み左寄せ、1 グループ集約）
 *
 *  Phase F-01-b 修正:
 *    左右分離レイアウト → ブランド情報を 1 グループとして左寄せ縦積みへ。
 *    視覚的重心の右寄り問題を解消し、ロゴ・住所・Copyright を
 *    「THINX という企業の証明」として 1 箇所に集約する。
 *
 *  階層整理（縦並び）:
 *    1. THiИX Wordmark SVG（重要度 1、上段、最も大きく）
 *    2. 住所（重要度 2、20px 下、控えめ）
 *    3. Copyright（重要度 3、6px 下、最も控えめ）
 *
 *  hairline なし、margin / 文字サイズ / α 値の差のみで階層を表現。
 *  92px グリッド線との二重表現も引き続き回避。
 * ================================================================ */
#thxFooter .thx-footer-meta {
    margin-top: 64px;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

#thxFooter .thx-footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    /* Phase F-01-c: ロゴと住所の上下間隔を 20→12px に圧縮、グループ集約感を強化 */
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

#thxFooter .thx-footer-brand:hover {
    opacity: 0.82;
}

/* Phase F-01-c: ロゴサイズ 32→40px へ拡大（+25%）。
 * Wordmark をフッター下段の主役として認識できる存在感へ。
 * 表示幅は SVG 比率（440:150）から自動算出で 117px。 */
#thxFooter .thx-footer-brand img {
    height: 40px;
    width: auto;
    display: block;
}

/* 住所（補助情報、階層 2）
 * Phase F-01-c: padding-left: 16px で「ロゴの T のセンター位置」を
 * 基準とした左インデント。住所・Copyright がロゴ T の左端より前に
 * 出ないようにし、視線が「THiИX → 住所 → Copyright」と
 * 自然に内側へ流れる構成に。
 * T 中心位置の算出：SVG viewBox 0 0 440 150 内の T bbox center x≈59、
 * 表示 width = 40 × 440/150 = 117px → T 中心 = (59/440) × 117 ≈ 16px */
#thxFooter .thx-footer-address {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(236, 231, 218, 0.5);
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
    padding-left: 16px;
    text-align: left;
}

/* Copyright（最も控えめ、階層 3）*/
#thxFooter .thx-footer-copyright {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(236, 231, 218, 0.35);
    letter-spacing: 0.08em;
    margin: 0;
    padding-left: 16px;
    text-align: left;
}

/* ================================================================
 *  Responsive
 * ================================================================ */
@media (max-width: 900px) {
    #thxFooter {
        padding: 60px 0 32px;
    }
    #thxFooter .thx-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    #thxFooter .thx-footer-meta {
        /* Phase F-01-b: Mobile も PC と同じ縦積み左寄せ統一。
         * margin-top のみ Tablet サイズに合わせて縮小。 */
        margin-top: 48px;
    }
}

@media (max-width: 480px) {
    #thxFooter .thx-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    #thxFooter .thx-footer-category .ja {
        font-size: 13px;
    }
}
