/* =========================================================
   ThinX-Lab. サイト共通レイアウト（P3 デザイン基盤）
   v4モック準拠: 白基調 / ネイビー補助 / アクセント#5D3BE8（ネイビー面では#B3A6FF）/
   角丸ボタン / 広い余白（AWS風）。ヘッダー・フッター・ベース。
   ========================================================= */

/* ---------- Base ---------- */
:root { --txl-header-h: 104px; } /* ユーティリティバー32 + メインヘッダー72 */ /* 固定ヘッダーの高さ（本文オフセットと共有）。 */

body {
  font-family: var(--txl-font-base);
  color: var(--txl-ink);
  background: var(--txl-bg);
  /* 横はみ出しは clip で抑える（hidden だと position:sticky が壊れるため clip を使う）。 */
  overflow-x: clip;
  /* 固定ヘッダー（76px）の分だけ本文を押し下げる。 */
  padding-top: var(--txl-header-h, 76px);
}
body .txl-container { max-width: var(--txl-maxw); margin: 0 auto; padding: 0 32px; }

.txl-btn--sm { padding: 11px 20px; font-size: 14px; }

/* ロゴ */
.txl-logo {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--txl-font-base); font-weight: 700; font-size: 19px;
  letter-spacing: .02em; color: var(--txl-navy); text-decoration: none;
}
/* ロゴの図形（案B2・template-parts/txl-logo-mark.php）。文字は currentColor、紫はピリオドだけ */
.txl-logo__mark { display: block; height: 21px; width: auto; aspect-ratio: 5810 / 847.8; }
.txl-logo__mark-dot { fill: var(--txl-accent); }
.txl-logo--light .txl-logo__mark-dot { fill: var(--txl-accent-l); }
/* hover/focus でも既定の青紫リンク色にならないよう自サイト配色を明示 */
.txl-logo:hover, .txl-logo:focus { color: var(--txl-navy); text-decoration: none; }
.txl-logo--light { color: #fff; }
.txl-logo--light:hover, .txl-logo--light:focus { color: #fff; opacity: .85; text-decoration: none; }

/* =========================================================
   Header — Amazon Quick / Quick Community 準拠
   ①濃いユーティリティバー ②白いメインヘッダー ③紫の下線
   sticky は祖先の overflow/transform で壊れる環境があるため fixed で確実に固定。
   本文は body の padding-top（= --txl-header-h）でオフセット。
   ========================================================= */
.txl-site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; }
/* WP管理バー表示時は、その高さ分だけ下げて固定（フロント閲覧では影響なし）。 */
.admin-bar .txl-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .txl-site-header { top: 46px; } }

/* ① ユーティリティバー */
.txl-utilbar { background: var(--txl-bar); color: rgba(255,255,255,.7); }
.txl-utilbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 32px; }
.txl-utilbar__tag { font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.62); }
.txl-utilbar__nav { display: flex; align-items: center; gap: 20px; }
.txl-utilbar__nav a { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.78); text-decoration: none; }
.txl-utilbar__nav a:hover, .txl-utilbar__nav a:focus { color: #fff; text-decoration: none; }

/* ② メインヘッダー＋③紫ライン */
.txl-headerbar {
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--txl-accent);
}
.txl-header-inner { display: flex; align-items: center; gap: 36px; height: 69px; }

