/* 使い方ガイド（刷新版）。配色は auth.css / onboarding.css と共通のトーン。 */
.guide {
    --g-ink: #142426;
    --g-muted: #55645e;
    --g-line: #dfe5da;
    --g-soft: #f7f8f3;
    --g-lime: #d1ef83;
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    color: var(--g-ink);
    font-family: Arial, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    word-break: auto-phrase;
}
.guide *, .guide *::before, .guide *::after { box-sizing: border-box; }
.guide a { color: #31584a; font-weight: 700; text-underline-offset: 4px; }
.guide a:hover { color: var(--g-ink); }
.guide :is(a, summary):focus-visible { outline: 3px solid #799d33; outline-offset: 3px; }

.guide-crumb { margin: 0 0 24px; font-size: 14px; color: var(--g-muted); }
.guide-crumb a { font-weight: 400; }

.guide-header { margin-bottom: 28px; }
.guide-eyebrow { margin: 0 0 8px; color: #4d6b1f; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.guide-header h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; line-height: 1.4; }
.guide-lead { margin: 0; color: var(--g-muted); }

.guide-summary { margin: 0 0 40px; padding: 20px 24px; border-radius: 14px; background: var(--g-soft); border: 1px solid var(--g-line); }
.guide-summary p { margin: 0 0 6px; font-weight: 700; }
.guide-summary ul { margin: 0; padding-left: 1.2em; }

.guide-toc { margin: 0 0 48px; }
.guide-toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.guide-toc a { display: inline-block; padding: 8px 16px; border: 1px solid var(--g-line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }

.guide-step { position: relative; margin: 0 0 56px; padding-left: 60px; scroll-margin-top: 90px; }
.guide-step-num {
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--g-ink);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.guide-step h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height: 1.5; }
.guide-step h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.guide-step p { margin: 0 0 14px; }
.guide-step ul, .guide-step ol { margin: 0 0 14px; padding-left: 1.3em; }
.guide-step li { margin-bottom: 6px; }

.guide-fields { margin: 0 0 16px; border: 1px solid var(--g-line); border-radius: 12px; overflow: hidden; }
.guide-fields > div { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--g-line); background: #fff; }
.guide-fields > div:first-child { border-top: 0; }
.guide-fields dt { flex: none; width: 11.5em; font-weight: 700; }
.guide-fields dd { margin: 0; color: var(--g-muted); }

.guide-table-wrap { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--g-line); border-radius: 12px; background: #fff; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-table th, .guide-table td { padding: 10px 14px; border-top: 1px solid var(--g-line); text-align: left; vertical-align: top; }
.guide-table thead th { border-top: 0; background: var(--g-soft); font-weight: 700; white-space: nowrap; }
.guide-table td { color: var(--g-muted); }
.guide-table th[scope="row"] { font-weight: 700; white-space: nowrap; }

.guide-figure { margin: 20px 0 8px; }
.guide-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--g-line); border-radius: 12px; box-shadow: 0 10px 30px #14242610; background: #fff; }
.guide-figure figcaption { margin-top: 8px; color: var(--g-muted); font-size: 13px; text-align: center; }

.guide-note { margin: 16px 0; padding: 14px 18px; border-radius: 10px; background: #f3f7e8; border-left: 4px solid #799d33; font-size: 15px; }
.guide-note > strong:first-child { display: block; margin-bottom: 2px; }
.guide-warn { background: #fdf6e7; border-left-color: #c58b1a; }

.guide-button { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--g-ink); color: #fff !important; font-weight: 700; text-decoration: none; }
.guide-button:hover { background: #24423f; }

.guide-section-title { margin: 64px 0 16px; font-size: 22px; font-weight: 800; }
.guide-faq details { margin: 0 0 10px; border: 1px solid var(--g-line); border-radius: 12px; background: #fff; }
.guide-faq summary { padding: 14px 18px; font-weight: 700; cursor: pointer; }
.guide-faq details > div { padding: 0 18px 16px; color: var(--g-muted); }
.guide-faq details > div p { margin: 0; }

.guide-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-next a { display: block; padding: 16px 18px; border: 1px solid var(--g-line); border-radius: 12px; background: #fff; text-decoration: none; }
.guide-next a span { display: block; color: var(--g-muted); font-size: 13px; font-weight: 400; }
.guide-next a:hover { border-color: #9fb87a; }

.guide-help { margin: 48px 0 0; padding: 20px; border-radius: 12px; background: var(--g-soft); text-align: center; color: var(--g-muted); font-size: 15px; }

@media (max-width: 640px) {
    .guide { padding: 24px 16px 64px; }
    .guide-step { padding-left: 0; }
    .guide-step-num { position: static; margin-bottom: 10px; }
    .guide-fields > div { flex-direction: column; gap: 0; }
    .guide-next { grid-template-columns: 1fr; }
}
