/* =============================================
   ヘッダー
   ============================================= */
.header {
    background-color: #3a5a3a;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', 'Hiragino Kaku Gothic ProN', sans-serif;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.logo-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-nav a:hover {
    opacity: 0.8;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =============================================
   ヘッダー レスポンシブ
   ============================================= */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .header-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2a4a2a;
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .header-nav.active {
        max-height: 400px;
        opacity: 1;
        padding: 20px;
        gap: 5px;
    }

    .header-nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateX(-20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease, padding-left 0.2s ease, background-color 0.2s ease;
    }

    .header-nav.active a {
        transform: translateX(0);
        opacity: 1;
    }

    .header-nav.active a:nth-child(1) { transition-delay: 0.05s; }
    .header-nav.active a:nth-child(2) { transition-delay: 0.1s; }
    .header-nav.active a:nth-child(3) { transition-delay: 0.15s; }
    .header-nav.active a:nth-child(4) { transition-delay: 0.2s; }
    .header-nav.active a:nth-child(5) { transition-delay: 0.25s; }
    .header-nav.active a:nth-child(6) { transition-delay: 0.3s; }

    .header-nav a:last-child {
        border-bottom: none;
    }

    .header-nav a:hover {
        padding-left: 10px;
        background-color: rgba(255, 255, 255, 0.05);
    }
}
