.guide-hero {
    padding: 100px 24px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.guide-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #314e73;
    margin-bottom: 16px;
}

.guide-hero p {
    font-size: 16px;
    color: #4a6385;
    line-height: 1.65;
}

.guide-hero a {
    color: #e87722;
    font-weight: 600;
}

.guide-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.guide-toc {
    position: sticky;
    top: 84px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(49, 78, 115, 0.08);
    padding: 22px 24px;
}

.guide-toc h2 {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e87722;
    margin: 0 0 12px;
}

.guide-toc ol {
    margin: 0;
    padding-left: 18px;
}

.guide-toc li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.guide-toc a {
    color: #314e73;
    text-decoration: none;
}

.guide-toc a:hover,
.guide-toc a.active {
    color: #e87722;
    text-decoration: underline;
}

.guide-sections {
    background: white;
    border-radius: 34px;
    box-shadow: 0 2px 12px rgba(49, 78, 115, 0.08);
    padding: 8px 32px;
}

.guide-section {
    padding: 28px 0;
    scroll-margin-top: 60px;
}

.guide-section + .guide-section {
    border-top: 1px solid rgba(49, 78, 115, 0.08);
}

.guide-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #314e73;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-section p {
    font-size: 15px;
    color: #4a6385;
    line-height: 1.7;
    margin: 0 0 14px;
}

.guide-section p:last-child {
    margin-bottom: 0;
}

.guide-section ol,
.guide-section ul {
    margin: 0 0 14px;
    padding-left: 22px;
    font-size: 15px;
    color: #4a6385;
    line-height: 1.7;
}

.guide-section li {
    margin-bottom: 6px;
}

.guide-section a {
    color: #e87722;
    font-weight: 600;
}

.guide-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(232, 119, 34, 0.12);
    color: #e87722;
}

.guide-note {
    clear: both;
    background: rgba(49, 78, 115, 0.06);
    border-left: 3px solid #314e73;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 14px;
    font-size: 14px;
    color: #314e73;
    line-height: 1.6;
}

.guide-note:last-child {
    margin-bottom: 0;
}

.guide-section::after {
    content: "";
    display: block;
    clear: both;
}

.guide-figure {
    float: right;
    width: 260px;
    margin: 0 0 14px 20px;
    text-align: center;
}

.guide-figure img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(49, 78, 115, 0.16);
    cursor: zoom-in;
}

.guide-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(49, 78, 115, 0.7);
    padding: 40px;
    cursor: zoom-out;
}

.guide-lightbox.open {
    display: flex;
}

.guide-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.guide-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #4a6385;
    font-style: italic;
    text-align: left;
}

.guide-figure-small {
    width: 195px;
}

.guide-figure-large {
    width: 430px;
}

@media (max-width: 600px) {
    .guide-figure {
        float: none;
        width: 100%;
        margin: 0 0 14px;
    }
}

@media (max-width: 860px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        position: static;
    }

    .guide-toc ol {
        columns: 2;
        column-gap: 24px;
    }
}

@media (max-width: 600px) {
    .guide-toc ol {
        columns: 1;
    }

    .guide-sections {
        padding: 8px 20px;
    }
}
