/* ヘッダー */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ヘッダー固定のための調整 */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-main {
    padding: 2px 0;
}

.header-main .container {
    padding: 0 10px;
}

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

.site-branding {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* サイトタグライン */
.site-tagline {
    font-size: 0.55rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    padding: 6px 0 0 10px;
}

@media (min-width: 769px) {
    .site-tagline {
        font-size: 1rem;
        padding: 0;
    }
}

/* サイトロゴ */
.site-logo {
    display: inline-block;
    line-height: 0;
}

.site-logo a {
    display: inline-block;
    line-height: 0;
}

.site-logo-image {
    height: 35px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.site-logo a:hover .site-logo-image {
    opacity: 0.8;
}

/* 旧サイトタイトル（テキスト版） */
.site-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #3b82f6;
}

.site-title a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.site-title a:hover {
    color: #667eea;
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #374151;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-menu.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ナビゲーション */
.header-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    padding-top: 60px;
}

.header-nav.is-open {
    right: 0;
}

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

.header-nav-list li {
    border-bottom: 1px solid #e5e7eb;
}

.header-nav-list li a {
    display: block;
    padding: 16px 24px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.header-nav-list li a:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

/* ナビオーバーレイ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.nav-overlay.is-visible {
    display: block;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-main {
        padding: 4px 0;
    }

    .header-main .container {
        padding: 0 8px;
    }

    .site-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .site-logo-image {
        height: 30px;
    }

    .site-title {
        font-size: 1.2rem;
    }
}
