/* @import url('http://example.com/example_style.css'); */

/***********************************************/
/* CSS @imports must be at the top of the file */
/* Add them above this section                 */
/***********************************************/

/*****************************************/
/* Start your style declarations here    */
/*****************************************/

/* ヘッダー共通スタイル */
.header {
    background-color: #080808;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    height: 55px;
    max-width: 250px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 0px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ff6b35;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 4px 8px;
    border: 1px solid #555;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-primary {
    background-color: #ff6b35;
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e55a2e;
}

.btn-contact {
    background: transparent;
    color: white;
    padding: 4px 8px;
    border: 1px solid white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: white;
    color: #1a1a1a;
}

.hamburger {
    display: none;
}

.mobile-register-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

.desktop-nav {
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 898px) {
    .header-container {
        flex-direction: row;
        gap: 15px;
        padding: 15px 20px;
        justify-content: space-between;
    }

    .logo {
        height: 45px;
        max-width: 200px;
    }

    .nav-section {
        gap: 15px;
        margin-left: 0;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: #1a1a1a;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 30px 30px;
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

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

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

    .mobile-menu-list li {
        margin-bottom: 20px;
    }

    .mobile-menu-list a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #333;
        transition: color 0.3s ease;
    }

    .mobile-menu-list a:hover {
        color: #ff6b35;
    }

    .mobile-menu-list .btn-secondary,
    .mobile-menu-list .btn-primary,
    .mobile-menu-list .btn-contact {
        border: none;
        border-radius: 0;
        padding: 12px 0;
        text-align: left;
        background: transparent;
    }

    .mobile-menu-list .btn-primary:hover {
        background: transparent;
        color: #ff6b35;
    }

    .mobile-register-btn {
        display: inline-block;
        background: transparent;
        color: white;
        padding: 8px 14px;
        border: 1px solid #555;
        border-radius: 4px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .mobile-register-btn:hover {
        background-color: #333;
    }

    .hamburger {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .header-buttons {
        display: none;
    }
}

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

    .logo {
        height: 40px;
        max-width: 180px;
    }

    .header {
        transition: transform 0.25s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
        will-change: transform;
    }
    .header.is-hidden {
        transform: translateY(-110%);
}