/* Shared by /image, /find, /filter and /manual. Opt in with product-listing-page. */
:where(.product-listing-page), :where(.product-listing-page) * { box-sizing: border-box; }
:where(.product-listing-page) .site-header { background: #005EAD !important; }
:where(.product-listing-page) .listing-page-main { width: 100%; max-width: 100%; padding: 120px 0 0; overflow-x: hidden; }
:where(.product-listing-page) .listing-page-header { padding: 10px 118px 40px; max-width: 100%; box-sizing: border-box; }
:where(.product-listing-page) .listing-layout { display: flex; min-height: 60vh; width: 100%; max-width: 100%; box-sizing: border-box; }
:where(.product-listing-page) .listing-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fafafa;
    padding: 24px var(--listing-sidebar-inline-padding, 0px);
    overflow-y: auto;
}
/* The panel receives initial programmatic focus; links retain their keyboard focus indicator. */
:where(.product-listing-page) .listing-sidebar:focus { outline: none; }
:where(.product-listing-page) .listing-sidebar-section { padding: 0 20px 12px; }
:where(.product-listing-page) .listing-sidebar-title { font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 14px; color: #151515; margin: 0 0 8px; }
:where(.product-listing-page) .listing-sidebar-list { list-style: none; margin: 0; padding: 0; }
:where(.product-listing-page) .listing-sidebar-list li { margin: 0 0 2px; }
:where(.product-listing-page) .listing-sidebar-list a { display: block; padding: 4px 0; font-family: "Noto Sans JP", sans-serif; font-size: 14px; color: #151515; text-decoration: none; }
:where(.product-listing-page) .listing-sidebar-list a:hover { color: #005EAD; font-weight: 700; }
:where(.product-listing-page) .listing-sidebar-list a:is(.active, [aria-current="page"]) { background-color: #D4E1F5; color: #005EAD; font-weight: 700; width: auto; text-decoration: none; }
/* Opt-in row navigation: used by manual categories at every screen width. */
:where(.product-listing-page) .listing-sidebar--separated { background: #F7FAFD; padding: 20px 16px; }
:where(.product-listing-page) .listing-sidebar--separated .listing-sidebar-title { font-size: 15px; line-height: 1.6; color: #172B40; margin-bottom: 16px; }
:where(.product-listing-page) .listing-sidebar--separated .listing-sidebar-list li { margin: 0; }
:where(.product-listing-page) .listing-sidebar--separated .listing-sidebar-list li + li { border-top: 1px solid #D8E4EE; }
:where(.product-listing-page) .listing-sidebar--separated .listing-sidebar-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 12px 11px 10px;
    border-left: 3px solid transparent;
    border-radius: 0;
    color: #233F56;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
:where(.product-listing-page) .listing-sidebar-label { flex: 1; min-width: 0; }
:where(.product-listing-page) .listing-sidebar-arrow { flex-shrink: 0; color: #6286A3; }
:where(.product-listing-page) .listing-sidebar--separated .listing-sidebar-list a:hover { background: #EAF3FB; color: #005EAD; }
:where(.product-listing-page) .listing-sidebar--separated .listing-sidebar-list a[aria-current="page"] { background: #D4E1F5; border-left-color: #005EAD; color: #005EAD; font-weight: 700; }
:where(.product-listing-page) .listing-sidebar--separated a[aria-current="page"] .listing-sidebar-arrow { color: #005EAD; }
:where(.product-listing-page) .listing-sidebar--separated .listing-sidebar-list a:focus-visible { outline: 3px solid #73B7ED; outline-offset: -3px; }
:where(.product-listing-page) .listing-main { flex: 1 1 auto; min-width: 0; padding: 40px 48px 80px; overflow-x: hidden; overflow-y: auto; background-color: #F3F8FC; box-sizing: border-box; }
:where(.product-listing-page) .listing-main-header { margin-bottom: 24px; }
/* Override product_top.css's fixed 30px h2 height so wrapped headings grow. */
:where(.product-listing-page) .listing-heading { height: auto; min-height: unset; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
:where(.product-listing-page) .listing-heading--underlined {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 140%;
    color: #151515;
    margin: 0 0 8px;
    padding-left: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0071bc;
    box-sizing: border-box;
}
:where(.product-listing-page) .listing-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px !important; width: 100%; max-width: 100%; box-sizing: border-box; }
:where(.product-listing-page) .listing-toggle,
:where(.product-listing-page) .listing-toggle-placeholder,
:where(.product-listing-page) .listing-sidebar-close,
:where(.product-listing-page) .listing-overlay { display: none; }
:where(.product-listing-page) .listing-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 100010; }
@media (max-width: 1440px) {
    :where(.product-listing-page) .listing-page-header { padding: 10px 48px 40px; }
    :where(.product-listing-page) .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 1024px) {
    :where(.product-listing-page) .listing-page-main { padding: 90px 0 40px; }
    :where(.product-listing-page) .listing-page-header { padding: 32px 24px 56px; }
    :where(.product-listing-page) .listing-sidebar { width: 220px; }
    :where(.product-listing-page) .listing-main { padding: 24px 24px 60px; }
}
@media (max-width: 768px) {
    :where(.product-listing-page) .listing-sidebar--separated .listing-sidebar-title { padding-right: 32px; }
    :where(.product-listing-page) .listing-layout { display: block; }
    :where(.product-listing-page) .listing-main { padding: 24px 16px 60px; }
    :where(.product-listing-page) .listing-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        height: 100dvh;
        width: 280px;
        max-width: 85vw;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 100011;
        transform: translateX(-100%);
        transition: transform 0.25s;
        box-shadow: 4px 0 12px rgba(0,0,0,0.1);
        visibility: hidden;
    }
    :where(.product-listing-page) .listing-sidebar.is-open { transform: translateX(0); visibility: visible; }
    :where(.product-listing-page) .listing-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: #005EAD;
        cursor: pointer;
    }
    :where(.product-listing-page) .listing-overlay.is-visible { display: block; }
    :where(.product-listing-page) .listing-grid {
        display: var(--listing-mobile-grid-display, flex) !important;
        flex-direction: column !important;
        grid-template-columns: var(--listing-mobile-grid-columns, none) !important;
        gap: var(--listing-mobile-grid-gap, 24px) !important;
    }
    :where(.product-listing-page) .listing-toggle-placeholder { display: block; height: 72px; margin-bottom: 16px; width: 100%; flex-shrink: 0; }
    :where(.product-listing-page) .listing-toggle-bar { padding: 12px 0; background: #F3F8FC; }
    :where(.product-listing-page) .listing-toggle-bar.is-docked {
        position: fixed;
        top: var(--category-header-bottom, 0px);
        left: 0;
        right: 0;
        padding: 12px 16px;
        z-index: 9999;
        box-shadow: 0 3px 8px rgba(22,51,75,0.09);
    }
    :where(.product-listing-page) .listing-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        height: 48px;
        padding: 0 16px;
        margin: 0;
        border-radius: 8px;
        background: #005EAD;
        color: #fff;
        border: none;
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        box-shadow: 0 3px 0 #004781, 0 5px 10px rgba(0,94,173,0.13);
        transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
    }
    :where(.product-listing-page) .listing-toggle svg { flex-shrink: 0; }
    :where(.product-listing-page) .listing-toggle-arrow { margin-left: auto; }
    :where(.product-listing-page) .listing-toggle:hover { background: #004F93; }
    :where(.product-listing-page) .listing-toggle:active { transform: translateY(2px); box-shadow: 0 1px 0 #004781; }
    :where(.product-listing-page) .listing-toggle:focus-visible { outline: 3px solid #73B7ED; outline-offset: 3px; }
}
