/* 診断と結果。トップと同じ標識の黄と黒で、「いま何問目か」「何が足りないか」を一目で見せる(経営/デザイン原則.md)
   色はすべて既定値付き。変数が読めなくても文字が消えないようにする */
main.flow { max-width: none; padding: 0 0 104px; }
.fwrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
/* 見出しと短い項目は文節で折り返す(「は\nい」のような割れを防ぐ。2026-11-06 品質監査) */
main.flow h1, main.flow h2, main.flow h3, main.flow li, main.flow .offer-links { word-break: auto-phrase; }

/* ---- 診断 ---- */
.q-top { background: #ffd400; color: #111; }
.q-top .fwrap { padding-top: 18px; padding-bottom: 26px; }
.ticks { display: grid; grid-template-columns: repeat(var(--n, 13), 1fr); gap: 3px; margin: 0 0 12px; }
.ticks i { height: 8px; background: rgba(17,17,17,.18); border-radius: 1px; }
.ticks i.done { background: #111; }
.ticks i.now { background: #111; box-shadow: 0 0 0 2px #ffd400, 0 0 0 4px #111; }
.q-count { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; font-weight: 800; color: #111; }
.q-count #count { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.q-count #left { font-size: .875rem; }
.q-area { display: inline-block; margin: 0 0 10px; padding: 2px 10px; background: #111; color: #ffd400; font-size: .8125rem; font-weight: 800; letter-spacing: .04em; border-radius: 2px; }
.q-seg { margin: 0 0 6px; font-size: .875rem; font-weight: 700; color: #111; }
.q-top h2 { color: #111; font-size: clamp(1.25rem, 5.4vw, 1.75rem); line-height: 1.5; font-weight: 900; margin: 0; max-width: 30em; }
.q-body .fwrap { padding-top: 20px; }
.q-body .choices { margin-top: 0; gap: 10px; }
.q-body .choices button { min-height: 60px; padding: 12px 16px; border: 2px solid var(--rule, #111); border-radius: 6px; background: var(--card, #fff); color: var(--text, #111); font-weight: 700; font-size: 1.0625rem; line-height: 1.5; box-shadow: 0 4px 0 var(--rule, #111); transition: transform .06s, box-shadow .06s, background-color .1s; }
@media (hover: hover) { .q-body .choices button:hover { background: var(--sign-soft, #fff7cc); } }
.q-body .choices button:focus-visible { outline: 3px solid #ffd400; outline-offset: 3px; box-shadow: 0 4px 0 var(--rule, #111); }
.q-body .choices button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--rule, #111); background: #ffd400; color: #111; }
.choices.seg { grid-template-columns: 1fr 1fr; }
.choices.seg button { word-break: auto-phrase; }
@media (max-width: 374px) { .choices.seg { grid-template-columns: 1fr; } }
.choices.yn button { display: flex; align-items: center; gap: 14px; min-height: 68px; font-size: 1.1875rem; }
.choices.yn b { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; font-size: 1.25rem; font-weight: 900; line-height: 1; }
.choices.yn [data-v="y"] b { background: #111; color: #ffd400; }
.choices.yn [data-v="p"] b { border: 2px solid var(--rule, #111); color: var(--text, #111); }
.choices.yn [data-v="n"] b { background: #c8381c; color: #fff; }
.q-body .back { display: inline-flex; align-items: center; min-height: 48px; margin-top: 18px; padding: 0 4px; color: var(--text, #111); font-weight: 700; }
.q-step { animation: qin .16s ease-out; }
@keyframes qin { from { transform: translateY(8px); } to { transform: none; } }
.q-side { display: none; }
.q-note { margin: 24px 0 0; color: var(--muted, #55585c); font-size: .875rem; line-height: 1.7; }

@media (min-width: 860px) {
  .q-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; max-width: 1120px; margin: 0 auto; padding: 48px 20px 0; }
  .q-grid .fwrap { padding-left: 0; padding-right: 0; }
  .q-top { border-radius: 8px; }
  .q-top .fwrap { padding: 28px 32px 34px; }
  .q-body .fwrap { padding-top: 24px; }
  .choices.seg { grid-template-columns: repeat(3, 1fr); }
  .choices.yn { grid-template-columns: repeat(3, 1fr); }
  .choices.yn button { flex-direction: column; justify-content: center; gap: 8px; min-height: 120px; }
  .choices.yn b { width: 48px; height: 48px; font-size: 1.5rem; }
  .q-side { display: block; }
  .q-side ol { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--rule, #111); }
  .q-side li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line, #d8d8d4); font-size: .9375rem; color: var(--muted, #55585c); margin: 0; max-width: none; }
  .q-side li.now { color: var(--text, #111); font-weight: 800; }
  .q-side li.done { color: var(--text, #111); }
  .q-side li.done::after { content: "済"; font-size: .75rem; font-weight: 800; padding: 0 6px; background: var(--text, #111); color: var(--bg, #fff); border-radius: 2px; align-self: center; }
  .q-side h2 { font-size: 1.0625rem; font-weight: 900; margin: 0 0 12px; }
}

/* ---- 結果 ---- */
.r-hero { background: #ffd400; color: #111; }
.r-hero .fwrap { padding-top: 24px; padding-bottom: 30px; }
.r-meta { margin: 0 0 12px; font-size: .875rem; font-weight: 800; color: #111; }
.r-big { display: flex; align-items: baseline; gap: 6px; margin: 0 0 10px; color: #111; font-weight: 900; line-height: 1; font-feature-settings: "palt"; }
.r-big strong { font-size: clamp(4rem, 22vw, 6.5rem); }
.r-big span { font-size: clamp(1.5rem, 7vw, 2.25rem); }
.r-big small { font-size: 1rem; font-weight: 800; margin-left: 8px; }
.r-boxes { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; max-width: 460px; margin: 0 0 18px; padding: 0; list-style: none; }
.r-boxes li { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin: 0; border: 2.5px solid #111; border-radius: 3px; font-weight: 900; font-size: .875rem; color: #111; background: #fff; max-width: none; }
.r-boxes li.y { background: #111; color: #ffd400; }
.r-boxes li.n { background: #fff; color: #c8381c; }
.r-boxes li.p { background: #fff; color: #111; }
.r-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; font-size: .8125rem; font-weight: 700; color: #111; }
.r-hero h1.score { color: #111; font-size: clamp(1.25rem, 5vw, 1.625rem); line-height: 1.5; font-weight: 900; margin: 0 0 10px; max-width: 26em; }
.r-hero p { color: #111; }
.r-hero a { color: #111; font-weight: 700; }
.r-hero .r-sub { font-weight: 700; margin: 0; }
.r-hero .r-note { font-size: .875rem; margin: 12px 0 0; }
.r-body .fwrap { padding-top: 28px; }
.r-body h2.section { margin-top: 8px; font-size: 1.375rem; font-weight: 900; }

.gap { position: relative; border: 2px solid var(--rule, #111); border-left-width: 10px; border-radius: 4px; padding: 16px 16px 14px; margin: 0 0 14px; background: var(--card, #fff); color: var(--text, #111); }
.gap.no { border-left-color: #c8381c; }
.gap.partial { border-left-color: #b08600; }
.gap h3 { font-size: 1.0625rem; line-height: 1.6; margin: 8px 0 6px; font-weight: 800; }
.gap .num { font-weight: 900; margin-right: .4em; }
.gap.first { box-shadow: 8px 8px 0 #ffd400; }
.gap .first-tag { display: inline-block; margin: 0 0 6px 6px; padding: 0 8px; background: #111; color: #ffd400; font-size: .8125rem; font-weight: 800; border-radius: 2px; }

#offer { background: #111; color: #fff; border: 0; border-radius: 8px; padding: 24px 18px; margin: 0 0 28px; }
#offer h2 { color: #ffd400; font-size: 1.375rem; font-weight: 900; line-height: 1.45; }
#offer p, #offer li { color: #fff; }
#offer .muted { color: #c9c9c4; }
#offer a { color: #fff; }
#offer .price { color: #ffd400; font-size: 1.375rem; font-weight: 900; margin: 18px 0 4px; }
#offer .cta { background: #ffd400; color: #111; font-weight: 900; min-height: 60px; border-radius: 6px; margin-top: 16px; font-size: 1.0625rem; }
#offer .cta:hover { background: #ffdf4d; }
#offer ul { list-style: none; padding: 0; }
#offer li { position: relative; padding-left: 1.6em; }
#offer li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9em; height: .5em; border-left: 3px solid #ffd400; border-bottom: 3px solid #ffd400; transform: rotate(-45deg); }
#offer .offer-links { margin: 14px 0 0; text-align: center; }
#offer .offer-links a { display: block; padding: 10px 0; }
#free { border: 3px solid var(--rule, #111); border-radius: 6px; padding: 20px 18px; }
#free h2 { font-weight: 900; }
.r-actions .back { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 2px solid var(--rule, #111); border-radius: 6px; color: var(--text, #111); text-decoration: none; font-weight: 700; }
main.flow footer { max-width: 1120px; margin: 48px auto 0; padding: 16px 16px 0; }

@media (min-width: 860px) {
  .r-hero .fwrap { padding: 48px 20px 52px; display: grid; grid-template-columns: auto 1fr; gap: 12px 48px; align-items: end; }
  .r-hero .r-meta { grid-column: 1 / -1; }
  .r-body .fwrap { padding: 48px 20px 0; display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
  .r-side { position: sticky; top: 24px; grid-column: 2; grid-row: 1 / span 3; }
  .r-main { grid-column: 1; }
  main.flow .sticky { display: none; }
}
@media (prefers-color-scheme: dark) {
  .gap.first { box-shadow: 8px 8px 0 #8a7400; }
  .choices.yn [data-v="y"] b { background: #ffd400; color: #111; }
}
@media print {
  .q-top, .r-hero, #offer { background: none !important; color: #000 !important; }
  .r-hero *, #offer * { color: #000 !important; }
  #offer { border: 1px solid #000; }
  .stripe, .top-head nav { display: none; }
  .gap.first { box-shadow: none; }
  .r-boxes li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .r-boxes li.y { background: #000; color: #fff !important; }
  #offer li::before { border-color: #000; }
}
#offer .nw { white-space: nowrap; }
/* 手順の番号は、チェック印の共通指定を打ち消して数字を見せる */
#offer .path { margin: 16px 0; }
#offer .path li { padding: 12px 0 12px 42px; border-top: 1px solid #3a3a38; }
#offer .path li::before { content: counter(p); position: absolute; left: 0; top: 13px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #ffd400; color: #111; font-weight: 900; font-size: 1rem; line-height: 1; transform: none; clip-path: none; }
#offer .path b { color: #ffd400; }
