@charset "UTF-8";

/* ==========================================================================
   Cool Header (Glassmorphism & Sticky)
   ========================================================================== */

:root {
    --hd-height: 80px;
    --hd-bg: rgba(255, 255, 255, 0.85);
    --hd-blur: 16px;
    --hd-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    --hd-color: #0f172a;
    --hd-primary: #3b82f6;
    --hd-z: 1000;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    /* Flexible height */
    min-height: 80px;
    padding: 10px 0;
    /* Add vertical padding */
    background: var(--hd-bg);
    backdrop-filter: blur(var(--hd-blur));
    -webkit-backdrop-filter: blur(var(--hd-blur));
    box-shadow: var(--hd-shadow);
    z-index: var(--hd-z);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hd-color);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.site-brand img {
    height: 50px;
    /* Increased for visibility */
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.site-nav {
    display: none;
    /* Mobile default */
    flex-grow: 1;
    /* Allow taking space */
    margin: 0 40px;
    /* Space from logo and CTA */
}

@media (min-width: 1024px) {
    .site-nav {
        display: block;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        /* Allow wrapping to 2 rows */
        justify-content: flex-end;
        /* Align to right */
        gap: 8px 24px;
        /* Row gap 8px, Col gap 24px */
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        flex: 0 0 auto;
        /* Don't stretch */
    }

    .nav-menu li a {
        display: block;
        color: var(--hd-color);
        font-size: 0.85rem;
        /* Slightly smaller for density */
        font-weight: 700;
        text-decoration: none;
        position: relative;
        padding: 2px 0;
        /* Tighter padding for 2 rows */
        transition: color 0.3s;
        white-space: nowrap;
        /* Prevent wrapping */
        line-height: 1.5;
    }

    .nav-menu li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--hd-primary);
        transition: width 0.3s ease;
    }

    .nav-menu li a:hover {
        color: var(--hd-primary);
    }

    .nav-menu li a:hover::after {
        width: 100%;
    }
}

/* Actions (CTA) */
.header-actions {
    display: none;
}

@media (min-width: 1024px) {
    .header-actions {
        display: block;
    }

    .btn-header {
        display: inline-block;
        padding: 10px 24px;
        background: var(--hd-primary);
        color: #fff;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn-header:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        color: #fff;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--hd-color);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--hd-color);
    left: 0;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hd-color);
    text-decoration: none;
}

/* Spacer to prevent content overlap */
.header-spacer {
    height: var(--hd-height);
}