/* =========================================================
   ThinX-Lab. 会員ページ（登録 / ログイン / マイページ）
   設計基準: docs/p5-report-design.md / P6a（無料会員体験）
   トークン・部品は layout/components と共有。
   ========================================================= */

/* ===== 認証フォーム（登録・ログイン） ===== */
/* `.txl-container` の縦パディングを `body .txl-container{padding:0 32px}` が打ち消すため、
   詳細度を上げて（.txl-container.txl-auth）縦余白を確実に効かせる。横は container 側に委譲。
   カードはヘッダー下の領域に縦中央寄せして、フッターと十分に離す。 */
.txl-container.txl-auth {
  min-height: calc(100vh - var(--txl-header-h, 76px));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 64px; padding-bottom: 96px;
}
.txl-auth__card {
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 460px; margin: 0 auto; background: #fff;
  /* 登録/ログインで内容量が違ってもカードの大きさを揃える（フォーム数差を最小高さで吸収し、
     内容は縦中央寄せにして余白を上下へ均等配分）。 */
  min-height: 520px;
  border: 1px solid var(--txl-card-line); border-radius: 16px; padding: 40px 38px;
  box-shadow: 0 24px 60px -40px rgba(13,42,71,.4);
}
.txl-auth__eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--txl-accent-d); margin-bottom: 10px; }
.txl-auth__title { font-size: 26px; font-weight: 800; color: var(--txl-navy); margin: 0 0 10px; letter-spacing: -.01em; }
.txl-auth__lead { font-size: 14px; line-height: 1.8; color: var(--txl-muted); margin: 0 0 22px; }
.txl-auth__error {
  font-size: 13px; color: #b4452b; background: #fbeeea; border: 1px solid rgba(180,69,43,.25);
  border-radius: 9px; padding: 10px 14px; margin: 0 0 18px;
}
.txl-auth__notice {
  font-size: 13px; color: var(--txl-accent-d); background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.3);
  border-radius: 9px; padding: 10px 14px; margin: 0 0 18px;
}
/* ログイン：パスワード欄の直下・右寄せの「パスワードをお忘れの方」。 */
.txl-auth__forgot { margin: -6px 0 0; text-align: right; font-size: 13px; }
.txl-auth__forgot a { color: var(--txl-accent-d); font-weight: 600; text-decoration: none; }
.txl-auth__forgot a:hover { color: var(--txl-navy); }
.txl-auth__form { display: flex; flex-direction: column; gap: 16px; }
.txl-field { display: flex; flex-direction: column; gap: 6px; }
.txl-field span { font-size: 13px; font-weight: 600; color: var(--txl-navy); }
.txl-field input {
  font-size: 15px; color: var(--txl-ink); padding: 12px 14px;
  border: 1px solid var(--txl-card-line); border-radius: 10px; background: #fff;
}
.txl-field input:focus { outline: none; border-color: var(--txl-accent); box-shadow: 0 0 0 3px rgba(var(--txl-accent-rgb),.12); }
/* 請求先の CC（複数行）。入力欄と同じ見た目にする。 */
.txl-field textarea {
  font: inherit; font-size: 15px; color: var(--txl-ink); padding: 12px 14px; resize: vertical;
  border: 1px solid var(--txl-card-line); border-radius: 10px; background: #fff;
}
.txl-field textarea:focus { outline: none; border-color: var(--txl-accent); box-shadow: 0 0 0 3px rgba(var(--txl-accent-rgb),.12); }
/* 自前のインライン検証（ブラウザ既定の吹き出しは auth.js で抑止）。
   誤りを示す赤枠は残し、メッセージ文だけ主張を抑えた muted に。
   注意：`.txl-field span`(navy・0,1,1) がエラーspanにも当たるため、
   詳細度を上げた `.txl-field span.txl-field__err`(0,2,1) で確実に上書きする。 */
.txl-field input.is-invalid { border-color: #b4452b; }
.txl-field input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180,69,43,.12); }
.txl-field textarea.is-invalid { border-color: #b4452b; }
.txl-field textarea.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180,69,43,.12); }
.txl-field span.txl-field__err { font-size: 12px; font-weight: 500; color: var(--txl-muted); margin-top: 1px; }
/* 補足メモ（ラベル直下の説明文）。`.txl-field span`(navy) を詳細度で上書きする。 */
.txl-field span.txl-field__note { font-size: 12px; font-weight: 500; line-height: 1.8; color: var(--txl-muted); margin-top: 2px; }
/* パスワード表示トグル（目アイコン＝インラインSVG・currentColorで配色追従）＋要件ヒント。 */
.txl-field__pwwrap { position: relative; display: block; }
.txl-field--pw input { padding-right: 46px; }
.txl-pwtoggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--txl-muted); cursor: pointer;
}
.txl-pwtoggle:hover, .txl-pwtoggle:focus { background: var(--txl-tint); color: var(--txl-accent-d); }
.txl-pwtoggle__icon { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* 既定は「目」を表示。表示中（aria-pressed=true）は「目に斜線」へ。 */
.txl-pwtoggle__off { display: none; }
.txl-pwtoggle[aria-pressed="true"] .txl-pwtoggle__on { display: none; }
.txl-pwtoggle[aria-pressed="true"] .txl-pwtoggle__off { display: block; }
.txl-field__hint { font-size: 12px; color: var(--txl-muted); }
.txl-field__hint.is-ok { color: var(--txl-accent-d); font-weight: 600; }
.txl-field__hint.is-ok::before { content: "✓ "; }
.txl-auth__form .txl-btn { margin-top: 6px; justify-content: center; }
/* 認証カード内の主要CTAはフル幅で統一（登録/ログイン/申込ゲートで揃える）。 */
.txl-auth__card .txl-btn { width: 100%; justify-content: center; }
.txl-auth__alt { font-size: 13px; color: var(--txl-muted); margin: 20px 0 0; text-align: center; }
.txl-auth__alt a { color: var(--txl-accent-d); font-weight: 600; text-decoration: none; }
.txl-auth__alt a:hover { color: var(--txl-navy); }

/* ===== マイページ ===== */
/* 縦余白は詳細度を上げて効かせる（横は container 側）。短い内容でもフッターに近づき
   すぎないよう、本文エリアに最小高さと十分な下余白を確保。 */
.txl-container.txl-mypage {
  min-height: calc(100vh - var(--txl-header-h, 76px) - 280px);
  padding-top: 48px; padding-bottom: 120px;
}
.txl-mypage__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--txl-card-line); }
.txl-mypage__title { font-size: 28px; font-weight: 800; color: var(--txl-navy); margin: 4px 0 0; letter-spacing: -.01em; }
.txl-mypage__planbox { display: flex; align-items: center; gap: 16px; }
.txl-mypage__plan {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  font-family: var(--txl-font-num); padding: 6px 14px; border-radius: 999px;
}
.txl-mypage__plan--free { color: var(--txl-accent-d); background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.3); }
.txl-mypage__plan--paid { color: #fff; background: var(--txl-navy); }
.txl-mypage__welcome { font-size: 14px; color: var(--txl-accent-d); background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.3); border-radius: 10px; padding: 12px 16px; margin: 22px 0 0; }

.txl-mypage__section { margin-top: 38px; }
.txl-mypage__h2 { font-size: 16px; font-weight: 700; color: var(--txl-navy); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.txl-mypage__cnt { font-size: 12px; font-family: var(--txl-font-num); color: var(--txl-muted); background: var(--txl-tint); border-radius: 999px; padding: 2px 9px; }
.txl-mypage__empty { font-size: 14px; line-height: 1.9; color: var(--txl-muted); }

/* ブックマーク一覧 */
.txl-bm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.txl-bm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--txl-card-line); border-radius: 11px; background: #fff;
}
.txl-bm-row__title { font-size: 15px; font-weight: 600; color: var(--txl-navy); text-decoration: none; min-width: 0; }
.txl-bm-row__title:hover { color: var(--txl-accent-d); }
.txl-bm-row__meta { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.txl-bm-remove {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--txl-card-line);
  background: #fff; color: var(--txl-muted); font-size: 16px; line-height: 1; cursor: pointer;
}
.txl-bm-remove:hover, .txl-bm-remove:focus { border-color: #c2683f; color: #c2683f; background: #fff; }

/* プロフィール編集フォーム */
.txl-account-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.txl-account-form .txl-btn { align-self: flex-start; margin-top: 4px; }

/* アカウント情報 */
.txl-mypage__account { margin: 0; border: 1px solid var(--txl-card-line); border-radius: 11px; overflow: hidden; }
.txl-mypage__account > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--txl-card-line); }
.txl-mypage__account > div:first-child { border-top: none; }
.txl-mypage__account dt { font-size: 13px; color: var(--txl-muted); margin: 0; }
.txl-mypage__account dd { font-size: 14px; font-weight: 600; color: var(--txl-navy); margin: 0; }

/* 入金待ち（銀行振込の請求書発行後） */
.txl-invoice-pending { margin-top: 16px; background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.28); border-radius: 14px; padding: 22px 24px; }
.txl-invoice-pending__lead { font-size: 14px; line-height: 1.85; color: var(--txl-muted); margin: 0 0 16px; }

/* アップグレード */
.txl-mypage__upsell { margin-top: 38px; background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.3); border-radius: 14px; padding: 26px 28px; }
.txl-mypage__upsell p { font-size: 14px; line-height: 1.8; color: var(--txl-muted); margin: 0 0 16px; }

