/**
 * thinx-refinements.css – 公開前の仕上げ（2026-10-08・v2.13.0）
 *
 * 公開前レビュー P1〜P8 の調整をこのファイルに集約する（既存コンポーネント CSS は変更しない）。
 * 各コンポーネントと同じ詳細度で、それらの後に読み込んで上書きする（enqueue.php の依存配列で順序を保証）。
 *
 *   P1 会社概要：導入事例を「概要＋詳しく見る（折りたたみ）」に
 *   P2 コンサルティング：支援の流れ（意思決定サイクル）を横並びに
 *   P3 システム開発：構成図の文字サイズ・明暗比
 *   P4 全ページ：英語ラベル→見出しの間隔 PC 90px / SP 60px（AI 分析基盤・導入事例ページは承認済みの 70px を維持）
 *   P5 採用情報：働き方カードの配置
 *   P6 トップ：会社情報セクションを 1 列に
 *   P7 ヘッダー・フッター：日本語補足を 12px・読みやすい濃さに（英語はそのまま）
 *   P8 応募フォーム：補足説明 14px
 *
 * @package HelloElementorThinxChild
 */

/* ================================================================
 *  P1 会社概要：導入事例
 * ================================================================ */
#thxCompanyDetail .thx-case-grid { gap: 24px; }
#thxCompanyDetail .thx-case-card {
  padding: 40px 44px;
  /* 端数の拡大率で下辺の枠線が欠ける描画を避けるため、背景ぼかしは使わない */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#thxCompanyDetail .thx-case-title { margin-bottom: 18px; }
#thxCompanyDetail .thx-case-summary {
  font-size: 15px; line-height: 1.85; color: rgba(236, 231, 218, 0.85); margin: 0 0 12px;
}
#thxCompanyDetail .thx-case-outcome {
  display: flex; align-items: baseline; gap: 12px; margin: 0;
  font-size: 15px; line-height: 1.75; color: #ECE7DA;
}
#thxCompanyDetail .thx-case-outcome-label {
  flex-shrink: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; line-height: 1.6;
  color: rgba(236, 231, 218, 0.95); border: 1px solid rgba(55, 171, 157, 0.55); border-radius: 4px; padding: 1px 8px;
}

#thxCompanyDetail .thx-case-more { margin-top: 24px; }
#thxCompanyDetail .thx-case-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--c-accent);
  padding: 4px 0; user-select: none;
}
#thxCompanyDetail .thx-case-more > summary::-webkit-details-marker { display: none; }
#thxCompanyDetail .thx-case-more > summary:hover,
#thxCompanyDetail .thx-case-more > summary:focus-visible { color: #fff; outline: none; }
#thxCompanyDetail .thx-case-more-close { display: none; }
#thxCompanyDetail .thx-case-more[open] .thx-case-more-open { display: none; }
#thxCompanyDetail .thx-case-more[open] .thx-case-more-close { display: inline; }
#thxCompanyDetail .thx-case-more-icon {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(55, 171, 157, 0.35);
  position: relative; transition: transform 0.3s ease, background-color 0.3s ease;
}
#thxCompanyDetail .thx-case-more-icon::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
#thxCompanyDetail .thx-case-more[open] .thx-case-more-icon { transform: rotate(180deg); }
#thxCompanyDetail .thx-case-more > summary:hover .thx-case-more-icon { background: rgba(55, 171, 157, 0.15); }
#thxCompanyDetail .thx-case-more .thx-case-content {
  margin-top: 24px; padding-top: 28px; border-top: 1px dashed var(--c-border);
}

@media (max-width: 900px) {
  #thxCompanyDetail .thx-case-card { padding: 30px 24px; }
  #thxCompanyDetail .thx-case-title { align-items: flex-start; flex-direction: column; gap: 10px; }
  #thxCompanyDetail .thx-case-outcome { flex-direction: column; gap: 6px; }
}

/* ================================================================
 *  P2 コンサルティング：支援の流れ（意思決定サイクル）
 *  PC（1025px〜）は 5 段を横 1 列に。それ以下は縦 1 列のまま詰める。
 *  説明用のカードなのでホバーで動かさない。
 * ================================================================ */
