.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #ffffff;
    border-bottom: 1px solid #eef0f3;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

body.has-global-header {
    padding-top: 64px;
}

.global-header * {
    box-sizing: border-box;
}

.global-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    max-width: 100%;
}

/*ロゴ*/
.global-header-left {
    display: flex;
    align-items: center;
}

.global-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.global-header-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* メインナビゲーション*/
.global-header-nav {
    display: flex;
    align-items: stretch;
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
}

.global-header-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    box-sizing: border-box;
    margin: 0 !important;
    line-height: normal;
}

.global-header-nav .nav-link i {
    margin-right: 8px;
    font-size: 1.05rem;
    color: #a0aec0;
    transition: color 0.15s ease-in-out;
}

.global-header-nav .nav-link:hover {
    background-color: #f7fafc;
    color: #0052cc;
}

.global-header-nav .nav-link:hover i {
    color: #0052cc;
}

.global-header-nav .nav-link.active {
    color: #0052cc;
    font-weight: 600;
    background-color: #f1f5f9;
}

.global-header-nav .nav-link.active i {
    color: #0052cc;
}

.global-header-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 3px 3px 0 0;
}

/* ユーザー情報とログアウト */
.global-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;

    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.user-icon {
    font-size: 1.4rem;
    margin-right: 8px;
    color: #cbd5e0;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    box-sizing: border-box;
}

.btn-logout i {
    margin-right: 6px;
}

.btn-logout:hover {
    background-color: #fff5f5;
    border-color: #fc8181;
    color: #e53e3e;
}

#globalLogoutButton[style*="display: none"] {
    display: none !important;
}