/* ===== core(S1) ===== */
.hca-hero{padding:16px 0 12px}
.hca-hero .hc-hero-inner{gap:24px}
.hca-hero .hc-hero-h1{font-size:1.45rem;line-height:1.4;margin-bottom:10px}
.hca-hero .hc-hero-tag{margin-bottom:10px}
.hca-hero .hc-hero-sub{font-size:1rem;line-height:1.7;letter-spacing:0;margin-bottom:10px;max-width:none}
.hca-hero-note{font-size:14px;line-height:1.6;margin:0;padding:8px 12px;border-radius:10px;background:rgba(0,0,0,.2);color:#fff}
@media (min-width:768px){.hca-hero{padding:24px 0 20px}.hca-hero .hc-hero-h1{font-size:2rem}.hca-hero-note{max-width:480px}.hca-hero .hc-hero-photo{height:220px}}
@media (max-width:767px){.hca-hero-photo{display:none}.hca-hero .hc-hero-img-wrap{display:none}}

#quiz-start.hca-start-card{margin-bottom:24px;text-align:center}
.hca-start-meta{font-size:14px;color:#555;margin:10px 0 0}
#hca-start{min-height:56px;font-size:1.1rem}

.hca-quiz{margin-bottom:24px}
.hca-q-count{font-size:14px;font-weight:600;color:#a03a58;margin:0 0 6px}
.hca-q-bar{height:8px;background:#f0d0d8;border-radius:4px;margin-bottom:16px;overflow:hidden}
.hca-q-bar-fill{display:block;height:100%;background:#a03a58;border-radius:4px;transition:width .3s}
.hca-q-text{font-size:1.1rem;font-weight:700;line-height:1.5;margin:0 0 10px;color:#1a1a1a;scroll-margin-top:120px}
.hca-q-text:focus{outline:none}
.hca-q-guide{margin:0 0 14px;font-size:15px;color:#333}
.hca-q-guide summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#a03a58;font-weight:600}
.hca-q-guide p{margin:0 0 8px;line-height:1.7}
#q-options .quiz-opt{display:block;width:100%;min-height:48px;padding:12px 16px;margin-bottom:10px;border:2px solid #e5c8d1;border-radius:12px;background:#fff;color:#1a1a1a;font-size:16px;line-height:1.5;text-align:left;font-family:inherit}
#q-options .quiz-opt[aria-pressed="true"]{border-color:#a03a58;background:#fce7ed;font-weight:600}
.hca-q-nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.hca-btn-sub{background:#fff;color:#8b2d43;border:2px solid #c4607a;border-radius:10px;padding:10px 16px;min-height:48px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit}
.hca-q-nav .hca-btn-sub{flex:1 1 140px}
.hca-q-nav .hca-btn-sub[hidden]{display:none}
.hca-btn-link{background:none;border:0;padding:10px 4px;min-height:44px;color:#8b2d43;font-size:15px;text-decoration:underline;cursor:pointer;font-family:inherit}
.hca-q-foot{margin-top:14px;border-top:1px solid #f0d0d8;padding-top:6px}
.hca-q-saved{font-size:14px;color:#555;margin:0;line-height:1.6}

.hca-status{font-size:15px;color:#333;margin:0 0 16px;min-height:1px}
.hca-status:empty{display:none}
.hca-result .card{padding:20px}
.hca-r-heading{font-size:1.2rem;line-height:1.5;font-weight:700;color:#8b2d43;margin:0 0 10px;scroll-margin-top:120px}
.hca-r-heading:focus{outline:none}
.hca-r-lead{font-size:15px;line-height:1.7;color:#333;margin:0 0 10px}
.hca-r-reasons{margin:0 0 14px 1.2em;padding:0;font-size:15px;line-height:1.7;color:#333}
.hca-cand{display:flex;gap:14px;align-items:flex-start;border:2px solid #f0d0d8;border-radius:14px;padding:14px;margin-bottom:12px;background:#fff}
.hca-cand-safer{background:#faf7f8}
.hca-swatch{flex:0 0 56px;width:56px;height:56px;border-radius:10px;border:1px solid rgba(0,0,0,.2);display:inline-block}
.hca-swatch-sm{flex:0 0 28px;width:28px;height:28px;border-radius:6px}
.hca-cand-body{min-width:0}
.hca-cand-body p{margin:0 0 4px;font-size:15px;line-height:1.6;color:#333}
.hca-cand-label{font-size:14px!important;font-weight:600;color:#8b2d43!important}
.hca-cand-name{font-size:1.1rem;font-weight:700;margin:0 0 4px;color:#1a1a1a}
.hca-notes{border:2px solid #d9a441;background:#fff8e8;border-radius:12px;padding:12px 14px;margin:14px 0}
.hca-notes-title{font-size:15px;font-weight:700;color:#5c3d00;margin:0 0 6px}
.hca-notes ul{margin:0 0 0 1.2em;padding:0}
.hca-notes li{font-size:15px;line-height:1.7;color:#2b2b2b;margin-bottom:6px}
.hca-palette{margin:12px 0;border:1px solid #f0d0d8;border-radius:12px;padding:0 14px}
.hca-palette>summary{cursor:pointer;min-height:48px;display:flex;align-items:center;font-weight:600;color:#8b2d43;font-size:15px}
.hca-season{margin:0 0 16px}
.hca-season-title{font-size:1rem;font-weight:700;margin:0 0 8px;color:#1a1a1a}
.hca-season-colors{list-style:none;margin:0 0 10px;padding:0}
.hca-season-colors li{display:flex;align-items:center;gap:10px;margin-bottom:6px;font-size:15px}
.hca-season-photos{display:flex;gap:8px;margin-bottom:8px}
.hca-season-photos img{width:calc(50% - 4px);height:auto;border-radius:10px;object-fit:cover;aspect-ratio:4/3}
.hca-makeup summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:15px;color:#8b2d43}
.hca-makeup p{margin:0 0 8px;font-size:15px;line-height:1.7}
.hca-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:16px}
.hca-actions .btn,.hca-actions a.btn{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-size:15px;min-height:48px}
.hca-actions .hca-btn-sub{background:#fff;color:#8b2d43;border:2px solid #c4607a}
@media (min-width:768px){.hca-actions{grid-template-columns:1fr 1fr}}

.hca-next{margin:16px 0 24px;padding:18px;border:2px solid #cfe3f0;border-radius:14px;background:#f4faff}
.hca-next[hidden]{display:none}
.hca-next h3{font-size:1.05rem;margin:0 0 12px;color:#0c4a6e}
.hca-next-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:768px){.hca-next-grid{grid-template-columns:1fr 1fr}}
.hca-next-item{background:#fff;border-radius:10px;padding:14px}
.hca-next-item p{margin:0 0 8px;font-size:15px;line-height:1.7;color:#333}
.hca-next-title{font-weight:700;color:#0c4a6e!important}
.hca-next-item a{display:inline-flex;align-items:center;min-height:44px;color:#0b5a8a;font-size:15px;font-weight:600}

/* ===== text(S2) ===== */

/* ===== ads(S4) ===== */
.hca-ads{max-width:700px;margin:24px auto;padding:20px 16px;background:#fff;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;color:#374151}
.hca-ads[hidden]{display:none}
.hca-ads-title{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:1rem;font-weight:700;color:#374151}
.hca-ads-pr{display:inline-block;padding:2px 8px;border:1px solid #374151;border-radius:4px;font-size:14px;font-weight:700;line-height:1.4;color:#374151;background:#fff}
.hca-ads-note{margin:0 0 14px;font-size:14px;line-height:1.7;color:#4b5563}
.hca-ads-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.hca-ads-item{margin:0;padding:12px 14px;border:1px solid #d1d5db;border-radius:10px;background:#fff}
.hca-ads-desc{margin:0 0 10px;font-size:14px;line-height:1.7;color:#374151}
.hca-ads-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 16px;border-radius:8px;background:#374151;color:#fff;font-size:15px;font-weight:700;line-height:1.4;text-align:center;text-decoration:none}
.hca-ads-link:hover,.hca-ads-link:focus-visible{background:#1f2937}

/* ===== a11y(S3) ===== */

/* 文字は 14px 以上(.note・small は 13px まで)。インライン style の小さい値を引き上げる */
html body [style*="font-size:.85rem"],
html body [style*="font-size:.8rem"],
html body [style*="font-size:0.8rem"],
html body [style*="font-size:.87rem"],
html body [style*="font-size:.83rem"],
html body [style*="font-size:.75rem"],
html body [style*="font-size:.78rem"],
html body [style*="font-size:.72rem"],
html body [style*="font-size:.68rem"],
html body [style*="font-size:.84rem"],
html body [style*="font-size:.82rem"],
html body [style*="font-size:.7rem"],
html body [style*="font-size:.67rem"],
html body [style*="font-size:.66rem"],
html body [style*="font-size:11px"],
html body [style*="font-size:12px"],
html body [style*="font-size:13px"],
html body [style*="font-size: 12px"],
html body [style*="font-size: 13px"]{font-size:14px!important;line-height:1.7}
html body .note,html body small{font-size:13px!important}
html body .hc-header .hc-nav-mobile a,html body .hc-header .hc-nav a{font-size:14px!important}
html body .hc-hero-tag,html body .hc-sec-sub,html body .hc-point-title,html body .hc-point-desc,html body .hc-step-desc,html body .hc-more-desc,
html body .hc-season-tag,html body .hc-season-en,html body .hc-season-color-item,html body nav ol li,html body nav ol li a,html body nav a,html body nav span,
html body footer p,html body footer a,html body footer div{font-size:14px!important}
html body .hc-header .hc-nav-mobile a{padding:12px 4px!important;min-height:44px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}

/* タップ対象は 44px 以上(文中のリンクを除く) */
.hc-header a.hc-logo{display:inline-flex;align-items:center;min-height:44px}
nav a,.container>nav ol li a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
main .card div>a:only-child,main .card>a:only-child,a[style*="padding:6px 0"]{display:flex;align-items:center;min-height:44px;box-sizing:border-box}
footer a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
.hca-btn-link,.hca-btn-sub,.hca-actions .btn{min-height:48px}

/* コントラスト */
.hca-hero-note{background:#4a1f2c;color:#fff}
.hca-start-meta,.hca-q-saved{color:#4a4a4a}
.btn:not(.hca-btn-sub){background:#a03a58;background-image:none;color:#fff}
.btn:not(.hca-btn-sub):hover,.btn:not(.hca-btn-sub):focus-visible{background:#8b2d43;color:#fff;opacity:1}
#quiz-start .btn{background:#a03a58;background-image:none}
:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.hca-q-text,.hca-r-heading,#result,#result-heading{scroll-margin-top:156px}
@media (min-width:768px){.hca-q-text,.hca-r-heading,#result,#result-heading{scroll-margin-top:100px}}

/* 動きを減らす設定 */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;scroll-behavior:auto!important}
}

/* 印刷: 注意と結果は残し、ヘッダー・広告・ボタンは隠す */
@media print{
  .hc-header,.hca-ads,#ads-block,#result-actions,#consent-banner-v2,#q-restart,#q-back,#q-next{display:none!important}
  #result,#safety-notes{display:block!important;visibility:visible!important}
}

/* 最初の画面に診断ボタンを収める(スマホ。同意バナーの上に出す) */
@media (max-width:767px){
  nav[aria-label="パンくずリスト"]:first-of-type{display:none}
  .hca-hero{padding:10px 0 8px}
  .hca-hero .hc-hero-h1{margin-bottom:6px}
  .hca-hero .hc-hero-sub{line-height:1.55;margin-bottom:8px}
  .hca-hero-note{padding:6px 10px;line-height:1.5}
}
