@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Noto+Sans+JP:wght@300;400;500&family=Zen+Old+Mincho:wght@400;500;700&display=swap');

:root {
    --bg-color: #0d0d0d;
    --text-color: #f0f0f0;
    --accent-color: #C5A065;
    --sub-text-color: #888;
    --border-color: #333;
    --font-jp-serif: 'Zen Old Mincho', serif;
    --font-en-serif: 'Cormorant Garamond', serif;
    --font-base: 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-base);
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    opacity: 0.7;
}

/* Typography */
h1,
h2,
h3,
.serif {
    font-family: var(--font-jp-serif);
}

.en-title {
    font-family: var(--font-en-serif);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    transition: all 0.3s ease;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    font-family: var(--font-en-serif);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: #fff;
}

/* Hero Section & Animations */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    opacity: 0.6;
    animation: zoomEffect 20s infinite alternate ease-in-out;
    transform-origin: center center;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Cinematic Title Animation */
.hero h1 {
    font-size: 6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: transparent;
    background: linear-gradient(90deg, #fff 0%, #aaa 50%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 200% auto;
    opacity: 0;
    transform: scale(1.1);
    filter: blur(10px);
    animation:
        revealTitle 2s cubic-bezier(0.2, 1, 0.3, 1) forwards,
        shimmer 5s linear infinite 2s;
}

@keyframes revealTitle {
    0% {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(20px);
        letter-spacing: 0.5em;
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
        letter-spacing: 0.2em;
    }
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Concept Text Animation (Artistic Flow) */
.hero p {
    font-size: 1.8rem;
    /* Slightly larger for impact */
    font-family: var(--font-jp-serif);
    margin-top: 20px;
    letter-spacing: 0.5em;

    /* Gradient Text Effect */
    background: linear-gradient(120deg, #b8b8b8 0%, #fff 25%, #C5A065 50%, #fff 75%, #b8b8b8 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback for non-webkit */

    opacity: 0;
    transform: translateY(20px) scale(0.9);
    filter: blur(10px);

    animation:
        artisticReveal 2.5s cubic-bezier(0.2, 1, 0.3, 1) 0.5s forwards,
        gradientFlow 10s linear infinite;

    position: relative;
    display: inline-block;
}

.hero p::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -10px;
    left: 50%;
    background: var(--accent-color);
    transition: width 0.3s ease;
    animation: lineGrow 1.5s cubic-bezier(0.2, 1, 0.3, 1) 2s forwards;
    transform: translateX(-50%);
    opacity: 0.7;
}

@keyframes artisticReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(20px);
        letter-spacing: 1em;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        letter-spacing: 0.5em;
        /* Specific requested spacing */
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes lineGrow {
    to {
        width: 80px;
    }
}

.hero p::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -10px;
    left: 50%;
    background: var(--accent-color);
    transition: width 0.3s ease;
    animation: lineGrow 1s ease-out 2s forwards;
    transform: translateX(-50%);
}

@keyframes fadeUpConcept {
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    to {
        width: 60px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-family: var(--font-en-serif);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 3s forwards;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, transparent);
    margin: 10px auto 0;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

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

/* Philosophy Section */
.philosophy {
    padding: 150px 0;
    position: relative;
}

.philosophy-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.philosophy p {
    font-size: 1rem;
    line-height: 2.2;
    color: #ccc;
}

/* Works Grid (Production Images) */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.work-item {
    position: relative;
    height: 400px;
    background-color: #222;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #222;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.work-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.work-title {
    font-family: var(--font-jp-serif);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.work-desc {
    font-size: 0.9rem;
    color: #ccc;
}

/* Profile Section (Merged to Index) */
.profile-section {
    display: flex;
    gap: 80px;
    align-items: center;
    /* Centered specifically */
    margin-top: 60px;
}

.profile-img {
    flex: 0 0 350px;
    height: 350px;
    background-color: #222;
    border-radius: 50%;
    /* Circular as per some modern trends or Keep square? User uploaded photo might be better square. Let's keep it square-ish but styled */
    border-radius: 4px;
    object-fit: cover;
}

.profile-content {
    flex: 1;
}

.profile-name {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-family: var(--font-jp-serif);
    letter-spacing: 0.1em;
}

.profile-title {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    display: block;
    letter-spacing: 0.1em;
}

/* Flow Section */
.flow-steps {
    margin-top: 60px;
    position: relative;
}

.flow-step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
    position: relative;
}

.flow-step:last-child {
    margin-bottom: 0;
}

/* Connecting line */
.flow-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 1px;
    height: calc(100% - 40px);
    background-color: #333;
    z-index: 0;
}

.step-number {
    flex: 0 0 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en-serif);
    font-weight: 600;
    border-radius: 50%;
    z-index: 1;
    position: relative;
    /* To sit on top of line */
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-title {
    font-family: var(--font-jp-serif);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.step-desc {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 50px;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-en-serif);
    letter-spacing: 0.1em;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--bg-color);
}

.btn:hover::before {
    left: 0;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--sub-text-color);
    margin-top: 40px;
    font-family: var(--font-en-serif);
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

.company-info-table th,
.company-info-table td {
    border-bottom: 1px solid #333;
    padding: 20px 0;
    text-align: left;
    font-size: 1rem;
}

.company-info-table th {
    width: 25%;
    font-weight: normal;
    font-family: var(--font-jp-serif);
    color: #666;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 20px 25px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .profile-section {
        flex-direction: column;
        gap: 40px;
    }

    .profile-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        flex: auto;
    }

    .flow-step {
        gap: 20px;
    }

    .flow-steps::before {
        left: 15px;
        /* Adjust line position if circle size changes */
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    nav ul {
        display: none;
        /* Add JS toggle later */
    }
}/* ... existing styles ... */

/* Mobile Menu & Scroll Animation Styles */

/* Hamburger Button */
.hamburger {
    display: none;
    /* Hidden on desktop */
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 1px;
    background-color: #fff;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Nav Menu Overlay (Desktop default) */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* Scroll Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Styles */
@media (max-width: 768px) {

    /* Header adjustments */
    header {
        padding: 20px 25px;
        justify-content: space-between;
    }

    /* Hamburger Visible */
    .hamburger {
        display: block;
    }

    /* Hamburger Animation when Active */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Nav Menu Overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 13, 13, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1500;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    /* Previous Mobile Styles ... */
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .profile-section {
        flex-direction: column;
        gap: 40px;
    }

    .profile-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        flex: auto;
    }

    .flow-step {
        gap: 20px;
    }

    .flow-steps::before {
        left: 15px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}