@charset "UTF-8";

/* ==========================================================================
   Base Variables & Settings
   ========================================================================== */
:root {
    --color-base: #FFFFFF;
    --color-ink: #0f172a;
    --color-gray: #F5F5F7;
    --color-line: #E5E5E5;
    --color-accent: #1e293b;
    
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    --easing-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-jp);
    color: var(--color-ink);
    background-color: var(--color-base);
    line-height: 1.8;
    letter-spacing: 0.04em;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.font-en {
    font-family: var(--font-en);
}

.text-fluid-h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-fluid-h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.text-fluid-h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.4;
}

/* ==========================================================================
   Utilities & Layout
   ========================================================================== */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.glass-header {
    background: transparent;
    backdrop-filter: none;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    border-bottom: none;
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Change navigation text color based on scroll state */
.glass-header .nav-link {
    color: white;
    font-weight: 600;
    text-shadow: none;
}

.glass-header.scrolled .nav-link {
    color: var(--color-ink);
    text-shadow: none;
}

.glass-header .header-logo {
    color: var(--color-ink);
    text-shadow: none;
}

.glass-header.scrolled .header-logo {
    color: var(--color-ink);
    text-shadow: none;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.slide-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Overlay gradient for text readability - ENHANCED */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    backdrop-filter: brightness(0.85);
    pointer-events: none; /* Ensure overlay doesn't block interactions if any */
}

/* ==========================================================================
   Animations
   ========================================================================== */
/* Fade In Up */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--easing-standard), transform 1s var(--easing-standard);
}

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

/* Staggered delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Line Animation */
.line-reveal {
    width: 0;
    transition: width 1.2s var(--easing-standard);
}
.line-reveal.is-visible {
    width: 100%;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s var(--easing-standard), box-shadow 0.3s var(--easing-standard);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Enhanced Design Elements
   ========================================================================== */

/* Section Big Text */
.section-bg-text {
    font-family: var(--font-en);
    font-size: 15vw;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* Marquee Animation */
.marquee-text {
    display: flex;
    gap: 1rem;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-text-reverse {
    display: flex;
    gap: 1rem;
    animation: marquee-reverse 40s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% { transform: translateX(-20%); }
    100% { transform: translateX(-70%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-70%); }
    100% { transform: translateX(-20%); }
}

.bg-text-philosophy {
    color: #f7f7f7;
    top: -5%;
    left: 0;
}

.bg-text-features {
    color: #eeeeee;
    top: -5%;
    /* right: -5%; removed to allow full width flow */
    left: 0; /* Align left to control flow */
    text-align: left;
}

.bg-text-services {
    color: #f7f7f7;
    top: 5%;
    left: 0;
}

/* Features Styling */
.feature-card {
    position: relative;
    padding: 3rem 2rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.feature-number {
    font-family: var(--font-en);
    font-size: 5rem;
    font-weight: 200;
    line-height: 1;
    color: #e0e0e0;
    position: absolute;
    top: 1rem;
    right: 2rem;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-number {
    color: var(--color-ink);
}

.feature-image-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-image-wrapper img {
    transform: scale(1.05);
}

/* Vertical Text Support */
.vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1em;
}

/* Footer Styling */
.footer-dark {
    background-color: #0f172a;
    color: #fff;
    position: relative;
    border-top: none;
}

.footer-dark a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-dark a:hover {
    color: #fff;
}

/* Invert logo color to make it visible on dark background */
.footer-dark img {
    /* filter removed as requested */
}

/* Link Disabled State cursor */
a.disabled-link {
    cursor: default;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-bg-text {
        display: none;
    }
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-ink);
    transition: all 0.3s ease-in-out;
}

.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
.wpcf7 .wpcf7-not-valid-tip {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.wpcf7 .wpcf7-response-output {
    margin: 1rem 0 0 !important;
}

.wpcf7 .lc-cf7-submit {
    width: 100%;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.25rem;
    border: none;
    transition: background-color 0.2s ease;
}

.wpcf7 .lc-cf7-submit:hover {
    background: #1e293b;
}

.wpcf7 .lc-privacy-consent .wpcf7-list-item {
    margin-left: 0;
}