/* お支払い・プラン操作（管理／ダウングレード） */
.txl-account-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
/* 契約の変更・決済のボタン（POST のフォーム）：フォームの枠を持たず、ボタンを並びの 1 つとして置く（2026-10-26）。 */
.txl-action-form { display: contents; }
.txl-action-form button[disabled] { opacity: .6; cursor: progress; }
/* リンクの見た目のボタン（「予約を取り消す」）。 */
.txl-link--button { background: none; border: 0; padding: 0; font-family: inherit; line-height: inherit; cursor: pointer; } /* 色・太さ・下線は .txl-link のまま。 */
.txl-downgrade { margin-top: 14px; border: 1px solid var(--txl-card-line); border-radius: 12px; padding: 20px 22px; background: #fff; }
.txl-downgrade__lead { font-size: 14px; line-height: 1.85; color: var(--txl-muted); margin: 0 0 16px; }
/* 変更確認画面：見出しと明細表（変更前・変更後・適用日・日割り/返金）。 */
.txl-downgrade__title { font-size: 16px; font-weight: 800; color: var(--txl-navy); margin: 0 0 14px; }
.txl-change { width: 100%; margin: 0 0 16px; border: 1px solid var(--txl-card-line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.txl-change tr + tr th, .txl-change tr + tr td { border-top: 1px solid var(--txl-card-line); }
.txl-change th { width: 36%; text-align: left; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--txl-navy); background: var(--txl-surface-3, #f7f7fb); white-space: nowrap; }
.txl-change td { padding: 11px 14px; font-size: 14px; line-height: 1.8; color: var(--txl-ink); }
.txl-change .txl-num { font-weight: 800; }
/* 親テーマの表の罫線・縞模様・ホバー色を打ち消す（お支払い案内の表と同じ・2026-10-15） */
.txl-change > tbody > tr > th, .txl-change > tbody > tr > td { border-left: 0; border-right: 0; border-bottom: 0; }
.txl-change > tbody > tr:first-child > th, .txl-change > tbody > tr:first-child > td { border-top: 0; }
.txl-change > tbody > tr > td, .txl-change > tbody > tr:nth-child(odd) > td, .txl-change > tbody > tr:hover > td { background-color: transparent; }
.txl-change > tbody > tr > th, .txl-change > tbody > tr:nth-child(odd) > th, .txl-change > tbody > tr:hover > th { background-color: var(--txl-surface-3, #f7f7fb); }
@media (max-width: 560px) {
  .txl-change th, .txl-change td { display: block; width: auto; white-space: normal; }
  .txl-change td { padding-top: 0; }
  .txl-change tr + tr td { border-top: 0; }
}

/* ===== お支払い案内ページ／特商法 ===== */
.txl-container.txl-guide { max-width: 760px; padding-top: 48px; padding-bottom: 100px; }
.txl-guide__head { margin-bottom: 28px; }
.txl-guide__title { font-size: 28px; font-weight: 800; color: var(--txl-navy); margin: 6px 0 12px; letter-spacing: -.01em; }
.txl-guide__lead { font-size: 15px; line-height: 1.9; color: var(--txl-muted); margin: 0; }
.txl-guide__sec { padding: 22px 0; border-top: 1px solid var(--txl-card-line); }
.txl-guide__h2 { font-size: 18px; font-weight: 800; color: var(--txl-navy); margin: 0 0 12px; }
.txl-guide__sec p { font-size: 14px; line-height: 1.9; color: var(--txl-ink); margin: 0 0 8px; }
.txl-guide__list, .txl-guide__steps { margin: 8px 0 0; padding-left: 1.3em; }
.txl-guide__list li, .txl-guide__steps li { font-size: 14px; line-height: 1.9; color: var(--txl-ink); margin-bottom: 6px; }
/* お支払い案内の一覧表（変更手続きの適用時期・日割りの早見表） */
.txl-guide__table { width: 100%; margin: 10px 0 6px; border: 1px solid var(--txl-card-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
/* 親テーマ（Hello Elementor）の表の罫線・縞模様・ホバー色を打ち消す（セルの線と背景が角丸の外枠に重なり、四隅で途切れて見えたため・2026-10-15） */
.txl-guide__table > tbody > tr > th, .txl-guide__table > tbody > tr > td { border: 0; }
.txl-guide__table > tbody > tr > td, .txl-guide__table > tbody > tr:nth-child(odd) > td, .txl-guide__table > tbody > tr:hover > td { background-color: transparent; }
.txl-guide__table > tbody > tr > th, .txl-guide__table > tbody > tr:nth-child(odd) > th, .txl-guide__table > tbody > tr:hover > th { background-color: var(--txl-surface-3, #f7f7fb); }
.txl-guide__table > tbody > tr + tr > th, .txl-guide__table > tbody > tr + tr > td { border-top: 1px solid var(--txl-card-line); }
.txl-guide__table > tbody > tr > th + th, .txl-guide__table > tbody > tr > th + td, .txl-guide__table > tbody > tr > td + td { border-left: 1px solid var(--txl-card-line); }
/* 角のセルも外枠と同じ丸みにする（セルの背景が角からはみ出さない） */
.txl-guide__table > tbody > tr:first-child > :first-child { border-top-left-radius: 11px; }
.txl-guide__table > tbody > tr:first-child > :last-child { border-top-right-radius: 11px; }
.txl-guide__table > tbody > tr:last-child > :first-child { border-bottom-left-radius: 11px; }
.txl-guide__table > tbody > tr:last-child > :last-child { border-bottom-right-radius: 11px; }
.txl-guide__table th { width: 34%; text-align: left; vertical-align: top; padding: 13px 16px; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--txl-navy); }
.txl-guide__table td { vertical-align: top; padding: 13px 16px; font-size: 14px; line-height: 1.9; color: var(--txl-ink); }
@media (max-width: 560px) {
  .txl-guide__table th, .txl-guide__table td { display: block; width: auto; }
  .txl-guide__table > tbody > tr > th + th, .txl-guide__table > tbody > tr > th + td, .txl-guide__table > tbody > tr > td + td { border-left: 0; }
  .txl-guide__table > tbody > tr > td { padding-top: 10px; }
  .txl-guide__table > tbody > tr + tr > td { border-top: 0; }
  .txl-guide__table > tbody > tr > th + td, .txl-guide__table > tbody > tr > td + td { border-top: 1px solid var(--txl-card-line); }
  .txl-guide__table > tbody > tr:first-child > :first-child { border-top-right-radius: 11px; }
  .txl-guide__table > tbody > tr:first-child > :last-child:not(:first-child) { border-top-right-radius: 0; }
  .txl-guide__table > tbody > tr:last-child > :first-child:not(:last-child) { border-bottom-left-radius: 0; }
  .txl-guide__table > tbody > tr:last-child > :last-child { border-bottom-left-radius: 11px; }
  /* 3 列の早見表（請求書の発行・期日）はスマホでも表のまま（縦に積むと見出しとの対応が分からなくなる） */
  .txl-guide__table--grid th, .txl-guide__table--grid td { display: table-cell; width: auto; padding: 10px 8px; font-size: 12.5px; line-height: 1.7; }
  .txl-guide__table.txl-guide__table--grid > tbody > tr > th + th, .txl-guide__table.txl-guide__table--grid > tbody > tr > th + td, .txl-guide__table.txl-guide__table--grid > tbody > tr > td + td { border-left: 1px solid var(--txl-card-line); border-top: 0; }
  .txl-guide__table.txl-guide__table--grid > tbody > tr + tr > th, .txl-guide__table.txl-guide__table--grid > tbody > tr + tr > td { border-top: 1px solid var(--txl-card-line); }
  .txl-guide__table.txl-guide__table--grid > tbody > tr:first-child > :first-child { border-top-right-radius: 0; }
  .txl-guide__table.txl-guide__table--grid > tbody > tr:first-child > :last-child { border-top-right-radius: 11px; }
  .txl-guide__table.txl-guide__table--grid > tbody > tr:last-child > :first-child { border-bottom-left-radius: 11px; }
  .txl-guide__table.txl-guide__table--grid > tbody > tr:last-child > :last-child { border-bottom-left-radius: 0; }
}
.txl-guide__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
/* 特商法ページ（編集可能な本文・dl） */
.txl-legal { margin: 8px 0; border: 1px solid var(--txl-card-line); border-radius: 12px; overflow: hidden; }
.txl-legal > div { display: flex; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--txl-card-line); }
.txl-legal > div:first-child { border-top: none; }
.txl-legal dt { flex: 0 0 200px; font-size: 13px; font-weight: 700; color: var(--txl-navy); margin: 0; }
.txl-legal dd { flex: 1; font-size: 14px; line-height: 1.8; color: var(--txl-ink); margin: 0; }
@media (max-width: 560px) { .txl-legal > div { flex-direction: column; gap: 4px; } .txl-legal dt { flex-basis: auto; } }
/* 特商法の販売価格の表（プラン／月額／年額）。税別・税込は 1 かたまりずつ。狭い幅では税込を次の行へ。 */
.txl-legal-price { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.6; margin: 2px 0 6px; }
.txl-legal-price th, .txl-legal-price td { border: 1px solid var(--txl-card-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.txl-legal-price thead th { background: var(--txl-tint); color: var(--txl-navy); font-weight: 700; font-size: 12.5px; }
.txl-legal-price tbody th { font-weight: 700; color: var(--txl-navy); white-space: nowrap; }
.txl-legal-price .txl-nw { white-space: nowrap; }
.txl-legal-price tbody tr:nth-child(n) > th, .txl-legal-price tbody tr:nth-child(n) > td { background: transparent; } /* テーマの縞模様を打ち消す。 */
.txl-legal-price__note { margin: 0; font-size: 12.5px; color: var(--txl-muted); }
@media (max-width: 760px) { .txl-legal-price td .txl-nw { display: block; } .txl-legal-price th, .txl-legal-price td { padding: 6px 8px; } .txl-legal-price { font-size: 13px; } }
/* スマホ：表をプランごとのかたまりに組み替え（プラン名の下に「月額」「年額」の行）。横にはみ出さない。 */
@media (max-width: 560px) {
  .txl-legal-price, .txl-legal-price tbody, .txl-legal-price tr, .txl-legal-price th, .txl-legal-price td { display: block; }
  .txl-legal-price thead { display: none; }
  .txl-legal-price tr { border: 1px solid var(--txl-card-line); border-radius: 8px; margin: 0 0 8px; padding: 8px 12px; }
  .txl-legal-price tbody th, .txl-legal-price td { border: 0; padding: 0; background: none; }
  .txl-legal-price tbody th { margin-bottom: 2px; }
  .txl-legal-price td[data-label] { display: grid; grid-template-columns: 3em 1fr; padding: 2px 0; }
  .txl-legal-price td[data-label]::before { content: attr(data-label); color: var(--txl-muted); font-size: 12px; padding-top: 1px; }
  .txl-legal-price td .txl-nw { display: block; } /* 税別の下に税込（月額・年額で同じ形）。 */
}

/* 規約・ポリシー本文（条番号付きリスト・入れ子） */
.txl-legal-ol, .txl-legal-ul { margin: 8px 0 0; padding-left: 1.5em; }
.txl-legal-ol { list-style: decimal; }
.txl-legal-ul { list-style: disc; }
.txl-legal-ol > li, .txl-legal-ul > li { font-size: 14px; line-height: 1.9; color: var(--txl-ink); margin-bottom: 8px; }
.txl-legal-ol .txl-legal-ul { margin-top: 6px; }
.txl-legal-ol .txl-legal-ul > li { margin-bottom: 4px; }
.txl-guide__updated { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--txl-card-line); font-size: 13px; color: var(--txl-muted); text-align: right; }

/* 同意チェック（登録フォーム） */
.txl-field--check { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; }
.txl-field--check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--txl-accent); }
.txl-field--check span { font-size: 13px; line-height: 1.7; color: var(--txl-ink); }
.txl-field--check a { color: var(--txl-navy); text-decoration: underline; }
/* 確認のチェック（登録の同意・無料体験の同意）は .txl-field の枠で包み、未チェックの案内（auth.js）をチェック欄の直下・文の頭に合わせて出す。 */
.txl-field > .txl-field--check + span.txl-field__err { padding-left: 26px; }

/* ===== 申込ページ（支払い方法の選択） ===== */
.txl-container.txl-checkout { max-width: 960px; padding-top: 48px; padding-bottom: 100px; }
.txl-checkout__head { text-align: center; margin-bottom: 24px; }
.txl-checkout__title { font-size: 24px; font-weight: 800; color: var(--txl-navy); margin: 6px 0 8px; letter-spacing: -.01em; }
.txl-checkout__price { font-size: 14px; color: var(--txl-muted); margin: 0; }
.txl-checkout__price .txl-num { font-size: 26px; font-weight: 800; color: var(--txl-navy); margin-right: 4px; }
.txl-checkout__form { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--txl-card-line); border-radius: 16px; padding: 28px 26px; box-shadow: 0 24px 60px -40px rgba(13,42,71,.4); }
.txl-pay { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.txl-pay__legend { font-size: 13px; font-weight: 700; color: var(--txl-navy); padding: 0; margin-bottom: 4px; }
.txl-pay__opt { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--txl-ink); border: 1px solid var(--txl-card-line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.txl-pay__opt:hover { border-color: var(--txl-accent); }
.txl-pay__opt input { margin-top: 4px; flex: 0 0 auto; }
/* 支払い方法：項目名を 1 行目、説明を 2 行目に分ける */
.txl-pay__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.txl-pay__name { font-size: 15px; font-weight: 700; color: var(--txl-navy); line-height: 1.6; }
.txl-pay__desc { font-size: 14px; line-height: 1.8; color: var(--txl-ink); }
/* 申込画面の比較表（支払い方法 × 対象期間・初回・更新）：列ごとに幅を配分し、日付・金額は途中で折り返さない */
.txl-sched { table-layout: fixed; }
.txl-sched__c0 { width: 17%; }
.txl-sched__c1 { width: 24%; }
.txl-sched__c2 { width: 27%; }
.txl-sched__c3 { width: 32%; }
.txl-guide__table.txl-sched th, .txl-guide__table.txl-sched td { width: auto; }
.txl-guide__table.txl-sched > thead > tr > th { padding: 11px 16px; font-size: 13px; font-weight: 700; color: var(--txl-navy); background-color: var(--txl-surface-3, #f7f7fb); border: 0; text-align: left; }
.txl-guide__table.txl-sched > thead > tr > th + th { border-left: 1px solid var(--txl-card-line); }
.txl-guide__table.txl-sched > thead > tr:first-child > :first-child { border-top-left-radius: 11px; }
.txl-guide__table.txl-sched > thead > tr:first-child > :last-child { border-top-right-radius: 11px; }
.txl-guide__table.txl-sched > tbody > tr > th, .txl-guide__table.txl-sched > tbody > tr > td { border-top: 1px solid var(--txl-card-line); }
.txl-guide__table.txl-sched > tbody > tr:first-child > :first-child { border-top-left-radius: 0; }
.txl-guide__table.txl-sched > tbody > tr:first-child > :last-child { border-top-right-radius: 0; }
.txl-sched__main { display: block; font-weight: 700; color: var(--txl-navy); }
.txl-sched__sub { display: block; margin-top: 2px; color: var(--txl-ink); }
.txl-nw { white-space: nowrap; }
.txl-sched td, .txl-sched th { word-break: auto-phrase; }
@media (max-width: 640px) {
  /* スマホ：細い 4 列に詰めず、支払い方法ごとのまとまり（見出し＋項目名つきの行）にする */
  .txl-guide__table.txl-sched, .txl-sched > tbody, .txl-sched > tbody > tr, .txl-guide__table.txl-sched > tbody > tr > th, .txl-guide__table.txl-sched > tbody > tr > td { display: block; width: auto; }
  .txl-sched > colgroup, .txl-sched > thead { display: none; }
  .txl-guide__table.txl-sched { border: 0; border-radius: 0; overflow: visible; }
  .txl-sched > tbody > tr { border: 1px solid var(--txl-card-line); border-radius: 12px; overflow: hidden; }
  .txl-sched > tbody > tr + tr { margin-top: 12px; }
  .txl-guide__table.txl-sched > tbody > tr > th { border: 0; border-radius: 0; padding: 11px 16px; font-size: 14px; }
  .txl-guide__table.txl-sched > tbody > tr > td { border: 0; border-top: 1px solid var(--txl-card-line); border-radius: 0; padding: 11px 16px; }
  .txl-guide__table.txl-sched > tbody > tr > td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--txl-muted); }
}
/* 入力のまとまり（請求先など）：見出しを枠の内側の上部に置くカード。fieldset/legend のまま見た目だけ整える */
.txl-fieldcard { display: block; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--txl-card-line); border-radius: 12px; background: #fff; min-width: 0; }
.txl-fieldcard__title { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--txl-navy); }
.txl-fieldcard > :not(.txl-fieldcard__title) { clear: both; }
/* 必須・任意の印（入力欄のラベル） */
.txl-req, .txl-opt { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; line-height: 1.6; vertical-align: 1px; }
.txl-req { background: var(--txl-navy); color: #fff; }
.txl-opt { background: var(--txl-surface-3, #f1f1f6); color: var(--txl-muted); }
/* 請求先の住所（入力のまとまり） */
.txl-addr { margin: 4px 0 0; padding: 14px 16px 16px; border: 1px solid var(--txl-card-line); border-radius: 12px; min-width: 0; display: block; }
.txl-addr__title { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--txl-navy); }
.txl-addr > :not(.txl-addr__title) { clear: both; } /* 見出し（float）の横に入力欄が詰められないように */
.txl-addr > * + *:not(.txl-addr__title):not(input[type="hidden"]) { margin-top: 12px; }
.txl-addr__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.txl-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--txl-card-line); border-radius: 10px; font-size: 15px; background: #fff; color: var(--txl-ink); }
.txl-field select:focus { outline: none; border-color: var(--txl-accent); box-shadow: 0 0 0 3px rgba(var(--txl-accent-rgb),.12); }
@media (max-width: 640px) {
  .txl-addr__row { grid-template-columns: minmax(0, 1fr); }
}
/* マイページ「請求先」：現在の設定・変更フォーム */
.txl-rcpt-card { max-width: 640px; margin-bottom: 14px; }
.txl-rcpt-card .txl-contract dt { flex-basis: 110px; }
.txl-warn-text { color: #b4452b; font-weight: 700; }
.txl-rcpt-edit { margin-top: 20px; max-width: 640px; }
.txl-rcpt-edit > summary { list-style: none; cursor: pointer; display: inline-flex; }
.txl-rcpt-edit > summary::-webkit-details-marker { display: none; }
.txl-rcpt-edit[open] > summary { margin-bottom: 16px; }
@media (max-width: 640px) {
  /* スマホ：申込フォームと内側のカードの余白が二重になり入力欄が細くならないようにする */
  .txl-checkout__form { padding: 22px 16px; }
  .txl-fieldcard { padding: 16px; }
}
.txl-fieldcard > * + *:not(.txl-fieldcard__title) { margin-top: 12px; }
.txl-bill { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--txl-card-line); padding-top: 16px; }
.txl-bill__note { font-size: 12.5px; color: var(--txl-muted); margin: 0; }
.txl-checkout__submit { justify-content: center; margin-top: 4px; }
.txl-checkout__back { text-align: center; margin: 0; }
.txl-checkout__msg { text-align: center; padding: 60px 20px; color: var(--txl-muted); }

/* ===== お問い合わせ（Enterprise 個別見積・一般） ===== */
.txl-container.txl-contact { max-width: 620px; padding-top: 48px; padding-bottom: 100px; }
.txl-contact__head { text-align: center; margin-bottom: 24px; }
.txl-contact__title { font-size: 24px; font-weight: 800; color: var(--txl-navy); margin: 6px 0 10px; letter-spacing: -.01em; }
.txl-contact__lead { font-size: 14px; line-height: 1.85; color: var(--txl-muted); margin: 0; }
.txl-contact__form { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--txl-card-line); border-radius: 16px; padding: 28px 26px; box-shadow: 0 24px 60px -40px rgba(13,42,71,.4); }
.txl-contact__form .txl-field em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--txl-accent-d); margin-left: 4px; }
/* 無料体験の条件と同意（お問い合わせのフォーム・体験を申し込むときだけ表示） */
.txl-trial-consent { margin: -4px 0 4px 26px; padding: 14px 16px; border: 1px solid var(--txl-card-line); border-radius: 10px; background: #fafbfc; display: flex; flex-direction: column; gap: 10px; }
.txl-trial-consent[hidden] { display: none; }
.txl-trial-consent__title { margin: 0; font-size: 13px; color: var(--txl-ink); }
.txl-trial-consent__list { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 1.75; color: var(--txl-ink); }
.txl-trial-consent__list li { margin-bottom: 4px; }
.txl-trial-consent .txl-field__note { margin: 0; font-size: 12px; }
@media (max-width: 600px) { .txl-trial-consent { margin-left: 0; padding: 12px; } }
.txl-contact__form select,
.txl-contact__form textarea {
  font-size: 15px; color: var(--txl-ink); padding: 12px 14px;
  border: 1px solid var(--txl-card-line); border-radius: 10px; background: #fff;
  font-family: inherit; width: 100%; box-sizing: border-box;
}
.txl-contact__form textarea { resize: vertical; line-height: 1.7; }
.txl-contact__form select:focus,
.txl-contact__form textarea:focus { outline: none; border-color: var(--txl-accent); box-shadow: 0 0 0 3px rgba(var(--txl-accent-rgb),.12); }
.txl-contact__submit { justify-content: center; margin-top: 4px; }
.txl-contact__done { background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.28); border-radius: 14px; padding: 26px 28px; }
.txl-contact__done p { font-size: 14px; line-height: 1.85; color: var(--txl-navy); margin: 0 0 8px; }
.txl-contact__done p:last-child { margin-bottom: 0; }
.txl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== マイページ・コンソール（左ナビ＋本文パネル） ===== */
.txl-container.txl-console {
  min-height: calc(100vh - var(--txl-header-h, 76px) - 200px);
  display: grid; grid-template-columns: 232px 1fr; gap: 40px; align-items: start;
  padding-top: 48px; padding-bottom: 120px;
}
.txl-console__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.txl-console__user { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--txl-card-line); }
.txl-console__name { font-size: 15px; font-weight: 800; color: var(--txl-navy); }
.txl-console__user .txl-mypage__plan { align-self: flex-start; }
.txl-console__nav { display: flex; flex-direction: column; gap: 2px; }
.txl-console__navlink {
  display: block; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--txl-muted); text-decoration: none;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.txl-console__navlink:hover, .txl-console__navlink:focus { background: var(--txl-tint); color: var(--txl-navy); }
.txl-console__navlink.is-active { background: var(--txl-navy); color: #fff; }
.txl-console__logout { margin-top: 8px; padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--txl-muted); text-decoration: none; }
.txl-console__logout:hover { color: var(--txl-navy); }
/* 親テーマの `.page-content a{underline}` を打ち消す（特異度0,2,x で勝つ）。 */
.page-content a.txl-console__navlink,
.page-content a.txl-console__logout,
.page-content a.txl-bm-row__title,
.page-content a.txl-consult-row__main,
.page-content a.txl-consult-threadmeta__report { text-decoration: none; }
.txl-console__main { min-width: 0; }
.txl-console__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--txl-card-line); }
.txl-console__title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--txl-navy); margin: 0; letter-spacing: -.01em; }
/* コンソール内ではパネル要素の余白を詰める */
.txl-console__main .txl-mypage__upsell { margin-top: 28px; }
.txl-console__main .txl-dashboard { padding: 0; }
.txl-console__main .txl-dash-gate { padding: 32px 24px 40px; }

