/* Bistro Nippon — mobile-first top (logo: navy / hinomaru red / white) */
:root {
    --navy: #0B1D3A;
    --navy-deep: #061224;
    --sun: #E60012;
    --sun-soft: #ff3b4a;
    --paper: #F7F5F2;
    --ink: #0B1D3A;
    --muted: #5a6578;
    --topbar-h: calc(58px + env(safe-area-inset-top, 0px));
    --font-display: "Syne", sans-serif;
    --font-body: "Zen Maru Gothic", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.bn-body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    padding-bottom: 24px;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.bn-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--sun), #ff8a00);
    z-index: 120;
    transform-origin: left;
}

/* —— Top action bar (replaces bottom dock) —— */
.bn-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    background: rgba(7, 18, 36, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.bn-topbar.is-solid {
    background: rgba(11, 29, 58, 0.94);
    box-shadow: 0 8px 24px rgba(6, 18, 36, 0.28);
}

.bn-topbar-brand {
    flex-shrink: 0;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}

.bn-topbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.bn-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.bn-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: transform 0.15s ease, background 0.2s ease;
}

.bn-chip:active {
    transform: scale(0.96);
}

.bn-chip--sun {
    background: var(--sun);
    border-color: var(--sun);
    color: #fff;
}

.bn-chip--navy {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

/* —— Hero —— */
.bn-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    padding-top: var(--topbar-h);
}

.bn-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bn-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.08);
    animation: bnKen 18s ease-in-out infinite alternate;
}

@keyframes bnKen {
    from {
        transform: scale(1.08) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.16) translate3d(0, -2%, 0);
    }
}

.bn-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 18, 36, 0.45) 0%, rgba(6, 18, 36, 0.35) 35%, rgba(6, 18, 36, 0.92) 100%),
        radial-gradient(120% 80% at 80% 0%, rgba(230, 0, 18, 0.22), transparent 55%);
}

.bn-hero-inner {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: 0 20px 36px;
    margin: 0 auto;
}

.bn-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px;
}

.bn-brand {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    opacity: 0.92;
}

.bn-headline {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 7.2vw, 2.55rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.bn-lead {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.45;
    max-width: 28ch;
    color: rgba(255, 255, 255, 0.88);
}

.bn-hero-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--sun);
    padding-bottom: 3px;
}

.bn-hero-next span {
    animation: bnCue 1.4s ease-in-out infinite;
}

@keyframes bnCue {
    0%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(4px);
    }
}

.bn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.bn-btn:active {
    transform: scale(0.97);
}

.bn-btn--sun {
    background: var(--sun);
    color: #fff;
}

.bn-btn--sun:hover {
    background: var(--sun-soft);
}

.bn-btn--navy {
    background: var(--navy);
    color: #fff;
}

/* —— Bowls rail —— */
.bn-bowls {
    padding: 48px 0 28px;
    background: var(--paper);
}

.bn-section-head {
    padding: 0 20px 18px;
}

.bn-kicker {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sun);
}

.bn-kicker--sun {
    color: #ffb4b8;
}

.bn-h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.45rem, 5.5vw, 1.9rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.bn-h2--light {
    color: #fff;
}

.bn-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bn-rail::-webkit-scrollbar {
    display: none;
}

.bn-dish {
    flex: 0 0 min(72vw, 280px);
    scroll-snap-align: center;
    margin: 0;
}

.bn-dish-frame {
    aspect-ratio: 1;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(11, 29, 58, 0.08);
}

.bn-dish-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bn-dish:hover .bn-dish-frame img,
.bn-dish.is-hot .bn-dish-frame img {
    transform: scale(1.06);
}

.bn-dish figcaption {
    padding: 10px 4px 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.bn-dish strong {
    font-family: var(--font-display);
    font-size: 1rem;
}

.bn-dish span {
    font-size: 0.78rem;
    color: var(--muted);
}

.bn-rail-hint {
    margin: 8px 20px 0;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
}

/* —— Story —— */
.bn-story {
    position: relative;
    min-height: 72svh;
    display: flex;
    align-items: flex-end;
    background: var(--navy-deep);
    color: #fff;
    overflow: hidden;
    padding: 48px 20px 56px;
}

.bn-story-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    pointer-events: none;
}

.bn-story-float {
    position: absolute;
    right: -18%;
    top: 8%;
    width: min(78vw, 420px);
    border-radius: 50%;
    filter: saturate(1.05);
    animation: bnFloat 7s ease-in-out infinite;
}

@keyframes bnFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }
    50% {
        transform: translate3d(-4%, 4%, 0) rotate(2deg);
    }
}

.bn-story-copy {
    position: relative;
    z-index: 1;
    max-width: 28rem;
}

.bn-story-text {
    margin: 14px 0 20px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
}

.bn-link-sun {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--sun);
    padding-bottom: 2px;
}

/* —— Visit —— */
.bn-visit {
    padding: 40px 16px 28px;
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(230, 0, 18, 0.08), transparent 50%),
        var(--paper);
}

.bn-visit-panel {
    background: #fff;
    border: 1px solid rgba(11, 29, 58, 0.1);
    border-radius: 20px;
    padding: 22px 18px 20px;
}

.bn-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
}

.bn-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
}

.bn-dot--on {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
    animation: bnPulse 1.8s ease infinite;
}

@keyframes bnPulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.05);
    }
}

.bn-summer-notice {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-left: 3px solid var(--sun);
    background: #fff5f5;
    color: var(--sun);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
}

.bn-hours {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bn-hours li {
    padding: 9px 0;
    border-bottom: 1px solid rgba(11, 29, 58, 0.08);
    font-size: 0.9rem;
    color: var(--muted);
}

.bn-hours li:last-child {
    border-bottom: none;
}

.bn-place {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(11, 29, 58, 0.18);
}

.bn-place-name {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.bn-place-phone {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
}

.bn-visit-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.bn-visit-actions .bn-btn {
    flex: 1;
}

/* —— Footer / dock —— */
.bn-foot {
    text-align: center;
    padding: 28px 16px 20px;
    color: var(--muted);
}

.bn-foot img {
    margin: 0 auto 8px;
    border-radius: 10px;
}

.bn-foot p {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
}

/* —— Map sheet —— */
.bn-map-sheet {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(6, 18, 36, 0.55);
    display: flex;
    align-items: flex-end;
}

.bn-map-sheet[hidden] {
    display: none !important;
}

.bn-map-sheet-inner {
    width: 100%;
    height: min(72vh, 560px);
    background: #fff;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: bnSheet 0.28s ease;
}

@keyframes bnSheet {
    from {
        transform: translateY(40%);
    }
    to {
        transform: translateY(0);
    }
}

.bn-map-sheet-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.bn-map-sheet-bar button {
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
}

.bn-map-sheet iframe {
    flex: 1;
    width: 100%;
    border: 0;
}

/* —— Reveal —— */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0ms);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (min-width: 768px) {
    .bn-topbar {
        padding-left: max(16px, calc(50% - 520px));
        padding-right: max(16px, calc(50% - 520px));
    }

    .bn-chip {
        min-height: 40px;
        padding: 0 16px;
        font-size: 0.78rem;
    }

    .bn-hero-inner {
        padding-bottom: 64px;
    }

    .bn-dish {
        flex-basis: 240px;
    }

    .bn-story {
        padding-left: max(20px, calc(50% - 480px));
    }

    .bn-visit {
        padding-left: max(16px, calc(50% - 360px));
        padding-right: max(16px, calc(50% - 360px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .bn-hero-img,
    .bn-story-float,
    .bn-hero-next span,
    .bn-dot--on {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}
