:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    /* Keeping it monochrome for impact, or maybe a very subtle blue tint */
    --font-display: 'LINE Seed JP', sans-serif;
    --font-body: 'LINE Seed JP', sans-serif;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Force hide cursor everywhere */
}

/* Ensure interactive elements are clickable if any exists later, 
   but for now we want the custom cursor to flow freely. */

html,
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: auto;
    user-select: none;
    /* Prevent text selection interference */
    -webkit-user-select: none;
}



body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow: hidden;
    /* No scrolling for a single view */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

@media (hover: none) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
    opacity: 0.07;
}

/* Initialize Button Container */
.init-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

#start-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#start-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3em;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

#start-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3em;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.sound-notice {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    text-align: center;
}

#canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
    /* Ensure clicks pass through */
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Ensure full height */
    width: 100%;
    pointer-events: none;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center children horizontally */
    justify-content: center;
    width: 100%;
    height: 100%;
    /* Take full height of hero-container */
    text-align: center;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

/* Logo Mark Styles */
.logo-mark {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    /* Reduced margin */
    opacity: 0;
}

.shard {
    position: absolute;
    background: white;
    mix-blend-mode: exclusion;
}

/* Constructing a stylized abstract triangle/arrow */
.shard-1 {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.shard-2 {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%) rotate(60deg);
}

.shard-3 {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%) rotate(-60deg);
}


/* Brand Name Typography */
.brand-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2rem;
    overflow: hidden;
    /* For reveal animation */
    display: flex;
    justify-content: center;
    gap: 0.2em;
    cursor: none;
    pointer-events: auto;
}

.brand-name:hover .char {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #fff;
}

.brand-name:hover .char:nth-child(odd) {
    animation-duration: 0.4s;
}

.brand-name:hover .char:nth-child(even) {
    animation-duration: 0.6s;
}

@keyframes glitch {
    0% {
        transform: translate(0) !important;
        text-shadow: none;
    }

    20% {
        transform: translate(-2px, 2px) !important;
        text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    }

    40% {
        transform: translate(-2px, -2px) !important;
        text-shadow: 2px 0 #00fff9, -2px 0 #ff00c1;
    }

    60% {
        transform: translate(2px, 2px) !important;
        text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    }

    80% {
        transform: translate(2px, -2px) !important;
        text-shadow: 2px 0 #00fff9, -2px 0 #ff00c1;
    }

    100% {
        transform: translate(0) !important;
        text-shadow: none;
    }
}


.brand-name .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.brand-name .spacer {
    width: 0.5em;
}

/* Subtle 'i' styling */
.brand-name .char[data-char="i"] {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.brand-sub {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
}

/* Cinematic Text Styles */
.cinematic-text-container {
    position: fixed;
    /* Changed from absolute to fixed */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    /* Max width constraint */
    text-align: center;
    pointer-events: none;
    z-index: 20;
    /* Above logo */
}

.cinematic-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    /* Hidden by default */
    padding: 0 20px;
}

.cinematic-slide p {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 400;
    line-height: 2.2;
    color: #fff;
    font-feature-settings: "palt";
    /* Beautiful Japanese spacing */
    letter-spacing: 0.08em;
    pointer-events: auto;
    /* Allow interaction if needed */
}

/* Specific Adjustments for Impact */
.slide-final .final-message {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Business Grid Layout */
.business-grid-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 4;
    /* Behind logo z-index 5 but in front of others */
}

/* Business Card Styles */
.business-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    /* Hidden initially */
    width: 300px;
    /* Fixed width for layout balance */
}

/* 4 Corners Positioning */
.card-tl {
    top: 15%;
    left: 10%;
    text-align: left;
    align-items: flex-start;
}

.card-tr {
    top: 15%;
    right: 10%;
    text-align: right;
    align-items: flex-end;
}

.card-bl {
    bottom: 15%;
    left: 10%;
    text-align: left;
    align-items: flex-start;
}

