.cfm-site-header {
    --cfm-header-height: 78px;
    background: rgba(248, 245, 239, 0.97);
    border-bottom: 1px solid rgba(11, 23, 40, 0.1);
    box-sizing: border-box;
    color: #0b1728;
    font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: var(--cfm-header-height);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1200;
}

.cfm-site-header *,
.cfm-site-header *::before,
.cfm-site-header *::after {
    box-sizing: border-box;
}

.cfm-site-header--jp {
    background: rgba(4, 8, 16, 0.96);
    border-bottom-color: rgba(148, 163, 184, 0.18);
    color: #f8fafc;
}

.cfm-site-header__inner {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: space-between;
    margin-inline: auto;
    max-width: 1440px;
    padding-inline: 52px;
}

.cfm-site-header a {
    color: inherit;
    text-decoration: none;
}

.cfm-site-header__logo {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 11px;
}

.cfm-site-header__logo img {
    border-radius: 50%;
    display: block;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.cfm-site-header__logo span {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
}

.cfm-site-header .nav-menu {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 36px;
    justify-content: flex-end;
    position: static;
}

.cfm-site-header__links,
.cfm-site-header__actions {
    align-items: center;
    display: flex;
}

.cfm-site-header__links {
    gap: 28px;
}

.cfm-site-header__actions {
    gap: 10px;
}

.cfm-site-header__links a,
.cfm-site-header__login {
    color: #23332f;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    position: relative;
    white-space: nowrap;
}

.cfm-site-header--jp .cfm-site-header__links a,
.cfm-site-header--jp .cfm-site-header__login {
    color: #d7e2df;
}

.cfm-site-header__links a::after,
.cfm-site-header__login::after {
    background: #08705c;
    bottom: -8px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease-out;
    width: 100%;
}

.cfm-site-header--jp .cfm-site-header__links a::after,
.cfm-site-header--jp .cfm-site-header__login::after {
    background: #9ce0cd;
}

.cfm-site-header__links a:hover::after,
.cfm-site-header__links a:focus-visible::after,
.cfm-site-header__links a[aria-current="page"]::after,
.cfm-site-header__login:hover::after,
.cfm-site-header__login:focus-visible::after {
    transform: scaleX(1);
}

.cfm-site-header__cta {
    align-items: center;
    background: #08705c;
    border: 1px solid #08705c;
    border-radius: 10px;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 0 17px;
    transition:
        background-color 180ms ease-out,
        border-color 180ms ease-out;
    white-space: nowrap;
}

.cfm-site-header__cta:hover,
.cfm-site-header__cta:focus-visible {
    background: #0a8b72;
    border-color: #0a8b72;
}

.cfm-site-header--jp .cfm-site-header__cta {
    background: #9ce0cd;
    border-color: #9ce0cd;
    color: #063f35 !important;
}

.cfm-site-header--jp .cfm-site-header__cta:hover,
.cfm-site-header--jp .cfm-site-header__cta:focus-visible {
    background: #bcebdc;
    border-color: #bcebdc;
}

.cfm-site-header .hamburger {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(8, 112, 92, 0.52);
    border-radius: 10px;
    color: #075846;
    cursor: pointer;
    display: none;
    flex-direction: column;
    flex: 0 0 auto;
    font: inherit;
    gap: 4px;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 46px;
}

.cfm-site-header .hamburger span {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    margin: 0;
    transition:
        opacity 180ms ease-out,
        transform 180ms ease-out;
    width: 18px;
}

.cfm-site-header .hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.cfm-site-header .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.cfm-site-header .hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.cfm-site-header--jp .hamburger {
    border-color: rgba(156, 224, 205, 0.48);
    color: #d9eee8;
}

.cfm-site-header :focus-visible {
    outline: 3px solid #0b8f76;
    outline-offset: 4px;
}

.cfm-site-header--jp :focus-visible {
    outline-color: #9ce0cd;
}

body.homepage-v2 > main,
body.technical-features-page > main,
body.pricing-page > main,
body.project-page > main,
body.peer-anonymisation-page > main,
body.partner-page > main,
body.news-shell > main,
body.legal-enhanced > main {
    padding-top: 78px;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 1120px) {
    .cfm-site-header {
        --cfm-header-height: 72px;
    }

    body.homepage-v2 > main,
    body.technical-features-page > main,
    body.pricing-page > main,
    body.project-page > main,
    body.peer-anonymisation-page > main,
    body.partner-page > main,
    body.news-shell > main,
    body.legal-enhanced > main {
        padding-top: 72px;
    }

    .cfm-site-header__inner {
        padding-inline: 28px;
    }

    .cfm-site-header__logo img {
        height: 38px;
        width: 38px;
    }

    .cfm-site-header__logo span {
        font-size: 22px;
    }

    .cfm-site-header .hamburger {
        display: inline-flex;
    }

    .cfm-site-header .nav-menu {
        align-items: stretch;
        background: #fffdf9;
        border-bottom: 1px solid rgba(11, 23, 40, 0.1);
        box-shadow: 0 18px 32px rgba(11, 23, 40, 0.14);
        display: none;
        flex-direction: column;
        gap: 0;
        height: auto;
        justify-content: flex-start;
        left: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 12px 28px 24px;
        position: absolute;
        right: 0;
        top: 72px;
    }

    .cfm-site-header--jp .nav-menu {
        background: #07101d;
        border-bottom-color: rgba(148, 163, 184, 0.18);
    }

    .cfm-site-header .nav-menu.active {
        display: flex;
    }

    .cfm-site-header__links,
    .cfm-site-header__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .cfm-site-header__links a,
    .cfm-site-header__login {
        border-bottom: 1px solid rgba(11, 23, 40, 0.1);
        font-size: 15px;
        padding: 14px 0;
    }

    .cfm-site-header--jp .cfm-site-header__links a,
    .cfm-site-header--jp .cfm-site-header__login {
        border-bottom-color: rgba(148, 163, 184, 0.16);
    }

    .cfm-site-header__links a::after,
    .cfm-site-header__login::after {
        display: none;
    }

    .cfm-site-header__actions {
        padding-top: 16px;
    }

    .cfm-site-header__cta {
        margin-top: 12px;
        min-height: 50px;
        width: 100%;
    }

    body.homepage-v2 > main,
    body.technical-features-page > main,
    body.pricing-page > main,
    body.project-page > main {
        padding-top: 72px;
    }
}

@media (max-width: 560px) {
    .cfm-site-header__inner {
        padding-inline: 20px;
    }

    .cfm-site-header .nav-menu {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cfm-site-header__links a::after,
    .cfm-site-header__login::after,
    .cfm-site-header__cta,
    .cfm-site-header .hamburger span {
        transition-duration: 0.01ms;
    }
}
