:root {
    --color-primary: #8EC0E4;
    --color-secondary: #C9B9D3;
    --color-accent: #ffffff;
    --color-text: #333333;
    --color-bg: #f4f7f9;

    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --blur: 16px;

    --font-main: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;

    --container-width: 1200px;
    --section-padding: 8rem 0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #f0f0f0;
        --color-bg: #1a1a1a;
        --glass-bg: rgba(20, 20, 20, 0.4);
        --glass-border: 1px solid rgba(255, 255, 255, 0.1);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    /* Handled by GSAP/JS */
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    /* Custom cursor only */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
    /* Custom cursor only */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.d-block {
    display: block;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

/* Background Shapes */
.hero-bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-shapes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    /* Subtle background */
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -100px;
    left: -100px;
    animation: float 20s infinite alternate;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: -50px;
    right: -100px;
    animation: float 25s infinite alternate-reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ffb6b9;
    /* Accent pastel */
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation: pulse 15s infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(20deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 1rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border-bottom: var(--glass-border);
}

.logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav ul {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-en);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--color-text);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: exclusion;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
    mix-blend-mode: exclusion;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 5px;
    animation: fadePulse 2s infinite;
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    justify-content: flex-start;
    /* Ensure left alignment container */
}

/* Ensure container allows CENTER alignment */
.hero .container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 10vh;
    /* Push content down */

    /* Flexbox layout to force content CENTER */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    justify-content: center;
    text-align: center !important;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.25;
    margin-bottom: 3rem;
    overflow: hidden;
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
    text-align: center !important;
    margin-left: 0;
    width: 100%;
}

/* Strongly target hero text sizes */
.hero-title .hero-big {
    font-size: 5rem !important;
    /* Reduced from 7rem */
    font-weight: 700;
    display: inline-block;
}

.hero-title .hero-small {
    font-size: 2.5rem !important;
    /* Adjusted proportionally */
    font-weight: 400;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 3rem;
    overflow: hidden;
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
    text-align: center !important;
    margin-left: 0;
    width: 100%;
}

/* Bottom Nav Base (Desktop: Hidden) */
.bottom-nav {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
    }

    .nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .hero-title {
        font-size: 3rem;
        margin-left: 0 !important;
        /* Reset margin for mobile */
    }

    /* Mobile Hero Typography Overrides */
    .hero-title .hero-big {
        font-size: 2.5rem !important;
    }

    .hero-title .hero-small {
        font-size: 1.2rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.6;
        margin-left: 0 !important;
    }

    /* Bottom Nav (Mobile: Visible) */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        /* Premium Dark Glass Design */
        background: rgba(40, 40, 45, 0.95);
        /* Grayish Tone */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);

        justify-content: space-around;
        align-items: center;
        z-index: 10000;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;

        /* High Visibility White Text */
        color: rgba(255, 255, 255, 0.6);
        /* Soft white for inactive */
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.5px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
    }

    /* Active State */
    .bottom-nav-item.active {
        color: #ffffff;
        /* Pure white */
        font-weight: 700;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    }

    .bottom-nav-item:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Elegant Indicator Line */
    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30%;
        height: 2px;
        background: var(--color-primary);
        /* Cyan accent */
        box-shadow: 0 2px 6px rgba(142, 192, 228, 0.6);
    }

    /* Remove icon SVGs if any remain */
    .bottom-nav-item svg {
        display: none !important;
    }

    body {
        padding-bottom: 80px !important;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}
.mobile-break { display: none; }
@media (max-width: 768px) { .mobile-break { display: block; } }