@media (max-width: 820px) {
  .txl-container.txl-console { grid-template-columns: 1fr; gap: 20px; }
  .txl-console__side { position: static; }
  .txl-console__nav { flex-direction: row; flex-wrap: wrap; }
  .txl-console__navlink { padding: 9px 14px; }
}

/* ===== ダッシュボード公開イントロ（LP・/dashboard/） ===== */
.txl-container.txl-dashintro { max-width: 920px; padding-top: 56px; padding-bottom: 100px; }
.txl-dashintro__head { max-width: 680px; margin: 0 auto; text-align: center; }
.txl-dashintro__title { font-size: 30px; font-weight: 800; color: var(--txl-navy); margin: 8px 0 14px; letter-spacing: -.02em; line-height: 1.45; }
.txl-dashintro__lead { font-size: 15px; line-height: 1.9; color: var(--txl-muted); margin: 0; }
.txl-dashintro__plans { font-size: 13px; line-height: 1.8; color: var(--txl-muted); margin: 16px 0 0; }
.txl-dashintro__herocta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
/* 統計士・信頼性バンド */
.txl-dashintro__cred { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin: 32px 0; padding: 24px; background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.3); border-radius: 14px; }
.txl-dashintro__credbadge { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--txl-navy); border-radius: 999px; padding: 8px 18px; }
.txl-dashintro__credtext { font-size: 14px; line-height: 1.85; color: var(--txl-navy); margin: 0; max-width: 640px; }

