/* consent.css — 健康チェックのアプリ内同意（クリック同意）オーバーレイ
   追加専用（tutorial.css と同じ流儀）。凍結スタイル（portal.css）は一切変更しない。既存要素の上に重ねるだけ。
   設計: docs/健康チェック_アプリ内同意_実装計画_v0.1.md §4。ブランド配色: 紺 #1F3A93 / 赤 #D21B1B。 */

#consent-ov { position: fixed; inset: 0; z-index: 100200; display: none; }
#consent-ov.on { display: block; }

#consent-dim { position: fixed; inset: 0; background: rgba(15, 23, 42, .62); }

#consent-card {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  box-sizing: border-box; z-index: 100201;
  width: calc(100vw - 32px); max-width: 460px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: #fff; color: #0f172a; border-radius: 16px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .4); overflow: hidden;
  font-family: 'Noto Sans JP', system-ui, sans-serif;
}
#consent-card .c-hd { padding: 16px 18px 8px; }
#consent-card .c-t { font-weight: 900; font-size: 17px; color: #1F3A93; margin: 0; }
#consent-card .c-body { padding: 4px 18px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }

#consent-card .c-points { margin: 8px 0 4px; padding: 0; list-style: none; }
#consent-card .c-points li { position: relative; padding: 0 0 8px 20px; font-size: 14px; line-height: 1.6; }
#consent-card .c-points li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: #1F3A93; }

#consent-card .c-more { background: transparent; border: 0; color: #1F3A93; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 0; text-decoration: underline; font-family: inherit; }
#consent-card .c-full { margin: 4px 0 0; border-top: 1px solid #e2e8f0; padding-top: 8px; }
#consent-card .c-full p { font-size: 13px; line-height: 1.7; margin: 0 0 10px; color: #334155; }
#consent-card .c-full[hidden] { display: none; }

#consent-card .c-agree-line { font-size: 13px; line-height: 1.6; color: #0f172a; background: #f1f5f9; border-radius: 10px; padding: 10px 12px; margin: 6px 0 0; }

#consent-card .c-ft { padding: 12px 18px 16px; border-top: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 8px; }
#consent-card .c-btn { border: 0; border-radius: 12px; padding: 13px 16px; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; width: 100%; }
#consent-card .c-btn.agree { background: #1F3A93; color: #fff; }
#consent-card .c-btn.decline { background: #eef2f7; color: #1F3A93; }
#consent-card .c-btn:active { transform: scale(.98); }
#consent-card .c-btn[disabled] { opacity: .55; cursor: default; }

#consent-card .c-note { font-size: 13px; line-height: 1.65; color: #334155; margin: 0; }
#consent-card .c-err { font-size: 13px; color: #D21B1B; margin: 0 0 4px; }

/* 「同意を取り消す」導線（健康チェック画面のときだけ出す小さなフローティングリンク。
   凍結DOM（#main）には一切足さない＝body にフロートさせる。tutorial の「？ガイド」(右下)と衝突しないよう左下）。 */
#consent-withdraw {
  position: fixed; left: 14px; bottom: 14px; z-index: 99997; display: none;
  background: rgba(255, 255, 255, .94); border: 1px solid #e2e8f0; border-radius: 18px;
  color: #64748b; font-size: 13px; cursor: pointer; padding: 8px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  font-family: 'Noto Sans JP', system-ui, sans-serif;
}
#consent-withdraw.on { display: inline-block; }
#consent-withdraw:active { transform: scale(.97); }

@media (max-width: 480px) { #consent-card { max-width: none; } }