.txl-nav { display: flex; align-items: center; }
.txl-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.txl-menu__item a, .txl-menu li a {
  color: var(--txl-ink); font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.txl-menu__item a:hover, .txl-menu li a:hover { color: var(--txl-accent-d); border-bottom-color: var(--txl-accent); }

.txl-header-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.txl-header-login { color: var(--txl-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.txl-header-login:hover { color: var(--txl-accent-d); }

@media (max-width: 900px) {
  :root { --txl-header-h: 96px; }
  .txl-utilbar__tag { display: none; }
  .txl-header-inner { gap: 18px; height: 64px; }
  .txl-nav { order: 3; width: 100%; }
}

/* =========================================================
   Footer（ダーク）
   ========================================================= */
/* フッター：前セクション（最終CTA=濃紺）から余白なしで自然に連続させる。 */
.txl-site-footer { background: var(--txl-dark); color: rgba(255,255,255,.65); padding: 56px 0 32px; }
/* スリム化: 左にブランド＋タグライン、右にヘッダー同項目のナビ。 */
.txl-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-bottom: 36px; }
.txl-footer-brand .txl-logo { margin-bottom: 14px; }
.txl-footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); margin: 0; line-height: 1.8; }
.txl-footer-nav { display: flex; align-items: center; gap: 28px; flex: 0 0 auto; }
.txl-footer-nav a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); text-decoration: none; }
.txl-footer-nav a:hover { color: var(--txl-accent-l); }
.txl-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.txl-footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.txl-footer-bottom a:hover { color: var(--txl-accent); }
.txl-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.txl-footer-legal a { white-space: nowrap; }

/* =========================================================
   汎用：本文エリアの余白（非Elementorページの可読性確保・AWS風の余白）
   ========================================================= */
.txl-site-header + * { min-height: 40vh; }
.page .entry-content, .single .entry-content, .hentry { max-width: var(--txl-maxw); margin-left: auto; margin-right: auto; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  body .txl-container { padding: 0 22px; }
  .txl-header-inner { gap: 16px; }
  .txl-nav { display: none; } /* P3ではモバイルメニューは簡略化（P4で実装） */
}
@media (max-width: 560px) {
  .txl-header-login { display: none; }
}

/* =========================================================
   ネイビー面の上でのアクセント差し替え
   ---------------------------------------------------------
   ネイビー背景に濃いバイオレット（#5D3BE8 / ネイビー比 2.7:1）を置くと
   番号・ドット・LIVE表示などの小さな要素が沈むため、これらのセクションの中だけ
   アクセントを明るいラベンダー（#B3A6FF / ネイビー比 8.05:1・AAA）へ差し替える。
   カスタムプロパティの継承を使うので、内側の既存ルールは変更しなくてよい。
   面として塗る要素（ボタン等）だけは、白文字が乗るので濃色へ戻す。
   ========================================================= */
.txl-hero--dark,
.txl-ai,
.txl-final,
.txl-band,
.txl-archead,
.txl-site-footer {
  --txl-accent:     var(--txl-accent-l);
  --txl-accent-d:   var(--txl-accent-l);
  --txl-accent-rgb: var(--txl-accent-l-rgb);
}
/* 面として塗るもの（白文字が乗る）は濃いバイオレットを明示。 */
.txl-hero--dark .txl-btn--primary,
.txl-ai .txl-ai__send,
.txl-final .txl-btn--accent { background: #5D3BE8; color: #fff; }
.txl-hero--dark .txl-btn--primary:hover,
.txl-hero--dark .txl-btn--primary:focus { background: #fff; color: var(--txl-navy); }
.txl-final .txl-btn--accent:hover,
.txl-final .txl-btn--accent:focus { background: #4B2CD4; color: #fff; }

/* 料金の表示（税別／税込の併記・支払う額）。サイト全体で共通（2026-10-18）。 */
.txl-price .txl-price__incl { color: inherit; }
.txl-charge { display: block; }
.txl-charge__main { display: block; font-size: 22px; font-weight: 800; color: var(--txl-navy, #1b1f3b); line-height: 1.35; }
.txl-charge__main .txl-num { font-size: inherit; }
.txl-charge__unit { font-size: 13px; font-weight: 600; margin-left: 2px; }
.txl-charge__sub { display: block; font-size: 13px; color: var(--txl-muted, #6b7280); line-height: 1.6; }
.txl-charge__note { display: block; margin-top: 4px; font-size: 12px; line-height: 1.7; color: var(--txl-muted, #6b7280); }
