.jzn-hero .jzn-hero__inner {
    padding-top: 6rem !important;
    padding-bottom: 2rem !important;
}

.jzn-page {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    color: var(--ar-body-color);
}

.jzn-sheet {
    display: grid;
    grid-template-columns: minmax(8.5rem, 30%) minmax(0, 1fr);
    gap: 1.25rem 1.75rem;
    align-items: start;
}

.jzn-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border-radius: 0.75rem;
}

.jzn-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 16rem;
    object-fit: contain;
}

.jzn-shot-code,
.jzn-thumb span {
    display: block;
    margin-top: 0.2rem;
    color: var(--ar-body-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.jzn-stage .jzn-shot:not(.is-active) {
    display: none;
}

.jzn-thumbs {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.jzn-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 4.5rem;
    padding: 0.25rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px var(--ar-border-color, rgba(128, 128, 128, 0.35));
}

.jzn-thumb img {
    display: block;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.jzn-thumb.is-active {
    box-shadow: 0 0 0 2px var(--ar-primary);
}

.jzn-carousel {
    --swiper-theme-color: var(--ar-primary);
    --swiper-pagination-color: var(--ar-primary);
    --swiper-pagination-bullet-inactive-color: var(--ar-body-color);
    --swiper-pagination-bullet-inactive-opacity: 0.35;
}

.jzn-carousel .swiper-slide {
    display: flex;
    height: auto;
}

.jzn-carousel .jzn-shot {
    width: 100%;
    min-height: 6.75rem;
    padding: 0.2rem;
}

.jzn-carousel .jzn-shot img {
    width: auto;
    max-width: 100%;
    height: 6.25rem;
    max-height: 6.25rem;
    object-fit: contain;
}

.jzn-media > .jzn-carousel-pages {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin-top: 0.625rem;
    transform: none;
}

.jzn-carousel-pages.swiper-pagination-lock,
.jzn-carousel-pages:empty {
    display: none;
    margin-top: 0;
}

.jzn-number {
    margin: 0 0 0.25rem;
    color: var(--ar-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.jzn-title {
    margin: 0 0 0.5rem;
    color: var(--ar-heading-color);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.jzn-official {
    font-size: 1.0625rem;
    line-height: 1.65;
}

.jzn-official p,
.jzn-official ul,
.jzn-official ol {
    margin: 0 0 0.7rem;
}

.jzn-official li + li {
    margin-top: 0.3rem;
}

.jzn-official > [hidden] {
    display: none !important;
}

.jzn-toggle {
    margin-top: 0.35rem;
}

.jzn-toggle[hidden] {
    display: none !important;
}

.jzn-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    margin-top: 1.5rem;
}

.card.jzn-step {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    height: 100%;
    color: inherit;
}

.jzn-step-next {
    justify-content: flex-end;
    text-align: right;
}

.jzn-step img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: 0.5rem;
    flex: 0 0 auto;
}

.jzn-step-title,
.jzn-step-name {
    display: block;
    overflow-wrap: break-word;
}

.jzn-step-title {
    color: var(--ar-primary);
    font-weight: 700;
}

.jzn-catalog {
    align-self: center;
    white-space: nowrap;
}

.jzn-dock {
    display: none;
}

.jzn-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.875rem;
    margin-bottom: 1.75rem;
}

.jzn-note-keys {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.jzn-note kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding: 0;
    color: inherit;
    line-height: 1;
    background: transparent;
    border: 1px solid var(--ar-border-color, rgba(128, 128, 128, 0.35));
    border-radius: 0.35rem;
    box-shadow: none;
}

.jzn-note kbd i {
    font-size: 0.85rem;
    color: inherit;
    opacity: 0.85;
}

.jzn-explain {
    margin-top: 0;
}

.jzn-explain.jzn-explain-wide > [class*="col-"],
.jzn-explain:has(> aside.joldo-ad-shell--collapsed) > .col-lg-8 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .jzn-hero .jzn-hero__inner {
        padding-top: 5.25rem !important;
        padding-bottom: 1.25rem !important;
    }
}

@media (max-width: 767.98px) {
    .jzn-page {
        padding-top: 1.25rem;
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
    }

    .jzn-sheet {
        grid-template-columns: 6.875rem minmax(0, 1fr);
        gap: 0.75rem 0.85rem;
        align-items: start;
    }

    .jzn-sheet .jzn-copy {
        display: contents;
    }

    .jzn-sheet .jzn-body {
        grid-column: 1 / -1;
    }

    .jzn-sheet:not(.jzn-sheet-group) .jzn-shot {
        padding: 0;
    }

    .jzn-sheet:not(.jzn-sheet-group) .jzn-shot img {
        width: 6.875rem;
        max-height: 7.5rem;
    }

    .jzn-sheet-group {
        display: block;
    }

    .jzn-sheet-group .jzn-copy {
        display: block;
        margin-top: 0.85rem;
    }

    .jzn-title {
        font-size: 1.1875rem;
    }

    .jzn-official {
        font-size: 1rem;
        line-height: 1.55;
    }

    .jzn-nav,
    .jzn-note {
        display: none;
    }

    .jzn-explain {
        margin-top: 1.5rem;
    }

    .jzn-dock {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom));
        background: var(--ar-body-bg);
        color: var(--ar-body-color);
        border-top: 1px solid var(--ar-border-color, rgba(128, 128, 128, 0.28));
    }

    .jzn-dock a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-width: 0;
        padding: 0.15rem;
        color: inherit;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
    }

    .jzn-dock i {
        font-size: 1.15rem;
    }

    .jzn-dock span {
        overflow-wrap: anywhere;
    }

    .jzn-dock-catalog {
        color: var(--ar-primary);
    }
}

html.lg-on .jzn-dock,
body.lg-on .jzn-dock,
body:has(.modal.show) .jzn-dock,
body:has(.modal-backdrop) .jzn-dock {
    display: none;
}

@media print {
    .jzn-page {
        padding-top: 0;
        padding-bottom: 0;
    }

    .jzn-official > [hidden] {
        display: block !important;
    }

    .jzn-toggle,
    .jzn-dock,
    .jzn-note,
    .jzn-thumbs,
    .jzn-carousel-pages {
        display: none !important;
    }
}