#thxSolutions .thx-cycle-step:hover { transform: none; border-color: var(--sol-border); }
#thxSolutions .thx-cycle-num { font-size: 13px; letter-spacing: 0.2em; margin-bottom: 10px; }
#thxSolutions .thx-cycle-loop { font-size: 13px; letter-spacing: 0.2em; }

@media (min-width: 1025px) {
  #thxSolutions .thx-cycle-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
    align-items: stretch;
    max-width: 1120px;
  }
  #thxSolutions .thx-cycle-step { padding: 26px 22px; display: flex; flex-direction: column; }
  #thxSolutions .thx-cycle-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
  #thxSolutions .thx-cycle-label { font-size: 18px; }
  #thxSolutions .thx-cycle-desc { font-size: 14px; line-height: 1.75; }
  /* 矢印を横向きに */
  #thxSolutions .thx-cycle-connector { width: 28px; height: 1px; margin: 0; align-self: center; }
  #thxSolutions .thx-cycle-connector::after {
    bottom: auto; top: 50%; left: auto; right: -1px; transform: translateY(-50%);
    border-top: 4px solid transparent; border-bottom: 4px solid transparent;
    border-left: 6px solid rgba(55, 171, 157, 0.55); border-right: 0;
  }
  #thxSolutions .thx-cycle-connector::before { display: none; }
  #thxSolutions .thx-cycle-loop { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 1024px) {
  #thxSolutions .thx-cycle-flow { max-width: 600px; }
  #thxSolutions .thx-cycle-step { padding: 22px 24px; }
  #thxSolutions .thx-cycle-label { font-size: 18px; }
  #thxSolutions .thx-cycle-connector { height: 24px; margin: 6px auto; }
}

/* ================================================================
 *  P3 システム開発：構成図
 *  図中の文字を 13px 以上・背景との明暗比 4.5:1 以上に。図の下の余白を詰める。
 * ================================================================ */
#thxMethodology .thx-arch-wrapper { padding-bottom: 40px; }
#thxMethodology .thx-arch-platform-label { font-size: 13px; letter-spacing: 0.22em; color: #5BC7B8; }
#thxMethodology .thx-arch-platform-suite-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: rgba(91, 199, 184, 0.95);
}
#thxMethodology .thx-arch-agent-chip {
  font-size: 13px; letter-spacing: 0.04em; line-height: 1.4; padding: 7px 14px;
  color: rgba(236, 231, 218, 0.9);
}
#thxMethodology .thx-arch-agent-chip.is-expand { color: rgba(91, 199, 184, 0.95); font-style: normal; }

@media (max-width: 900px) {
  #thxMethodology .thx-arch-agent-chip { font-size: 13px; }
  /* スマートフォンでもチップを横に並べ、入りきらない分を折り返す（1 行 1 つで縦に長くならないように） */
  #thxMethodology .thx-arch-platform-suite-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  #thxMethodology .thx-arch-suite-row { display: contents; }
}

/* ================================================================
 *  P4 英語ラベル → 見出しの間隔：PC 90px / スマートフォン 60px
 *  （既存は 110px。AI 分析基盤・導入事例ページは承認済みの 70px のまま＝ここでは触れない）
 * ================================================================ */
#thxPhilosophy .thx-section-label,
#thxPhilosophy .thx-value-label-sync-en { margin-bottom: 90px !important; }
#thxCompanyDetail .thx-page-label,
#thxMethodology .thx-section-label,
#thxSolutions .thx-section-label,
#thxPartnerPage .thx-partner-label,
#thxRecruitDetail .thx-page-label,
#thxEntryPage .thx-entry-label,
#thxContactPage .thx-contact-label,
#thxPrivacyPage .thx-privacy-label,
#thxSecurityPage .thx-security-label,
#thxNewsPage .thx-section-label { margin-bottom: 90px; }

