/* Only the four symptom guides. Existing global header, footer and forms are preserved. */
html body.wn-trouble-guide {
    --guide-ink: #232a3d;
    --guide-muted: #586174;
    --guide-accent: #9c4c25;
    --guide-line: #dcdedc;
    --guide-paper: #fcfcf9;
    --guide-tint: #f3f1e9;
}
html body.navigator.wn-trouble-guide:not(.home) .site-main > .container.layout { max-width: 1160px; padding: 48px 32px 72px !important; margin-block: 0 !important; }
html body.wn-trouble-guide .layout__main--full { max-width: none; }
html body.navigator.wn-trouble-guide:not(.home) .page-default { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body.wn-trouble-guide .page-default {
    padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    color: var(--guide-ink);
}
html body.wn-trouble-guide .page-default__header { margin: 0 0 24px; padding: 0; }
html body.wn-trouble-guide .page-default__header::before {
    content: "WORDPRESS  /  症状別ガイド"; display: block; margin-bottom: 20px;
    color: var(--guide-accent); font-size: 12px; font-weight: 700; letter-spacing: .1em;
}
html body.wn-trouble-guide .page-default__title {
    max-width: 920px; margin: 0; font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.5 !important; letter-spacing: -.025em !important; color: var(--guide-ink);
    text-wrap: balance !important; word-break: auto-phrase !important; overflow-wrap: break-word;
}
html body.wn-trouble-guide .page-default__title .wn-heading-phrase { display: inline !important; white-space: normal; word-break: inherit !important; }
html body.wn-trouble-guide .page-default__title wbr { display: none; }
html body.wn-trouble-guide .wn-editorial-lead {
    max-width: 48em; margin: 0 0 48px !important; font-size: 17px !important;
    line-height: 1.95 !important; color: var(--guide-muted);
}
html body.wn-trouble-guide .wn-guide-layout {
    display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px;
    padding-top: 32px; border-top: 1px solid var(--guide-line); align-items: start;
}
html body.wn-trouble-guide .wn-guide-reading { min-width: 0; }
html body.wn-trouble-guide .wn-guide-layout > .wn-guide-index { position: sticky; top: 174px; }
html body.wn-trouble-guide .wn-guide-index__label {
    margin: 0 0 18px !important; font-size: 13px !important; font-weight: 700; color: var(--guide-ink);
}
html body.wn-trouble-guide .wn-guide-index ol {
    list-style: none; counter-reset: guide-index; margin: 0 !important; padding: 0 !important;
}
html body.wn-trouble-guide .wn-guide-index li { counter-increment: guide-index; margin: 0 !important; padding: 0 !important; }
html body.wn-trouble-guide .wn-guide-index li::before { content: none !important; }
html body.wn-trouble-guide .wn-guide-index li a {
    display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 0;
    color: var(--guide-muted) !important; font-size: 13px; line-height: 1.7; font-weight: 500; text-decoration: none !important;
}
html body.wn-trouble-guide .wn-guide-index li a::before {
    content: counter(guide-index, decimal-leading-zero); color: var(--guide-accent); font-variant-numeric: tabular-nums;
}
html body.wn-trouble-guide a.wn-guide-index__back {
    display: inline-block; margin-top: 22px; padding: 12px 0; border-top: 1px solid var(--guide-line);
    font-size: 12px; color: var(--guide-muted) !important; text-decoration-color: currentColor !important; text-underline-offset: 5px;
}
html body.wn-trouble-guide .wn-guide-index a[aria-current="location"] { color: var(--guide-accent) !important; font-weight: 700; }
html body.wn-trouble-guide .wn-guide-index-mobile { display: none; }
html body.wn-trouble-guide .wn-guide-reading > .wn-editorial[data-wn-editorial="sections"] {
    display: block; width: 100%; max-width: none; margin: 0; color: var(--guide-ink);
}
html body.wn-trouble-guide .wn-editorial > .wn-editorial__section {
    position: relative; margin: 0; padding: 36px 0 36px 52px !important; border: 0;
    border-bottom: 1px solid var(--guide-line); border-radius: 0; background: transparent; box-shadow: none;
    scroll-margin-top: 180px;
}
html body.wn-trouble-guide .wn-editorial > .wn-editorial__section:first-child { padding-top: 0 !important; }
html body.wn-trouble-guide .wn-guide-number {
    position: absolute; left: 0; top: 40px; font-size: 13px; color: var(--guide-accent);
    font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .08em;
}
html body.wn-trouble-guide .wn-editorial__section:first-child > .wn-guide-number { top: 5px; }
html body.wn-trouble-guide .wn-editorial .wn-editorial__section h2 {
    display: block; margin: 0 0 20px !important; padding: 0 !important; font-size: 23px !important;
    line-height: 1.6 !important; color: var(--guide-ink); text-wrap: pretty !important;
}
html body.wn-trouble-guide .wn-editorial .wn-visual-points {
    display: block; margin: 0 !important; padding: 0 !important; list-style: none;
}
html body.wn-trouble-guide .wn-editorial .wn-visual-points > li {
    position: relative; margin: 0 0 14px !important; padding: 0 0 0 18px !important;
    font-size: 16px !important; line-height: 1.95 !important; color: var(--guide-muted);
}
html body.wn-trouble-guide .wn-editorial .wn-visual-points > li:last-child { margin-bottom: 0 !important; }
html body.wn-trouble-guide .wn-editorial .wn-visual-points > li::before {
    content: "" !important; position: absolute; width: 4px; height: 4px; top: 14px; left: 0;
    border-radius: 50%; background: var(--guide-accent);
}
html body.wn-trouble-guide .wn-editorial a:not(.wn-editorial__button) { color: var(--guide-accent) !important; text-decoration-color: currentColor !important; text-decoration-thickness: 1px !important; text-underline-offset: 4px; }
html body.wn-trouble-guide .wn-faq-pair { margin: 24px 0 0; padding: 0; border: 0; background: transparent; }
html body.wn-trouble-guide .wn-faq-pair h3 {
    margin: 0 0 8px !important; padding: 0 !important; border: 0; font-size: 17px !important; line-height: 1.8 !important; color: var(--guide-ink);
}
html body.wn-trouble-guide .wn-faq-pair h3::before,
html body.wn-trouble-guide .wn-faq-pair h3::after { content: none !important; }
html body.wn-trouble-guide .wn-editorial .wn-faq-pair p { color: var(--guide-muted); line-height: 1.95; }
html body.wn-trouble-guide .wn-editorial.wn-editorial__links {
    width: 100%; margin: 36px 0; padding: 24px 28px !important; border: 0;
    border-radius: 4px; background: var(--guide-tint); color: var(--guide-ink);
}
html body.wn-trouble-guide .wn-editorial__links h2 {
    margin: 0 0 12px !important; padding: 0; font-size: 15px !important; line-height: 1.7; background: transparent;
}
html body.wn-trouble-guide .wn-editorial.wn-editorial__links > ul { display: block !important; margin: 0 !important; padding: 0 !important; }
html body.wn-trouble-guide .wn-editorial.wn-editorial__links > ul > li { margin: 0 !important; padding: 0 !important; }
html body.wn-trouble-guide .wn-editorial.wn-editorial__links > ul > li::before { content: none !important; }
html body.wn-trouble-guide .wn-editorial__links a { display: block; padding: 10px 0; font-size: 14px; line-height: 1.75; }
html body.wn-trouble-guide .wn-guide-support {
    padding: 32px; background: var(--guide-paper); border: 1px solid var(--guide-line); border-radius: 6px;
}
html body.wn-trouble-guide .wn-guide-support__intro { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
html body.wn-trouble-guide .wn-guide-support__intro img { width: 64px; height: 64px; object-fit: contain; margin: 0; border-radius: 50%; }
html body.wn-trouble-guide .wn-guide-support__label { color: var(--guide-accent); font-size: 12px !important; font-weight: 700; margin: 0 0 10px !important; }
html body.wn-trouble-guide .wn-guide-support h2 {
    margin: 0 0 14px !important; padding: 0; border: 0; background: transparent; color: var(--guide-ink);
    font-size: 23px !important; line-height: 1.6 !important; text-wrap: pretty;
}
html body.wn-trouble-guide .wn-guide-support h2::before,
html body.wn-trouble-guide .wn-guide-support h2::after { content: none !important; }
html body.wn-trouble-guide .wn-guide-support p { font-size: 15px; line-height: 1.9; color: var(--guide-muted); margin: 0 0 20px; }
html body.wn-trouble-guide a.wn-guide-button {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
    max-width: 100%; min-height: 48px; box-sizing: border-box; padding: 14px 22px;
    background: #232a3d; color: #fff !important; border: 1px solid #232a3d; border-radius: 4px;
    font-size: 14px; font-weight: 700; line-height: 1.65; text-decoration: none !important;
}
html body.wn-trouble-guide .wn-guide-questions { margin: 28px 0 0; padding: 0; border: 0; border-top: 1px solid var(--guide-line); background: transparent; }
html body.wn-trouble-guide .wn-guide-questions > summary { padding: 20px 0 0; cursor: pointer; color: var(--guide-ink); }
html body.wn-trouble-guide .wn-guide-questions summary h3 { display: inline; margin: 0; padding: 0; font-size: 16px !important; line-height: 1.8; border: 0; }
html body.wn-trouble-guide .wn-guide-questions summary h3::before,
html body.wn-trouble-guide .wn-guide-questions summary h3::after { content: none !important; }
html body.wn-trouble-guide .wn-guide-questions summary > span { display: inline-block; margin-left: 10px; font-size: 12px; color: var(--guide-muted); }
html body.wn-trouble-guide .wn-guide-support .wn-consult { margin: 20px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--guide-ink); }
html body.wn-trouble-guide .wn-consult__optional { margin: 0 !important; padding: 0 !important; }
html body.wn-trouble-guide .wn-consult__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body.wn-trouble-guide .wn-consult__options button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
html body.wn-trouble-guide .wn-consult__heading { margin: 20px 0 12px !important; padding: 0; line-height: 1.7; }
html body.wn-trouble-guide .wn-consult__heading::before,
html body.wn-trouble-guide .wn-consult__heading::after { content: none !important; }
html body.wn-trouble-guide .wn-guide-layout :is(a, button, summary, input):focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 4px; }
@media (hover: hover) {
    html body.wn-trouble-guide .wn-guide-index a:hover { color: var(--guide-accent) !important; text-decoration: underline !important; text-underline-offset: 5px; }
    html body.wn-trouble-guide .wn-guide-button:hover { background: #3b465f; }
}
@media (max-width: 1000px) {
    html body.navigator.wn-trouble-guide:not(.home) .site-main > .container.layout { max-width: 840px; padding: 36px 28px 56px !important; }
    html body.wn-trouble-guide .wn-guide-layout { display: block; padding-top: 0; border: 0; }
    html body.wn-trouble-guide .wn-guide-layout > .wn-guide-index { display: none; }
    html body.wn-trouble-guide .wn-guide-index-mobile { display: block; margin: 0 0 32px; padding: 0; border: 0; border-block: 1px solid var(--guide-line); background: transparent; }
    html body.wn-trouble-guide .wn-guide-index-mobile > summary { padding: 16px 0; font-size: 14px; color: var(--guide-ink); cursor: pointer; }
    html body.wn-trouble-guide .wn-guide-index-mobile .wn-guide-index { padding: 8px 0 20px; }
    html body.wn-trouble-guide .wn-guide-index-mobile .wn-guide-index__label { display: none; }
}
@media (max-width: 600px) {
    html body.navigator.wn-trouble-guide:not(.home) .site-main > .container.layout { padding: 28px 22px 40px !important; }
    html body.wn-trouble-guide .page-default__header::before { font-size: 10px; margin-bottom: 14px; }
    html body.wn-trouble-guide .page-default__header { margin-bottom: 18px; }
    html body.wn-trouble-guide .page-default__title { font-size: 28px !important; line-height: 1.5 !important; }
    html body.wn-trouble-guide .wn-editorial-lead { font-size: 15px !important; line-height: 1.9 !important; margin-bottom: 24px !important; }
    html body.wn-trouble-guide .wn-editorial > .wn-editorial__section { padding: 28px 0 !important; scroll-margin-top: 128px; }
    html body.wn-trouble-guide .wn-guide-number { position: static; display: block; margin-bottom: 8px; font-size: 12px; }
    html body.wn-trouble-guide .wn-editorial .wn-editorial__section h2 { font-size: 20px !important; margin-bottom: 16px !important; }
    html body.wn-trouble-guide .wn-editorial .wn-visual-points > li { font-size: 15px !important; line-height: 1.9 !important; }
    html body.wn-trouble-guide .wn-editorial.wn-editorial__links { padding: 20px !important; margin: 28px 0; }
    html body.wn-trouble-guide .wn-guide-support { padding: 22px 20px; }
    html body.wn-trouble-guide .wn-guide-support__intro { display: block; }
    html body.wn-trouble-guide .wn-guide-support__intro img { width: 56px; height: 56px; margin-bottom: 12px; }
    html body.wn-trouble-guide .wn-guide-support h2 { font-size: 21px !important; }
    html body.wn-trouble-guide .wn-guide-button { width: 100%; padding: 14px 16px; }
    html body.wn-trouble-guide .wn-consult__options { grid-template-columns: minmax(0, 1fr); }
}
html[data-theme="dark"] body.wn-trouble-guide {
    --guide-ink: #eef0f4; --guide-muted: #c3c9d4; --guide-accent: #eab18c;
    --guide-line: #414a5c; --guide-paper: #202839; --guide-tint: #262e3e;
}
html[data-theme="dark"] body.wn-trouble-guide a.wn-guide-button { background: #eef0f4; border-color: #eef0f4; color: #232a3d !important; }
@media print {
    html body.wn-trouble-guide .wn-guide-layout { display: block; }
    html body.wn-trouble-guide .wn-guide-index,
    html body.wn-trouble-guide .wn-guide-index-mobile,
    html body.wn-trouble-guide .wn-guide-questions { display: none; }
}
