:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #bf9b68;
    /* Muted Gold */
    --secondary-text: #888888;
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --easing: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

/* Re-enable default cursor for touch devices */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInPage 1s ease-out forwards;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--text-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    /* Subtle reaction */
    opacity: 1;
}

a:hover~.cursor-outline,
.story-card:hover~.cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--secondary-text);
    /* Keep it readable due to blend mode might be tricky, but let's try strict color */
    color: #ccc;
    margin-left: 0.5rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s var(--easing);
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/hero.png') no-repeat center center/cover;
    transition: transform 0.1s ease-out;
    /* Changed for JS parallax smoothness */
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker for better text contrast */
    z-index: -1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 1s var(--easing) forwards;
}

.reveal-text:nth-child(1) {
    animation-delay: 0.3s;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.5s;
}

.reveal-text:nth-child(3) {
    animation-delay: 0.7s;
}

.hero-subtitle {
    font-size: 1rem;
    color: #cccccc;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(-100%);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Sections Common */
section {
    padding: 10vh 0;
}

/* Concept */
.concept {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
}

.concept h2 {
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.concept .lead-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-family: var(--font-serif);
    line-height: 2;
    margin-bottom: 2rem;
}

.concept p {
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Stories */
.stories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 5rem;
    font-family: var(--font-serif);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem 2rem;
}


.story-card {
    position: relative;
    cursor: auto;
    /* Changed from pointer since we have interaction inside */
    transition: transform 0.5s var(--easing);
}

.story-card:hover {
    transform: translateY(-10px);
}

.story-video {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.story-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Kept for backup or if needed, but not used now */
.story-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #222;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    /* Subtle radius */
}

/* Specific Story Images via Classes */
.story-1 {
    background-image: url('assets/images/story1.png');
}

.story-2 {
    background-image: url('assets/images/story2.png');
}

.story-3 {
    background-image: url('assets/images/story3.png');
}

.story-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.story-card:hover .story-image::after {
    background: rgba(0, 0, 0, 0);
}

.story-category {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.story-card p {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* About */
.about {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--secondary-text);
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icon {
    color: var(--secondary-text);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.social-icon:hover {
    color: var(--text-color);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* Scroll Animation Utilities */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s var(--easing);
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        background: rgba(10, 10, 10, 0.8);
        /* readable on mobile */
        backdrop-filter: blur(10px);
    }

    .nav ul {
        gap: 1.5rem;
    }

    .nav a {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
        /* smaller title */
    }

    .concept .lead-text {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    .stories h2,
    .about h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .story-grid {
        gap: 3rem 0;
    }
}