/* Lexiqueの配色と配置。共通メニューの淡い文字色を引き継がない。 */
#lexiqueMenuBtn {
    position: fixed;
    top: auto;
    bottom: max(20px, env(safe-area-inset-bottom));
    right: 20px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 112px;
    max-width: 112px;
    min-height: 48px;
    max-height: 48px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #2f4c36;
    border-radius: 999px;
    background: #36563b;
    color: #fdfcf5;
    box-shadow: 0 3px 12px rgb(35 58 40 / 16%);
    backdrop-filter: none;
    filter: none;
    z-index: 410;
}

#lexiqueMenuBtn span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    clip-path: none;
    overflow: visible;
    color: #fdfcf5;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.1em;
}

#lexiqueMenuBtn img {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    margin: 0;
    filter: brightness(0) invert(1);
}

#lexiqueMenuBtn:hover,
#lexiqueMenuBtn:focus-visible {
    background: #29462f;
    box-shadow: 0 3px 12px rgb(35 58 40 / 20%);
    transform: none;
}

#lexiqueMenuBtn:focus-visible {
    outline: 2px solid #36563b;
    outline-offset: 4px;
}

#lexiqueMenuBtn[data-open="true"] img {
    visibility: hidden;
}

#lexiqueMenuBtn[data-open="true"]::before,
#lexiqueMenuBtn[data-open="true"]::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 22px;
    width: 18px;
    height: 1.5px;
    background: #fdfcf5;
    transform: rotate(45deg);
}

#lexiqueMenuBtn[data-open="true"]::after {
    transform: rotate(-45deg);
}

#lexiqueNav {
    position: fixed;
    display: flex;
    flex-direction: column;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 48px 28px 100px;
    background: #fdfcf5;
    backdrop-filter: none;
    overflow-y: auto;
    z-index: 405;
}

#lexiqueNav .nav_back {
    display: none;
}

#lexiqueNav .nav_item_inner {
    display: grid;
    grid-template-columns: 1fr;
    width: min(420px, 100%);
    margin: auto;
    gap: 0;
}

#lexiqueNav a {
    display: grid;
    width: 100%;
    margin: 0;
    text-align: left;
    padding: 22px 8px;
    gap: 8px;
    border: 0;
    border-bottom: 1px solid #cbd8c3;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#lexiqueNav a span:first-child {
    color: #29462f;
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 22px;
    font-weight: 500;
    font-variation-settings: "wght" 500;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

#lexiqueNav a span:last-child {
    color: #53684e;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.15em;
}

#lexiqueNav a:hover,
#lexiqueNav a:focus-visible {
    background: #eaf0e3;
    border-color: #799071;
    box-shadow: none;
    transform: none;
}

#lexiqueNav a:focus-visible {
    outline: 2px solid #36563b;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #lexiqueNav[data-open="true"],
    #lexiqueMenuBtn,
    #lexiqueNav a {
        animation: none;
        transition: none;
    }
}

#lexiqueNav[hidden] {
    display: none;
}

body.lexique-menu-open {
    overflow: hidden;
}
