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

/* ヘッダー全体のスタイル */
header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    user-select: none;
}

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

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

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

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

.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;
}

.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, .user-menu {
        display: none;
    }
    
    #navArea {
        display: block;
        width: 90px;
        background-color: #fff;
        position: fixed;
        top: 0;
        right: 0;
        height: 70px;
    }
    
    .toggle_btn {
        top: 20px;
        right: 30px;
    }
}

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;
}

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

nav .inner {
    padding: 25px;
}

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

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

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

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: #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;
}
