/* Inherits the Studio/Office tokens, system fonts, shell and buttons. */
.strength-app, .strength-type-page { --strength-accent: var(--blue-strong); color: var(--ink); }
.strength-app *, .strength-type-page * { box-sizing: border-box; }
.strength-app [hidden] { display: none !important; }
.strength-app h1, .strength-type-page h1 { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif; }
.strength-app h1:focus, .strength-type-page h1:focus { outline: none; }
.strength-app button, .strength-app input { font: inherit; }
.strength-app button, .strength-app a { -webkit-tap-highlight-color: transparent; }
.strength-app :focus-visible, .strength-type-page :focus-visible { outline: 3px solid var(--blue-strong); outline-offset: 4px; }
.strength-app .button { min-height: 48px; padding: 10px 18px; border-radius: 6px; justify-content: center; font-size: 15px; cursor: pointer; }
.strength-app .button:disabled { opacity: .45; cursor: default; }
.strength-question { max-width: 760px; margin: 0 auto; padding: 36px 24px 48px; }
.strength-step { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--ink-soft); font-size: 13px; }
.strength-progress { display: block; width: 100%; height: 3px; margin: 12px 0 28px; border: 0; border-radius: 0; accent-color: var(--blue-strong); }
.strength-progress::-webkit-progress-bar { background: #e0eaf0; }
.strength-progress::-webkit-progress-value { background: var(--blue-strong); }
.strength-question h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 36px); line-height: 1.5; letter-spacing: -.025em; text-wrap: balance; }
.strength-question__hint { min-height: 48px; margin: 0 0 22px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.strength-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.strength-choice { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 58px; padding: 12px 14px; text-align: left; color: var(--ink); border: 1px solid #aebfcd; border-radius: 6px; background: white; line-height: 1.6; cursor: pointer; }
.strength-choice[aria-pressed="true"] { border-color: var(--blue-strong); background: var(--studio-soft); box-shadow: inset 0 0 0 1px var(--blue-strong); }
.strength-choice:disabled { color: #65727e; border-color: #ced8df; background: #f5f7f9; cursor: default; }
.strength-choice--ranked .strength-choice__mark { flex-basis: 38px; width: 38px; height: 38px; font-size: 20px; font-weight: 700; }
.strength-choice--ranked { gap: 14px; }
.strength-choice__mark { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid #8095a8; border-radius: 50%; font-size: 12px; font-weight: 600; }
.strength-choice[aria-pressed="true"] .strength-choice__mark { color: white; background: var(--blue-strong); border-color: var(--blue-strong); }
.strength-primary, .strength-name-modes { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 22px 0 0; padding: 0; border: 0; font-size: 14px; }
.strength-primary legend { margin-bottom: 10px; font-weight: 600; }
.strength-primary label, .strength-name-modes label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.strength-app input[type="radio"], .strength-app input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-strong); flex: 0 0 18px; }
.strength-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.strength-navigation .button { min-width: 106px; }
.strength-private-note { margin: 22px 0 0; color: var(--ink-soft); font-size: 12px; }
.strength-field { display: grid; gap: 8px; margin: 20px 0 0; font-size: 14px; font-weight: 600; }
.strength-field input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #8095a8; border-radius: 6px; color: var(--ink); background: white; font-size: 16px; font-weight: 400; }
.strength-field input[aria-invalid="true"] { border-color: #a32922; }
.strength-error { margin: 6px 0; color: #9a2520; font-size: 14px; line-height: 1.65; }
.strength-error:empty { margin: 0; }
.strength-hint { color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.strength-result { max-width: 840px; margin: 0 auto; }
.strength-result__hero { padding: 28px 24px 24px; text-align: center; background: linear-gradient(135deg, var(--strength-from), var(--strength-to)); }
.strength-result__eyebrow { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; }
.strength-result__eyebrow span { font-size: 12px; }
.strength-result h1, .strength-type-page h1 { margin: 12px 0 14px; color: var(--ink); font-size: clamp(46px, 8vw, 76px); line-height: 1.35; letter-spacing: -.04em; }
.strength-result h1 span { display: inline-block; white-space: nowrap; }
.strength-result__tagline { max-width: 480px; margin: 0 auto; font-size: 16px; line-height: 1.85; text-wrap: balance; }
.strength-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.strength-tags li { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--strength-accent); border-radius: 4px; background: white; font-size: 13px; line-height: 1.6; text-align: left; }
.strength-tags li span { flex-shrink: 0; font-size: 18px; font-weight: 700; color: var(--strength-accent); line-height: 1; }
.strength-motto { max-width: 550px; margin: 24px auto 10px; color: var(--ink); font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-size: 20px; line-height: 1.7; overflow-wrap: anywhere; }
.strength-result__name { max-width: 520px; margin: 14px auto 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.strength-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 22px auto 0; padding: 0 24px; }
.strength-save-note, .strength-save-status { margin: 8px 24px; text-align: center; font-size: 12px; }
.strength-detail { margin: 42px 24px 0; padding-top: 28px; border-top: 1px solid #d1dee6; line-height: 1.95; }
.strength-section-label { margin: 0 0 12px; color: var(--blue-strong); font-size: 13px; font-weight: 600; }
.strength-detail h2 { margin: 0 0 24px; color: var(--ink); font-size: 24px; line-height: 1.65; text-wrap: balance; }
.strength-detail h3 { margin: 36px 0 18px; color: var(--ink); font-size: 20px; }
.strength-detail p { color: var(--ink-soft); }
.strength-outreach { margin: 0 0 28px; }
.strength-outreach div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid #d1dee6; }
.strength-outreach dt { color: var(--ink-soft); font-size: 13px; }
.strength-outreach dd { margin: 0; color: var(--ink); }
.strength-proposal { margin: 42px 24px 0; padding: 30px 0 0 20px; border-top: 1px solid #d1dee6; border-left: 3px solid var(--strength-accent); }
.strength-proposal h2 { margin: 0 0 24px; color: var(--ink); font-size: 24px; line-height: 1.65; text-wrap: balance; }
.strength-proposal dl { margin: 0; }
.strength-proposal dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid #d1dee6; }
.strength-proposal dt { color: var(--ink-soft); font-size: 13px; }
.strength-proposal dd { min-width: 0; margin: 0; color: var(--ink); line-height: 1.85; overflow-wrap: anywhere; }
.strength-proposal ul { margin: 0; padding-left: 1.25em; }
.strength-proposal__actions { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 520px; margin: 24px 0 0; }
.strength-text-button { padding: 8px 0; border: 0; color: var(--blue-strong); background: transparent; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.strength-free { margin: 36px 24px 60px; padding-top: 24px; border-top: 1px solid #d1dee6; font-size: 13px; color: var(--ink-soft); }
.strength-free p { margin: 0 0 8px; }
.strength-free a { color: var(--blue-strong); text-underline-offset: 4px; }
.strength-dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #c4d4df; border-radius: 12px; color: var(--ink); background: #fbfdfe; overflow-y: auto; box-shadow: 0 12px 44px #122b4926; }
.strength-dialog::backdrop { background: transparent; backdrop-filter: blur(2px); }
.strength-dialog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.strength-dialog__head h2 { margin: 0; font-size: 22px; line-height: 1.5; }
.strength-dialog__head button { flex-shrink: 0; }
.strength-dialog p { font-size: 14px; }
.strength-consent { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; font-size: 13px; line-height: 1.8; }
.strength-consent input { margin-top: 3px !important; }
.strength-dialog [data-request-submit] { width: 100%; margin-top: 12px; }
.strength-type-page { max-width: 840px; margin: 0 auto; padding: 50px 24px 64px; text-align: center; }
.strength-type-page__hero { padding: 40px 20px; background: linear-gradient(135deg, #eef2f6, #e5f0fc); }
.strength-type-page h1 { font-size: clamp(36px, 7vw, 70px); text-wrap: balance; }
.strength-type-page__tagline { font-size: 18px; text-wrap: balance; }
.strength-type-page__explanation { max-width: 560px; margin: 32px auto; color: var(--ink-soft); }
.strength-type-page .button { min-height: 48px; }
.strength-type-page .strength-hint { max-width: 600px; margin: 28px auto 0; }
@media (max-width: 600px) {
  .strength-question { padding: 24px 16px 36px; }
  .strength-choices { gap: 8px; }
  .strength-choice { min-height: 62px; gap: 8px; padding: 10px; font-size: 13px; }
  .strength-question__hint { min-height: 0; margin-bottom: 20px; }
  .strength-question h1 { font-size: 27px; }
  .strength-result__hero { padding: 24px 18px 20px; }
  .strength-result h1 { font-size: clamp(46px, 13.5vw, 60px); }
  .strength-result__tagline { font-size: 15px; }
  .strength-tags { margin-top: 18px; }
  .strength-motto { margin-top: 20px; font-size: 18px; }
  .strength-actions { padding: 0 18px; margin-top: 18px; }
  .strength-app .button { padding: 10px 12px; font-size: 14px; }
  .strength-detail, .strength-proposal, .strength-free { margin-left: 18px; margin-right: 18px; }
  .strength-detail h2 { font-size: 22px; }
  .strength-outreach div, .strength-proposal dl > div { grid-template-columns: 1fr; gap: 5px; }
  .strength-proposal { padding-left: 14px; }
  .strength-proposal h2 { font-size: 22px; }
  .strength-dialog { padding: 20px 16px; }
  .strength-dialog__head h2 { font-size: 20px; }
  .strength-type-page { padding: 24px 16px 48px; }
  .strength-type-page__hero { padding: 28px 12px; }
}

.strength-app .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 結果は、共有する画像そのものを見せる（4:5） */
.strength-result__card { display: block; width: min(100%, 520px); height: auto; aspect-ratio: 4 / 5; margin: 0 auto; border: 1px solid #d1dee6; box-shadow: 0 14px 34px rgba(18, 41, 77, .14); }
.strength-result__card[hidden] { display: none; }
.strength-result { padding-top: 28px; }

/* Six scenes retain the existing form styling; the instruction precedes the question. */
.strength-choices--scenes { margin-top: 26px; }
.strength-scene-hint { min-height: 0; margin-bottom: 14px; font-size: 13px; }
.strength-result__hero h1 { font-size: clamp(32px, 6vw, 52px); }
.strength-result__hero .strength-motto { font-size: clamp(24px, 4vw, 36px); }
.strength-result__hero h2 { margin: 30px 0 10px; font-size: 15px; }
.strength-result__hero p { overflow-wrap: anywhere; }
.strength-actions [data-action="restart"] { grid-column: 1 / -1; }
.strength-type-page__explanation h2 { margin-top: 28px; font-size: 16px; }
@media (max-width: 600px) {
  .strength-choices--scenes { grid-template-columns: 1fr; }
  .strength-choices--scenes .strength-choice { font-size: 16px; }
}

.site-strength { max-width: 880px; margin: 0 auto; padding: 48px 24px 80px; line-height: 1.8; }
.site-strength h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.5; margin: 0 0 20px; }
.site-strength form { margin-top: 32px; }
.site-strength__field { display: grid; gap: 8px; margin: 24px 0; font-weight: 600; }
.site-strength__field input, .site-strength select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #92a7b4; border-radius: 6px; background: white; color: var(--ink); font: inherit; }
.site-strength fieldset { border: 0; padding: 0; margin: 32px 0; min-width: 0; }
.site-strength legend { font-weight: 600; font-size: 20px; }
.site-strength__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-strength__choices label { display: flex; align-items: start; gap: 10px; border: 1px solid #ccd7dd; border-radius: 6px; padding: 14px; cursor: pointer; background: white; }
.site-strength__choices label:has(:checked) { border-color: #146d9c; background: #edf6fa; }
.site-strength input[type=checkbox] { width: 18px; height: 18px; margin-top: 5px; flex-shrink: 0; accent-color: #146d9c; }
.site-strength__consent { display: flex; gap: 10px; align-items: start; }
.site-strength [data-error] { color: #a12b29; }
.site-strength__result { border-top: 1px solid #ccd7dd; margin-top: 40px; padding-top: 24px; }
.site-strength__result h2 { font-size: 28px; }
.site-strength__result h3 { margin-top: 32px; font-size: 21px; }
.site-strength__radar { width: 100%; max-width: 420px; display: block; margin: 16px auto; }
.site-strength__axes { margin: 16px 0 28px; }
.site-strength__axes div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #dce4e9; padding: 12px 0; }
.site-strength__axes dd { margin: 0; text-align: right; flex-shrink: 0; }
.site-strength__fits { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 16px; }
.site-strength__fits article { padding: 20px; background: #edf6fa; border-radius: 8px; }
.site-strength__fits h4 { font-size: 17px; margin: 0; }
.site-strength details { margin: 28px 0; }
.site-strength summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.site-strength__table { overflow-x: auto; }
.site-strength table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 550px; }
.site-strength th, .site-strength td { text-align: left; padding: 12px; border-bottom: 1px solid #ccd7dd; }
.strength-checklist { list-style: none; padding: 0; margin: 16px 0; }
.strength-checklist__item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid #dce4e9; }
.strength-checklist__label { font-weight: 600; }
.strength-checklist__badge { display: inline-block; font-size: 13px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.strength-checklist__badge--found { background: #d4edda; color: #155724; }
.strength-checklist__badge--partial { background: #fff3cd; color: #856404; }
.strength-checklist__badge--none { background: #e9ecef; color: #495057; }
.strength-checklist__badge--unknown { background: #e9ecef; color: #495057; }
.strength-checklist__hint { margin: 8px 0 0; font-size: 13px; color: #6b7280; line-height: 1.6; }
.site-strength__proposals { padding: 0; margin: 16px 0; }
.site-strength__proposals p { margin: 12px 0; padding: 12px; background: #f3f9fc; border-radius: 6px; font-size: 14px; }
.site-strength__proposals strong { display: block; margin-bottom: 4px; }
@media (max-width: 560px) {
  .strength-checklist__item { grid-template-columns: 1fr; }
  .site-strength { padding: 28px 18px 56px; } .site-strength__choices { grid-template-columns: 1fr; } .site-strength__axes div { font-size: 14px; } .site-strength__axes dd { max-width: 44%; flex-shrink: 1; }
}

/* タップ領域：チェックボックスの行を 44px 目安に */
.site-strength__consent, .site-strength__choices label { min-height: 44px; align-items: center; }
.site-strength input[type=checkbox] { width: 22px; height: 22px; margin-top: 0; }

/* デザイン案の依頼カード（結果の主要 CTA） */
.site-strength__offer { margin-top: 32px; padding: 12px 12px 16px; border: 1px solid #146d9c; border-radius: 8px; background: #f3f9fc; }
.site-strength__offer h3 { margin: 0 0 6px; }
.site-strength__offer > p:nth-of-type(1) { margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.site-strength__offer-conditions { display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 8px 0; padding: 0; list-style: none; }
.site-strength__offer-conditions li { display: inline-flex; align-items: center; padding: 4px 8px; background: white; border: 1px solid #146d9c; border-radius: 4px; font-size: 13px; line-height: 1.4; }
.site-strength__offer-form { display: grid; gap: 10px; }
.site-strength__offer-form > .site-strength__field:nth-of-type(1), .site-strength__offer-form > .site-strength__field:nth-of-type(2), .site-strength__offer-form > .site-strength__field:nth-of-type(3) { display: grid; }
.site-strength__offer-form { --form-cols: 1; }
.site-strength__offer-form > :nth-child(1) { grid-column: 1; }
.site-strength__offer-form > :nth-child(2) { grid-column: 1; }
.site-strength__offer-form > :nth-child(3) { grid-column: 1; }
@supports (grid-template-columns: repeat(auto-fit, minmax(0, 1fr))) {
  .site-strength__offer-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .site-strength__offer-form > .site-strength__choices-block, .site-strength__offer-form > .site-strength__consent, .site-strength__offer-form > .site-strength__trap, .site-strength__offer-form > .button { grid-column: 1 / -1; }
}
.site-strength__trap { position: absolute; left: -9999px; }
.site-strength__choices-block { border: 0; padding: 0; margin: 0; }
.site-strength__offer-note { font-size: 13px; color: #4b6280; margin: 8px 0 0; }
.site-strength__survey { margin-top: 24px; } .site-strength__survey summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; } .site-strength__survey-form { display: grid; gap: 14px; margin-top: 12px; }
