/* 悩みの一覧。本文の読みやすい幅とページ全体の幅を、案内＋本文のグリッドで揃える。 */
.need-page { --need-blue: #145b86; --need-ink: #23374b; --need-line: #d8e3e9; --need-soft: #f2f8fb; color: var(--need-ink); }
.need-page .listing-hero.is-need { border: 1px solid var(--need-line); border-bottom: 0; border-radius: 24px 24px 0 0; }
.need-page .need-header { padding: 32px 40px; gap: 24px; background: #fff9db; border: 1px solid var(--need-line); border-top: 0; border-radius: 0 0 24px 24px; margin-bottom: 48px; }
.need-page .need-header:first-child { margin-top: 24px; border-top: 1px solid var(--need-line); border-radius: 24px; }
.need-header > div { min-width: 0; }
.need-page .need-header .category-art { width: 68px; height: 68px; border: 1px solid #e8dfb5; color: var(--need-blue); }
.need-page .need-header .page-title { color: var(--need-ink); font-size: clamp(1.5rem, 2.3vw, 1.875rem); line-height: 1.6; text-wrap: balance; }
.need-page .need-header .page-lead { max-width: 58em; margin-top: 10px; }
.need-page .section-kicker { color: var(--need-blue); letter-spacing: .16em; }
.need-page .listing-meta { margin-top: 14px; }
.need-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 48px; align-items: start; }
.need-reading { min-width: 0; }
.need-guide { position: sticky; top: 28px; min-width: 0; max-height: calc(100dvh - 56px); overflow-y: auto; scrollbar-width: thin; }
.need-toc { padding: 24px 20px 20px; background: #fff; border: 1px solid var(--need-line); border-radius: 18px; }
.need-toc-kicker { margin: 0 0 6px; font-size: .875rem; font-weight: 700; letter-spacing: .12em; color: var(--need-blue); }
.need-toc h2 { margin: 0 0 16px; font-size: 1.125rem; }
.need-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: need-toc; }
.need-toc li { counter-increment: need-toc; border-top: 1px solid #e7edf1; }
.need-toc li a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 12px 0; color: var(--need-ink); font-size: .9375rem; line-height: 1.7; text-decoration: none; }
.need-toc li a::before { content: counter(need-toc, decimal-leading-zero); font-size: .875rem; font-weight: 700; color: var(--need-blue); }
.need-toc a:hover { color: var(--need-blue); text-decoration: underline; }
.need-toc-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 10px 14px; background: #fff5ab; border-radius: 8px; color: var(--need-ink); font-size: .9375rem; font-weight: 700; text-decoration: none; }
.need-guide-note { display: flex; align-items: center; justify-content: center; gap: 2px; padding-top: 20px; }
.need-guide-note .people { width: 76px; }
.need-guide-note p { margin: 0; font-size: .875rem; line-height: 1.8; color: #5b6b77; }
.need-page .need-summary { position: relative; width: 100%; max-width: none; margin: 0 0 48px; padding: 30px 32px; background: #f3f9fc; border: 1px solid #c9dfe9; border-radius: 18px; }
.need-page .need-summary-kicker { padding: 3px 14px; margin-bottom: 16px; background: #fff2a3; border: 0; color: var(--need-ink); }
.need-page .need-summary-question { color: var(--need-ink); font-size: 1.5rem; line-height: 1.65; margin-bottom: 14px; }
.need-page .need-summary-answer { font-size: 1.125rem; line-height: 1.95; }
.need-page .need-summary-points { list-style: none; padding: 20px 0 0; margin: 22px 0 0; border-top: 1px solid #ccdee8; display: grid; gap: 14px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: need-point; }
.need-page .need-summary-points li { position: relative; padding-left: 32px; margin: 0; counter-increment: need-point; }
.need-page .need-summary-points li::before { content: counter(need-point); position: absolute; left: 0; top: 3px; width: 23px; height: 23px; display: grid; place-items: center; background: #fff; border: 1px solid #bdd4e2; border-radius: 50%; color: var(--need-blue); font-size: .875rem; font-weight: 700; line-height: 1; }
.need-page .listing-overview { width: 100%; max-width: none; margin: 0 0 64px; counter-reset: need-section; }
.need-page .listing-overview > :first-child { margin-top: 0; }
.need-page .listing-overview h2 { position: relative; counter-increment: need-section; margin: 48px 0 22px; padding: 4px 0 16px 52px; background: none; border-bottom: 1px solid var(--need-line); border-radius: 0; font-size: 1.5rem; line-height: 1.65; color: var(--need-ink); }
.need-page .listing-overview h2::before { content: counter(need-section, decimal-leading-zero); position: absolute; left: 0; top: 4px; color: var(--need-blue); font-size: 1.5rem; font-weight: 700; }
.need-page .listing-overview h3 { padding: 16px 20px; margin: 24px 0 0; border: 0; border-left: 3px solid #aacbdc; border-radius: 0 10px 0 0; background: var(--need-soft); color: var(--need-ink); font-size: 1.125rem; line-height: 1.8; }
.need-page .listing-overview h3 + p { padding: 0 20px 20px 23px; background: var(--need-soft); border-radius: 0 0 10px 10px; margin-top: 0; }
.need-page .listing-overview a { color: var(--need-blue); text-decoration-color: #9fbfd3; text-decoration-thickness: 1px; word-break: normal; overflow-wrap: anywhere; }
.need-page .listing-overview a:hover { text-decoration-color: currentColor; }
.need-page .listing-overview table { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.need-page .listing-overview pre { max-width: 100%; overflow-x: auto; }
.need-page .need-answers { margin: 0; padding-top: 32px; border-top: 1px solid var(--need-line); }
.need-section-heading { margin-bottom: 24px; }
.need-page .need-section-heading .section-heading { margin: 0 0 8px; }
.need-section-lead { margin: 8px 0 0; font-size: 1rem; line-height: 1.85; color: #536573; }
.need-page .need-answer-list { gap: 20px; }
.need-page .need-answer-list li { padding: 26px 28px 24px 72px; border: 1px solid var(--need-line); border-radius: 14px; background: #fff; }
.need-page .need-answer-list li::before { top: 26px; left: 24px; border: 0; border-radius: 9px; background: #fff2a3; color: var(--need-ink); }
.need-page .need-answer-q { margin-bottom: 12px; font-size: 1.25rem; color: var(--need-ink); }
.need-page .need-answer-a { margin-bottom: 18px; font-size: 1.0625rem; line-height: 1.95; }
.need-page .need-answer-link { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; gap: 18px; border-top: 1px solid #e6edf1; color: var(--need-blue); line-height: 1.8; }
.need-page .need-answer-link > span:first-child { min-width: 0; }
.need-answer-link small { display: block; font-size: .875rem; font-weight: 400; color: #536573; margin-bottom: 3px; }
.need-page .need-answer-link > span:last-child { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #edf6fb; }
.need-page .listing-articles { margin-top: 64px; padding-top: 40px; border-top: 2px solid #d4e5ed; }
.need-page .need-articles-heading { margin-bottom: 28px; }
.need-page .need-grid-heading { margin: 0; }
.need-page .article-card { border-color: var(--need-line); border-radius: 16px; }
.need-page .article-card-body { padding: 24px; }
.need-page .article-card-body h3 { font-size: 1.125rem; }
.need-discover { margin-top: 64px; padding: 32px; background: var(--need-soft); border: 1px solid #dfebf1; border-radius: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; }
.need-discover:empty { display: none; }
.need-page .need-discover .need-links { margin: 0; min-width: 0; }
.need-discover .need-links:only-child { grid-column: 1 / -1; }
.need-page .need-discover .section-heading { margin-bottom: 18px; font-size: 1.25rem; font-family: var(--font-reading); }
.need-page .need-chips { gap: 10px; }
.need-page .need-chips a { padding: 10px 16px; border: 1px solid #c7dce7; border-radius: 12px; color: var(--need-ink); }
.need-page .need-chips a:hover { background: #fff5b3; border-color: #c7b550; }
.need-page :is(h2, h3, #listing-articles) { scroll-margin-top: 28px; }
@media (max-width: 1100px) {
  .need-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .need-page .need-summary { padding: 24px; }
  .need-page .need-summary-points { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .need-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .need-guide { position: static; max-height: none; overflow: visible; }
  .need-toc { padding: 24px; background: #f7fafc; }
  .need-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .need-toc-all { width: fit-content; gap: 24px; }
  .need-guide-note { display: none; }
  .need-page .need-summary-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-page .need-header { padding: 28px; }
  .need-discover { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
  .need-page .listing-hero.is-need { border-radius: 18px 18px 0 0; }
  .need-page .need-header { padding: 24px 20px; display: block; border-radius: 0 0 18px 18px; margin-bottom: 28px; }
  .need-page .need-header .category-art { display: none; }
  .need-page .need-header .page-title { font-size: 1.5rem; font-family: var(--font-reading); text-wrap: initial; }
  .need-page .need-header .page-lead { line-height: 1.9; }
  .need-toc { padding: 20px; border-radius: 14px; }
  .need-toc ol { grid-template-columns: minmax(0, 1fr); }
  .need-toc li a { padding: 10px 0; font-size: 1rem; }
  .need-toc-all { width: 100%; }
  .need-page .need-summary { padding: 24px 20px; margin-bottom: 36px; border-radius: 14px; }
  .need-page .need-summary-question { font-size: 1.3125rem; }
  .need-page .need-summary-points { grid-template-columns: minmax(0, 1fr); }
  .need-page .listing-overview { margin-bottom: 44px; }
  .need-page .listing-overview h2 { font-size: 1.375rem; padding-left: 42px; margin-top: 36px; }
  .need-page .listing-overview h2::before { font-size: 1.375rem; }
  .need-page .listing-overview h3 { padding: 14px 16px; }
  .need-page .listing-overview h3 + p { padding: 0 16px 18px 19px; }
  .need-page .need-answer-list li { padding: 22px 20px; }
  .need-page .need-answer-list li::before { position: static; margin-bottom: 14px; }
  .need-page .need-answer-q { font-size: 1.1875rem; }
  .need-page .listing-articles { margin-top: 44px; padding-top: 30px; }
  .need-page .article-card-body { padding: 22px; }
  .need-discover { margin-top: 44px; padding: 24px 20px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .need-guide { position: static; max-height: none; overflow: visible; }
}
