/* tool */
.hbm-note { font-size: 0.72rem; line-height: 1.5; color: #4b5563; margin: 4px 0 0; }
.hbm-note[data-code="health"] { font-size: 0.68rem; color: #6b7280; }

/* a11y */
/* --- 文字: 14px 未満を作らない(Tailwind の text-xs とテンプレートの小さい指定を上書き。装飾の絵文字だけ 12px まで) --- */
.text-xs, .text-\[10px\] { font-size: 0.875rem !important; line-height: 1.55 !important; }
[style*="font-size:0.5"], [style*="font-size:0.6"], [style*="font-size:0.7"], [style*="font-size:0.8"],
[style*="font-size:.5"], [style*="font-size:.6"], [style*="font-size:.7"], [style*="font-size:.8"],
[style*="font-size: 0.5"], [style*="font-size: 0.6"], [style*="font-size: 0.7"], [style*="font-size: 0.8"],
[style*="font-size:9px"], [style*="font-size:10px"], [style*="font-size:11px"], [style*="font-size:12px"], [style*="font-size:13px"],
[style*="font-size:11.5px"], [style*="font-size:12.5px"] { font-size: 0.875rem !important; }
.cost-badge, .hbm-badge, .hbm-note, .hbm-note[data-code="health"], .hbm-footer-note, .hbm-ad-sub { font-size: 0.875rem !important; }
.bottom-cta-bar .bar-text, .bottom-cta-bar .bar-text strong { font-size: 0.875rem !important; }
nav[aria-label="パンくずリスト"] { font-size: 0.875rem !important; }
#site-footer { font-size: 0.875rem !important; }
.dz .hrow em, .dz .band small, .dz-hd .logo small { font-size: 0.875rem; }
.text-gray-400, .text-gray-500 { color: #4b5563 !important; }
.text-amber-600 { color: #92400e !important; }
.text-green-600 { color: #166534 !important; }
.faq-body p { font-size: 0.9375rem !important; color: #4b5563 !important; }

/* --- 色: 文字と背景の比 4.5:1 以上 --- */
[style^="color:#9ca3af"], [style*=";color:#9ca3af"], [style*=" color:#9ca3af"],
[style^="color:#94a3b8"], [style*=";color:#94a3b8"], [style*=" color:#94a3b8"],
[style^="color:#a1a1aa"], [style*=";color:#a1a1aa"], [style*=" color:#a1a1aa"] { color: #4b5563 !important; }
button[onclick^="replaceHobbyCard"] { color: #4b5563 !important; border-color: #6b7280 !important; }
.hbm-percent, .gauge-num { color: #374151 !important; }
.gauge-caption { color: #374151 !important; }
a.amazon-btn, .hbm-ad-btn.amazon-btn { background: #b45309 !important; color: #fff !important; }
a.amazon-btn:hover { background: #92400e !important; }
[style*="background:#f59e0b"], [style*="background: #f59e0b"] { background: #b45309 !important; }
[style*="#f59e0b,#d97706"] { background: linear-gradient(135deg, #b45309, #92400e) !important; }
[style*="background:#6b7280"], .bottom-cta-bar .bar-btn { background: #4b5563 !important; }
button[onclick="copyPageResult()"], button[onclick*="shareLine"], button[onclick*="saveHobbyResult"], button[onclick*="downloadPDF"] { color: #fff; }
.hbm-ad-btn--a8 { background: #1e40af; color: #fff; }

[style^="color:#6b7280"], [style*=";color:#6b7280"], [style*=" color:#6b7280"] { color: #4b5563 !important; }
[style*="color:#e65100"] { color: #9a3412 !important; }
[style*="color:#d97706"] { color: #92400e !important; }
[style*="color:#059669"] { color: #047857 !important; }
[style*="background:#059669"] { background: #047857 !important; }
[style*="color:#16a34a"] { color: #166534 !important; }
[style*="background:#16a34a"] { background: #166534 !important; }
[style*="background:#ff9f1c"] { background: #b45309 !important; }
[style*="background:#e74c3c"] { background: #b91c1c !important; }
[style*="#7c3aed,#059669"] { background: linear-gradient(135deg, #6d28d9, #047857) !important; }
button[onclick="shareResult('line')"] { color: #047857 !important; }
.hbm-ad-notice { color: #78350f !important; }
.text-red-700, .text-orange-700 { color: #9a3412 !important; }

/* --- 押す所: 44px 以上、隣り合う間隔 8px 以上 --- */
button, [role="button"], select, input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
select { min-height: 44px !important; font-size: 1rem !important; }
.dz-hd .logo { min-height: 44px; display: inline-flex; align-items: center; }
.dz-hd nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav[aria-label="パンくずリスト"] { padding-top: 0 !important; padding-bottom: 0 !important; }
nav[aria-label="パンくずリスト"] a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
#site-footer a, #site-footer + * a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
#site-footer { line-height: 1.5; }
#site-footer a { color: #4b5563 !important; text-decoration: underline !important; }
li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
a#school-search-btn, a[href="#app"] { display: flex; align-items: center; justify-content: center; min-height: 44px; }
a[href="#app"]:not(.btn):not(.sr-only) { display: inline-flex; padding: 0 4px; }
.hbm-step-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 16px; margin: 0 8px 8px 0; border-radius: 8px; font-size: 0.9rem; font-weight: 700; color: #fff; text-decoration: none; }
.hbm-step-link--blue { background: #1d4ed8; }
.hbm-step-link--amber { background: #b45309; }
.hbm-step-link--violet { background: #6d28d9; }
.hbm-step-link:focus-visible { outline: 3px solid #1e1b4b; outline-offset: 2px; }
#result-screen .flex.gap-3 > button, #result-screen [data-ux="1"] { margin-bottom: 0; }
a[href="/privacy-policy.html"], a[href="privacy.html"], .text-center a.hover\:underline { display: inline-flex; align-items: center; min-height: 44px; margin: 0 4px; }
#related-blog a, .hbm-related a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }

/* --- 横にはみ出さない --- */
.hbm-ad-btn { box-sizing: border-box; max-width: 100%; }
#result-screen, #result-list, #result-list-extra { max-width: 100%; }
#result-screen canvas { max-width: 100%; height: auto; }

/* --- 同意バナー・固定の帯が結果の主ボタンを覆わない(--hbm-banner-h は hbm-a11y.js が測る。バナーの高さ+8px、無ければ 0) --- */
body { padding-bottom: var(--hbm-banner-h, 0px); }
@media (max-width: 480px) { body { padding-bottom: calc(64px + var(--hbm-banner-h, 0px)); } }
@media (max-width: 768px) { body #restart-btn { bottom: calc(var(--hbm-banner-h, 0px) + 72px) !important; } }
body #restart-btn { scroll-margin-bottom: calc(var(--hbm-banner-h, 0px) + 80px); }
#result-type-label:focus, #question-text:focus { outline: none; }
#result-type-label:focus-visible, #question-text:focus-visible { outline: 3px solid #7c3aed; outline-offset: 2px; }

/* --- トップの設問見本: 押せそうに見せない --- */
.dz .mock { pointer-events: none; user-select: none; box-shadow: none; background: #f8fafc; border: 1px dashed #94a3b8; }
.dz .mock .tag { font-size: 1.05rem; font-weight: 800; background: #fef3c7; color: #78350f; border-color: #b45309; padding: 4px 14px; }
.dz .mock .opt, .dz .mock .opt.on { background: #f1f5f9; border-color: #cbd5e1; font-weight: 400; color: #334155; }
.dz .mock .opt::before, .dz .mock .opt.on::before { border-color: #94a3b8; background: transparent; box-shadow: none; }
.dz .mock .nav2 span { border-color: #cbd5e1; color: #475569; font-weight: 400; }

/* ads */
.hbm-pr { display: inline-block; flex: none; align-self: flex-start; font-size: 14px; font-weight: 700; line-height: 1.2; padding: 2px 8px; border-radius: 6px; background: #fef3c7; color: #78350f; border: 1px solid #b45309; }
.hbm-ad-row { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 8px; }
.hbm-ad-row--inline { align-items: center; }
.hbm-ad-btn { font-size: 0.9rem; line-height: 1.4; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; }
.hbm-ad-btn.amazon-btn { width: 100%; }
.hbm-ad-btn--a8 { background: #1e40af; color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; text-decoration: none; }
.hbm-ad-sub { display: block; font-size: 0.875rem; opacity: 0.95; }
.hbm-ad-notice { font-size: 0.9rem; }
.hbm-ads { max-width: 640px; margin: 24px auto; padding: 16px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; }
.hbm-ads h2 { font-size: 1.05rem; font-weight: 800; color: #1e293b; margin: 0 0 8px; }
.hbm-ads-note { font-size: 0.9rem; line-height: 1.7; color: #334155; margin: 0 0 12px; }
.hbm-ads-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hbm-ad-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; }
.hbm-ad-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hbm-ad-cat { font-size: 0.9rem; font-weight: 700; color: #1e293b; }
.hbm-ad-link { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; background: #1e40af; color: #fff; font-size: 0.95rem; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
.hbm-ad-link:focus-visible, .hbm-ad-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.hbm-footer-note { margin: 0 0 4px; font-size: 12px; color: #4b5563; }
