@charset "UTF-8";
/* 診断ページ（/souzoku・/hasan）: 本体の色と形にそろえる。
   本体の class とぶつからないよう、すべて p-diag で始める。
   赤 #CB2E27 ／ 文字 #333 ／ 生成り #FFFBF6 ／ うすいピンク #FDECEA ／ 線 #EADBD8 */

.p-diag { background: #FFFBF6; color: #333; font-size: 16px; line-height: 1.7; }
.p-diag__inner { max-width: 640px; margin: 0 auto; padding: 40px 20px 72px; }
/* しるし: 相談の案内の窓は body の直下に出るので、.p-diag の外でも効くようにする */
.p-diag__i { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 最初の画面 ── */
.p-diag__top { text-align: center; }
.p-diag__office { display: inline-block; font-size: 13px; font-weight: 700; color: #555; background: #fff; border: 1px solid #EADBD8; border-radius: 20px; padding: 4px 16px; margin-bottom: 8px; }
.p-diag__label { display: inline-block; font-size: 12px; font-weight: 700; color: #CB2E27; background: #FDECEA; border-radius: 20px; padding: 4px 14px; letter-spacing: .08em; margin-bottom: 16px; }
.p-diag__ttl { font-size: 34px; font-weight: 700; line-height: 1.55; color: #333; margin-bottom: 14px; }
.p-diag__lead { font-size: 16px; line-height: 1.9; color: #333; margin-bottom: 22px; }
.p-diag__stats { display: flex; align-items: center; background: #fff; border: 1px solid #EADBD8; border-radius: 20px; padding: 16px 8px; margin-bottom: 14px; }
.p-diag__stat { flex: 1; text-align: center; }
.p-diag__statNum { font-size: 26px; font-weight: 700; color: #CB2E27; line-height: 1.15; }
.p-diag__statUnit { font-size: 13px; font-weight: 700; }
.p-diag__statLabel { font-size: 12px; color: #777; margin-top: 4px; }
.p-diag__statDiv { width: 1px; height: 36px; background: #EADBD8; }
.p-diag__onestop { background: #fff; border: 1px solid #EADBD8; border-radius: 20px; padding: 16px; margin-bottom: 22px; }
.p-diag__onestopTtl { font-size: 13px; font-weight: 700; color: #CB2E27; letter-spacing: .08em; margin-bottom: 12px; }
.p-diag__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.p-diag__chip { background: #fff; border: 1px solid #CB2E27; border-radius: 999px; padding: 4px 16px; font-size: 14px; font-weight: 700; color: #333; }
.p-diag__onestopNote { font-size: 13px; line-height: 1.8; color: #555; }
.p-diag__start { display: inline-block; background: #CB2E27; color: #fff; border: 1px solid #CB2E27; border-radius: 40px; padding: 16px 48px; font-size: 19px; font-weight: 700; letter-spacing: .05em; margin-bottom: 14px; transition: opacity .2s; }
.p-diag__start:hover { opacity: .85; }
.p-diag__note { font-size: 11px; line-height: 1.7; color: #999; }

/* ── 質問の画面・結果の画面の白い箱 ── */
.p-diag__card { background: #fff; border: 1px solid #EADBD8; border-radius: 24px; padding: 32px 28px; }
.p-diag__bar { height: 8px; background: #F1DEDB; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.p-diag__barFill { height: 100%; background: #CB2E27; border-radius: 8px; transition: width .4s ease; }
.p-diag__stepLabel { font-size: 13px; font-weight: 700; color: #CB2E27; letter-spacing: .1em; margin-bottom: 10px; }
.p-diag__q { font-size: 27px; font-weight: 700; line-height: 1.45; color: #333; margin-bottom: 6px; }
.p-diag__qSub { font-size: 15px; color: #666; margin-bottom: 20px; }
.p-diag__opts { display: flex; flex-direction: column; gap: 12px; }
.p-diag__opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid #EADBD8; border-radius: 18px; padding: 14px 16px; transition: border-color .15s, background-color .15s; }
.p-diag__opt:hover { border-color: #CB2E27; }
.p-diag__opt.selected { border: 2px solid #CB2E27; background: #FFF6F5; padding: 13px 15px; }
.p-diag__optIco { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #FDECEA; color: #CB2E27; display: flex; align-items: center; justify-content: center; }
.p-diag__optLabel { font-size: 17px; font-weight: 700; color: #333; line-height: 1.4; }
.p-diag__optDesc { font-size: 13px; color: #666; line-height: 1.5; margin-top: 2px; }
.p-diag__optCheck { flex-shrink: 0; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #D9C5C2; background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; }
.p-diag__opt.selected .p-diag__optCheck { background: #CB2E27; border-color: #CB2E27; }
.p-diag__optCheck .p-diag__i { width: 16px; height: 16px; stroke-width: 2.6; }
.p-diag__next { display: block; width: 100%; margin-top: 20px; background: #CB2E27; color: #fff; border: 1px solid #CB2E27; border-radius: 40px; padding: 14px; font-size: 16px; font-weight: 700; transition: opacity .2s; }
.p-diag__next:hover { opacity: .85; }
.p-diag__next:disabled { opacity: .4; cursor: not-allowed; }
/* 戻る（白・枠 #BBB）と次へ（赤）を横に並べる。次へが無い質問は戻るだけ */
.p-diag__nav { display: flex; gap: 12px; margin-top: 20px; }
.p-diag__nav .p-diag__next { flex: 1; margin-top: 0; }
.p-diag__back { flex: 0 0 auto; min-width: 120px; background: #fff; color: #555; border: 1px solid #BBB; border-radius: 40px; padding: 14px 22px; font-size: 16px; font-weight: 700; transition: border-color .2s; }
.p-diag__back:hover { border-color: #888; }

/* ── 結果の画面と、相談への案内 ── */
.p-diag__resultHead { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.p-diag__resultIco { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #FDECEA; color: #CB2E27; display: flex; align-items: center; justify-content: center; }
.p-diag__resultTtl { font-size: 21px; font-weight: 700; line-height: 1.45; color: #333; }
.p-diag__points { background: #FFFBF6; border: 1px solid #EADBD8; border-radius: 18px; padding: 20px; margin-bottom: 20px; }
.p-diag__point { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.p-diag__point:last-child { margin-bottom: 0; }
.p-diag__pointNum { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #CB2E27; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.p-diag__pointTxt { flex: 1; font-size: 15px; line-height: 1.85; color: #333; }
.p-diag__banner { background: #FDECEA; border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.p-diag__bannerTtl { font-size: 15px; font-weight: 700; color: #CB2E27; line-height: 1.5; margin-bottom: 4px; }
.p-diag__bannerSub { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 14px; }
.p-diag__creds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-diag__cred { background: #fff; border: 1px solid #EADBD8; border-radius: 14px; padding: 10px 12px; }
.p-diag__credIco { color: #CB2E27; margin-bottom: 4px; }
.p-diag__credIco .p-diag__i { width: 22px; height: 22px; }
.p-diag__credName { font-size: 13px; font-weight: 700; color: #333; }
.p-diag__credNote { font-size: 11px; color: #777; line-height: 1.5; margin-top: 2px; }
.p-diag__officeCard { background: #fff; border: 1px solid #CB2E27; border-radius: 20px; padding: 20px; }
.p-diag__officeRow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.p-diag__officeLogo { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #CB2E27; color: #fff; display: flex; align-items: center; justify-content: center; }
.p-diag__officeName { font-size: 18px; font-weight: 700; color: #333; }
.p-diag__officeTag { font-size: 12px; font-weight: 700; color: #CB2E27; line-height: 1.6; margin-top: 2px; }
.p-diag__match { background: #FFFBF6; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.p-diag__matchLabel { font-size: 12px; color: #777; margin-bottom: 8px; }
.p-diag__matchRow { display: flex; flex-wrap: wrap; gap: 6px; }
.p-diag__matchChip { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.p-diag__features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.p-diag__feature { font-size: 12px; font-weight: 700; color: #CB2E27; background: #FDECEA; padding: 3px 10px; border-radius: 20px; }
.p-diag__ctaLabel { font-size: 13px; font-weight: 700; color: #777; text-align: center; margin-bottom: 10px; }
/* LINE ボタンは本体のほかのページ（ブログの相談の案内・/koga）と同じ色 */
.p-diag__line { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #a04a18; color: #fff; border: 1px solid #a04a18; border-radius: 40px; padding: 15px; font-size: 16px; font-weight: 700; margin-bottom: 12px; transition: background-color .2s; }
.p-diag__line:hover { background: #7d3610; border-color: #7d3610; }
.p-diag__line svg { flex-shrink: 0; width: 22px; height: 22px; }
.p-diag__line,
.p-diag__sub,
.p-diag__tel { line-height: 1.45; }
.p-diag__or { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.p-diag__orLine { flex: 1; height: 1px; background: #EADBD8; }
.p-diag__orTxt { font-size: 12px; color: #999; white-space: nowrap; }
.p-diag__sub,
.p-diag__tel { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #fff; color: #CB2E27; border: 1px solid #CB2E27; border-radius: 40px; padding: 13px; font-size: 15px; font-weight: 700; margin-bottom: 10px; transition: background-color .2s; }
.p-diag__sub:hover,
.p-diag__tel:hover { background: #FFF6F5; }
.p-diag__sub .p-diag__i,
.p-diag__tel .p-diag__i,
.p-diag__save .p-diag__i { width: 20px; height: 20px; }
.p-diag__officeNote { font-size: 11px; color: #999; text-align: center; line-height: 1.7; margin-top: 10px; }
.p-diag__save { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; background: #fff; color: #555; border: 1px solid #BBB; border-radius: 40px; padding: 12px; font-size: 14px; }
.p-diag__restart { display: block; width: 100%; margin-top: 10px; background: #fff; color: #555; border: 1px solid #BBB; border-radius: 40px; padding: 12px; font-size: 14px; }
.p-diag__save:hover,
.p-diag__restart:hover { border-color: #888; }

/* ── よくある質問 ── */
.p-diag__faq { margin-top: 48px; }
.p-diag__faq h2 { font-size: 24px; font-weight: 600; letter-spacing: .15em; color: #333; text-align: center; margin-bottom: 18px; }
.p-diag__faqItem { background: #fff; border: 1px solid #EADBD8; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.p-diag__faqItem summary { display: block; list-style: none; position: relative; padding: 14px 44px 14px 16px; font-size: 15px; font-weight: 700; color: #333; line-height: 1.6; cursor: pointer; }
.p-diag__faqItem summary::-webkit-details-marker { display: none; }
.p-diag__faqItem summary::after { content: "＋"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #CB2E27; font-weight: 700; }
.p-diag__faqItem[open] summary::after { content: "−"; }
.p-diag__faqItem p { padding: 0 16px 14px; font-size: 14px; line-height: 1.85; color: #333; background: #fff; }

/* ── スマホ: ヘッダーの分、上の余白を詰める（「始める」ボタンを最初の 1 画面に入れる） ── */
@media screen and (max-width: 768px) {
  .p-diag__inner { padding: 14px 16px 56px; }
  .p-diag__label { margin-bottom: 10px; }
  .p-diag__ttl { font-size: 26px; margin-bottom: 8px; }
  .p-diag__lead { margin-bottom: 14px; }
  .p-diag__stats { padding: 12px 6px; margin-bottom: 10px; }
  .p-diag__onestop { padding: 12px 12px; margin-bottom: 16px; }
  .p-diag__onestopTtl { margin-bottom: 8px; }
  .p-diag__chips { gap: 6px; margin-bottom: 6px; }
  .p-diag__start { padding: 14px 40px; margin-bottom: 10px; }
  .p-diag__card { padding: 22px 14px; border-radius: 20px; }
  .p-diag__officeCard { padding: 16px 12px; }
  .p-diag__line { font-size: 15px; padding: 14px 10px; }
  .p-diag__sub,
  .p-diag__tel { font-size: 14px; padding: 12px 10px; }
  .p-diag__q { font-size: 22px; }
  .p-diag__optLabel { font-size: 16px; }
  .p-diag__resultTtl { font-size: 19px; }
  .p-diag__points { padding: 16px 14px; }
  .p-diag__faq h2 { font-size: 20px; }
}