/* 分析機能カード（何を分析できるか）。奇数枚なら最後の1枚は横幅いっぱい。 */
.txl-dashintro__features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 18px; }
.txl-dashintro__feat { background: #fff; border: 1px solid var(--txl-card-line); border-radius: 14px; padding: 22px 24px; }
.txl-dashintro__feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.txl-dashintro__feattitle { font-size: 16px; font-weight: 800; color: var(--txl-navy); margin: 0 0 8px; }
.txl-dashintro__featdesc { font-size: 13.5px; line-height: 1.8; color: var(--txl-muted); margin: 0; }

.txl-dashintro__markets { text-align: center; font-size: 13.5px; color: var(--txl-muted); margin: 0 0 32px; }
.txl-dashintro__markets strong { color: var(--txl-navy); font-weight: 700; }

.txl-dashintro__cta { text-align: center; background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.3); border-radius: 16px; padding: 32px 28px; }
.txl-dashintro__ctalead { font-size: 14px; line-height: 1.8; color: var(--txl-navy); margin: 0 0 18px; }
.txl-dashintro__ctabtns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 620px) {
  .txl-dashintro__features { grid-template-columns: 1fr; }
  .txl-dashintro__cred { flex-direction: column; gap: 12px; }
}

/* ===== ダッシュボード（QuickSight 埋め込み） ===== */
.txl-dashboard { padding: 40px 0 80px; }
.txl-dashboard__head { margin-bottom: 20px; }
.txl-dashboard__title { font-size: 26px; font-weight: 800; color: var(--txl-navy); margin: 4px 0 0; letter-spacing: -.01em; }
/* 公開2本（パチンコ／パチスロ）の切替タブ */
.txl-qs-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.txl-qs-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
/* サイト標準ボタン（.txl-btn--ghost）を継承。バー内に収まるよう小型＋ピル形に。 */
.txl-qs-fs { margin-left: auto; gap: 7px; padding: 10px 18px; font-size: 14px; border-radius: 999px; }
.txl-qs-fs__icon { font-size: 15px; line-height: 1; }
/* AIタブ：データを想起させる棒グラフアイコン（配色は currentColor＝タブ文字色に追従）。 */
.txl-qs-tab--ai { display: inline-flex; align-items: center; gap: 7px; }
.txl-qs-tab__ic { flex: 0 0 auto; }
.txl-qs-tab { appearance: none; border: 1px solid var(--txl-card-line); background: #fff; color: var(--txl-navy); font-size: 14px; font-weight: 700; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.txl-qs-tab:hover, .txl-qs-tab:focus { background: rgba(var(--txl-accent-rgb),.10); border-color: var(--txl-accent); color: var(--txl-navy); }
.txl-qs-tab.is-active { background: var(--txl-accent); border-color: var(--txl-accent); color: #fff; }
.txl-qs-tab.is-active:hover, .txl-qs-tab.is-active:focus { background: var(--txl-accent); color: #fff; }
.txl-qs-embed { min-height: 600px; border: 1px solid var(--txl-card-line); border-radius: 12px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* 既定を大きく：高さをビューポートに追従（本文幅はそのまま）。 */
.txl-console__main .txl-qs-embed { height: calc(100vh - var(--txl-header-h, 76px) - 250px); min-height: 640px; }
.txl-qs-embed iframe { display: block; width: 100%; height: 100% !important; border: 0; }
.txl-qs-embed__msg { font-size: 14px; color: var(--txl-muted); padding: 40px 20px; text-align: center; }

/* AI利用上限の注記（ダッシュボード下・全画面時は出さない） */
.txl-qs-note { margin: 12px 0 0; font-size: 12px; line-height: 1.9; color: var(--txl-muted); }
.txl-qs-note strong { color: var(--txl-navy); font-weight: 700; }
.txl-dashboard:has(.txl-qs-stage.is-fs) .txl-qs-note { display: none; }

/* 全画面：ステージをビューポート全面へ。上部バー（タブ＋閉じる）は残す。 */
.txl-qs-stage { display: flex; flex-direction: column; }
.txl-qs-stage.is-fs { position: fixed; inset: 0; z-index: 2000; background: var(--txl-bg, #fff); margin: 0; padding: 40px 32px 22px; gap: 16px; }
.txl-qs-stage.is-fs .txl-qs-bar { margin: 0; }
/* 全画面時の「閉じる」はサイト標準の primary（ネイビー→ホバーでアクセント）に統一。 */
.txl-qs-stage.is-fs .txl-qs-fs { background: var(--txl-navy); border-color: var(--txl-navy); color: #fff; }
.txl-qs-stage.is-fs .txl-qs-fs:hover, .txl-qs-stage.is-fs .txl-qs-fs:focus { background: var(--txl-accent-d); border-color: var(--txl-accent-d); color: #fff; }
.txl-qs-stage.is-fs .txl-qs-embed-wrap { flex: 1 1 auto; min-height: 0; }
.txl-qs-stage.is-fs .txl-qs-embed { height: 100%; min-height: 0; border-radius: 8px; }
body.txl-qs-fs-open { overflow: hidden; }
/* 全画面ではタブの下を高さいっぱいに使う（チャットと質問の例）。 */
.txl-qs-stage.is-fs .txl-qs-main { flex: 1 1 auto; min-height: 0; }
.txl-qs-stage.is-fs .txl-qs-main__chat { display: flex; flex-direction: column; min-height: 0; height: 100%; }

/* ===== 「AIに質問」の横の質問の例（2026-11-02・コピーして貼り付け・自動送信はしない） =====
   ダッシュボードのタブでは今のまま全幅。AI のタブ（.is-ai）のときだけ 2 カラム。
   チャットは最小 640px（表・グラフが窮屈にならない幅）・質問の例は 280px。
   本文（画面幅 − 左右の余白 64px）が 640＋16＋280＝936px に足りない画面（1000px 未満）は、質問の例をチャットの上に折りたたむ。 */
.txl-qs-main__chat { min-width: 0; }
.txl-ai-side { display: none; }
.txl-qs-stage.is-ai .txl-qs-main { display: grid; grid-template-columns: minmax(640px, 1fr) 280px; gap: 16px; align-items: start; }
.txl-qs-stage.is-ai .txl-ai-side {
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--txl-card-line); border-radius: 12px; background: var(--txl-surface); padding: 14px 14px 10px;
}
/* 高さはチャット（.txl-qs-embed）と同じ。 */
.txl-console__main .txl-qs-stage.is-ai .txl-ai-side { height: calc(100vh - var(--txl-header-h, 76px) - 250px); min-height: 640px; }
.txl-qs-stage.is-ai.is-fs .txl-qs-main { grid-template-columns: minmax(640px, 960px) minmax(260px, 320px); grid-template-rows: minmax(0, 1fr); justify-content: center; align-items: stretch; }
.txl-qs-stage.is-ai.is-fs .txl-ai-side { height: auto; min-height: 0; }
/* 全画面の「AIに質問」：質問の例は最初は閉じ、チャットを横幅いっぱいに。上部の「質問の例を表示／隠す」で開閉（2026-11-17）。
   開閉はクラスの付け替えだけ（iframe は作り直さない）なので、表示中の回答や入力途中の質問は消えない。通常表示には影響しない。 */
.txl-qs-side-btn { display: none; }
.txl-qs-stage.is-ai.is-fs .txl-qs-side-btn { display: inline-flex; margin-left: auto; padding: 10px 18px; font-size: 14px; border-radius: 999px; }
.txl-qs-stage.is-ai.is-fs .txl-qs-fs { margin-left: 0; }
.txl-qs-stage.is-ai.is-fs.is-side-closed .txl-qs-main { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
.txl-qs-stage.is-ai.is-fs.is-side-closed .txl-ai-side { display: none; }
.txl-ai-side__toggle { display: none; }
.txl-ai-side__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.txl-ai-side__ttl { margin: 0; font-size: 14px; font-weight: 700; color: var(--txl-navy); }
.txl-ai-side__sub { font-size: 11px; color: var(--txl-muted); }
.txl-ai-side__body { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.txl-ai-side__lead { font-size: 12px; line-height: 1.7; color: var(--txl-muted); margin: 6px 0 10px; }
.txl-ai-side__chips { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; flex: none; }
.txl-ai-side__chip { flex: none; appearance: none; border: 1px solid var(--txl-card-line); background: #fff; color: var(--txl-navy); font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
/* 親テーマ（Hello Elementor reset.css）の button:hover／:focus の赤系の地（#c36）と白文字を出さない。
   未選択のホバー・フォーカスは淡い紫の地＋紫の枠と文字、キーボードの選択には外枠線。選択中は紺のまま（2026-11-17）。 */
.txl-ai-side__chip:hover, .txl-ai-side__chip:focus, .txl-ai-side__chip:active { background: var(--txl-tint); color: var(--txl-accent-d); border-color: var(--txl-accent-d); text-decoration: none; }
.txl-ai-side__chip:focus-visible { outline: 2px solid var(--txl-accent); outline-offset: 2px; }
.txl-ai-side__chip.is-active, .txl-ai-side__chip.is-active:hover, .txl-ai-side__chip.is-active:focus, .txl-ai-side__chip.is-active:active { background: var(--txl-navy); border-color: var(--txl-navy); color: #fff; }
.txl-ai-side__list { list-style: none; margin: 0; padding: 0 2px 0 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.txl-ai-q { background: #fff; border: 1px solid var(--txl-card-line); border-radius: 10px; padding: 10px 12px; margin: 0; }
.txl-ai-q[hidden] { display: none; }
.txl-ai-q__title { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--txl-navy); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.txl-ai-q__tag { font-size: 10px; font-weight: 700; color: var(--txl-accent-d); background: var(--txl-tint); border-radius: 4px; padding: 1px 6px; }
.txl-ai-q__text { margin: 0 0 4px; font-size: 12.5px; line-height: 1.65; color: var(--txl-ink); }
.txl-ai-q__use { margin: 0 0 8px; font-size: 11px; line-height: 1.5; color: var(--txl-faint); }
.txl-ai-q__copy { appearance: none; border: 1px solid var(--txl-accent); background: #fff; color: var(--txl-accent-d); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; cursor: pointer; }
/* 親テーマ（Hello Elementor reset.css）の button:hover／:focus＝赤系の地（#c36）＋白文字を打ち消し、紫の文字のまま淡い地にする（2026-11-09）。 */
.txl-ai-q__copy:hover, .txl-ai-q__copy:focus, .txl-ai-q__copy:active { background: var(--txl-tint); color: var(--txl-accent-d); border-color: var(--txl-accent-d); text-decoration: none; }
.txl-ai-q__copy:focus-visible { outline: 2px solid var(--txl-accent); outline-offset: 2px; }
.txl-ai-q__copy.is-done, .txl-ai-q__copy.is-done:hover, .txl-ai-q__copy.is-done:focus { background: var(--txl-accent); border-color: var(--txl-accent); color: #fff; }
.txl-ai-q__copy.is-fail, .txl-ai-q__copy.is-fail:hover, .txl-ai-q__copy.is-fail:focus { background: #fff; border-color: var(--txl-warn); color: var(--txl-warn); }
.txl-ai-q__text.is-selected { background: var(--txl-tint); border-radius: 4px; }
.txl-ai-side__foot { margin: 8px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--txl-faint); flex: none; }

@media (max-width: 999px) {
  .txl-qs-stage.is-ai .txl-qs-main, .txl-qs-stage.is-ai.is-fs .txl-qs-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-items: start; }
  .txl-qs-stage.is-ai .txl-ai-side, .txl-console__main .txl-qs-stage.is-ai .txl-ai-side { order: -1; height: auto; min-height: 0; padding: 0; }
  .txl-ai-side__head { display: none; }
  .txl-ai-side__toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; appearance: none; border: 0; background: none;
    padding: 12px 14px; cursor: pointer; text-align: left; color: var(--txl-navy);
  }
  .txl-ai-side__toggle .txl-ai-side__ttl { flex: 1 1 auto; }
  .txl-ai-side__chev { width: 8px; height: 8px; border-right: 2px solid var(--txl-accent-d); border-bottom: 2px solid var(--txl-accent-d); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
  .txl-ai-side__toggle[aria-expanded="true"] .txl-ai-side__chev { transform: rotate(-135deg); margin-top: 4px; }
  .txl-ai-side__body { padding: 0 14px 12px; }
  .txl-ai-side:not(.is-open) .txl-ai-side__body { display: none; }
  .txl-ai-side__list { overflow: visible; }
  .txl-qs-stage.is-ai.is-fs { overflow-y: auto; }
  .txl-qs-stage.is-ai.is-fs .txl-qs-main__chat { height: auto; }
  .txl-qs-stage.is-ai.is-fs .txl-qs-embed { height: calc(100vh - 160px); }
}

/* マイページはプレーンPage（非Elementor）ゆえ Hello Elementor が .site-main を 1140px に制限する。
   レポートページ（専用フルテンプレート）と同じ幅にするため、コンソールを含むときは制限を解除し
   .txl-container（=--txl-maxw）をフル幅で効かせる（左ナビの位置もレポートと一致）。 */
body main.site-main:has(.txl-console) { max-width: var(--txl-maxw); }
/* 未契約/未ログインのゲート表示（認証カードのトーンを流用） */
.txl-dash-gate { max-width: 560px; margin: 0 auto; text-align: center; padding: 56px 24px 72px; }
.txl-dash-gate__title { font-size: 24px; font-weight: 800; color: var(--txl-navy); margin: 8px 0 12px; letter-spacing: -.01em; }
.txl-dash-gate__lead { font-size: 14px; line-height: 1.9; color: var(--txl-muted); margin: 0 0 22px; }

@media (max-width: 560px) {
  .txl-auth__card { padding: 30px 22px; min-height: 0; }
  .txl-bm-row { flex-wrap: wrap; gap: 10px; }
}

/* =========================================================
   契約管理コンソール（Phase B2）：通知エリア・現在の契約カード
   ========================================================= */
.txl-notice-area { border: 1px solid var(--txl-card-line); border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; background: #FCFCFE; }
.txl-notice-area__title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--txl-muted); margin-bottom: 8px; }
.txl-notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.txl-notice { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--txl-ink); }
.txl-notice__dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--txl-accent); }
.txl-notice--warn .txl-notice__dot { background: #ff8a1f; } /* 要確認のお知らせ：メニューの確認待ちの印と同じ色（2026-10-22）。成功・案内（紫）は変えない。 */
.txl-notice--success .txl-notice__dot { background: var(--txl-accent-d); }
.txl-notice__link { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--txl-accent-d); text-decoration: none; }
.txl-notice__link:hover { color: var(--txl-navy); }

.txl-contract-card { border: 1px solid var(--txl-card-line); border-radius: 12px; padding: 6px 18px; max-width: 480px; }
.txl-contract { margin: 0; }
.txl-contract > div { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--txl-card-line); }
.txl-contract > div:first-child { border-top: none; }
.txl-contract dt { flex: 0 0 120px; font-size: 13px; font-weight: 700; color: var(--txl-navy); margin: 0; }
.txl-contract dd { flex: 1; font-size: 15px; color: var(--txl-ink); margin: 0; display: flex; align-items: center; gap: 10px; }
.txl-contract .txl-num { font-weight: 800; letter-spacing: -.01em; }
/* 実額が取得できないときの控えめな代替テキスト（推測値は出さない方針）。 */
.txl-contract dd.txl-muted { font-size: 13px; color: var(--txl-muted); }
/* 改行を含む行（料金の内訳・更新料金・解約期限など）は 1 つの文として折り返す（横並びにすると細い列に割れる）。 */
.txl-contract dd:has(br) { display: block; line-height: 1.8; }
.txl-contract dd:has(br) .txl-muted { font-size: 12px; color: var(--txl-muted); }
/* 割引の欄：割引・次回のご請求額・次回請求日を 1 項目 1 行に分け、枠の幅で折り返す（金額・日付の中では折り返さない）。 */
.txl-contract dd.txl-contract__lines { display: block; min-width: 0; line-height: 1.8; overflow-wrap: anywhere; }
.txl-contract__lines > span { display: block; }
/* スマホ幅：項目名の下に内容を置き、金額・日付が枠からはみ出さないようにする（横並びだと内容の列が細くなる）。 */
@media (max-width: 480px) {
  .txl-contract > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 0; }
  .txl-contract dt { flex: none; }
  .txl-contract dd { width: 100%; min-width: 0; flex-wrap: wrap; }
}
/* 旧会員特別価格の注意書き（契約カードの下・変更確認画面の警告） */
.txl-contract__note { margin: 12px 0 0; font-size: 12px; line-height: 1.9; color: var(--txl-muted); }
.txl-contract__pending { margin: 12px 0 0; font-size: 13px; line-height: 1.9; color: var(--txl-navy); background: var(--txl-tint); border: 1px solid rgba(var(--txl-accent-rgb),.25); border-radius: 10px; padding: 12px 14px; }
.txl-change__sub { font-size: 12px; color: var(--txl-muted); }
.txl-downgrade__warn { font-size: 13px; line-height: 1.9; color: #8a4b1f; background: #fdf4ec; border: 1px solid rgba(194,104,63,.3); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }

.txl-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.txl-pill--legacy { background: var(--txl-tint); color: var(--txl-accent-d); border: 1px solid rgba(var(--txl-accent-rgb),.3); }

.txl-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.txl-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.txl-state--ok { color: var(--txl-accent-d); }
.txl-state--warn { color: #d98a18; }
/* 解約予約中：危険ではないため紫系。「有効」と見分けるため淡紫の地＋中抜きのドット。 */
.txl-state--scheduled { color: var(--txl-accent-d); background: var(--txl-tint); padding: 2px 10px; border-radius: var(--txl-radius-pill); }
.txl-state--scheduled::before { background: transparent; border: 2px solid currentColor; box-sizing: border-box; }
.txl-state--bad { color: #c0392b; }

/* 請求書3タブ・テーブル（Phase B2 増分2） */
.txl-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--txl-card-line); margin: 0 0 22px; }
.txl-tab { padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--txl-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.txl-tab:hover { color: var(--txl-navy); }
.txl-tab.is-active { color: var(--txl-navy); border-bottom-color: var(--txl-accent); }
/* テーマ既定のリンク下線（黒）を抑止し、アクティブのアクセント線のみ残す */
.txl-tabs .txl-tab,
.txl-tabs .txl-tab:hover,
.txl-tabs .txl-tab:focus { text-decoration: none !important; box-shadow: none !important; }
.txl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.txl-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--txl-muted); padding: 8px 12px; }
.txl-table td { padding: 13px 12px; color: var(--txl-ink); }
/* 枠線はすべて同じ太さ・色に統一（テーマ既定の灰色と下辺だけの薄い線が混ざり、最下段の線が消えて見えたため）。 */
.txl-table.txl-table th, .txl-table.txl-table td,
.txl-table.txl-table thead:first-child tr:first-child th { border: 1px solid var(--txl-line-2); } /* 2 行目はテーマの「table thead:first-child tr:first-child th」の上辺を上書き。 */
.txl-table td.txl-num { font-weight: 700; letter-spacing: -.01em; }
.txl-table .txl-link { font-weight: 600; color: var(--txl-accent-d); text-decoration: none; }
.txl-table .txl-link:hover { color: var(--txl-navy); }
.txl-invoices__note { margin-top: 18px; font-size: 12px; }

/* 利用履歴の種別ピル（Phase B2 増分3） */
.txl-pill--type { background: var(--txl-tint); color: var(--txl-navy); border: 1px solid var(--txl-card-line); white-space: nowrap; }

/* Enterprise 利用率バー・契約内容（Phase B2 増分4） */
.txl-usage { width: 100%; }
.txl-usage__bar { height: 10px; border-radius: 999px; background: var(--txl-card-line); overflow: hidden; }
.txl-usage__bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--txl-accent), var(--txl-accent-d)); border-radius: 999px; }
.txl-usage__meta { margin-top: 8px; font-size: 13px; color: var(--txl-muted); }
.txl-usage__meta b { color: var(--txl-navy); font-size: 15px; }
.txl-usage--lg .txl-usage__bar { height: 14px; }
.txl-org-guide p { font-size: 14px; line-height: 1.8; color: var(--txl-muted); margin: 0 0 6px; }
.txl-org-guide p:last-child { margin-bottom: 0; }
.txl-btn.is-disabled, .txl-link.is-disabled { opacity: .45; pointer-events: none; cursor: default; }
/* 無効化ボタン（同意チェック未了など）。親テーマの hover 赤背景も打ち消す。 */
.txl-btn:disabled, .txl-btn[disabled],
.txl-btn:disabled:hover, .txl-btn[disabled]:hover,
.txl-btn:disabled:focus, .txl-btn[disabled]:focus { background: var(--txl-muted); color: #fff; opacity: .55; cursor: not-allowed; box-shadow: none; }
.txl-table th:first-child, .txl-table td:first-child, .txl-table td:last-child { white-space: nowrap; }
/* 狭い画面では多列テーブル（利用者一覧/請求書/履歴 等）を横スクロール化し、
   ページ全体の横はみ出しを防ぐ。収まる幅ではスクロールバーは出ない。 */
@media (max-width: 768px) {
  .txl-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 1 文字ずつの折り返し（「役／割」等）を防ぎ、列は内容の幅のまま横スクロールで見せる。 */
  .txl-table th, .txl-table td { white-space: nowrap; }
}

/* ライセンス変更フォーム（Phase C 増分2） */
.txl-lic-form { border: 1px solid var(--txl-card-line); border-radius: 12px; padding: 18px 20px; margin-top: 4px; }
.txl-field--inline { display: flex; align-items: center; gap: 12px; }
.txl-field--inline span { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--txl-navy); }
.txl-field--inline input { width: 120px; }
.txl-row--pending td { color: var(--txl-muted); background: #FCFCFE; }

/* 招待/ライセンスフォームの入力幅・スクロール位置（増分3 微修正） */
.txl-field--inline { flex-wrap: wrap; }
.txl-field--email input[type="email"] { width: 340px; max-width: 100%; }
/* 移動先が固定ヘッダー（PC 約 104px・管理バー表示時 +32px）に隠れないように。JS（auth.js の txlScrollTo）が使えないときの予備。 */
#txl-licform, #txl-usage, #txl-change-confirm { scroll-margin-top: 124px; }
.admin-bar #txl-licform, .admin-bar #txl-usage, .admin-bar #txl-change-confirm { scroll-margin-top: 156px; }

/* ライセンス/招待フォーム内を入力欄に合わせて中央寄せに統一（微修正） */
.txl-lic-form { text-align: center; }
.txl-lic-form .txl-account-actions { justify-content: center; }
.txl-field--inline input[type="number"] { text-align: center; }
/* 入力欄が 2 つ続くとき（招待のメールアドレス＋招待する席）は、項目ごとにまとまって見えるよう間を空ける（見出しと入力欄の間は gap 12px のまま）。 */
.txl-lic-form .txl-field--inline + .txl-field--inline { margin-top: 22px; }
/* 招待する席・移動先の席の選択肢（選択欄だと長い文言がスマホで切れるため、折り返せる一覧にする）。幅はメールアドレスの欄（340px）にそろえる。 */
.txl-seatpick { width: 340px; max-width: 100%; margin: 22px auto 0; padding: 0; border: 0; text-align: left; }
.txl-seatpick legend { margin: 0 0 10px; padding: 0; width: 100%; text-align: center; font-size: 14px; font-weight: 700; color: var(--txl-navy); }
.txl-seatpick__opt { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--txl-card-line); border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.6; color: var(--txl-ink); cursor: pointer; }
.txl-seatpick__opt input { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--txl-accent); }
.txl-seatpick__opt span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.txl-seatpick__opt:has(input:checked) { border-color: var(--txl-accent); box-shadow: 0 0 0 3px rgba(var(--txl-accent-rgb),.12); }
.txl-seatpick__opt:has(input:focus-visible) { outline: 2px solid var(--txl-accent); outline-offset: 2px; }

/* ライセンス追加：1IDあたり単価の表示（法人ごとに異なるため明示） */
.txl-lic-form__unit { margin: 0 0 10px; font-size: 14px; color: var(--txl-navy); }
.txl-lic-form__unit strong { font-size: 17px; }
.txl-lic-form #txl-add-sum { font-variant-numeric: tabular-nums; }

/* ===== THINX相談（レポート直通チャット）：マイページパネル ===== */
.txl-consult-lead { color: var(--txl-muted); font-size: 13.5px; line-height: 1.7; margin: 4px 0 16px; }
.txl-consult-note { border-radius: var(--txl-radius); padding: 10px 14px; font-size: 13px; line-height: 1.6; margin: 0 0 14px; background: var(--txl-tint); color: var(--txl-navy); }
.txl-consult-note--ok { background: var(--txl-tint); color: var(--txl-accent-d); }
.txl-consult-note--err { background: #fdeeee; color: #9a3535; }

/* 一覧 */
.txl-consult-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--txl-card-line); }
.txl-consult-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 6px; border-bottom: 1px solid var(--txl-card-line); }
.txl-consult-row.is-unread { background: rgba(var(--txl-accent-rgb),.05); }
.txl-consult-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-decoration: none; flex: 1 1 auto; }
.txl-consult-row__subject { color: var(--txl-navy); font-weight: 600; font-size: 14.5px; }
.txl-consult-row__new { color: var(--txl-accent-d); font-size: 11px; font-weight: 700; margin-left: 6px; }
.txl-consult-row__report { color: var(--txl-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txl-consult-row__meta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.txl-consult-row__date { color: var(--txl-muted); font-size: 12px; }
.txl-consult-row__main:hover .txl-consult-row__subject { color: var(--txl-accent-d); }

/* ステータスバッジ */
.txl-consult-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.7; }
.txl-consult-badge--open { background: #fff3e0; color: #b26a00; }
.txl-consult-badge--answered { background: var(--txl-tint); color: var(--txl-accent-d); }
.txl-consult-badge--closed { background: #eef0f3; color: #5a6472; }

/* スレッド詳細 */
.txl-consult-threadmeta { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.txl-consult-threadmeta__report { color: var(--txl-muted); font-size: 12.5px; text-decoration: none; }
.txl-consult-threadmeta__report:hover { color: var(--txl-accent-d); }
.txl-consult-thread { display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; }
.txl-consult-msg { border: 1px solid var(--txl-card-line); border-radius: var(--txl-radius); padding: 12px 15px; max-width: 88%; }
.txl-consult-msg--member { align-self: flex-end; background: #fff; }
.txl-consult-msg--staff { align-self: flex-start; background: var(--txl-tint); border-color: rgba(var(--txl-accent-rgb),.35); }
.txl-consult-msg__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.txl-consult-msg__who { font-weight: 700; font-size: 12.5px; color: var(--txl-navy); }
.txl-consult-msg--staff .txl-consult-msg__who { color: var(--txl-accent-d); }
.txl-consult-msg__date { color: var(--txl-muted); font-size: 11px; }
.txl-consult-msg__body { color: var(--txl-ink); font-size: 14px; line-height: 1.75; }
.txl-consult-msg__body p { margin: 0 0 8px; }
.txl-consult-msg__body p:last-child { margin-bottom: 0; }

/* フォーム */
.txl-consult-form { margin-top: 8px; display: flex; flex-direction: column; gap: 18px; }
.txl-consult-form .txl-field em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--txl-accent-d); margin-left: 4px; }
.txl-consult-form textarea {
	width: 100%; padding: 11px 13px; font: inherit; color: var(--txl-ink);
	background: #fff; border: 1px solid var(--txl-card-line); border-radius: 10px;
	resize: vertical; line-height: 1.7;
}
.txl-consult-form textarea:focus { outline: none; border-color: var(--txl-accent); box-shadow: 0 0 0 3px rgba(var(--txl-accent-rgb),.12); }
.txl-consult-form textarea.is-invalid { border-color: #b4452b; }
.txl-consult-form textarea.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180,69,43,.12); }
.txl-consult-form .txl-btn { align-self: flex-start; }
.txl-consult-reply { border-top: 1px solid var(--txl-card-line); padding-top: 18px; }

/* =========================================================
   マイページ — 参考サイト（Quick Community / About）のタブ型に寄せる
   左のナビ列をやめ、本文の上に横並びタブ（アクティブは紫の下線）を置く。
   マークアップは変えず、レイアウトだけ組み替える。
   ========================================================= */
.txl-container.txl-console { grid-template-columns: 1fr; gap: 0; }
.txl-console__side {
  position: static; flex-direction: row; flex-wrap: wrap; align-items: center;
  gap: 10px 28px; padding-bottom: 0; margin-bottom: 28px;
  border-bottom: 1px solid var(--txl-line);
}
.txl-console__user {
  flex-direction: row; align-items: center; gap: 12px;
  padding-bottom: 0; border-bottom: 0; margin-right: 8px;
}
.txl-console__nav { flex-direction: row; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.txl-console__navlink {
  padding: 10px 2px; border-radius: 0; background: none; color: var(--txl-muted);
  border-bottom: 3px solid transparent; font-weight: 600;
}
.txl-console__navlink:hover, .txl-console__navlink:focus { background: none; color: var(--txl-ink); }
.txl-console__navlink.is-active {
  background: none; color: var(--txl-accent-d);
  border-bottom-color: var(--txl-accent);
}
.txl-console__logout { margin-top: 0; padding: 10px 2px; }
.txl-console__head { border-bottom: 0; padding-bottom: 4px; margin-bottom: 20px; }
.txl-console__title { font-size: 30px; letter-spacing: -.015em; }
@media (max-width: 720px) {
  .txl-console__side { flex-direction: column; align-items: flex-start; gap: 12px; }
  .txl-console__nav { margin-left: 0; gap: 2px 18px; }
}

/* 申込画面の料金：税込は税別より一段小さく（2026-10-18）。 */
.txl-checkout__price .txl-price__incl .txl-num { font-size: 18px; font-weight: 700; margin-right: 0; }
.txl-checkout__price .txl-price__incl { margin-left: 4px; }
.txl-change__pay td { background: var(--txl-surface, #fff); }

/* =========================================================
   マイページ：「アカウント」の子メニュー（登録情報・契約内容・請求書・請求先・利用履歴・契約の変更）（2026-10-22）
   親はクリック・タップ・キーボード（Enter／Space で開閉・Esc で閉じる）。子は本文の上の 2 段目に並べる
   （浮かせないので、画面外にはみ出さず固定ヘッダーにも隠れない）。
   ========================================================= */
.txl-console__nav button.txl-console__navparent,
.txl-console__nav button.txl-console__navparent:hover,
.txl-console__nav button.txl-console__navparent:focus {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 10px 2px; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: none; box-shadow: none; font: inherit; font-size: 14px; font-weight: 600; line-height: inherit;
  color: var(--txl-muted); cursor: pointer;
}
.txl-console__nav button.txl-console__navparent:hover { color: var(--txl-ink); }
.txl-console__nav button.txl-console__navparent.is-active { color: var(--txl-accent-d); border-bottom-color: var(--txl-accent); }
.txl-console__nav button.txl-console__navparent:focus-visible,
.txl-console__sublink:focus-visible { outline: 2px solid var(--txl-accent); outline-offset: 2px; }
.txl-console__chev {
  width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.txl-console__navparent[aria-expanded="true"] .txl-console__chev { transform: translateY(1px) rotate(-135deg); }
.txl-console__dot {
  /* 確認待ちの印（「アカウント」の横）：明るいオレンジの丸・9px・縁なし・常に点灯（2026-10-22）。 */
  display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; margin-left: 5px; border-radius: 50%;
  background: #ff8a1f; vertical-align: middle;
}
/* 「契約の変更」の横の「確認待ち」ラベル：淡いオレンジの背景に濃い文字（選択中の紫の背景の上でも読める）。 */
.txl-console__badge {
  display: inline-flex; align-items: center; flex: 0 0 auto; margin-left: 6px; padding: 2px 7px;
  border-radius: 999px; background: #fff1e5; color: #9a3d05; font-size: 11px; font-weight: 700; line-height: 1.4;
  letter-spacing: .02em; white-space: nowrap;
}
.txl-console__sub {
  flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin: -2px 0 14px; padding: 8px 10px; border-radius: 10px; background: var(--txl-tint);
}
.txl-console__sub[hidden] { display: none; }
.txl-console__sublink,
.page-content a.txl-console__sublink {
  display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--txl-muted); text-decoration: none;
}
.txl-console__sublink:hover { color: var(--txl-ink); background: #fff; }
.txl-console__sublink.is-active,
.page-content a.txl-console__sublink.is-active { color: #fff; background: var(--txl-accent-d); }
.txl-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 720px) {
  .txl-console__sub { width: 100%; box-sizing: border-box; margin: 0; }
}
/* 本文が短いとき、メニューの段が縦に伸びて本文の上に大きな空白ができないようにする（2026-10-22）。 */
.txl-container.txl-console { align-content: start; }
/* お知らせ：「登録情報」の見出しの直下（プロフィールより上）。リンクはスマホでも折り返して見えるように。 */
.txl-notice-area--top { margin: 0 0 32px; }
.txl-notice-area--top .txl-notice__text { flex: 1 1 0; min-width: 0; }
.txl-notice-area--top .txl-notice__link { white-space: nowrap; font-weight: 700; }
@media (max-width: 720px) {
  .txl-notice-area--top .txl-notice { flex-wrap: wrap; align-items: flex-start; }
  .txl-notice-area--top .txl-notice__dot { margin-top: 8px; }
  .txl-notice-area--top .txl-notice__link { flex-basis: 100%; text-align: right; }
}

/* 契約の変更：了承・取り消しの確認チェック（ブラウザ既定の吹き出しの代わりに、チェック欄の直下へ案内を出す・auth.js）。 */
.txl-cc-form { margin-top: 14px; }
.txl-field.txl-cc-check { gap: 6px; margin: 0 0 14px; }
.txl-cc-check label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--txl-card-line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.txl-cc-check label:hover { border-color: rgba(var(--txl-accent-rgb),.45); }
.txl-cc-check label:has(input:checked) { border-color: rgba(var(--txl-accent-rgb),.55); background: var(--txl-tint); }
.txl-field.txl-cc-check input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; flex: 0 0 auto; border-radius: 4px; accent-color: var(--txl-accent); cursor: pointer; }
/* .txl-field 内のチェックボックス（登録の同意・お問い合わせのデモ希望・契約の変更の確認）：入力欄用の影を付けず、共通の紫の枠（誤りは赤）にする。 */
.txl-field input[type="checkbox"]:focus, .txl-field input[type="radio"]:focus { box-shadow: none; }
.txl-field input[type="checkbox"]:focus-visible, .txl-field input[type="radio"]:focus-visible { outline: 2px solid var(--txl-accent); outline-offset: 2px; }
.txl-field input[type="checkbox"].is-invalid,
.txl-field input[type="checkbox"].is-invalid:focus-visible { outline: 2px solid var(--txl-error); outline-offset: 2px; }
.txl-cc-check label span { font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--txl-ink); }
.txl-cc-check label:has(input.is-invalid) { border-color: #b4452b; }
.txl-field.txl-cc-check span.txl-field__err { padding-left: 2px; }
/* お問い合わせ・会員登録・カードの確認・個人への切り替えの了承のチェック（2026-11-01 ユーザー指示）：未チェックはチェック欄の直下の案内だけで知らせ、
   チェック欄の外側の赤い枠は付けない。キーボード操作で今いる位置を示す通常の紫のフォーカスの枠は残す。 */
.txl-contact__form input[type="checkbox"].is-invalid, .txl-auth__form input[type="checkbox"].is-invalid, .txl-card-confirm__agree input[type="checkbox"].is-invalid { outline: none; }
.txl-contact__form input[type="checkbox"].is-invalid:focus-visible, .txl-auth__form input[type="checkbox"].is-invalid:focus-visible, .txl-card-confirm__agree input[type="checkbox"].is-invalid:focus-visible { outline: 2px solid var(--txl-accent); outline-offset: 2px; }
/* 取り消した変更の表（参考）：変更後の値を強調しない。 */
.txl-change--void td strong { font-weight: 500; color: var(--txl-muted); }

/* 契約の構成（機能・席数・単価・小計・AI 条件・B2 2026-10-22）。スマホでは 1 行を 1 枚のカードにする（横スクロールにしない）。 */
.txl-comp__title { margin: 22px 0 10px; font-size: 15px; font-weight: 700; color: var(--txl-navy); }
.txl-table.txl-comp { max-width: 760px; }
.txl-table.txl-comp td .txl-num { font-weight: 800; }
.txl-table.txl-comp tfoot th, .txl-table.txl-comp tfoot td { background: var(--txl-surface-3, #f7f7fb); font-weight: 700; color: var(--txl-navy); }
.txl-comp__sub { margin-left: 4px; font-size: 12px; color: var(--txl-muted); }
.txl-comp__note { margin: 8px 0 0; font-size: 12px; line-height: 1.8; color: var(--txl-muted); }
@media (max-width: 768px) {
  .txl-table.txl-comp { display: block; overflow: visible; }
  .txl-table.txl-comp thead { display: none; }
  .txl-table.txl-comp tbody, .txl-table.txl-comp tfoot { display: block; }
  .txl-table.txl-comp tr { display: block; border: 1px solid var(--txl-line-2); border-radius: 10px; padding: 6px 12px; margin: 0 0 10px; }
  .txl-table.txl-comp.txl-comp th, .txl-table.txl-comp.txl-comp td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; white-space: normal; text-align: right; background: transparent; }
  .txl-table.txl-comp td::before { content: attr(data-label); flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--txl-muted); text-align: left; }
  .txl-table.txl-comp tbody td:first-child { font-weight: 700; color: var(--txl-navy); }
  .txl-table.txl-comp tfoot tr { background: var(--txl-surface-3, #f7f7fb); }
  .txl-table.txl-comp tfoot th { font-size: 14px; }
  .txl-table.txl-comp .txl-price { text-align: right; }
}

/* 席の追加：機能を選ぶ（条件が未設定の機能は淡く・選ぶと依頼の画面へ・B2）。 */
.txl-plan-pick { border: 0; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.txl-plan-pick legend { font-size: 14px; font-weight: 700; color: var(--txl-navy); margin: 0 0 8px; padding: 0; }
.txl-plan-pick__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--txl-card-line); border-radius: 10px; background: #fff; cursor: pointer; }
.txl-plan-pick__item:has(input:checked) { border-color: rgba(var(--txl-accent-rgb),.55); background: var(--txl-tint); }
.txl-plan-pick__item input { margin: 3px 0 0; accent-color: var(--txl-accent); }
.txl-plan-pick__item input:focus-visible { outline: 2px solid var(--txl-accent); outline-offset: 2px; }
.txl-plan-pick__name { font-size: 14px; font-weight: 700; color: var(--txl-navy); }
.txl-plan-pick__term { grid-column: 2; font-size: 12px; line-height: 1.7; color: var(--txl-muted); }
.txl-plan-pick__item.is-unset .txl-plan-pick__name { color: var(--txl-muted); }

/* 変更の依頼（B2）。 */
.txl-ccr { border: 1px solid var(--txl-card-line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; }
.txl-ccr__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; }
.txl-ccr__state { display: inline-flex; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--txl-tint); color: var(--txl-accent-d); }
.txl-ccr__state--declined, .txl-ccr__state--withdrawn { background: #f1f1f4; color: var(--txl-muted); }
.txl-ccr__state--presented { background: #fff1e0; color: #9a4d00; }
.txl-ccr__body { margin: 0 0 8px; white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.8; color: var(--txl-ink); background: transparent; padding: 0; border: 0; }
.txl-ccr-form__set { border: 0; margin: 0 0 12px; padding: 0; }
.txl-ccr-form__set legend { font-size: 14px; font-weight: 700; color: var(--txl-navy); margin: 0 0 6px; padding: 0; }
.txl-ccr-form__radio, .txl-ccr-form__check { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; font-size: 14px; line-height: 1.7; }
.txl-ccr-form__radio input, .txl-ccr-form__check input { margin-top: 5px; accent-color: var(--txl-accent); }
/* 個人プランへの移行（E）の本人の選択：選択肢を 1 行ずつ・依頼の画面と同じ見た目に（2026-10-27） */
.txl-radio { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; font-size: 14px; line-height: 1.7; }
.txl-radio input { margin-top: 5px; flex: none; accent-color: var(--txl-accent); }
.txl-ccr-form [hidden] { display: none !important; }
/* 変更の依頼の画面は左寄せ（項目が多いため・中央寄せのライセンスの欄とは分ける）。ラベルと入力欄は横に並べる。 */
.txl-lic-form.txl-ccr-form { text-align: left; }
.txl-ccr-form .txl-downgrade__title { text-align: left; }
.txl-ccr-form .txl-field--inline { flex-direction: row; justify-content: flex-start; margin: 0 0 10px; }
.txl-ccr-form .txl-ccr-form__set .txl-field--inline span { flex: 0 0 140px; font-weight: 600; }
.txl-ccr-form .txl-field--inline input[type="number"] { width: 90px; }
.txl-ccr-form .txl-field--inline select { min-width: 220px; max-width: 100%; }
.txl-ccr-form .txl-account-actions { justify-content: flex-start; }
.txl-ccr-form textarea { width: 100%; box-sizing: border-box; }

/* 利用者一覧の「操作」：文字リンクの連続をやめ、操作ごとの小さなボタンにする（2026-10-22 ユーザー指定）。
   形は「利用者一覧」の人数（.txl-mypage__cnt）と同じ淡い面・丸い角。通常＝淡い紫に濃い紫の文字、解除・取消＝淡い赤。
   狭い画面ではボタン単位で折り返す（表は横スクロールのままなので、入れ物の幅を決めて折り返させる）。 */
.txl-table td .txl-rowbtns { display: flex; flex-wrap: wrap; gap: 6px 8px; max-width: 340px; white-space: normal; }
.txl-rowbtn { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border: 1px solid transparent; border-radius: 999px; background: #E6E0FD; color: var(--txl-accent-d); font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.txl-rowbtn:hover { background: #D8CEFB; border-color: rgba(var(--txl-accent-rgb), .4); color: var(--txl-accent-d); }
/* 親テーマの `.page-content a{ text-decoration: underline }` を打ち消す（通常・ホバー・フォーカスとも下線なし・2026-10-22）。 */
.page-content a.txl-rowbtn, .page-content a.txl-rowbtn:hover, .page-content a.txl-rowbtn:focus, .page-content a.txl-rowbtn:focus-visible,
a.txl-rowbtn, a.txl-rowbtn:hover, a.txl-rowbtn:focus { text-decoration: none; }
.txl-rowbtn:focus-visible { outline: 2px solid var(--txl-accent); outline-offset: 2px; }
.txl-rowbtn--danger { background: #FCEEEA; color: var(--txl-error); }
.txl-rowbtn--danger:hover { background: #F8DCD3; border-color: rgba(180, 69, 43, .35); color: var(--txl-error); }
.txl-rowbtn--danger:focus-visible { outline-color: var(--txl-error); }
@media (max-width: 768px) {
  .txl-table td .txl-rowbtns { max-width: 180px; }
  .txl-rowbtn { min-height: 32px; }
}

/* 操作する場所に出す注意（例：Readerの席との移動の月 1 回の制限）。お知らせと同じオレンジの丸・淡い面（2026-10-22）。 */
.txl-inline-warn { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; text-align: left; padding: 9px 12px; border-radius: 10px; background: #FFF4E6; color: var(--txl-ink); font-size: 13px; line-height: 1.7; }
.txl-inline-warn::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: #ff8a1f; }
.txl-inline-warn[hidden] { display: none; }

/* 法人の「お支払い方法」（C1）：お支払いが済んでいない請求書の一覧。 */
.txl-pay__unpaid { margin: 8px 0 14px; padding-left: 1.2em; font-size: 14px; line-height: 1.9; color: var(--txl-ink); }
.txl-pay__start { margin-top: 12px; }

/* 1 日の早朝のカードの申込み：確認画面のプロモーションコード（TXL_Card_Signup）。
   ラベル・入力欄は .txl-field、ボタンは .txl-btn--ghost（主ボタンより控えめ）。パソコンは横並びで高さをそろえ、狭い幅では折り返す。 */
.txl-card-confirm__promo { margin: 32px 0 28px; }
.txl-card-confirm__promo-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.txl-card-confirm__promo-row input { flex: 1 1 160px; min-width: 0; max-width: 360px; }
.txl-card-confirm__promo-row .txl-btn { flex: 0 0 auto; min-width: 96px; min-height: 46px; padding-top: 0; padding-bottom: 0; }
.txl-card-confirm__applied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0; line-height: 1.7; }
.txl-card-confirm__applied .txl-btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .txl-card-confirm__promo { margin: 28px 0 24px; }
  .txl-card-confirm__promo-row input { max-width: none; }
}

/* 1 日の早朝のカードの申込み：決済の結果の画面（確認中・完了・未完了）。 */
.txl-container.txl-checkout.txl-card-result { max-width: 720px; }
.txl-card-result > p { margin: 0 0 16px; }
.txl-card-result__wait { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--txl-card-line); border-radius: 16px; padding: 24px 22px; margin: 0 0 16px; box-shadow: 0 24px 60px -40px rgba(13,42,71,.4); }
.txl-card-result__wait p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--txl-ink); }
.txl-card-result__spinner { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; border: 3px solid rgba(var(--txl-accent-rgb),.2); border-top-color: var(--txl-accent); border-radius: 50%; animation: txl-card-spin .9s linear infinite; }
@keyframes txl-card-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .txl-card-result__spinner { animation: none; } }
.txl-card-result .txl-contract-card { max-width: none; margin: 0 0 16px; }
.txl-card-result .txl-contract dd { display: block; line-height: 1.8; }
@media (max-width: 480px) {
  .txl-card-result .txl-contract > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 0; }
  .txl-card-result .txl-contract dt { flex: none; }
}
/* 案 C の確認画面の同意欄：折り返した行をチェックボックスの下ではなく、本文の開始位置にそろえる。 */
.txl-card-confirm__agree label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; cursor: pointer; }
.txl-card-confirm__agree input[type="checkbox"] { width: 18px; height: 18px; margin: 4px 0 0; flex: 0 0 auto; cursor: pointer; }
/* 未チェックの案内（auth.js）：入力欄の案内（.txl-field__err）と同じ大きさ・色で、チェック欄の直下・文の頭に合わせる。 */
.txl-card-confirm__agree span.txl-field__err { display: block; margin: 4px 0 0 28px; font-size: 12px; font-weight: 500; line-height: 1.6; color: var(--txl-muted); }
