#kp-sales-top-preview > .kp-sales-results[aria-live] .kp-sales-child-nav .kp-sales-descendant-link > span[aria-hidden="true"],
#kp-sales-mobile-children > a > span[aria-hidden="true"] {
    color: #8c9690;
}

#kp-sales-mobile-children,
#kp-sales-mobile-children[hidden] {
    display: none;
}

@media (max-width: 780px) {
    #kp-sales-mobile-children:not([hidden]) {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 1rem;
        margin: .25rem 0 .7rem;
        padding: .2rem .55rem;
        background: transparent;
    }
    #kp-sales-mobile-children > a {
        display: inline-flex;
        align-items: baseline;
        gap: .25em;
        min-width: calc((100% - 3rem) / 4);
        max-width: 100%;
        padding: .4em 0;
        color: #0754a6;
        font-size: 1rem;
        line-height: 1.45;
        text-decoration: none;
    }
    #kp-sales-mobile-children > a:is(:hover, :focus-visible, [aria-current="page"]) {
        text-decoration: underline;
        text-underline-offset: .2em;
    }
    #kp-sales-mobile-children > .kp-sales-child-line-break {
        flex: 0 0 100%;
        height: 0;
        align-self: flex-start;
    }
    #kp-sales-top-preview > .kp-sales-results[aria-live] .kp-sales-child-nav .kp-sales-parent-link,
    #kp-sales-top-preview > .kp-sales-results[aria-live] [data-kp-child-link-repeated],
    #kp-sales-top-preview > .kp-sales-results[aria-live] [data-kp-child-list-empty],
    #kp-sales-top-preview > .kp-sales-results[aria-live] .kp-sales-carousel-fixed:has([data-kp-child-list-empty]) {
        display: none !important;
    }
}

/* 子カテゴリ別の商品一覧を区切る透明アクリル風プレート。 */
#kp-sales-top-preview .kp-sales-results .kp-sales-group > h3,
.single-product .kp-product-category-panel > h2 {
    position: relative;
    /* 既存のPC帯は基準サイズに2ptを足している。 */
    --kp-sales-band-original-size: calc(var(--kp-sales-group-title-size, 1.4rem) + 2pt);
    font-size: calc(var(--kp-sales-band-original-size) - 1pt);
    background: linear-gradient(100deg, #deeee3, #edf6ef 72%, #e5f2eb);
    border-color: #b9d3c5 #aac8b9 #8eafa0 #32855c;
    box-shadow: inset 0 1px 0 #fffc, inset 1px 0 0 #fffb, inset -1px -1px 0 #fffd, 0 2px 2px #214c3926, 0 4px 7px #214c390e;
}

#kp-sales-top-preview .kp-sales-results .kp-sales-group > h3::after,
.single-product .kp-product-category-panel > h2::after {
    content: "";
    position: absolute;
    pointer-events: none;
    right: 5%;
    top: 3px;
    bottom: 4px;
    width: clamp(32px, 8%, 92px);
    background: linear-gradient(130deg, transparent, #fff8);
    clip-path: polygon(72% 0, 100% 0, 28% 100%, 0 100%);
}

@media (max-width: 780px) {
    #kp-sales-top-preview .kp-sales-results .kp-sales-group > h3 {
        /* スマホの元の帯は基準サイズそのもの。 */
        --kp-sales-band-original-size: var(--kp-sales-group-title-size, 1.4rem);
    }
}

.single-product .kp-product-category-panel > h2 {
    --kp-sales-band-original-size: clamp(20px, 2vw, 27px);
}
@media (max-width: 781px) {
    .single-product .kp-product-category-panel > h2 { --kp-sales-band-original-size: 19px; }
}

#kp-product-sales-nav { display: none; }
@media (min-width: 781px) {
    #kp-product-sales-nav {
        position: relative; z-index: 5; display: grid; grid-template-columns: repeat(6, auto);
        margin-block: .55rem .65rem; padding: 0; color: #173f35; border-block: 1px solid #d5b98f;
        background: #efe1ca; box-shadow: 0 3px 10px #49331810;
    }
    #kp-product-sales-nav .kp-product-sales-item {
        position: relative; display: flex; align-items: stretch; min-width: 0;
        background: linear-gradient(135deg, #fff9ee, #ecd9b9);
    }
    #kp-product-sales-nav .kp-product-sales-item + .kp-product-sales-item { border-left: 1px solid #d5b98f; }
    #kp-product-sales-nav :is(.kp-product-sales-parent,summary) {
        display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 100%; margin: 0;
        padding: 19px 6px; color: inherit; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.4;
        text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none;
    }
    #kp-product-sales-nav summary::-webkit-details-marker { display: none; }
    #kp-product-sales-nav .kp-product-sales-parent, #kp-product-sales-nav .kp-product-sales-guide details { flex: 1; }
    #kp-product-sales-nav :is(.kp-product-sales-parent:hover,[aria-current="location"],summary:hover,details[open]>summary) { background: #e5f0e9; }
    #kp-product-sales-nav .kp-product-sales-guide summary { gap: .4em; }
    #kp-product-sales-nav .kp-product-sales-dropdown {
        position: absolute; top: 100%; left: 0; z-index: 1; min-width: max(100%, 215px); max-width: 80vw;
        max-height: min(65vh, 32rem); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
        padding: 8px; background: #fffaf1; border: 1px solid #d5b98f; box-shadow: 0 10px 22px #48361f29;
    }
    #kp-product-sales-nav .kp-product-sales-item:nth-last-child(-n+2) .kp-product-sales-dropdown { left: auto; right: 0; }
    #kp-product-sales-nav ul { list-style: none; padding: 0; margin: 0; }
    #kp-product-sales-nav ul ul { margin-left: .8em; border-left: 1px solid #d5b98f; }
    #kp-product-sales-nav .kp-product-sales-dropdown a { display: block; padding: 8px 12px; color: #173f35; font-size: 15px; line-height: 1.45; text-decoration: none; }
    #kp-product-sales-nav .kp-product-sales-dropdown a:hover { background: #e5f0e9; }
    #kp-product-sales-nav :is(a,summary):focus-visible { outline: 2px solid #39734e; outline-offset: -3px; }
}
@media (min-width: 781px) and (max-width: 950px) {
    #kp-product-sales-nav :is(.kp-product-sales-parent,summary) { padding-inline: 3px; font-size: 14px; }
}

/* 販売用PCヘッダーでは商品詳細も左右の植物装飾を外す。 */
@media (min-width: 783px) {
    body.single-product.kp-design-autumn-2026 .kp-global-header .kp-header-main::before,
    body.single-product.kp-design-autumn-2026 .kp-global-header::after {
        content: none;
        background-image: none;
    }
}
