/* 相性診断ツールの追加スタイル。節ごとに担当が決まっている(RLC-01 分割表)。既存のスタイルは index.html の <style> にある。 */

/* ==== tool(範囲1: 結果の表示) ==== */

#r-sum { text-align: left; margin-bottom: 20px; }
#r-sum .sum-heading { font-size: 15px; font-weight: 700; color: #374151; margin-bottom: 8px; }
#r-scale { font-size: 14px; line-height: 1.8; color: #4b5563; margin-bottom: 10px; }
#r-legend { font-size: 14px; color: #4b5563; margin-bottom: 12px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
#r-sum-total { font-size: 15px; font-weight: 700; color: #374151; margin-top: 12px; padding: 10px 12px; background: #f3f4f6; border-radius: 8px; text-align: right; }
#r-soft { font-size: 14px; line-height: 1.7; color: #4b5563; margin: 4px 0 6px; }
#r-note { font-size: 14px; color: #4b5563; margin-bottom: 4px; }
#r-head.is-low #r-score { font-size: 1.5rem; font-weight: 700; color: #4b5563 !important; }
#r-talk { text-align: left; margin-bottom: 20px; padding: 14px; background: #f9fafb; border-radius: 10px; border: 1px solid #e5e7eb; }
#r-talk .talk-heading { font-size: 15px; font-weight: 700; color: #374151; margin-bottom: 6px; }
#r-talk p { font-size: 14px; line-height: 1.8; color: #374151; margin: 0 0 8px; }
#r-talk .talk-line { padding-left: 10px; border-left: 3px solid #d1d5db; }
#r-talk p:last-child { margin-bottom: 0; }

/* ==== notes(範囲2: 注意書き・プライバシー表記) ==== */
.notice-box { background: #fffbeb; border: 2px solid #f59e0b; border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; color: #78350f; font-size: 14px; line-height: 1.8; text-align: left; }
.notice-box p { margin: 0; font-size: 14px; }
.notice-box .notice-title { font-weight: 700; margin-bottom: 4px; }
.notice-privacy { background: #f0f4ff; border-color: #a5b4fc; color: #1e3a8a; }
#disclaimer-result { background: #fffbeb; border: 1px solid #fbbf24; border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; color: #78350f; font-size: 14px; line-height: 1.8; text-align: left; }

/* ==== ads(範囲4: 広告の整理・PR表示) ==== */

[hidden] { display: none !important; }
.ad-pr { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border: 1px solid #c2410c; border-radius: 4px; font-size: 14px; font-weight: 700; color: #9a3412; background: #fff; }
#sponsor-block .ad-heading { text-align: center; font-size: 14px; font-weight: 700; color: #475569; margin: 0 0 4px; }
#sponsor-block .ad-note { text-align: center; font-size: 14px; line-height: 1.6; color: #475569; margin: 0 0 10px; }

/* ==== a11y(範囲3: 見た目・アクセシビリティ) ==== */

/* 補助リンク(ホーム・コラム・パンくず・政府系リンク・フッター・広告のリンク)はタップしやすい大きさにする */
.tap { display: inline-flex !important; align-items: center; min-height: 44px; min-width: 44px; box-sizing: border-box; }
.tap.tap { white-space: normal; }
#nav-bar > div { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
#nav-bar a.tap { margin-right: 0 !important; padding: 0 10px; }
nav[aria-label="パンくずリスト"] a.tap { padding: 0 4px; }
#sponsor-block a.tap { padding-top: 8px !important; padding-bottom: 8px !important; line-height: 1.5; }
footer p a.tap { padding: 0 8px; }
footer a.tap[href*="tech-and-brace"] { justify-content: center; }
li > a.tap { padding: 0 2px; }
button, select, input, textarea { font-size: 14px; }
select, input, textarea { font-size: 16px !important; }
button, .btn, .btn-outline { min-height: 44px; }

/* 同意バナー(共有の consent-mode.js は変えず、ページ側の CSS で当てる) */
#consent-banner-v2 { font-size: 14px !important; }
#consent-banner-v2 a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 14px; padding: 0 4px; }
/* バナーが出ている間は、末尾のコンテンツがバナーに隠れないよう下に余白を取る(閉じれば消える) */
body:has(#consent-banner-v2) { padding-bottom: 160px; }
