/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

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

.header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: var(--header-logo-height);
    width: auto;
    object-fit: contain;
}

.logo svg {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--header-nav-gap);
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--color-black);
    font-size: var(--header-nav-font-size);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-list a small {
    font-size: 10px;
    font-weight: 400;
    color: #666;
    display: block;
}

.nav-list a:hover {
    color: #FEE603;
}

.nav-list a.active {
    color: #FEE603;
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.nav-item--dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
}

.nav-dropdown li {
    list-style: none;
}

.nav-dropdown a {
    display: block;
    padding: var(--spacing-sm) 20px;
    color: #000;
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all 0.3s;
}

.nav-dropdown a:hover {
    background: #f8f9fa;
    color: #FEE603;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .btn-primary {
    background: var(--gradient-primary);
    color: var(--color-black);
    padding: var(--header-btn-padding);
    border-radius: var(--radius-pill);
    font-weight: var(--font-weight-bold);
    font-size: var(--header-btn-font-size);
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(254, 230, 3, 0.3);
    white-space: nowrap;
}

.header-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 230, 3, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: var(--spacing-md);
}

.mobile-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav > li {
    border-bottom: 1px solid #eee;
}

.mobile-nav > li > a {
    color: #000;
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 600;
    padding: 16px 20px;
    display: block;
    transition: background 0.3s;
}

.mobile-nav > li > a:hover {
    background: #f8f9fa;
}

/* Accordion for parent items */
.mobile-nav-item--parent {
    position: relative;
}

.mobile-nav-item--parent > .mobile-nav-parent-wrapper {
    display: flex;
    align-items: stretch;
}

.mobile-nav-item--parent > .mobile-nav-parent-wrapper > a {
    flex: 1;
    padding: 16px 20px;
}

/* Accordion toggle button */
.accordion-toggle {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    border-left: 1px solid #eee;
    font-size: var(--font-size-xs);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.mobile-nav-item--parent.active .accordion-toggle {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    list-style: none;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-item--parent.active .mobile-nav-submenu {
    max-height: 500px;
}

.mobile-nav-submenu li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #666;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background 0.3s;
}

.mobile-nav-submenu li a:hover {
    background: #e9ecef;
    color: #000;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #fff;
    padding: var(--spacing-3xl) 0 40px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FEE603, #ffa726);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 230, 3, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 120px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: #FEE603;
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0;
    font-family: 'Oswald', sans-serif;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: nowrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    white-space: nowrap;
}

.footer-links a small {
    display: none; /* PC表示では非表示 */
}

.footer-links a:hover {
    color: #FEE603;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #666;
    font-size: var(--font-size-sm);
    margin: 0;
}

/* Mobile & Tablet responsive */
@media (max-width: 1024px) {
    .header {
        border-bottom: none;
        box-shadow: none !important;
        padding: 0;
    }

    .header-content {
        height: 56px;
        padding: 0;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .logo img {
        height: 22px;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-actions {
        gap: 10px;
        flex-shrink: 0;
    }

    .header-actions .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .footer {
        padding: var(--spacing-2xl) 0 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-tagline {
        font-size: var(--font-size-sm);
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm) var(--spacing-xs);
        padding: 0 var(--spacing-sm);
    }

    .footer-links a {
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        padding: var(--spacing-sm) var(--spacing-xs);
        border-radius: var(--border-radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 60px;
        font-size: var(--font-size-xs);
        line-height: 1.4;
    }

    .footer-links a small {
        display: block;
        font-size: 0.75em;
        opacity: 0.8;
        margin-top: var(--spacing-xs);
    }

    .footer-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FEE603, #ffa726);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(254, 230, 3, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(254, 230, 3, 0.5);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}
}