* { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { margin: 0; background: #9e527d; }
.nav-page {
    position: relative;
    width: 100%;
    max-width: 540px;
    min-height: 100svh;
    margin: 0 auto;
    overflow: hidden;
    color: #fff;
    background: #a95480 var(--nav-background) center top / 100% 100% no-repeat;
    text-align: center;
}
.nav-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(58, 17, 50, .34), transparent 26%, rgba(89, 19, 63, .08) 70%, rgba(67, 14, 51, .24));
}
.nav-notice {
    position: relative;
    z-index: 1;
    min-height: 34px;
    padding: 8px 12px;
    background: rgba(26, 13, 24, .55);
    font-size: clamp(11px, 3.2vw, 16px);
    line-height: 18px;
    letter-spacing: .04em;
}
.nav-content { position: relative; z-index: 1; padding: clamp(48px, calc(48px + (100vw - 360px) * .36), 113px) 10% 46px; }
.nav-brand { width: 100%; }
.nav-brand-logo, .nav-brand-slogan { position: relative; width: 100%; overflow: hidden; }
.nav-brand-logo { height: min(23vw, 124px); }
.nav-brand-slogan { height: min(32vw, 173px); margin-top: 4px; }
.nav-brand-logo img, .nav-brand-slogan img { position: absolute; display: block; width: 100%; height: auto; left: 0; }
.nav-brand-logo img { top: 0; transform: translateY(-22.8%); clip-path: polygon(0 0, 100% 0, 100% 40.6%, 41% 40.6%, 41% 46%, 0 46%); }
.nav-brand-slogan img { top: 0; transform: translateY(-48.8%); }
.nav-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-links { display: grid; gap: clamp(15px, 4.2vw, 24px); margin-top: 35px; }
.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: clamp(45px, 11vw, 63px);
    padding: 0 7%;
    border: 3px solid white;
    border-radius: 999px;
    background: linear-gradient(#ff80c1 0%, #ff0b8c 17%, #fc008b 75%, #e60076 100%);
    box-shadow: inset 0 0 0 2px #ffa4d3, 0 3px 0 #b12869, 0 6px 15px rgba(61, 10, 44, .35);
    color: #fff;
    font-size: clamp(15px, 4.2vw, 23px);
    font-weight: 800;
    text-decoration: none;
    text-shadow: 0 1px 2px #a60055;
}
.nav-link:hover, .nav-link:focus-visible { filter: brightness(1.12); transform: translateY(-1px); }
.nav-link:active { transform: translateY(2px); }
.nav-sparkle { color: #ffb8df; font-size: 1.15em; }
.nav-empty { padding: 18px; border-radius: 12px; background: rgba(50, 12, 40, .65); font-weight: 700; }
@media (min-width: 768px) {
    body { background: #f998bd; }
    .nav-page {
        max-width: none;
        min-height: max(100svh, 720px);
        background: #f998bd url('/nav/static/background-desktop.png') center center / cover no-repeat;
    }
    .nav-notice { min-height: 60px; padding: 18px 12px; font-size: 18px; line-height: 24px; }
    .nav-content { width: 408px; max-width: calc(100% - 32px); margin: 0 auto; padding: 82px 0 64px; }
    .nav-brand-logo { height: 124px; }
    .nav-brand-slogan { height: 173px; margin-top: 48px; }
    .nav-links { gap: 20px; margin-top: 25px; }
    .nav-link { min-height: 68px; font-size: 22px; }
}
@media (min-width: 768px) and (max-height: 850px) {
    .nav-content { padding-top: 58px; transform: scale(.75); transform-origin: top center; }
}
@media (max-width: 340px) { .nav-content { padding-left: 8%; padding-right: 8%; } }
