body {
    margin: 0;
    padding: 0;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    background-color: #F6F6F6;
}

/* ヘッダー全体のスタイル（未設定時は現行どおり #fff / 文字 #333） */
header {
    width: 100%;
    background-color: var(--insas-header-bg, #fff);
    background-image: var(--insas-header-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--insas-header-fg, #333);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    user-select: none;
}

header.insas-header-dark .nav-item {
    color: rgba(247, 248, 251, 0.92);
}

header.insas-header-dark .nav-item:hover {
    color: #fff;
}

header.insas-header-dark .nav-item.active {
    color: #fff;
}

header.insas-header-dark .nav-item.active::after {
    background-color: #fff;
}

header.insas-header-dark .user-name {
    color: #f7f8fb;
}

header.insas-header-dark .user-company,
header.insas-header-dark .dropdown-arrow {
    color: rgba(247, 248, 251, 0.7);
}

header.insas-header-dark .bell-btn {
    color: rgba(247, 248, 251, 0.85);
}

header.insas-header-dark .bell-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

header.insas-header-dark .bell-btn.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

header.insas-header-dark .bell-dot {
    border-color: transparent;
}

header.insas-header-dark .profile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

header.insas-header-dark .profile-toggle:hover .user-name {
    color: #fff;
}

header.insas-header-dark .profile-toggle:hover .user-company,
header.insas-header-dark .profile-toggle:hover .dropdown-arrow {
    color: rgba(247, 248, 251, 0.85);
}

.logo-area .header-logo-dark {
    display: none;
}

header.insas-header-dark .logo-area .header-logo-light {
    display: none;
}

header.insas-header-dark .logo-area .header-logo-dark {
    display: block;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    background: transparent;
}

/* ロゴエリア */
.logo-area {
    margin-right: 40px;
}

.logo-area img {
    height: 40px;
    vertical-align: middle;
}

/* メインナビゲーション */
.main-nav {
    display: flex;
    flex-grow: 1;
    height: 100%;
    background: transparent;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #457da3;
}

.nav-item.active {
    color: #4551A3;
    font-weight: bold;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4551A3;
}

/* ユーザーメニュー */
.user-menu {
    display: flex;
    align-items: center;
}

/* お知らせ鐘（v4 .bell-* / .notif-*。既存 .notification は使わない） */
.bell-wrap {
    position: relative;
    margin-right: 6px;
}

.bell-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #59647f;
    position: relative;
    transition: background-color 0.12s, color 0.12s;
    padding: 0;
}

.bell-btn .material-symbols-outlined {
    font-size: 21px;
    position: static !important;
    top: auto;
    line-height: 1;
}

.bell-btn:hover {
    background: #f8f9fd;
    color: #16223d;
}

.bell-btn.is-active {
    background: #eef2fc;
    color: #2e55a0;
}

.bell-dot {
    position: absolute;
    top: 4px;
    right: 5px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 8px;
    background: #a13a2e;
    color: white;
    font-size: 9.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    box-sizing: border-box;
}

.notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 440px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dfe3ec;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(22, 34, 61, 0.16);
    z-index: 1001;
}

.notif-panel.show {
    display: block;
}

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f6;
}

.notif-panel-head h3 {
    font-size: 13px;
    font-weight: 700;
    color: #16223d;
    margin: 0;
}

.notif-panel-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    color: #8992aa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.notif-panel-close .material-symbols-outlined {
    font-size: 15px;
    position: static !important;
    top: auto;
}

.notif-panel-close:hover {
    background: #f8f9fd;
    color: #16223d;
}

.notif-item {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    border-bottom: 1px solid #eef0f6;
    cursor: pointer;
    text-align: left;
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.notif-item:hover {
    background: #f8f9fd;
}

.notif-item[hidden],
.notif-empty[hidden] {
    display: none;
}

.notif-ic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-ic .material-symbols-outlined {
    font-size: 16px;
    position: static !important;
    top: auto;
}

.notif-ic.action {
    background: #fbf1de;
    color: #8a5a08;
}

.notif-ic.urgent {
    background: #fbe9e6;
    color: #a13a2e;
}

.notif-ic.info {
    background: #f8f9fd;
    color: #59647f;
    border: 1px solid #dfe3ec;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-title {
    font-size: 12px;
    font-weight: 700;
    color: #16223d;
}

.notif-unread {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2e55a0;
    flex-shrink: 0;
}

.notif-desc {
    font-size: 11px;
    color: #59647f;
    margin-top: 2px;
    line-height: 1.5;
    display: block;
}

.notif-time {
    font-size: 10px;
    color: #8992aa;
    margin-top: 4px;
    display: block;
}

.notif-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 12px;
    color: #59647f;
}

