#pc_top_nav.hk-pc-sticky {
    display: none;
}

/* Typography matches the source menu at a 1440px desktop width. */
@media (min-width: 768px) {
    /* Preserve the layout width while the menu locks page scrolling. */
    html:has(#pc_top_nav.hk-pc-sticky) {
        scrollbar-gutter: stable;
    }

    #pc_top_nav.hk-pc-sticky {
        position: fixed;
        inset: 0 0 auto;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 6px rgb(0 0 0 / 5%);
        z-index: 10001;
        color: #333;
        font-size: 1rem;
        line-height: 1.3;
        letter-spacing: 0;
    }

    #pc_top_nav.hk-pc-sticky.active {
        display: block;
    }

    #pc_top_nav.hk-pc-sticky [hidden] {
        display: none !important;
    }

    #pc_top_nav.hk-pc-sticky * {
        box-sizing: border-box;
    }

    #pc_top_nav.hk-pc-sticky :where(ul) {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #pc_top_nav.hk-pc-sticky :where(p) {
        padding: 0;
        margin: 0;
    }

    #pc_top_nav.hk-pc-sticky a {
        color: inherit;
        text-decoration: none;
    }

    #pc_top_nav.hk-pc-sticky button {
        font: inherit;
        cursor: pointer;
        letter-spacing: 0;
    }

    #pc_top_nav.hk-pc-sticky img {
        max-width: 100%;
        height: auto;
        vertical-align: middle;
    }

    #pc_top_nav.hk-pc-sticky a:hover {
        opacity: 0.7;
    }

    #pc_top_nav.hk-pc-sticky :is(a, button, summary):focus-visible {
        outline: 2px solid #d80c18;
        outline-offset: 3px;
    }

    #pc_top_nav .figma-sticky {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 1600px;
        margin: 0 auto;
        padding: 0.625rem 2%;
        gap: 20px;
        width: 100%;
        position: relative;
    }

    #pc_top_nav .header__top-left {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-right: auto;
        min-width: 0;
    }

    #pc_top_nav .header__logo {
        display: block;
        flex-shrink: 0;
    }

    #pc_top_nav .header__logo img {
        width: clamp(180px, 18vw, 300px);
        height: auto;
    }

    #pc_top_nav .gnav__wrap {
        display: flex;
        align-items: center;
        gap: 0;
    }

    #pc_top_nav .gnav__item {
        position: static;
    }

    #pc_top_nav .gnav__item > :is(a, button) {
        position: relative;
        display: block;
        color: #333;
        background: none;
        border: 0;
        border-radius: 0;
        font-size: 1.26rem;
        font-weight: 900;
        line-height: 1.3;
        padding: 0.625rem clamp(0.625rem, 1.6vw, 1.875rem);
        white-space: nowrap;
    }

    #pc_top_nav .gnav__item > :is(a, button):hover {
        color: #d80c18;
        opacity: 1;
    }

    #pc_top_nav .gnav__item:not(:last-child) > :is(a, button)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 1px;
        height: 50%;
        background: #bababa;
    }

    #pc_top_nav .hamburger-btn {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
        background: #d80c18;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 0;
        margin-left: clamp(0.625rem, 2vw, 1.875rem);
        border: 0;
        transition: opacity 0.3s;
    }

    #pc_top_nav .hamburger-btn:hover {
        opacity: 0.8;
    }

    #pc_top_nav .hamburger-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }

    #pc_top_nav .hamburger-btn.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #pc_top_nav .hamburger-btn.open span:nth-child(2) {
        opacity: 0;
    }

    #pc_top_nav .hamburger-btn.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    #pc_top_nav_btn.open {
        opacity: 0;
        pointer-events: none;
    }

    #pc_top_nav .submenu-wrapper {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: calc(100dvh - 65px);
        background: rgb(0 0 0 / 50%);
        z-index: 1;
    }

    #pc_top_nav .submenu {
        position: relative;
        margin: 0 auto;
        width: clamp(760px, 74.88vw, 1917px);
        max-width: calc(100% - 100px);
        max-height: 100%;
        background: #fff;
        box-shadow: 0 9px 7.38px 1.62px #0000005b;
    }

    #pc_top_nav .close-btn {
        position: absolute;
        top: 0;
        right: -45px;
        width: 40px;
        height: 40px;
        border: 0;
        padding: 0;
        background: transparent;
        color: #fff;
    }

    #pc_top_nav .close-btn::before,
    #pc_top_nav .close-btn::after {
        content: '';
        position: absolute;
        top: 19px;
        left: 6px;
        width: 28px;
        height: 2px;
        background: currentColor;
        transform: rotate(45deg);
    }

    #pc_top_nav .close-btn::after {
        transform: rotate(-45deg);
    }

    #pc_top_nav .submenu__list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: calc(100dvh - 150px);
        overflow-y: auto;
    }

    #pc_top_nav .item-menu .submenu__list {
        gap: 1.17vw;
        padding: 1vw;
    }

    #pc_top_nav .item-menu .submenu__list a {
        font-size: 0.81rem;
        font-weight: 600;
        text-align: left;
        border: 1px solid #858585;
        border-radius: 8px;
        background: #fff;
        width: 100%;
        height: 100%;
        padding-right: 1.5625rem;
        aspect-ratio: 5.3;
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    #pc_top_nav .item-menu .submenu__list a::before {
        content: '';
        width: 0.86875vw;
        aspect-ratio: 1;
        background: #e50012;
        border-radius: 50%;
        position: absolute;
        right: 2%;
        top: 50%;
        transform: translateY(-50%);
    }

    #pc_top_nav .item-menu .submenu__list a::after {
        content: '';
        width: 0.2734375vw;
        aspect-ratio: 0.5666666667;
        background: url('../../img/header-sticky/icon_arrow_white02.png') no-repeat center / contain;
        position: absolute;
        right: 0.58vw;
        top: 50%;
        transform: translateY(-50%);
    }

    #pc_top_nav .item-menu .submenu__list img {
        width: auto;
        height: clamp(16px, 2.8vw, 60px);
        flex-shrink: 0;
    }

    #pc_top_nav .item-menu .submenu__list span {
        font-size: clamp(0.625rem, 0.9vw, 1.4375rem);
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #pc_top_nav .brand-menu .submenu__list li {
        border-bottom: 1px solid #858585;
        border-right: 1px solid #858585;
    }

    #pc_top_nav .brand-menu .submenu__list li:nth-child(4n) {
        border-right: 0;
    }

    #pc_top_nav .brand-menu .submenu__list li:nth-last-child(-n+1) {
        border-bottom: 0;
    }

    #pc_top_nav .brand-menu .submenu__list a {
        font-size: 0.702rem;
        background: #fff;
        width: 100%;
        min-height: 100%;
        aspect-ratio: 3.18;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-bottom: 0.625rem;
        text-align: center;
    }

    #pc_top_nav .brand-menu .submenu__list img {
        width: 100%;
        margin-bottom: -10%;
    }

    #pc_top_nav .brand-menu .submenu__list span {
        font-size: clamp(0.625rem, 0.78vw, 1.25rem);
        padding: 0 0.25rem;
        overflow-wrap: anywhere;
    }

    #pc_top_nav .submenu__footer {
        display: flex;
        width: 100%;
    }

    #pc_top_nav .submenu__footer a {
        color: #fff;
        font-size: clamp(0.75rem, 0.98vw, 1.5625rem);
        font-weight: 600;
        text-align: center;
        padding: 1.25rem 1.5rem;
        background: #e50012;
        display: block;
        position: relative;
        flex: 1;
    }

    #pc_top_nav .submenu__footer span {
        position: relative;
    }

    #pc_top_nav .submenu__footer span::after {
        content: '';
        width: 0.5vw;
        aspect-ratio: 0.4736842105;
        background: url('../../img/header-sticky/icon_arrow_white02.png') no-repeat center / contain;
        display: inline-block;
        top: 52%;
        right: -1.7vw;
        transform: translateY(-50%);
        position: absolute;
    }

    #pc_top_nav .pc_top_menu_back {
        position: fixed;
        inset: 0;
        background: rgb(0 0 0 / 50%);
        z-index: 2;
    }

    #pc_top_nav .pc_top_menu_block {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        z-index: 3;
        width: 34%;
        max-width: 800px;
        height: 100dvh;
        padding: 1rem 1rem 0;
        background: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        transition: transform 0.8s, visibility 0.8s;
    }

    #pc_top_nav .pc_top_menu_block.open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.8s;
    }

    #pc_top_nav #side_menu_close_btn {
        float: right;
    }

    #pc_top_nav .pc_top_menu_block .pc_top_nav_head {
        clear: both;
    }

    /* Keep the source logo width when the Hong Kong drawer expands on narrow screens. */
    #pc_top_nav .common_logo_img {
        width: min(60%, calc(20.4vw - 19.2px), 460.8px);
    }

    #pc_top_nav .common_logo_img a {
        display: block;
    }

    #pc_top_nav .common_logo_img img {
        display: block;
        width: 100%;
        height: auto;
    }

    #pc_top_nav .shop_link {
        display: block;
        color: #e50012;
        font-size: 1.44rem;
        border: 1px solid #e50012;
        border-radius: 10px;
        box-shadow: 3px 3px 5px 0.8px rgb(4 0 0 / 26%);
        padding: 0.75rem 2.5rem 0.75rem 4.125rem;
        margin: 1.25rem 4% 1.5625rem 0;
        font-weight: bold;
        overflow: hidden;
        position: relative;
        background: url('../../img/header-sticky/shop.png') no-repeat 14px center / 45px;
    }

    #pc_top_nav .shop_link::before {
        content: '';
        width: 35px;
        height: 100%;
        background: #e50012;
        top: 0;
        right: 0;
        position: absolute;
    }

    #pc_top_nav .shop_link::after {
        content: '';
        width: 7px;
        height: 16px;
        background: #fff;
        clip-path: polygon(0 0, 0 100%, 100% 50%);
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        position: absolute;
    }

    #pc_top_nav .head_text {
        color: #fff;
        background: #e50012;
        padding: 0.625rem;
        font-size: 1.26rem;
        font-weight: 600;
    }

    #pc_top_nav .pc_top_menu_content {
        margin: 0 0 2.1875rem;
    }

    #pc_top_nav .cat_top_block {
        position: relative;
        border-bottom: 1px solid #000;
    }

    #pc_top_nav .cat_top_block summary,
    #pc_top_nav .cat_top_block > a {
        display: flex;
        align-items: center;
        min-height: 2.5rem;
        padding: 0.6vw 0;
        position: relative;
        cursor: pointer;
        font-size: 1.08rem;
        list-style: none;
    }

    #pc_top_nav summary::-webkit-details-marker {
        display: none;
    }

    #pc_top_nav .cat_top_block img {
        object-fit: contain;
        width: 2vw;
        height: 2vw;
    }

    #pc_top_nav .cat_top_block p {
        margin: auto 2.5rem auto 1rem;
        font-size: max(0.875rem, 1.2cqw);
        font-weight: bold;
    }

    #pc_top_nav .cat_top_block .cat_type_head {
        margin: 1rem 0;
        padding-left: 0.5rem;
        border-left: 5px solid #e50012;
    }

    #pc_top_nav .cat_top_block .btn_circle {
        background: #000;
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 50%;
        top: 0;
        bottom: 0;
        margin: auto;
        right: 1rem;
        position: absolute;
    }

    #pc_top_nav .cat_top_block .triangle_right {
        background: #fff;
        right: 1.3333rem; /* 三角形の重心を円の中央に合わせる */
        position: absolute;
        clip-path: polygon(0 0, 0 100%, 100% 50%);
        width: 0.4375rem;
        height: 0.625rem;
        top: 0;
        bottom: 0;
        margin: auto;
    }

    #pc_top_nav .cat_top_block .triangle_bottom {
        width: 0.625rem;
        height: 0.4375rem;
        background: #fff;
        clip-path: polygon(0 0, 100% 0%, 50% 100%);
        position: absolute;
        right: 1.3125rem;
        top: 50%;
        transform: translateY(-50%);
    }

    #pc_top_nav details[open] .triangle_bottom {
        transform: translateY(-50%) rotate(180deg);
    }

    #pc_top_nav .sp_nav_acc_content {
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
        transition: none;
    }

    #pc_top_nav .subpage_block > a {
        display: flex;
        position: relative;
        background: #f3f2ee;
        padding: 1rem 0;
        margin-bottom: 0.25rem;
    }

    #pc_top_nav .subpage_block p {
        margin: auto 1.75rem auto 1rem;
        font-size: max(0.75rem, 1cqw);
        font-weight: bold;
    }

    #pc_top_nav .subpage_block span {
        position: absolute;
        top: calc(50% - 1.5px);
        right: 10px;
        width: 12px;
        height: 3px;
        border-radius: 9999px;
        background: #e50012;
        transform-origin: calc(100% - 1.5px) 50%;
    }

    #pc_top_nav .subpage_block .arrow_top {
        transform: rotate(37.5deg);
    }

    #pc_top_nav .subpage_block .arrow_bottom {
        transform: rotate(-37.5deg);
    }

    #pc_top_nav .sp_menu_banner_wrap {
        width: 90%;
        margin: 1.25rem auto 3.75rem;
    }

    #pc_top_nav .sp_menu_banner_wrap img {
        width: 100%;
    }

    body.hk-sticky-menu-open {
        overflow: hidden !important;
    }

    @media (max-width: 1100px) {
        #pc_top_nav .gnav__item > :is(a, button) {
            padding-inline: 0.75rem;
        }

        #pc_top_nav .pc_top_menu_block {
            width: 44%;
        }

        #pc_top_nav .item-menu .submenu__list a {
            min-height: 48px;
        }
    }

    @media (max-width: 850px) {
        #pc_top_nav .figma-sticky {
            gap: 10px;
        }

        #pc_top_nav .hamburger-btn {
            margin-left: 0.625rem;
        }

        #pc_top_nav .gnav__item > :is(a, button) {
            padding-inline: 0.625rem;
        }

        #pc_top_nav .pc_top_menu_block {
            width: 52%;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        #pc_top_nav .pc_top_menu_block,
        #pc_top_nav .pc_top_menu_block.open,
        #pc_top_nav .hamburger-btn span {
            transition: none;
        }
    }
}