@media (max-width: 900px) {
  #thxPhilosophy .thx-section-label,
  #thxPhilosophy .thx-value-label-sync-en { margin-bottom: 60px !important; }
  #thxCompanyDetail .thx-page-label,
  #thxMethodology .thx-section-label,
  #thxSolutions .thx-section-label,
  #thxPartnerPage .thx-partner-label,
  #thxRecruitDetail .thx-page-label,
  #thxEntryPage .thx-entry-label,
  #thxContactPage .thx-contact-label,
  #thxPrivacyPage .thx-privacy-label,
  #thxSecurityPage .thx-security-label,
  #thxNewsPage .thx-section-label { margin-bottom: 60px; }
}

/* ================================================================
 *  P5 採用情報：働き方カード
 *  PC は 3 列（3 枚 + 2 枚を中央寄せ）。タグと見出しは縦に積み、狭い列でも窮屈にしない。
 * ================================================================ */
@media (min-width: 1025px) {
  #thxRecruitDetail .thx-benefit-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  #thxRecruitDetail .thx-benefit-card { grid-column: span 2; }
  #thxRecruitDetail .thx-benefit-card:nth-child(4) { grid-column: 2 / span 2; }
}
#thxRecruitDetail .thx-benefit-card { padding: 32px 30px; }
#thxRecruitDetail .thx-benefit-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
#thxRecruitDetail .thx-benefit-title { margin: 0; line-height: 1.5; }
#thxRecruitDetail .thx-benefit-desc { margin: 0; }

/* ================================================================
 *  会社概要：事業内容の「ThinX-Lab.」リンク（2026-10-08）
 *  文字の大きさ・行間は事業内容の本文のまま。色はアクセント、外部サイトのため
 *  ヘッダー・フッターの ThinX-Lab. と同じ外部リンクアイコン（13px・線 1.5）を添える。
 *  ホバーはフッターと同じく明るいクリーム色へ（色の切り替えのみ・下線や移動はなし）。
 * ================================================================ */
#thxCompanyDetail .thx-spec-link {
  color: var(--c-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#thxCompanyDetail .thx-spec-link-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#thxCompanyDetail .thx-spec-link:hover,
#thxCompanyDetail .thx-spec-link:focus-visible { color: #ECE7DA; }
#thxCompanyDetail .thx-spec-link:hover .thx-spec-link-icon,
#thxCompanyDetail .thx-spec-link:focus-visible .thx-spec-link-icon { opacity: 1; }

/* ================================================================
 *  トップ：右カード内の文字の役割をそろえる（2026-10-08）
 *  対象はトップのセクション（#thxAiTeaser・#thxAbout・#thxRecruit はトップにのみ存在）。色・配置は変えない。
 *  ・カードの小見出し（英字ラベル）… 13px・700（AI の Build／Adopt を基準。私たちについての Origin 等が 400 だった）
 *  ・カード内の項目見出し …………… 16px・700（AI の「構築」等 17px・800 と採用の「問いを立てる力」等 15px・700 の中間に統一）
 *  ・カード内の番号 ………………………… 700（採用の 01〜03 が 800 だった。サイトの太字は 700）
 *  本文（15px・400）・セクション見出し・ボタンはもともとそろっているため変更しない。
 * ================================================================ */
#thxAbout .thx-stat-label { font-weight: 700; }
#thxAiTeaser .thx-ai-teaser-phases strong,
#thxRecruit .thx-recruit-points .text strong { font-size: 16px; font-weight: 700; }
#thxRecruit .thx-recruit-points .num { font-weight: 700; }

/* ================================================================
 *  P6 トップ：会社情報・実績紹介（右のサイドカードを削除して 1 列に）
 * ================================================================ */
#thxCompany .thx-company-layout { grid-template-columns: minmax(0, 1fr); }
#thxCompany .thx-company-main > p { max-width: 720px; }

/* 1 列になったため、直前の「サービス内容」と同じく中央を基準に配置する（2026-10-08）。
 * 共通コンテナの幅・色・書体・余白は変えない。本文は 680px の枠を中央に置き、
 * PC は中央揃え、スマートフォン（767px 以下）は読みやすさを優先して本文のみ左揃え。 */
#thxCompany .thx-company-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#thxCompany .thx-company-header { align-items: center; }
#thxCompany .thx-company-main > p { max-width: 680px; width: 100%; }
@media (max-width: 767px) {
  #thxCompany .thx-company-main > p { text-align: left; }
}
/* 英語の用語は PC で途中改行しない。スマートフォンは画面に収めることを優先して通常どおり折り返す。 */
@media (min-width: 768px) {
  #thxCompany .thx-company-term { white-space: nowrap; }
}

/* ================================================================
 *  P7 ヘッダー・フッターの日本語補足（英語表記・配置はそのまま）
 *  11px・不透明度 40〜50% → 12px・読みやすい濃さに。ヘッダー側は元 CSS が !important のため合わせる。
 * ================================================================ */
#thxHeader .thx-service-name-jp {
  font-size: 12px !important;
  color: rgba(236, 231, 218, 0.72);
}
#thxHeader .thx-service-item a:hover .thx-service-name-jp,
#thxHeader .thx-service-item a:focus-visible .thx-service-name-jp { color: rgba(236, 231, 218, 0.88); }
#thxFooter .thx-footer-list a span {
  font-size: 12px;
  color: rgba(236, 231, 218, 0.62);
}
#thxFooter .thx-footer-list a:hover span { color: rgba(236, 231, 218, 0.82); }

