:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #ff2a2a;
    --card-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    line-height: 0.9;
    letter-spacing: -0.04em;
    mix-blend-mode: exclusion;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.scroll-indicator .text {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.scroll-indicator .arrow {
    position: relative;
    width: 1px;
    height: 40px;
    background: white;
}

.scroll-indicator .arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Works Section */
.works-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.work-item {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 200px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.work-content {
    width: 90%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.work-info {
    z-index: 2;
}

.work-number {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
}

.work-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.work-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 40px;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-view {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-view:hover {
    background: white;
    color: black;
    border-color: white;
}

.work-visual {
    position: relative;
    height: 60vh;
    overflow: hidden;
    border-radius: 8px;
}

.work-image-wrapper {
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    position: absolute;
    top: -10%;
    left: 0;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s linear;
    /* Smooth update from JS */
}

/* Alternate layout for even items */
.work-item:nth-child(even) .work-content {
    grid-template-columns: 1.5fr 1fr;
    direction: rtl;
    /* Quick swap, resets direction in children */
}

.work-item:nth-child(even) .work-info,
.work-item:nth-child(even) .work-visual {
    direction: ltr;
    /* Reset text direction */
}

/* Footer override */
.footer-simple {
    text-align: center;
    padding: 50px 0;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #222;
}

/* Mobile */
@media (max-width: 768px) {
    .work-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .work-item:nth-child(even) .work-content {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .work-item {
        margin-bottom: 100px;
    }

    .work-visual {
        height: 40vh;
        order: -1;
        /* Image first */
    }
}