/* kgc.css — 範囲4（広告の枠）と範囲5（見た目・読みやすさ）。
   index.html のインライン style を直接書き換えず、後から読み込んで上書きする（他の担当が文章・結果欄を並行して直すため）。 */

/* ───────── 広告の枠（ページ下部に1か所） ───────── */
.kgc-ad { width: calc(100% - 32px); max-width: 760px; margin: 24px auto 0; padding: 12px 16px 20px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; }
.kgc-ad-label { display: inline-block; margin: 0 0 6px; padding: 2px 10px; font-size: 14px; font-weight: 700; line-height: 1.6; color: #334155; background: #e2e8f0; border-radius: 6px; }
.kgc-ad-desc { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: #334155; }
.kgc-ad-links { display: flex; flex-wrap: wrap; gap: 10px; }
.kgc-ad-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 24px; background: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; }
.kgc-ad-link-1 { border: 2px solid #0369a1; color: #0c4a6e; }
.kgc-ad-link-2 { border: 2px solid #be185d; color: #831843; }
.kgc-ad-link:focus-visible { outline: 3px solid #4338ca; outline-offset: 2px; }
@media (max-width: 480px) { .kgc-ad-link { flex: 1 1 100%; } }

/* ───────── 押しやすさ（44px以上） ───────── */
/* スキップリンクはフォーカスしたときだけ見せる */
a.sr-only[href="#main-content"]:not(:focus) { left: -9999px !important; }
a.sr-only[href="#main-content"]:focus { display: inline-flex !important; align-items: center; min-height: 44px; }
/* ヘッダー帯の「コラム」「ホーム」 */
.ad-disclosure + div > a[href="/blog/"], .ad-disclosure + div > a[href="/"] { display: inline-flex !important; align-items: center; min-height: 44px; min-width: 44px; }
/* パンくず */
nav[aria-label="パンくずリスト"] a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 6px; }
nav[aria-label="パンくずリスト"] ol > li { display: flex; align-items: center; }
/* 診断前の FAQ */
details > summary { min-height: 44px; padding: 12px 0; box-sizing: border-box; }
/* 法人相談、フッターのリンク */
a[href*="tech-and-brace.com"] { display: inline-flex !important; align-items: center; min-height: 44px; padding: 8px 18px !important; }
footer p > a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 6px; }
.btn, .toast { background: #047857; } /* 白文字との比を4.5以上に（#10b981 は約2.5） */

/* ───────── 文字の大きさ（14px以上） ───────── */
[style*="font-size:11px"], [style*="font-size: 11px"],
[style*="font-size:12px"], [style*="font-size: 12px"],
[style*="font-size:13px"], [style*="font-size: 13px"],
[style*="font-size:.78rem"], [style*="font-size:.8rem"], [style*="font-size:0.8rem"], [style*="font-size:.85rem"] { font-size: 14px !important; }
button { font-size: 14px; } /* ブラウザ既定の 13.3px を上げる（.btn・.option-btn は各クラスの大きさが勝つ） */
.site-header p, label, .badge, .score-bar-fill, .history-item,
.trust-badge, .trust-badge span { font-size: 14px !important; }
nav[aria-label="パンくずリスト"], nav[aria-label="パンくずリスト"] ol { font-size: 14px !important; }

/* ───────── 結果の色（低い結果でも赤を使わない） ───────── */
.score-fill-green { background: #047857; }
.score-fill-blue { background: #1d4ed8; }
.score-fill-yellow { background: #b45309; }
.score-fill-orange { background: #92400e; }
.score-fill-red { background: #4338ca; }

/* ───────── 同意バナーが最後の内容を隠さない ───────── */
body:has(#consent-banner-v2) footer { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }

/* ───────── PC でも最初の画面に「診断スタート」を出す（スマホの畳みと同じ考え） ───────── */
@media (min-width: 641px) {
  .site-header .emoji, .trust-badges-container, .c-fold { display: none !important; }
  #main-content > nav[aria-label="パンくずリスト"] { display: none !important; }
  #quiz-start > h2:first-child, #quiz-start > h2:first-child + p, #quiz-start > h2:first-child + p + ul, #quiz-start > h2:first-child + p + ul + div { display: none !important; }
}
