header,
header * {
    box-sizing: border-box;
}

header {
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.header-link,
.header-cta,
.header-cta_login {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}




.header-container {
    max-width: 100%;
    padding: 0 40px;
}

header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 14px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.10);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.header-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
    overflow: hidden;
}

.header-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.header-brand-text {
    min-width: 0;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-env {
    font-size: 1rem;
    color: #FF00FF;
    margin-left:20px;
}

.header-tagline {
    font-size: 0.78rem;
    color: #475569;
    margin-top: 2px;
    white-space: nowrap;
}

.header-link {
    text-decoration: none;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 5px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-link:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    transform: translateY(-1px);
}

.header-cta {
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(45deg, #ff7a59, #ff5f6d);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(255, 95, 109, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.header-cta_login {
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(45deg, #5f9de4, #4a90e2);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(89, 216, 255, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.header-cta:hover,
.header-cta_login:hover {
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-nav {
        justify-content: flex-start;
    }

    .header-tagline {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .header-link,
    .header-cta,
    .header-cta_login {
        font-size: 0.9rem;
        padding: 9px 13px;
    }

    .header-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .logo {
        font-size: 1.2rem;
    }
}
