/* 共通ヘッダーのスタイル定義 */
header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #4285f4; /* Googleブルー */
    color: white;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.category-icon {
    margin-right: 12px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.category-icon img,
.category-icon i {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.03em;
}

/* タイトルリンクのスタイル */
.header-title-link {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-title-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ヘッダーリンクのスタイル */
.header-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 共通リンクスタイル */
.header-links a {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: rgb(241, 214, 7);
    border-radius: 20px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    margin-right: 10px;
}

.header-links a:last-child {
    margin-right: 0;
}

.header-links a:hover {
    background-color: rgba(255,255,255,0.25);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 個別リンクのアイコン色 */
.research-link i {
    margin-right: 5px;
    font-size: 0.9em;
    color: #000000; /* 黒色 */
}

.companies-link i {
    margin-right: 5px;
    font-size: 0.9em;
    color: #000000; /* 黒色 */
}

.books-link i {
    margin-right: 5px;
    font-size: 0.9em;
    color: #000000; /* 黒色 */
}

.glossary-link i {
    margin-right: 5px;
    font-size: 0.9em;
    color: #000000; /* 黒色 */
}

.rss-link i {
    margin-right: 5px;
    font-size: 0.9em;
    color: #000000; /* 黒色 */
}

.sitemap-link i {
    margin-right: 5px;
    font-size: 0.9em;
    color: #e9518d; /* ピンク色 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-links {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        gap: 3px;
    }
    
    .header-links a {
        margin-bottom: 0;
        padding: 6px;
        margin-right: 3px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-links a span {
        display: none;
    }
    
    .header-links a i {
        margin-right: 0;
        font-size: 1.1em;
    }
}