/* 結婚できるか診断 */
.sd-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; color: #333; line-height: 1.8; }
.sd-page h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.5; margin: 8px 0 12px; }
.sd-lead { margin: 0 0 8px; }
.sd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.sd-meta li { background: #fff0f3; color: #c2185b; border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 700; }

#shindan-app { background: #fff; border: 2px solid #f8bbd0; border-radius: 16px; padding: 24px 20px; box-shadow: 0 4px 16px rgba(233, 30, 99, .08); }

.sd-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sd-progress-text { font-weight: 700; color: #c2185b; white-space: nowrap; font-size: .9rem; }
.sd-progress-bar { flex: 1; height: 8px; background: #fce4ec; border-radius: 999px; overflow: hidden; }
.sd-progress-fill { height: 100%; background: #e91e63; transition: width .25s; }
.sd-sub { font-size: .85rem; color: #666; background: #f7f7f7; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.sd-question { font-size: 1.25rem; font-weight: 700; margin: 0 0 16px; line-height: 1.5; }

.sd-options { display: grid; gap: 10px; }
.sd-option { display: block; width: 100%; text-align: left; background: #fff; border: 2px solid #e0e0e0; border-radius: 12px; padding: 14px 16px; font-size: 1rem; color: #333; cursor: pointer; transition: border-color .15s, background .15s; }
.sd-option:hover { border-color: #f48fb1; background: #fff8fa; }
.sd-option.is-selected { border-color: #e91e63; background: #fce4ec; font-weight: 700; }
.sd-select { display: block; width: 100%; font-size: 1.05rem; padding: 12px; border: 2px solid #e0e0e0; border-radius: 12px; background: #fff; margin-bottom: 12px; }
.sd-next { display: block; width: 100%; background: #e91e63; color: #fff; border: 0; border-radius: 999px; padding: 14px; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.sd-next:disabled { background: #f8bbd0; cursor: default; }
.sd-back { display: block; margin: 16px auto 0; background: none; border: 0; color: #888; font-size: .9rem; cursor: pointer; text-decoration: underline; }

.sd-result-main { text-align: center; padding: 8px 0 16px; }
.sd-result-label { margin: 0; font-weight: 700; color: #c2185b; }
.sd-result-score { margin: 0; font-size: 4rem; font-weight: 800; line-height: 1.2; color: #e91e63; }
.sd-result-rate { margin: 4px 0 16px; }
.sd-result-rate strong { font-size: 1.4rem; color: #e91e63; }
.sd-result-text { text-align: left; background: #fff8fa; border-radius: 12px; padding: 14px 16px; margin: 0; }

.sd-section { margin-top: 28px; }
.sd-section-title { font-size: 1.15rem; font-weight: 700; border-left: 5px solid #e91e63; padding-left: 10px; margin: 0 0 12px; }
.sd-note, .sd-pr { font-size: .85rem; color: #666; margin: 8px 0 0; }
.sd-pr { margin: 0 0 12px; }

.sd-factors { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.sd-factor { border-radius: 12px; padding: 12px 14px; }
.sd-factor.is-plus { background: #e8f5e9; }
.sd-factor.is-minus { background: #fff3e0; }
.sd-factor-title { font-weight: 700; margin: 0 0 6px; font-size: .95rem; }
.sd-factor ul { list-style: none; margin: 0; padding: 0; }
.sd-factor li { display: flex; justify-content: space-between; padding: 2px 0; }
.sd-factor-pt { font-weight: 700; }
.sd-factor-empty { font-size: .85rem; color: #666; margin: 0; }

.sd-sim { list-style: none; margin: 0; padding: 0; border: 1px solid #eee; border-radius: 12px; }
.sd-sim li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #eee; }
.sd-sim li:first-child { border-top: 0; }
.sd-sim-diff { font-weight: 700; white-space: nowrap; }
.sd-sim-diff.is-plus { color: #2e7d32; }
.sd-sim-diff.is-minus { color: #e65100; }

.sd-recs { display: grid; gap: 16px; }
.sd-card { border: 2px solid #eee; border-radius: 14px; padding: 16px; }
.sd-card.is-first { border-color: #e91e63; }
.sd-card-rank { display: inline-block; background: #e91e63; color: #fff; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 2px 12px; margin: 0 0 6px; }
.sd-card:not(.is-first) .sd-card-rank { background: #9e9e9e; }
.sd-card-name { font-size: 1.2rem; font-weight: 700; margin: 0; }
.sd-card-service { margin: 0 0 8px; color: #666; font-size: .9rem; }
.sd-card-img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.sd-card-body { margin: 8px 0; }
.sd-card-label { font-weight: 700; font-size: .9rem; margin: 10px 0 2px; }
.sd-card-fit { margin: 0; padding-left: 1.2em; }
.sd-card-unfit { margin: 0; font-size: .95rem; }
.sd-card-btn { display: block; text-align: center; background: #ff6d00; color: #fff !important; font-weight: 700; border-radius: 999px; padding: 14px; margin-top: 14px; text-decoration: none; }
.sd-card-btn.is-internal { background: #fff; color: #e91e63 !important; border: 2px solid #e91e63; }
.sd-card-btn:hover { opacity: .9; }

.sd-share { display: flex; gap: 10px; }
.sd-share-btn { flex: 1; text-align: center; color: #fff !important; font-weight: 700; border-radius: 999px; padding: 10px; text-decoration: none; }
.sd-share-btn.is-x { background: #111; }
.sd-share-btn.is-line { background: #06c755; }
.sd-mini-q { font-weight: 700; margin: 14px 0 8px; }
.sd-more { text-align: center; margin: 12px 0 0; }

.sd-body { margin-top: 48px; }
.sd-body h2 { font-size: 1.3rem; font-weight: 700; border-bottom: 3px solid #f8bbd0; padding-bottom: 6px; margin: 40px 0 14px; }
.sd-body h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 6px; }
.sd-body table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 4px; }
.sd-body th, .sd-body td { border: 1px solid #e0e0e0; padding: 6px 8px; text-align: center; }
.sd-body th { background: #fce4ec; }
.sd-body .sd-source { font-size: .8rem; color: #666; }
.sd-table-wrap { overflow-x: auto; }

@media (max-width: 575px) {
  .sd-page h1 { font-size: 1.3rem; }
  #shindan-app { padding: 18px 14px; }
  .sd-question { font-size: 1.1rem; }
  .sd-factors { grid-template-columns: 1fr; }
  .sd-result-score { font-size: 3.2rem; }
}

/* トップページ化（2026-09）：スマホで開いてすぐ1問目が見えるように */
.sd-hero { margin-bottom: 14px; }
.sd-hero h1 { margin: 0 0 6px; }
.sd-hero h1 span { display: block; font-size: .95rem; font-weight: 700; color: #c2185b; margin-top: 2px; }
.sd-hero .sd-lead { font-size: .95rem; margin: 0 0 10px; }
.sd-hero .sd-meta { margin: 0; }
.sd-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sd-points li { background: #fff8fa; border-radius: 10px; padding: 10px 14px; }
.sd-points strong { display: block; color: #c2185b; }
.sd-points span { font-size: .95rem; }
.sd-faq details { border: 1px solid #eee; border-radius: 10px; margin-bottom: 8px; background: #fff; }
.sd-faq summary { cursor: pointer; font-weight: 700; padding: 12px 40px 12px 14px; position: relative; list-style: none; }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: #e91e63; }
.sd-faq details[open] summary::after { content: "−"; }
.sd-faq details p { margin: 0; padding: 0 14px 12px; }
.sd-columns { list-style: none; padding: 0; margin: 0; }
.sd-columns li { border-bottom: 1px solid #eee; }
.sd-columns a { display: block; padding: 12px 4px; color: #333; text-decoration: none; }
.sd-columns a::after { content: " ›"; color: #e91e63; }
.sd-restart { text-align: center; margin-top: 32px; }
.sd-restart a { display: inline-block; background: #e91e63; color: #fff; font-weight: 700; border-radius: 999px; padding: 14px 40px; text-decoration: none; }
@media (max-width: 575px) {
  .sd-page { padding: 12px 12px 48px; }
  .sd-hero h1 { font-size: 1.35rem; }
  .sd-hero .sd-lead { font-size: .9rem; line-height: 1.7; }
  .sd-body h2 { font-size: 1.15rem; margin-top: 32px; }
  .sd-option { padding: 13px 14px; }
}

/* 結果：ランク・上位%・レーダー（2026-09） */
.sd-result-badges { display: flex; justify-content: center; gap: 8px; margin: 2px 0 4px; }
.sd-rank, .sd-top { display: inline-block; border-radius: 999px; padding: 2px 14px; font-weight: 800; font-size: .95rem; }
.sd-rank { color: #fff; background: #9e9e9e; }
.sd-rank-S { background: linear-gradient(135deg, #f9a825, #ef6c00); }
.sd-rank-A { background: #e91e63; }
.sd-rank-B { background: #7e57c2; }
.sd-rank-C { background: #42a5f5; }
.sd-rank-D { background: #78909c; }
.sd-top { background: #fff0f3; color: #c2185b; }
.sd-rank-text { margin: 0 0 8px; font-weight: 700; color: #555; font-size: .95rem; }
.sd-axes { display: grid; gap: 12px; }
.sd-radar { width: 100%; max-width: 380px; height: auto; margin: 0 auto; display: block; overflow: visible; }
.sd-radar-grid { fill: none; stroke: #e0e0e0; stroke-width: 1; }
.sd-radar-avg { fill: none; stroke: #9e9e9e; stroke-width: 1.5; stroke-dasharray: 4 3; }
.sd-radar-you { fill: rgba(233, 30, 99, .18); stroke: #e91e63; stroke-width: 2.5; stroke-linejoin: round; }
.sd-radar-dot { stroke: #fff; stroke-width: 1.5; }
.sd-radar-dot.is-strong { fill: #2e7d32; }
.sd-radar-dot.is-weak { fill: #ef6c00; }
.sd-radar-dot.is-normal { fill: #e91e63; }
.sd-radar-label { font-size: 13px; font-weight: 700; fill: #444; }
.sd-radar-legend { text-align: center; font-size: .8rem; color: #666; margin: -4px 0 0; }
.sd-legend-you::before { content: ""; display: inline-block; width: 14px; height: 3px; background: #e91e63; vertical-align: middle; margin-right: 4px; }
.sd-legend-avg { margin-left: 14px; }
.sd-legend-avg::before { content: ""; display: inline-block; width: 14px; border-top: 2px dashed #9e9e9e; vertical-align: middle; margin-right: 4px; }
.sd-axis-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sd-axis-list li { display: grid; grid-template-columns: 6.5em 1fr 2.8em 3em; align-items: center; gap: 8px; font-size: .95rem; }
.sd-axis-name { font-weight: 700; }
.sd-axis-bar { height: 10px; background: #f1f1f1; border-radius: 999px; overflow: hidden; position: relative; }
.sd-axis-bar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed #9e9e9e; }
.sd-axis-fill { display: block; height: 100%; border-radius: 999px; background: #e91e63; }
.is-strong .sd-axis-fill { background: #43a047; }
.is-weak .sd-axis-fill { background: #fb8c00; }
.sd-axis-value { text-align: right; font-weight: 700; }
.sd-axis-tag { text-align: center; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 0; background: #eee; color: #666; }
.is-strong .sd-axis-tag { background: #e8f5e9; color: #2e7d32; }
.is-weak .sd-axis-tag { background: #fff3e0; color: #e65100; }

/* トップ改善（2026-09）：写真・結果の見本・比較表 */
.sd-hero { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.sd-hero-img { display: none; }
@media (min-width: 768px) {
  .sd-hero { grid-template-columns: 1.3fr 1fr; }
  .sd-hero-img { display: block; width: 100%; height: auto; border-radius: 16px; aspect-ratio: 3 / 2; object-fit: cover; }
}
.sd-sample { position: relative; border: 2px dashed #f8bbd0; border-radius: 16px; padding: 16px; margin: 0 0 14px; background: #fffafc; }
.sd-sample-tag { position: absolute; top: -12px; left: 14px; background: #e91e63; color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 12px; margin: 0; }
.sd-sample-main { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; align-items: center; }
.sd-sample-label { margin: 0; font-size: .85rem; font-weight: 700; color: #c2185b; text-align: center; }
.sd-sample-score { margin: 0; font-size: 2.6rem; font-weight: 800; color: #e91e63; text-align: center; line-height: 1.2; }
.sd-sample .sd-result-badges { flex-wrap: wrap; }
.sd-sample-radar { width: 100%; height: auto; overflow: visible; }
.sd-compare th { white-space: nowrap; }
.sd-compare td { text-align: left; }
@media (max-width: 575px) {
  .sd-sample-main { grid-template-columns: 1fr; }
  .sd-sample-radar { max-width: 260px; margin: 0 auto; display: block; }
}
/* 強みが活きる場所 */
.sd-match { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-match li { border-radius: 12px; padding: 12px 14px; }
.sd-match li.is-strong { background: #e8f5e9; }
.sd-match li.is-weak { background: #fff3e0; }
.sd-match-title { font-weight: 700; margin: 0 0 4px; font-size: .95rem; }
.sd-match li.is-strong .sd-match-title { color: #2e7d32; }
.sd-match li.is-weak .sd-match-title { color: #e65100; }
.sd-match-text { margin: 0; font-size: .9rem; line-height: 1.7; }
.sd-match-link { display: inline-block; margin-top: 6px; font-size: .85rem; color: #d81b60; }
