/* ========================================
   HEADER STYLES
   ======================================== */

/* ========================================
   1. SITE HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

/* ========================================
   2. TOP BAR SECTION
   ======================================== */
.top-bar {
    background-color: #f5f5f5;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    color: #444;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.logo-text-line1 {
    font-size: 12px;
    color: #444;
    margin-bottom: 2px;
}

.logo-text-line2 {
    font-size: 16px;
    color: #444;
}

.brand-name {
    font-weight: 700;
    color: #6366f1;
}

.logo img {
    height: 40px;
    width: auto;
}

.top-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.top-nav a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* ========================================
   3. MAIN HEADER SECTION
   ======================================== */
.main-header {
    background-color: #fff;
    padding: 10px 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

/* ========================================
   4. BUTTON GROUP
   ======================================== */
.button-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-download {
    background-color: #fff;
    color: #444;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    cursor: pointer;
}

.btn-download:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.btn-contact {
    background-color: #007bff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-contact:hover {
    background-color: #0056b3;
}

.btn-contact .btn-contact-text {
    display: block; /* PCではテキストを表示 */
}

.btn-contact .btn-contact-icon {
    display: none; /* PCではアイコンを非表示 */
}

/* ========================================
   5. HAMBURGER MENU
   ======================================== */
.hamburger-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    position: relative;
    transition: background-color 0.3s ease;
    margin: 0;
}

.hamburger-menu-btn span {
    display: block;
    position: absolute;
    left: 9px;
    right: 9px;
    height: 3px;
    background-color: #444;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger-menu-btn span:nth-child(1) {
    top: 14px;
}

.hamburger-menu-btn span:nth-child(2) {
    top: 20px;
}

.hamburger-menu-btn span:nth-child(3) {
    top: 26px;
}

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

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

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

/* ========================================
   6. NAVIGATION OVERLAY
   ======================================== */
.nav-overlay {
    display: none;
}

.nav-overlay.is-active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 90;
}

body.is-nav-open {
    overflow: hidden;
}

/* ========================================
   7. MOBILE ONLY ELEMENTS
   ======================================== */
.mobile-only-divider {
    display: none;
}

.mobile-only-item {
    display: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */


/* ========================================
   Mobile / Tablet (1080px and below)
   ======================================== */
@media (max-width: 1080px) {
    /* 1. Site Header */
    /* (スタイルなし) */

    /* 2. Top Bar Section */
    .top-bar {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-section {
        justify-content: center;
        width: 100%;
    }
    
    .logo-text-line1 {
        font-size: 12px;
    }
    
    .logo-text-line2 {
        font-size: 14px;
    }

    .top-nav {
        display: none;
    }

    .top-nav a {
        color: #444;
        text-decoration: none;
        font-weight: 500;
        font-size: 12px;
    }

    /* 3. Main Header Section */
    .main-header {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .nav-wrapper {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 35%;
        max-width: 360px;
        height: 100%;
        background-color: #fff;
        padding: 80px 24px 40px 24px;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        z-index: 99;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
        margin-left: 0;
        overflow-y: auto;
    }

    .nav-wrapper.is-active {
        left: 0;
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: flex-start;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        font-size: 14px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .main-nav a:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    /* 4. Button Group */
    .button-group {
        flex-direction: column;
        gap: 12px;
        width: 80px;
        justify-content: flex-start;
        margin-left: 10px;
    }

    .button-group a {
        width: 80px;
        text-align: center;
        padding: 12px 16px;
    }

    .btn-download-primary {
        display: none;
    }

    .btn-download {
        background-color: #fff;
        color: #444;
        padding: 8px 16px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        border: 1px solid #ddd;
    }

    .btn-contact {
        display: block;
        background-color: #007bff;
        color: #fff;
        padding: 8px 16px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }

    .btn-contact:hover {
        background-color: #0056b3;
    }

    .btn-contact .btn-contact-text {
        display: block;
    }

    .btn-contact .btn-contact-icon {
        display: none;
    }

    /* 5. Hamburger Menu */
    .hamburger-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        position: relative;
        z-index: 100;
        order: 0;
        margin: 0;
        min-width: 48px;
        min-height: 48px;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }

    .hamburger-menu-btn:hover {
        background-color: #f8f9fa;
    }

    .hamburger-menu-btn:active {
        background-color: #e9ecef;
    }

    .hamburger-menu-btn span {
        display: block;
        width: 28px;
        height: 3px;
        background-color: #444;
        border-radius: 2px;
        margin: 5px 0;
        transition: all 0.3s ease;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger-menu-btn span:nth-child(1) {
        top: 14px;
    }

    .hamburger-menu-btn span:nth-child(2) {
        top: 22px;
    }

    .hamburger-menu-btn span:nth-child(3) {
        top: 30px;
    }

    .hamburger-menu-btn.is-active span:nth-child(1) {
        transform: translateX(-50%) translateY(8px) rotate(45deg);
    }

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

    .hamburger-menu-btn.is-active span:nth-child(3) {
        transform: translateX(-50%) translateY(-8px) rotate(-45deg);
    }

    /* 6. Navigation Overlay */
    .nav-overlay {
        display: none;
    }

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

    /* 7. Mobile Only Elements */
    .mobile-only-divider {
        display: block;
        height: 1px;
        width: 100%;
        background: #ddd;
        margin: 12px 0;
    }

    .mobile-only-item {
        display: block;
    }
}