.notif-panel-foot {
    display: block;
    width: 100%;
    padding: 11px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #2e55a0;
    background: #f8f9fd;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.notif-panel-foot:hover {
    background: #eef2fc;
}

.notification {
    margin-right: 15px;
    position: relative;
    display: none; /* ベルアイコンは不要なので非表示 */
}

.notification-bell {
    width: 24px;
    height: 24px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f44336;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ユーザープロフィール */
.user-profile {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.profile-toggle:hover {
    background-color: #f5f5f5;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    background-color: #eee;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.user-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.user-company {
    font-size: 12px;
    color: #666;
}

.dropdown-arrow {
    font-size: 12px;
    color: #666;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-icon {
    margin-right: 10px;
    font-size: 16px;
}

.dropdown-item.nav_profile span.dropdown-icon {
    font-size: 22px;
}

.dropdown-item.nav_settings span.dropdown-icon {
    font-size: 20px;
}

.dropdown-item.nav_contact span.dropdown-icon {
    font-size: 22px;
}

span.dropdown-icon.material-symbols-outlined {
    position: static !important;
}

.dropdown-item.nav_logout {
    border-top: 1px solid #eee;
    color: #f44336;
}

/* モバイル用ハンバーガーメニュー */
#navArea {
    display: none;
}

@media screen and (max-width: 921px) {
    .main-nav {
        display: none;
    }

    .user-menu {
        display: flex;
        margin-right: 72px;
    }

    .user-menu .user-profile {
        display: none;
    }
    
    #navArea {
        display: block;
        width: 90px;
        background-color: transparent;
        position: fixed;
        top: 0;
        right: 0;
        height: 70px;
    }
    
    .toggle_btn {
        top: 20px;
        right: 30px;
    }

    .notif-panel {
        width: min(360px, calc(100vw - 24px));
        right: -8px;
    }
}

#navArea nav {
    display: block;
    width: 300px;
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: all .5s;
    z-index: 3;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    opacity: 0;
}

#navArea.open nav {
    left: 0;
    opacity: 1;
}

#navArea nav .inner {
    padding: 25px;
}

#navArea nav .inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#navArea nav .inner ul li {
    position: relative;
    margin: 0;
    border-bottom: 1px solid #eee;
}

#navArea nav .inner ul li a {
    display: block;
    color: #333;
    font-size: 14px;
    padding: 1em;
    text-decoration: none;
    transition-duration: 0.2s;
}

#navArea nav .inner ul li a:hover {
    background: #e4e4e4;
}

.toggle_btn {
    display: block;
    position: fixed;
    top: 20px;
    right: 30px;
    width: 30px;
    height: 30px;
    transition: all .5s;
    cursor: pointer;
    z-index: 3;
}

.toggle_btn span {
    display: block;
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--insas-header-fg, #000000);
    border-radius: 4px;
    transition: all .5s;
}

.toggle_btn span:nth-child(1) {
    top: 4px;
}

.toggle_btn span:nth-child(2) {
    top: 14px;
}

.toggle_btn span:nth-child(3) {
    bottom: 4px;
}

.open .toggle_btn span {
    background-color: #fff;
}

.open .toggle_btn span:nth-child(1) {
    -webkit-transform: translateY(10px) rotate(-315deg);
    transform: translateY(10px) rotate(-315deg);
}

.open .toggle_btn span:nth-child(2) {
    opacity: 0;
}

.open .toggle_btn span:nth-child(3) {
    -webkit-transform: translateY(-10px) rotate(315deg);
    transform: translateY(-10px) rotate(315deg);
}

#mask {
    display: none;
    transition: all .5s;
}

.open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .8;
    z-index: 2;
    cursor: pointer;
}

.news_system {
    padding: 10px 20px;
    margin-top: 90px;
}
.news_system p {
    padding: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    background-color: #fafafa;
}
.news_system p:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}
.news_system p:first-child {
    border-top: 1px solid #eaeaea;
    padding-top: 12px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.news_system p:last-child {
    margin-bottom: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
.news_date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-right: 10px;
}
.news_category {
    font-size: 13px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    text-align: center;
    margin: 0 15px;
    min-width: 90px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.news_contents {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    padding-left: 10px;
    border-left: 3px solid #eaeaea;
}
.news_maintenance {
    background-color: rgba(255, 216, 125, 0.8);
    color: #725200;
    padding: 3px 10px;
}
.news_new {
    background-color: rgba(254, 149, 175, 0.8);
    color: #8a2a45;
    padding: 3px 15px;
}
.news_news {
    background-color: rgba(60, 246, 174, 0.8);
    color: #0a6245;
    padding: 3px 15px;
}
