/**
 * Header CSS - ヘッダー専用スタイル（更新版）
 * 渋谷文化村通り皮膚科 WordPressテーマ
 * レイアウト: 左ロゴ、右メニューアイテム
 */

/* Header Base */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(166, 157, 153, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Left - ロゴエリア */
.header-left {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title a {
    font-size: 20px;
    font-weight: 300;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.site-title a:hover {
    color: var(--primary-dark);
}

/* Header Right - メニューアイテム */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    font-weight: 300;
}

.header-nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.header-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.header-nav-links a:hover::after {
    width: 100%;
}

/* LINE Button */
.line-btn {
    background: #00B900;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 185, 0, 0.2);
}

.line-btn:hover {
    background: #00A000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.3);
    color: white;
}

.line-btn .material-icons {
    font-size: 16px;
}

/* Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 300;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle:hover {
    color: var(--primary-dark);
}

.menu-text {
    font-size: 16px;
}

/* Hamburger Icon */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
.main-navigation {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.main-navigation[aria-expanded="true"] {
    max-height: calc(100vh - 80px);
    top: 80px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Navigation Sections */
.nav-section {
    padding: 20px;
}

.nav-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--primary-light);
}

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

.nav-menu li {
    margin-bottom: 12px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Navigation Contact Section */
.nav-contact {
    background: var(--accent-color);
    border-radius: 16px;
}

.contact-info {
    margin-bottom: 20px;
}

.nav-contact .contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-medium);
    font-size: 14px;
}

.nav-contact .contact-detail .material-icons {
    color: var(--primary-color);
    font-size: 18px;
}

.nav-cta-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    color: white;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header Scroll Effects */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(166, 157, 153, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }

    .header-nav-links {
        gap: 20px;
    }

    .nav-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .header-nav-links a {
        font-size: 13px;
    }

    .line-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .site-title a {
        font-size: 18px;
    }

    .nav-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }

    .main-navigation[aria-expanded="true"] {
        top: 70px;
        max-height: calc(100vh - 70px);
    }

    .hamburger {
        gap: 2px;
    }

    .hamburger span {
        width: 18px;
        height: 2px;
    }
}

@media (max-width: 640px) {
    .header-nav-links {
        gap: 15px;
    }

    .header-nav-links a {
        font-size: 12px;
        padding: 6px 0;
    }

    .line-btn {
        padding: 6px 10px;
        font-size: 10px;
        gap: 4px;
    }

    .line-btn .material-icons {
        font-size: 14px;
    }

    .menu-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .header-right {
        gap: 12px;
    }

    /* 極小画面では求人情報を非表示 */
    .header-nav-links a:first-child {
        display: none;
    }

    .nav-container {
        padding: 15px;
        gap: 20px;
    }

    .nav-section {
        padding: 15px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header {
        border-bottom: 2px solid var(--primary-dark);
    }

    .menu-toggle,
    .header-nav-links a {
        font-weight: 400;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .header,
    .menu-toggle,
    .line-btn,
    .main-navigation,
    .menu-overlay,
    .header-nav-links a {
        transition: none;
    }

    .hamburger span {
        transition: none;
    }
}