/* JTT mobile category navigation. The existing MENU/CLOSE artwork stays in its original styles. */
@media (width < 768px) {
    html.mean-menu-active {
        overflow: hidden;
    }

    .mean-menu-scrim {
        position: fixed;
        inset: var(--mean-nav-mt, 86px) 0 0;
        z-index: 8000;
        background: rgb(18 46 62 / 38%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 240ms ease, visibility 0s linear 240ms;
    }

    .mean-menu-scrim.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 240ms ease, visibility 0s;
    }

    .mean-bar nav.mean-nav {
        position: fixed;
        top: calc(var(--mean-nav-mt, 86px) + 7px);
        right: 12px;
        bottom: auto;
        left: 12px;
        z-index: 8001;
        display: flex;
        flex-direction: column;
        min-width: 0;
        height: min(var(--mean-menu-height, 630px), calc(100dvh - var(--mean-nav-mt, 86px) - 20px - env(safe-area-inset-bottom)));
        margin: 0;
        overflow: hidden;
        border: 1px solid #b9dce9;
        border-radius: 19px;
        background: #f8fcff;
        box-shadow: 0 19px 46px rgb(14 39 55 / 23%), 0 3px 9px rgb(14 39 55 / 7%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -9px, 0);
        transition: height 280ms cubic-bezier(.22, 1, .36, 1),
            opacity 220ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear 260ms;
    }

    .mean-bar nav.mean-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
        transition: height 280ms cubic-bezier(.22, 1, .36, 1),
            opacity 220ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1),
            visibility 0s;
    }

    .mean-bar nav.mean-nav,
    .mean-bar nav.mean-nav * {
        box-sizing: border-box;
    }

    .mean-nav .mean-menu-top {
        flex: none;
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 77px;
        padding: 11px 14px;
        border-bottom: 1px solid #c8e5ef;
        background: linear-gradient(116deg, #d9f2ff 0%, #f1fbff 61%, #fff9f0 100%);
    }

    .mean-nav :is(.mean-menu-back, .mean-menu-close) {
        flex: none;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #b7dce9;
        border-radius: 12px;
        background: rgb(255 255 255 / 76%);
        color: #244d61;
        font: inherit;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        transition: background-color 160ms ease, border-color 160ms ease;
    }

    .mean-nav .mean-menu-back[hidden] {
        display: none;
    }

    .mean-nav :is(.mean-menu-back, .mean-menu-close):hover {
        border-color: #75bad1;
        background: #fff;
    }

    .mean-nav :is(button, a):focus-visible {
        outline: 3px solid #1388b1;
        outline-offset: -3px;
    }

    .mean-nav .mean-menu-heading {
        flex: 1;
        min-width: 0;
    }

    .mean-nav .mean-menu-heading small {
        display: block;
        overflow: hidden;
        margin-bottom: 3px;
        color: #3b6b83;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .035em;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mean-nav .mean-menu-heading strong {
        display: block;
        color: #173c52;
        font-size: 20px;
        font-weight: 750;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .mean-nav .mean-menu-viewport {
        position: relative;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .mean-nav .mean-menu-page {
        position: absolute;
        inset: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #f8fcff;
        opacity: var(--menu-page-opacity, 1);
        transform: translate3d(calc(var(--menu-offset, 0) * 100%), 0, 0);
        transition: transform 280ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease;
    }

    .mean-nav .mean-menu-list {
        display: block;
        margin: 0;
        padding: 11px 12px 13px;
        list-style: none;
        background: transparent;
    }

    .mean-nav .mean-menu-item {
        display: flex;
        align-items: stretch;
        min-height: 68px;
        margin: 0 0 7px;
        overflow: hidden;
        border: 1px solid #deebf1;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 2px 5px rgb(23 66 91 / 4%);
    }

    .mean-nav .mean-menu-item:last-child {
        margin-bottom: 0;
    }

    .mean-nav .mean-menu-link {
        display: flex;
        flex: 1;
        align-items: center;
        min-width: 0;
        min-height: 66px;
        height: auto;
        padding: 10px 13px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #173d50;
        font-size: 17px;
        font-weight: 750;
        line-height: 1.5;
        text-decoration: none;
    }

    .mean-nav .mean-menu-link.mean-menu-bilingual {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
    }

    .mean-nav .mean-menu-link > .category-en {
        position: static;
        display: block;
        color: #477487;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .035em;
        line-height: 1.35;
    }

    .mean-nav .mean-menu-link > .category-ja {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: inherit;
        line-height: 1.5;
    }

    .mean-nav .mean-menu-link i {
        position: static;
        color: #258eaf;
        font-size: 20px;
        line-height: 1;
    }

    .mean-nav .mean-menu-link i::before {
        color: inherit;
    }

    .mean-nav .mean-menu-link:hover,
    .mean-nav .mean-menu-link[aria-current="page"] {
        background: #effaff;
        color: #056a91;
    }

    .mean-nav .mean-menu-next {
        display: inline-flex;
        flex: none;
        align-items: center;
        justify-content: center;
        gap: 8px;
        align-self: center;
        min-width: 100px;
        min-height: 45px;
        margin: 8px 9px 8px 0;
        padding: 8px 11px;
        border: 1px solid #c4e3ee;
        border-radius: 10px;
        background: #e9f8ff;
        color: #17647f;
        font: inherit;
        font-size: 14px;
        font-weight: 750;
        line-height: 1.3;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 160ms ease, border-color 160ms ease;
    }

    .mean-nav .mean-menu-next::after {
        flex: none;
        width: 7px;
        height: 7px;
        border: solid currentColor;
        border-width: 2px 2px 0 0;
        content: "";
        transform: rotate(45deg);
    }

    .mean-nav .mean-menu-next:hover {
        border-color: #83c4dc;
        background: #d5f0ff;
    }
}

@media (width < 768px) and (prefers-reduced-motion: reduce) {
    .mean-menu-scrim,
    .mean-bar nav.mean-nav,
    .mean-bar nav.mean-nav.is-open,
    .mean-nav .mean-menu-page {
        transition-duration: 0ms;
    }
}
