/* invite.html 専用スタイル
   元コード: web/invite.html:19-98（分割時点の HEAD 基準・2026-07-19） */

/* invite.html 専用の小拡張 */
.invite-hero { padding: 28px 20px; border-radius: 12px; background: linear-gradient(135deg, rgba(91,140,255,0.08) 0%, rgba(240,183,58,0.08) 100%); border: 1px solid var(--border); margin-bottom: 16px; }
.invite-hero h1 { margin: 0 0 8px; font-size: 26px; }
.invite-hero p { margin: 0; color: var(--text-2); }
.case-card { padding: 18px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; }
.case-card.recommended { border-left: 3px solid var(--gold); }
.case-card h3 { margin: 8px 0 8px; font-size: 16px; }
.case-card p { color: var(--text-2); font-size: 13px; margin: 0 0 12px; flex: 1; }
.step-list { counter-reset: step; padding-left: 0; list-style: none; }
.step-list > li { counter-increment: step; padding: 10px 0 10px 44px; position: relative; border-bottom: 1px dashed var(--border); }
.step-list > li:last-child { border-bottom: 0; }
.step-list > li::before { content: counter(step); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.step-list > li b { color: var(--text); }
.step-list .sub { margin-top: 6px; color: var(--text-2); font-size: 13px; }
.anchor-jump { color: var(--accent); }
code, pre { background: var(--bg-3, #15192a); border-radius: 4px; padding: 2px 6px; font-family: Menlo, Consolas, monospace; font-size: 12px; }
pre { padding: 10px 12px; overflow-x: auto; }
.invite-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-toc a { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--bg-2, #181c2e); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.invite-toc a:hover { color: var(--text); border-color: var(--accent); }
.ts-table th, .ts-table td { font-size: 13px; }
.ts-table th { white-space: nowrap; }

/* ===== 3つの承諾(同意)UI — 3サイズで崩れず、タップ面を十分に取る ===== */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  min-height: 44px;
  transition: border-color .12s, background .12s;
}
.consent-row:hover { border-color: var(--accent); }
.consent-row:has(.consent-check:checked) {
  border-color: #06C755;
  background: rgba(6,199,85,0.06);
}
/* sm0005-v2 N-14 §1-9: :has() 非対応環境 (Firefox <121) 用 fallback。
   pages/invite/00-consent-init.js の delegated change listener が .consent-row に
   .checked class を toggle する。@supports not で :has() 対応環境では発火しない
   ため、対応ブラウザで rule が二重適用されて上書き競合になることは無い。 */
@supports not selector(:has(*)) {
  .consent-row.checked {
    border-color: #06C755;
    background: rgba(6,199,85,0.06);
  }
}
.consent-check {
  width: 24px; height: 24px;
  flex-shrink: 0;
  margin: 0;
  accent-color: #06C755;
  cursor: pointer;
}
.consent-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}
.consent-details { margin: -2px 0 10px 36px; }
.consent-details > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  padding: 6px 0;
  list-style: revert;
}
.consent-detail-body {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--bg-2, #181c2e);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
}
#ir-consent-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  .consent-text { font-size: 13.5px; }
  .consent-details { margin-left: 30px; }
}
