/* 介護離職防止の取り組み診断（2026-11-12）。build.cjs が shindan/shindan.css に写す。色は style.css の変数（--color-primary など）を使う */
.sd { background: #fff; word-break: auto-phrase; }
.sd-nw { white-space: nowrap; }
/* 下の帯（結果を見る）と「TOP」のボタンが重ならないように */
body:has(.sd-submit) .to-top { bottom: 88px; }
.sd-container { max-width: 880px; margin: 0 auto; }

/* 頭 */
.sd-hero { position: relative; overflow: hidden; padding: calc(var(--header-height, 72px) + 28px) 0 56px; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, rgba(74, 144, 217, .55) 0%, rgba(74, 144, 217, 0) 55%), linear-gradient(135deg, #082a66 0%, #0b3d91 55%, #1e5bb8 100%); }
.sd-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 18px 18px; }
.sd-hero__inner { position: relative; z-index: 1; max-width: 880px; }
.sd-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 12px; }
.sd-breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.sd-breadcrumb a, .sd-breadcrumb li { color: rgba(255, 255, 255, .85); text-decoration: none; }
.sd-hero__label { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.sd-hero__title { margin: 0 0 14px; font-size: clamp(28px, 5vw, 42px); font-weight: 700; line-height: 1.3; letter-spacing: .02em; }
.sd-hero__lead { max-width: 720px; margin: 0 0 26px; font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, .92); }
.sd-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin: 0 0 28px; padding: 0; list-style: none; }
.sd-hero__facts li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.sd-hero__fact-num { font-family: "Inter", sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
.sd-hero__fact-unit { font-size: 15px; font-weight: 700; }
.sd-hero__fact-text { grid-column: 1 / -1; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.sd-hero__actions { margin: 0; }
.sd-hero .sd-start { background: #fff; color: var(--color-primary); border-color: #fff; }
.sd-hero .sd-start:hover { background: #eaf2fd; }

/* 設問 */
.sd-quiz { padding: 48px 0 24px; background: var(--color-bg-alt); }
#sd-quiz, #sd-result, .sd-q { scroll-margin-top: calc(var(--header-height, 72px) + 16px); }
.sd-form__note { margin: 0 0 20px; font-size: 14px; color: var(--color-text-light); }
.sd-area { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.sd-area__head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; width: 100%; margin: 0 0 12px; padding: 0; }
.sd-area__no { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--color-primary); color: #fff; font-family: "Inter", sans-serif; font-size: 18px; font-weight: 700; }
.sd-area__name { font-size: 18px; font-weight: 700; color: var(--color-text); }
.sd-area__lead { font-size: 13px; color: var(--color-text-light); }
.sd-q { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 14px; align-items: center; margin: 0 0 10px; padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(11, 61, 145, .06), inset 0 0 0 1px var(--color-border); transition: box-shadow .2s; }
.sd-q.is-answered { box-shadow: 0 1px 2px rgba(11, 61, 145, .06), inset 0 0 0 1px #9dbbe6; }
.sd-q__num { min-width: 2.2em; margin: 0; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700; color: var(--color-primary-light); }
.sd-q__text { margin: 0; font-size: 15px; line-height: 1.75; color: var(--color-text); }
.sd-q__choices { display: flex; gap: 8px; }
.sd-choice { position: relative; cursor: pointer; }
.sd-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; clip: rect(0 0 0 0); }
.sd-choice span { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--color-border); background: #fff; font-size: 15px; font-weight: 600; color: var(--color-text-light); transition: background .15s, border-color .15s, color .15s; }
.sd-choice:hover span { border-color: var(--color-accent); }
.sd-choice input:focus-visible + span { outline: 3px solid rgba(74, 144, 217, .45); outline-offset: 2px; }
.sd-choice input[value="1"]:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.sd-choice input[value="0"]:checked + span { background: #5b6b80; border-color: #5b6b80; color: #fff; }
.sd-submit { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 8px -16px 0; padding: 14px 16px; background: rgba(242, 246, 251, .96); backdrop-filter: blur(4px); border-top: 1px solid var(--color-border); }
.sd-progress { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--color-text-light); }
.sd-progress__bar { position: relative; width: 160px; height: 8px; border-radius: 999px; background: #d5e1f1; overflow: hidden; }
.sd-progress__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent)); transition: width .25s; }
.sd-submit__msg { flex-basis: 100%; order: 3; margin: 0; font-size: 13px; color: #b3261e; }

/* 結果 */
.sd-result { padding: 48px 0 40px; }
.sd-result__label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--color-primary-light); }
.sd-score { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: center; padding: 24px 28px; border-radius: 16px; background: linear-gradient(135deg, #f4f8fe 0%, #e8f0fb 100%); box-shadow: inset 0 0 0 1px var(--color-border); }
.sd-score__num { margin: 0; font-family: "Inter", sans-serif; font-size: 64px; font-weight: 700; line-height: 1; color: var(--color-primary); }
.sd-score__unit { margin-left: 4px; font-size: 18px; font-weight: 600; color: var(--color-text-light); }
.sd-score__level { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--color-text); }
.sd-score__badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; font-family: "Inter", sans-serif; font-size: 18px; color: #fff; background: var(--color-primary); }
.sd-score__badge--A { background: #1f7a4d; }
.sd-score__badge--B { background: #1e5bb8; }
.sd-score__badge--C { background: #c46a12; }
.sd-score__text { margin: 0; font-size: 15px; line-height: 1.8; color: var(--color-text); }
.sd-lawnote { margin: 16px 0 0; padding: 14px 18px; border-left: 4px solid #c46a12; border-radius: 0 10px 10px 0; background: #fff6ec; font-size: 14.5px; line-height: 1.8; color: #5c3305; }
.sd-areas { display: grid; gap: 10px; margin: 20px 0 0; }
.sd-areabar { display: grid; grid-template-columns: 200px 1fr 56px; gap: 12px; align-items: center; }
.sd-areabar p { margin: 0; }
.sd-areabar__name { font-size: 14px; font-weight: 600; color: var(--color-text); }
.sd-areabar__track { position: relative; height: 12px; border-radius: 999px; background: #e3ebf6; overflow: hidden; }
.sd-areabar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); }
.sd-areabar__num { font-family: "Inter", sans-serif; font-size: 14px; font-weight: 700; color: var(--color-primary); text-align: right; }
.sd-result__h { margin: 36px 0 6px; font-size: 22px; font-weight: 700; color: var(--color-text); }
.sd-result__sub { margin: 0 0 16px; font-size: 14px; color: var(--color-text-light); }
.sd-next { margin: 0; padding: 0; list-style: none; counter-reset: sdnext; }
.sd-next__item { position: relative; margin: 0 0 12px; padding: 18px 20px 18px 64px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--color-border); counter-increment: sdnext; }
.sd-next__item::before { content: counter(sdnext); position: absolute; left: 18px; top: 18px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--color-primary); color: #fff; font-family: "Inter", sans-serif; font-weight: 700; }
.sd-next__title { margin: 4px 0 6px; font-size: 16px; font-weight: 700; color: var(--color-text); }
.sd-next__text { margin: 0 0 8px; font-size: 14.5px; line-height: 1.8; color: var(--color-text); }
.sd-next__links { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.sd-next__links li { margin: 2px 0; }
.sd-next__links a, .sd-next__service a, .sd-about a, .sd-consult a { color: var(--color-primary-light); }
.sd-next__service { margin: 8px 0 0; font-size: 13px; color: var(--color-text-light); }
.sd-result__tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.sd-print, .sd-retry { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--color-border); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--color-primary); cursor: pointer; }
.sd-print:hover, .sd-retry:hover { border-color: var(--color-accent); }

/* メールで受け取る */
.sd-cta { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; margin: 36px 0 0; padding: 28px; border-radius: 16px; background: linear-gradient(160deg, #0b3d91 0%, #1e5bb8 100%); color: #fff; box-shadow: 0 10px 30px rgba(11, 61, 145, .18); }
.sd-cta__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #cfe1fb; }
.sd-cta__title { margin: 0 0 12px; font-size: 21px; font-weight: 700; line-height: 1.5; color: #fff; }
.sd-cta__text { margin: 0; font-size: 14.5px; line-height: 1.85; color: rgba(255, 255, 255, .92); }
.sd-lead { margin: 0; padding: 20px; border-radius: 12px; background: #fff; color: var(--color-text); }
.sd-lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.sd-field--wide { grid-column: 1 / -1; }
.sd-field__label { display: flex; align-items: center; gap: 6px; }
.sd-field__req, .sd-field__opt { padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.sd-field__req { background: #fde8e6; color: #b3261e; }
.sd-field__opt { background: #eef2f7; color: var(--color-text-light); }
.sd-lead .contact-form__input, .sd-lead .contact-form__select { width: 100%; }
.sd-lead select.contact-form__select { height: 50px; padding: 0 40px 0 14px; border: 1px solid #c3cfdf; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27none%27 stroke=%27%234d5a6b%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E") no-repeat right 12px center / 18px; font: inherit; font-size: 15px; font-weight: 400; color: var(--color-text); -webkit-appearance: none; appearance: none; }
.sd-lead select.contact-form__select:focus { outline: 3px solid rgba(74, 144, 217, .35); border-color: var(--color-accent); }
.sd-agree { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; }
.sd-agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--color-primary, #0b3d91); }
.sd-lead__msg { margin: 10px 0 0; font-size: 13px; color: #b3261e; }
.sd-lead__btn { width: 100%; margin: 14px 0 0; }
.sd-lead__note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--color-text-light); }
.sd-consult { margin: 16px 0 0; font-size: 14px; color: var(--color-text-light); }

/* この診断について */
.sd-about { padding: 8px 0 56px; }
.sd-about__h { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--color-text); }
.sd-about__list { margin: 0; padding-left: 1.2em; font-size: 13.5px; line-height: 1.85; color: var(--color-text-light); }

/* お礼 */
.sd-thanks { padding: calc(var(--header-height, 72px) + 56px) 0 72px; }
.sd-thanks__title { margin: 0 0 16px; font-size: 26px; font-weight: 700; color: var(--color-text); }
.sd-thanks__text { margin: 0 0 12px; font-size: 15px; line-height: 1.9; color: var(--color-text); }
.sd-thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

@media (max-width: 760px) {
  .sd-hero { padding: calc(var(--header-height, 72px) + 24px) 0 40px; }
  .sd-breadcrumb { display: none; }
  .sd-hero__facts { gap: 8px; }
  .sd-hero__facts li { padding: 10px 10px; }
  .sd-hero__fact-num { font-size: 26px; }
  .sd-q { grid-template-columns: auto 1fr; padding: 14px; }
  .sd-q__choices { grid-column: 1 / -1; }
  .sd-choice { flex: 1; }
  .sd-choice span { width: 100%; }
  .sd-score { grid-template-columns: 1fr; padding: 20px; }
  .sd-score__num { font-size: 52px; }
  .sd-areabar { grid-template-columns: 1fr 48px; }
  .sd-areabar__name { grid-column: 1 / -1; }
  .sd-next__item { padding: 16px 16px 16px 56px; }
  .sd-next__item::before { left: 14px; top: 16px; }
  .sd-cta { grid-template-columns: 1fr; padding: 20px; }
  .sd-lead { padding: 16px; }
  .sd-lead__grid { grid-template-columns: 1fr; }
  .sd-progress__bar { width: 80px; }
  .sd-submit { flex-wrap: nowrap; padding: 10px 16px; }
  .sd-progress { gap: 8px; font-size: 13px; white-space: nowrap; }
  .sd-submit .sd-submit__btn { min-width: 0; width: auto; height: 48px; padding: 0 20px; font-size: 15px; }
  .sd-submit__msg { position: absolute; left: 16px; bottom: 100%; padding: 6px 10px; border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
}

/* 印刷・PDF：結果だけを出す */
@media print {
  .header, .footer, .to-top, .sd-hero, .sd-quiz, .sd-cta, .sd-result__tools, .sd-consult, .sd-about, .article-news, [class*="nav"] { display: none !important; }
  .sd-result { display: block !important; padding: 0; }
  .sd-score, .sd-next__item, .sd-lawnote { break-inside: avoid; box-shadow: none; border: 1px solid #cdd8e6; }
  .sd-areabar__fill, .sd-score__badge, .sd-next__item::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
}