.card-br {
    bottom: 15%;
    right: 10%;
    text-align: right;
    align-items: flex-end;
}

.biz-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: -0.5rem;
}

.biz-title-en {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
}

.biz-title-jp {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.biz-desc {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 300;
}

/* Responsive Grid for Mobile */

/* Status Indicator Styles (Global) */
.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    /* Hidden initially */
    margin-top: 2rem;
}

.launch-date {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    opacity: 0.8;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite ease-in-out;
}

.status-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 700;
}

.line-btn {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 0.8em 2.5em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
}

.line-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

.skip-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    margin: 0;
    transition: opacity 0.3s;
    font-family: var(--font-display);
    pointer-events: auto !important;
    z-index: 1000;
    position: fixed;
    /* Fixed floating position */
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.skip-btn:hover {
    opacity: 1;
    color: #fff;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* =========================================
   MOBILE EMERGENCY FIX (Static Flow)
   ========================================= */

@media (max-width: 1024px) {

    /* Stop forcing full height, let content flow */
    body,
    html {
        overflow-y: auto !important;
        height: auto !important;
    }

    .hero-container {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-top: 120px;
        /* Safe area from top */
        padding-bottom: 50px;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center vertically */
        align-items: center;
        /* Center horizontally */
        min-height: 100vh;
        /* Full height */
        padding: 4rem 1rem;
        /* Breathing room */
        position: relative;
        z-index: 10;
    }

    /* Logo & Brand - Static Stacking */
    .logo-mark {
        margin: 0 auto 1.5rem;
    }

    .brand-name {
        font-size: clamp(2rem, 10vw, 4rem);
        margin-bottom: 2rem;
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: center;
        line-height: 1.1;
        gap: 0.1em;
        position: relative;
    }

    .brand-name .char {
        display: inline-block;
    }

    .brand-name .spacer {
        display: inline-block;
        width: 0.4em;
    }

    .brand-sub {
        font-size: 0.8rem;
        margin-bottom: 3rem;
        position: relative;
    }

    .init-container {
        margin-top: 0;
        margin-bottom: 4rem;
        position: relative;
        z-index: 20;
    }

    /* Cinematic Text - Fixed Overlay */
    /* Needs to be visible but not blocking interactions if hidden */
    .cinematic-text-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: auto;
        z-index: 50;
        pointer-events: none;
    }

    .cinematic-slide p {
        font-size: clamp(0.7rem, 4vw, 1.2rem);
        /* Small enough to fit */
        line-height: 2;
        word-break: keep-all;
        overflow-wrap: normal;
        /* Avoid breaking if possible */
        padding: 0;
        /* Maximize width */
        width: 100%;
    }

    /* Business Grid - Pure Static Flow */
    .business-grid-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 0;
        margin-top: 2rem;
        pointer-events: auto;
    }

    .business-card {
        position: relative;
        width: 100%;
        max-width: 320px;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0 auto;
        text-align: center;
        opacity: 0;
        /* JS reveals it */
    }

    .biz-num {
        position: static;
        font-size: 3rem;
        margin-bottom: 0.5rem;
        opacity: 0.3;
    }

    .status-indicator {
        position: relative;
        margin: 4rem 0;
        z-index: 100;
        pointer-events: auto !important;
    }

    .line-btn {
        position: relative;
        z-index: 101;
        pointer-events: auto !important;
    }

    .cinematic-text-container {
        align-items: flex-start;
        padding-top: 20vh;
        height: 50vh;
        /* Keep text in upper half */
    }

    /* Force fixed bottom layout for mobile status/controls to avoid overlap */
    /* Restore natural flow for status indicator on mobile */
    .status-indicator {
        position: relative !important;
        margin: 4rem 0 8rem 0 !important;
        /* Huge margin to prevent overlap */
        bottom: auto !important;
        left: auto !important;
        width: auto !important;
        background: none;
        padding-bottom: 0;
        z-index: 100;
        pointer-events: auto !important;
    }

    .skip-btn {
        bottom: 4% !important;
    }
}