/* Font sizes and spacing use cqw, matching the previous sizes at a 375px viewport. */
@media (max-width: 767px) {
    #header.open:has(.hk-menu-drawer) {
        z-index: 10001;
        overflow: visible;
    }

    #header.open .nav__wrap.hk-menu-drawer {
        width: 87%;
        height: 100dvh;
        padding: 0 0 10.66666667cqw !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
    }

    #header.open .nav__wrap.hk-menu-drawer > div {
        overflow: visible;
    }

    #header.open #nav_toggle {
        position: fixed;
        right: 13%;
        z-index: 1001;
    }

    #header.open .nav_back {
        z-index: 997;
    }

    #header .hk-mobile-menu {
        color: #272727;
        font-family: inherit;
        font-size: 3.73333333cqw;
        line-height: 1.5;
        letter-spacing: 0;
    }

    #header .hk-mobile-menu [hidden] {
        display: none !important;
    }

    #header .hk-mobile-menu ul,
    #header .hk-mobile-menu p {
        margin: 0;
        list-style: none;
    }

    #header .hk-mobile-menu ul {
        padding: 0;
    }

    #header .hk-mobile-menu a {
        color: inherit;
        text-decoration: none;
    }

    #header .hk-mobile-menu img {
        display: block;
        max-width: 100%;
    }

    #header .hk-menu-brand {
        padding: 4.8cqw 3.2cqw 3.2cqw;
    }

    #header .hk-menu-brand > a {
        display: block;
        width: 68%;
        max-width: 260px;
        min-height: 40px;
    }

    #header .hk-menu-brand img {
        width: 100%;
        height: auto;
    }

    #header .hk-menu-brand p {
        margin-top: 2.13333333cqw;
        font-size: 3cqw;
    }

    #header .hk-mobile-menu summary:focus-visible,
    #header .hk-mobile-menu button:focus-visible,
    #header .hk-mobile-menu a:focus-visible {
        outline: 2px solid #e50012;
        outline-offset: 2px;
    }

    #header .hk-menu-links a::after {
        content: '';
        flex: 0 0 7px;
        width: 7px;
        height: 7px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
    }


    #header .hk-menu-market {
        margin: 5.33333333cqw 0;
    }

    #header .hk-menu-market .market-price-header {
        padding: 3.2cqw 2.13333333cqw;
        text-align: center;
        background: #e50012;
        color: #fff;
    }

    #header .hk-menu-market h2 {
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        font-size: 5cqw;
        font-weight: 600;
    }

    #header .hk-menu-market .market-price-header p {
        margin-top: 1.06666667cqw;
        font-size: 3cqw;
    }

    #header .hk-menu-market .market-price-list {
        padding: 3.2cqw;
    }

    #header .hk-menu-market .market-price-item {
        display: grid;
        grid-template-columns: 30% minmax(0, 1fr);
        min-height: 88px;
        margin-bottom: 2.13333333cqw;
        border: 1px solid #ccc;
    }

    #header .hk-menu-market .market-price-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.13333333cqw;
        text-align: center;
        font-size: 3.5cqw;
        font-weight: 700;
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    #header .hk-menu-market .label-gold { background: #a18f32; }
    #header .hk-menu-market .label-platinum { background: #1e9e8e; }
    #header .hk-menu-market .label-silver { background: #777; }
    #header .hk-menu-market .label-palladium { background: #373737; }

    #header .hk-menu-market .market-price-value-area {
        position: relative;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.13333333cqw;
        color: #000;
    }

    #header .hk-menu-market .is-up .market-price-value-area {
        padding-right: calc(15% + 2.66666667cqw);
    }

    #header .hk-menu-market .market-price-main-val {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        column-gap: 2px;
        font-weight: 700;
        text-align: center;
    }

    #header .hk-menu-market .market-price-amount,
    #header .hk-menu-market .market-price-change {
        white-space: nowrap;
    }

    #header .hk-menu-market .market-price-main-val .price {
        font-size: 5cqw;
        color: #e50012;
    }

    #header .hk-menu-market .market-price-main-val .unit {
        margin-left: 0.53333333cqw;
        font-size: 3cqw;
    }

    #header .hk-menu-market .market-price-change {
        font-size: 3cqw;
    }

    #header .hk-menu-market .market-price-sub-val {
        margin: 0.53333333cqw 0;
        font-size: 2cqw;
        text-align: center;
    }

    #header .hk-menu-market .market-price-diff { color: #e50012; }
    #header .hk-menu-market .market-price-diff.is-down { color: #2a58ac; }

    #header .hk-menu-market .market-price-arrow {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 15%;
        max-width: 40px;
        height: auto;
    }

    #header .hk-menu-market .market-price-arrow.blinking {
        animation: hk-menu-market-blink 0.3s ease-in-out infinite alternate;
    }

    @keyframes hk-menu-market-blink {
        from { opacity: 0.5; }
        to { opacity: 1; }
    }

    @media (prefers-reduced-motion: reduce) {
        #header .hk-menu-market .market-price-arrow.blinking {
            animation: none;
        }
    }

    #header .hk-menu-market .market-price-annotation { font-size: 2cqw; }

    #header .hk-menu-navigation {
        display: block;
        font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    }

    #header .hk-mobile-menu details > summary {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        list-style: none;
        cursor: pointer;
    }

    #header .hk-mobile-menu summary::-webkit-details-marker { display: none; }

    #header .hk-mobile-menu summary::after,
    #header .sidebar__nav.hk-menu-products .sp_main_accord_head::after {
        content: "\FF0B";
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 5cqw;
        font-weight: 900;
        color: var(--theme_color, #E50012);
        background: none;
        width: auto;
        height: auto;
        min-width: unset;
        border: none;
        transform: none;
    }

    #header .hk-mobile-menu summary::after {
        flex-shrink: 0;
        margin-left: auto;
    }

    #header .hk-mobile-menu details[open] > summary::after,
    #header .sidebar__nav.hk-menu-products .sp_main_accord_head.open::after {
        content: '\FF0D';
    }

    #header .hk-mobile-menu .sp_main_accord_item {
        margin-bottom: 1.86666667cqw;
        background: #f4f4f4;
    }

    #header .hk-mobile-menu .sp_main_accord_head {
        min-height: 72px;
        padding: 4.8cqw 4.26666667cqw;
        color: #000;
        font-family: inherit;
        font-size: 5cqw;
        font-weight: 800;
        line-height: 1.5;
    }

    #header .hk-mobile-menu .hk-menu-panel {
        padding: 0 2.13333333cqw 4.26666667cqw;
    }

    #header .hk-mobile-menu .sp_sub_accord_list {
        display: grid;
        gap: 12px;
    }

    #header .hk-menu-links li {
        border: 2px solid #b8b8b8;
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
    }


    #header .hk-mobile-menu .hk-menu-featured {
        gap: 0;
        min-height: 0;
        line-height: 2;
    }


    #header .hk-menu-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 52px;
        padding: 3.2cqw 4.26666667cqw;
        font-size: 3.5cqw;
        font-weight: 800;
    }

    #header .hk-menu-links a::after { color: #e50012; }


    #header .hk-mobile-menu .sp_menu_banner_wrap {
        padding: 5.33333333cqw 3.2cqw;
    }

    #header .hk-mobile-menu .sp_menu_banner_wrap img {
        width: 100%;
        height: auto;
    }
}
