:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-japanese: 'Noto Sans JP', sans-serif;

    --color-bg: #111111;
    --color-bg-alt: #1A1A1A;
    --color-text: #FFFFFF;
    --color-text-secondary: #AAAAAA;
    --color-accent: #FFFFFF;
    --color-border: #333333;

    --spacing-xs: 8px;
    --spacing-sm: 24px;
    --spacing-md: 48px;
    --spacing-lg: 96px;
    --spacing-xl: 160px;

    --container-width: 1200px;
    --header-height: 80px;

    --radius-sm: 4px;
    --radius-md: 8px;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary), var(--font-japanese);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.en-text {
    font-family: var(--font-primary);
}

.jp-text {
    font-family: var(--font-japanese);
}

.section-title {
    font-size: 80px;
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 48px;
        margin-bottom: var(--spacing-md);
    }
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}



.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-sm);
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-list a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-list a:hover {
    opacity: 1;
}

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

.nav-btn {
    background-color: #C8FF00;
    color: var(--color-bg) !important;
    opacity: 1;
    padding: 12px 24px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-btn:hover {
    background-color: var(--color-text-secondary);
    opacity: 1 !important;
}

.nav-btn::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-btn span:first-child {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:last-child {
    bottom: 0;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .nav-list a {
        font-size: 24px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg);
        bottom: 9px;
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #111111 100%);
    overflow: hidden;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 100px;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    mix-blend-mode: difference;
}

.hero-title span {
    display: block;
}

.hero-desc {
    font-size: 24px;
    max-width: 1200px;
    margin-bottom: var(--spacing-md);
    color: #FFFFFF;
    font-weight: 300;
}

.hero-jp {
    font-size: 16px;
    color: #FFFFFF;
    margin-top: var(--spacing-sm);
}

.hero-image-container {
    margin: var(--spacing-md) auto;
    width: 100%;
    max-width: 1100px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 56px;
    }

    .hero-desc {
        font-size: 18px;
    }
}

/* Mission */
.mission {
    background-color: var(--color-bg);
}

.mission-text {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    max-width: 1200px;
    margin-bottom: var(--spacing-md);
    mix-blend-mode: difference;
}

.mission-text span {
    color: var(--color-text-secondary);
}

.mission-jp {
    margin-top: var(--spacing-md);
    font-size: 24px;
    line-height: 1.8;
    max-width: 1200px;
    color: var(--color-text-secondary);
}

.section-subtitle-pill {
    display: inline-block;
    background-color: #C8FF00;
    color: var(--color-bg);
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .mission-text {
        font-size: 28px;
    }
}

/* Services (Industries) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.service-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

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

.service-card:hover img {
    transform: scale(1.05);
    opacity: 0.4;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.service-title {
    font-size: 32px;
    margin-bottom: var(--spacing-xs);
}

.service-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 400px;
    }
}

/* Works (News/Projects) */
.works-list {
    border-top: 1px solid var(--color-border);
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    display: block;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s;
}

.work-item:hover {
    background-color: var(--color-bg-alt);
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    margin-left: calc(var(--spacing-sm) * -1);
    margin-right: calc(var(--spacing-sm) * -1);
}

.work-date {
    font-family: var(--font-primary);
    color: var(--color-text-secondary);
    font-size: 14px;
}

.work-title {
    font-size: 24px;
    font-weight: 600;
}

.work-category {
    font-size: 12px;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    border-radius: 100px;
}

@media (max-width: 768px) {
    .work-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .work-date {
        margin-bottom: 4px;
    }

    .work-category {
        justify-self: start;
        margin-top: var(--spacing-xs);
    }
}

/* Company */
.company-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.company-dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.company-row {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.company-dt {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    display: block;
}

.company-dd {
    font-size: 18px;
}

/* Contact */
.contact-area {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.contact-title {
    font-size: 64px;
    margin-bottom: var(--spacing-md);
}

.contact-btn {
    display: inline-block;
    font-size: 24px;
    padding: 20px 60px;
    border: 2px solid var(--color-text);
    border-radius: 100px;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-secondary);
    display: flex;
    justify-content: space-between;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Service Detail Pages */
.service-detail-hero {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
}

.service-detail-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
    border-radius: 0 !important;
}

.service-detail-hero img.hero-img-contain {
    object-fit: contain;
    opacity: 0.8;
    border-radius: 0 !important;
}

.service-detail-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--spacing-sm);
}

.service-detail-title {
    font-size: 64px;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.service-detail-subtitle {
    font-size: 24px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-detail-content {
    padding: var(--spacing-xl) 0;
}

.service-detail-text {
    font-size: 20px;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-secondary);
}

.service-detail-heading-jp {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-gallery img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.service-gallery-fashion img {
    height: 700px;
    /* Larger height for fashion images */
    object-fit: cover;
    /* Revert to cover for better visual impact on large images, or keep contain if strict visibility needed. User said "not cut", so contain? But contain with fixed height might leave empty space. User said "larger size". Let's try contain with larger height. */
    object-fit: contain;
}

.service-gallery img:hover {
    transform: scale(1.02);
    opacity: 0.8;
}

/* Vertical Gallery for Retail Page */
.service-gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto var(--spacing-lg);
}

.gallery-item-vertical {
    width: 100%;
}

.gallery-item-vertical img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

.gallery-item-vertical figcaption {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-align: left;
}

/* Case Study Section */
.case-study-section {
    max-width: 1200px;
    margin: 0 auto var(--spacing-lg);
    text-align: left;
}

.section-title-small {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.case-study-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

.source-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: right;
}

.back-link {
    display: inline-block;
    margin-top: var(--spacing-lg);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 4px;
}

@media (max-width: 768px) {
    .service-detail-hero {
        height: 50vh;
    }

    .service-detail-title {
        font-size: 40px;
    }

    .service-gallery {
        grid-template-columns: 1fr;
    }
}