:root {
    --nav-h: 64px;
    --accent: #16a34a;
    --text: #0f172a;
    --muted: #475569;
    --bg: #ffffff;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Noto Sans JP, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    padding-top: var(--nav-h);
}

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.nav-inner {
    width: 100vw;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 65px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background-color .2s ease, color .2s ease;
}

.nav-links a:hover {
    background: rgba(14,165,233,.1);
    color: var(--accent);
}

.nav-links a.icon-link {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.icon-link img {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.nav-links a.icon-link:hover {
    background: rgba(22, 163, 74, .12);
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    place-items: center;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
}

.burger span::before, .burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform .2s ease;
}

.burger span::before {
    top: -7px;
}

.burger span::after {
    top: 7px;
}

.mobile-panel {
    display: none;
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 999;
    padding: 12px 20px 16px;
}

.mobile-panel a {
    display: block;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 12px 8px;
    border-radius: 10px;
}

.mobile-panel a:hover {
    background: rgba(14,165,233,.1);
    color: var(--accent);
}

.contact-stick {
    position: fixed;
    right: 16px;
    top: 13vh;
    z-index: 990;
    display: block;
    text-decoration: none;
    transition: transform .15s ease;
}

.contact-stick:hover {
    transform: translateY(-2px);
}

.contact-stick img {
    display: block;
    width: 70px;
    height: auto;
}

.muted {
    color: var(--muted);
}

footer {
    padding: 20px 0 20px;
    text-align: center;
    background-color: #02765b;
    color: #ffffff;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: grid;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-h: 56px;
    }

    .logo img {
        height: 28px;
    }

    .contact-stick {
        right: 10px;
        bottom: 10vh;
    }

    .contact-stick img {
        width: 72px;
    }
}