/* ================================================================
 *  P8 応募フォーム：補足説明
 * ================================================================ */
#thxEntryPage .thx-form-hint { font-size: 14px; line-height: 1.7; color: rgba(236, 231, 218, 0.75); }

/* ================================================================
 *  共通：日本語の改行（語句の途中で折り返さない。対応ブラウザのみ有効）
 * ================================================================ */
#thxCompanyDetail :is(.thx-case-title, .thx-case-summary, .thx-case-outcome, .thx-case-list li),
#thxSolutions :is(.thx-cycle-label, .thx-cycle-desc, .thx-solution-body p),
#thxRecruitDetail :is(.thx-benefit-title, .thx-benefit-desc),
#thxCompany .thx-company-main > p,
#thxMethodology :is(.thx-arch-agent-chip, .thx-arch-platform-suite-label) {
  word-break: auto-phrase;
}

/* ================================================================
 *  左右の基準線をそろえる（2026-10-08）
 *  基準＝トップのヒーロー（thinx-hero.css：1120px 幅・左右 24px）。
 *  共通コンテナ・ヘッダー・フッターの最大幅を 1120px（中身 1072px）に戻し、
 *  画面幅を問わずヒーローと同じ左右位置にそろえる。背景は今どおり画面いっぱい。
 *  個別に幅を持つページ（お問い合わせ・応募 850px、ポリシー 900px）はそのまま。
 *  ※ thinx-base.css のコメントにある「同期する箇所」（ヘッダー・フッター・企業理念）をまとめて合わせる。
 * ================================================================ */
.thx-container { max-width: 1120px; }
#thxFooter .thx-container { max-width: 1120px; }
#thxPhilosophy .thx-container { max-width: 1120px !important; }
.nav-container { max-width: 1120px; }
@media (max-width: 900px) {
  /* スマートフォン・タブレットのヘッダーも本文と同じ左右 24px に */
  .nav-container { padding: 0 24px; }
}

/* ================================================================
 *  お問い合わせ・応募フォームの見た目をそろえる（2026-10-08）
 *  基準＝お問い合わせ（thinx-contact-page.css）。応募（thinx-entry-page.css）との差だけを上書きする。
 *  - 送信完了・エラーのメッセージ枠：上 32px・左右下 0・内側 15px（応募は CF7 既定の余白のままだった）
 *  - 入力欄の縦の間隔：どこでも 32px（応募の 2 列の行の下だけ 64px、スマホは 2 列の行の中が 64px だった）
 *  - スマホのカードの内側：40px 24px（サイト共通の左右 24px に合わせる）
 *  - 入力エラーの表示：説明文の上 8px・入力欄の光彩なし（お問い合わせに合わせる）
 *  - メッセージ枠の文は語句の途中で折り返さない（対応ブラウザのみ）
 * ================================================================ */
