/* 愛の言語診断: 追加のスタイル。担当ごとに節を分ける。 */

/* result ids: index.html の [id*=result] の飾り(左の線・余白)を、結果カードの中の新しい id には当てない */
#result-headline, #result-body, #result-tie, #result-second, #result-main-desc, #result-scores, #result-prev {
  border-left: 0;
  padding-left: 0;
  margin-top: 0;
}
#result-scores { margin-top: 16px; }
#result-prev { margin-top: 12px; }

/* a11y */
/* 固定ヘッダー(64px)に着地先が隠れないようにする。同意バナーの高さは llq-a11y.js が --llq-banner-h に入れる */
html { scroll-padding-top: 80px; }
body { padding-bottom: var(--llq-banner-h, 0px); }
#result-headline, #compare-heading, #quiz-question { scroll-margin-top: 80px; }
#result-headline:focus, #compare-heading:focus, #quiz-question:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #9D174D; outline-offset: 2px; }

/* 文字は14px以上(同意バナー・著作表示を除く)。index.html のインラインの値は書き換えず、ここで引き上げる */
[style*="font-size:8px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size: 8px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:9px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size: 9px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:10px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size: 10px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:11px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size: 11px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:12px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size: 12px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:13px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size: 13px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:12.5px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size: 12.5px"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:.78rem"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:0.78rem"]:not(#consent-banner-v2):not(#consent-banner-v2 *),
[style*="font-size:0.68rem"]:not(#consent-banner-v2):not(#consent-banner-v2 *) { font-size: 14px !important; }
html body .badge, html body .dhero-benefit-sub, html body .dhero-benefit-title, html body .dhero-stars,
html body .dphone-opt, html body .dphone-q, html body .dphone-qnum, html body .dphone-title, html body .guide-btn,
html body .input-wrap .char-counter, html body .input-wrap .input-error-msg, html body .partner-banner,
html body .quiz-type-chip, html body .quiz-type-guide-label, html body .result-sub,
html body .tg-item, html body .tg-item .tg-key, html body .type-guide-toggle, html body label { font-size: 14px; }
html body .dhero-badge, html body .dhero-stars span, html body .dhero-stars > div span:last-child,
html body .dhero-tag, html body .dhero-tags .dhero-tag:first-child, html body .dhero-sub, html body .dnav-logo,
html body .guide-body, html body .guide-body strong, html body #results-preview > div { font-size: 14px !important; }

/* コントラスト(本文 4.5:1・大きい文字 3:1 以上)。ブランドのピンク #E91E8C(白地で 4.2:1)は、文字と白文字のボタンの背景では #BE185D(6.0:1)に寄せる */
:root { --pr: #BE185D; }
[style*=";color:#E91E8C" i], [style*=" color:#E91E8C" i], [style^="color:#E91E8C" i],
.quiz-type-guide-label, .quiz-type-chip, .type-guide-toggle, .tg-item .tg-key, .dhero-benefit-title { color: #BE185D !important; }
[style*=";color:#9ca3af" i], [style*=" color:#9ca3af" i], [style^="color:#9ca3af" i], [style*=";color:#FFD0E8" i],
.result-sub, .input-wrap .char-counter { color: #4b5563 !important; }
[style*=";color:#999" i], [style*=" color:#999" i], .dhero-benefit-sub { color: #595959 !important; }
[style*=";color:#D97706" i], [style*=";color:#e65100" i] { color: #92400E !important; }
[style*=";color:#0284C7" i], [style*=" color:#0284C7" i] { color: #0369A1 !important; }
[style*=";color:#10b981" i], [style*=" color:#10b981" i] { color: #047857 !important; }
.btn { background-color: #BE185D; }
a.sr-only { background: #BE185D !important; }
[style*="background:#0284C7" i], [style*="background: #0284C7" i] { background: #0369A1 !important; }
[style*="background:#E91E8C" i] { background: #BE185D !important; }
[style*="background:#1DA1F2" i] { background: #0B6FA8 !important; }
[style*="background:#00B900" i] { background: #067D02 !important; }
[style*="linear-gradient(135deg,#C2105E,#E91E8C)" i] { background: linear-gradient(135deg, #A8104F, #BE185D) !important; }
[style*="linear-gradient(135deg,#E91E8C,#FF6BAC)" i], [style*="linear-gradient(135deg,#E91E8C,#FF4FB0)" i] { background: linear-gradient(135deg, #BE185D, #9D174D) !important; }
[style*="linear-gradient(135deg,#0284c7,#0369a1)" i] { background: linear-gradient(135deg, #0369A1, #075985) !important; }
footer [style*="linear-gradient(135deg,#1e3a5f,#2563eb)" i] { background: #1e3a5f !important; }

/* 横あふれなし: グラフは枠の幅に収める */
#result-scores canvas, #result-chart { max-width: 100%; }

/* タップ対象は44px以上(文中のリンクを除く) */
.dnav-logo { min-height: 44px; }
.dnav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
nav[aria-label="パンくずリスト"] { padding-top: 0 !important; padding-bottom: 0 !important; }
nav[aria-label="パンくずリスト"] a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
footer a { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; }
.sr-only:focus { clip: auto !important; width: auto !important; height: auto !important; min-width: 44px; min-height: 44px; overflow: visible !important; margin: 0 !important; display: inline-flex; align-items: center; padding: 8px 16px !important; background: #BE185D !important; color: #fff !important; }
.type-guide-toggle, .guide-btn { min-height: 44px; }

/* PC(641px以上)でもヒーローを畳み、開始ボタンを最初の画面に入れる(スマホは index.html の c-hero-fit が同じことをしている)。「診断する →」は残す */
@media (min-width: 641px) {
  .dhero { padding: 20px 24px 16px; }
  .dhero-inner { grid-template-columns: 1fr; }
  .dhero .dhero-badge, .dhero .dhero-tags, .dhero .dhero-visual, .hero-transition { display: none !important; }
  .dhero h1 { font-size: 24px !important; margin-bottom: 6px !important; }
  .dhero .dhero-sub { margin-bottom: 8px !important; }
  .dhero .btn-primary-cta { min-height: 56px !important; padding: 12px 32px !important; font-size: 18px !important; }
  .dhero .dhero-inner > div > div[style*="margin-top:24px"] { margin-top: 10px !important; }
  #start-screen > div:first-child { display: none !important; }
  #start-screen { display: flex; flex-direction: column; }
  #start-screen > div:nth-child(2) { order: 1; }
  #start-screen > div:nth-child(3) ~ * { order: 2; }
}

/* 幅400px以下: 文字とタップ対象を大きくした分、開始ボタンが同意バナーの下に潜らないよう、飾りの余白を詰める */
@media (max-width: 400px) {
  .ad-disclosure { padding-top: 2px; padding-bottom: 2px; }
  .dhero { padding-top: 10px !important; padding-bottom: 8px !important; }
  #start-screen { padding: 12px; }
  #name-progress { display: none !important; }
}

/* 動きを減らす設定では、光って脈打つ開始ボタンなどの動きを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ads */
.llq-ads{max-width:760px;margin:24px auto;padding:16px;background:#fff;color:#1f2937;border:1px solid #cbd5e1;border-radius:12px;box-sizing:border-box}
.llq-ads-title{margin:0 0 6px;font-size:16px;line-height:1.5;font-weight:700;color:#1f2937}
.llq-ads-pr{display:inline-block;padding:2px 8px;border:1px solid #475569;border-radius:4px;background:#fff;color:#334155;font-size:14px;line-height:1.3;font-weight:700;letter-spacing:.08em}
.llq-ads-lead{margin:0 0 12px;font-size:14px;line-height:1.7;color:#334155}
.llq-ads-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.llq-ads-kind{margin:0 0 6px;font-size:14px;line-height:1.5;color:#334155}
.llq-ads-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;padding:10px 16px;background:#fff;color:#1e3a8a;border:2px solid #1e3a8a;border-radius:10px;font-size:15px;font-weight:700;line-height:1.5;text-align:center;text-decoration:none}
.llq-ads-link:hover,.llq-ads-link:focus-visible{background:#eff6ff}