:is(#thxContactPage, #thxEntryPage) .wpcf7-response-output {
  margin: 32px 0 0 !important;
  padding: 15px !important;
  background: rgba(var(--c-accent-rgb), 0.1) !important;
  word-break: auto-phrase; /* スマホで「送信／されました」のように語の途中で折り返さない */
}
:is(#thxContactPage, #thxEntryPage) .thx-form-row { margin-bottom: 0; }
:is(#thxContactPage, #thxEntryPage) .wpcf7-not-valid-tip { margin-top: 8px !important; }
#thxEntryPage .wpcf7-not-valid { box-shadow: none !important; }
@media (max-width: 768px) {
  :is(#thxContactPage, #thxEntryPage) .thx-form-card { padding: 40px 24px; }
  :is(#thxContactPage, #thxEntryPage) .thx-form-row { gap: 0 !important; }
}

/* ================================================================
 *  お問い合わせ・応募フォーム：個人情報の取り扱い（同意チェック）・Turnstile・ハニーポット・キーボード操作（2026-10-09・v2.14.0）
 *  両フォーム同じ見た目。欄の間隔は他の入力欄と同じ 32px。
 * ================================================================ */
/* ハニーポット：人・読み上げ・キーボードからは隠す（display:none にはしない） */
:is(#thxContactPage, #thxEntryPage) .thx-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

:is(#thxContactPage, #thxEntryPage) .thx-form-consent .wpcf7-list-item { margin: 0; }
:is(#thxContactPage, #thxEntryPage) .thx-form-consent .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.6;
  color: #ECE7DA;
}
:is(#thxContactPage, #thxEntryPage) .thx-form-consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid rgba(var(--c-accent-rgb), 0.7);
  border-radius: 6px;
  background: var(--thx-input-bg);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}
:is(#thxContactPage, #thxEntryPage) .thx-form-consent input[type="checkbox"]::before {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #0B1320;
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform 0.15s;
}
:is(#thxContactPage, #thxEntryPage) .thx-form-consent input[type="checkbox"]:checked {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
:is(#thxContactPage, #thxEntryPage) .thx-form-consent input[type="checkbox"]:checked::before {
  transform: translateY(-1px) rotate(45deg) scale(1);
}
:is(#thxContactPage, #thxEntryPage) .thx-form-consent a {
  color: inherit !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(236, 231, 218, 0.55) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
:is(#thxContactPage, #thxEntryPage) .thx-form-consent a:hover {
  text-decoration-color: currentColor !important;
}
:is(#thxContactPage, #thxEntryPage) .thx-form-consent .thx-form-hint {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(236, 231, 218, 0.75);
}

/* Turnstile（Cloudflare の確認ウィジェット）。表示されない環境では高さを取らない */
:is(#thxContactPage, #thxEntryPage) .thx-form-security { margin-top: 32px; }
:is(#thxContactPage, #thxEntryPage) .thx-form-security:not(:has(.cf-turnstile)) { display: none; }
:is(#thxContactPage, #thxEntryPage) .thx-form-security .cf-turnstile { max-width: 100%; }

/* キーボード操作時の枠（マウス操作では出さない） */
:is(#thxContactPage, #thxEntryPage) :is(.thx-select-trigger, .thx-submit-link, .thx-form-consent input[type="checkbox"], .thx-form-consent a):focus-visible {
  outline: 2px solid var(--c-accent) !important;
  outline-offset: 3px;
}
:is(#thxContactPage, #thxEntryPage) .thx-option:focus {
  outline: none;
  background: rgba(55, 171, 157, 0.2);
  color: #fff;
  padding-left: 25px;
}
:is(#thxContactPage, #thxEntryPage) .thx-option[aria-selected="true"] { color: var(--c-accent); }

/* ================================================================
 *  スマホの不自然な改行（2026-10-09・v2.14.0）
 *  390px 幅の全ページ点検で、行末に 1〜2 文字だけが残る箇所が 28 か所（「伴走／支援」「しま／す。」等）。
 *  スマホ幅（767px 以下）の本文だけ、語句の途中で折り返さない（auto-phrase）＋最終行を短くしない（pretty）。
 *  どちらも子要素に引き継がれる指定のため、ページ本文の外枠に付ける。ヘッダー・フッター・PC 表示は変えない。
 *  対応：Chrome / Edge は両方、iPhone の Safari は text-wrap: pretty のみ（iOS 26 以降）。未対応の環境は従来どおり。
 * ================================================================ */
@media (max-width: 767px) {
  [data-elementor-type="wp-page"],
  #thxArticle {
    word-break: auto-phrase;
    text-wrap: pretty;
  }
}

/* ================================================================
 *  見出しタグの整理（2026-10-10・v2.14.3）
 *  ページ上部の日本語の見出し（span）を H1 に、キャッチコピー（H1）を H2 に替えた要素。
 *  見た目は変えない：各クラスの指定（#id .class）がそのまま効き、クラスで指定していない性質は
 *  元の要素と同じく親から受け継ぐ（Elementor のキットの h1/h2 の指定を受けない）。
 * ================================================================ */
h1.thx-as-label.thx-as-label,
h2.thx-as-label.thx-as-label {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

/* ================================================================
 *  関連ページへのリンク（2026-10-10・v2.14.3）
 *  各ページの末尾に、関係するサービス・会社情報へのリンクを並べる。
 * ================================================================ */
/* 関連ページ：ヘッダーのリンクと同じ見た目（2026-10-13・v2.14.4）
 * 文字 13px・細字・字間 0.18em・明るいグレー → ホバー時・キーボード選択時はクリーム色＋緑の細い下線が中央から両端へ伸びる（thinx-header.css の .nav-links と同じ値）。
 * 下線は ::after で描く（サイト共通 CSS の「a { border-bottom/box-shadow: none !important }」の影響を受けない）。 */
.thx-related {
  max-width: 1100px;
  margin: 72px auto 0;
  padding: 28px 16px 0;
  border-top: 1px solid rgba(236, 231, 218, 0.1);
  text-align: center;
  box-sizing: border-box;
}
.thx-related h2.thx-related-title {
  display: block;
  font-family: inherit;
  line-height: 1.6;
  text-transform: none;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(236, 231, 218, 0.5);
}
.thx-related .thx-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 36px;
}
.thx-related .thx-related-list li {
  margin: 0;
  padding: 0;
}
.thx-related .thx-related-list li::before {
  content: none;
}
.thx-related .thx-related-list a {
  position: relative;
  display: inline-block;
  padding: 12px 0; /* 押しやすい高さ（約 44px） */
  font-size: 13px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0.18em;
  color: rgba(236, 231, 218, 0.72);
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.thx-related .thx-related-list a::after {
  content: "";
  position: absolute;
  bottom: 8px; /* 文字のすぐ下（ヘッダーと同じ距離） */
  left: 50%;
  right: 50%;
  height: 0.8px;
  background: #37AB9D;
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1), right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.thx-related .thx-related-list a:hover,
.thx-related .thx-related-list a:focus-visible {
  color: #ECE7DA;
}
.thx-related .thx-related-list a:hover::after,
.thx-related .thx-related-list a:focus-visible::after {
  left: 0;
  right: 0;
}
/* キーボード操作時は枠を出さず、ホバーと同じ緑の下線で選択位置を示す */
.thx-related .thx-related-list a:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .thx-related .thx-related-list a,
  .thx-related .thx-related-list a::after { transition: none; }
}
@media (max-width: 767px) {
  /* スマホ：左揃えの 2 列 */
  .thx-related {
    margin-top: 56px;
    padding: 24px 24px 0;
    text-align: left;
  }
  .thx-related .thx-related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    justify-items: start;
  }
}

/* ===== トップ：AI分析基盤の紹介に「導入事例を見る」を並べる（2026-10-13・v2.14.3） ===== */
#thxAiTeaser .thx-ai-teaser-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}
@media (max-width: 600px) {
  #thxAiTeaser .thx-ai-teaser-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
