@charset "UTF-8";

/* =========================================
   Theme: Sophisticated White (Apple-like)
   Concept: Fluid / Glass / Minimal / Bright
   ========================================= */

:root {
    /* Updated Palette: Iridescent / Aurora */
    --c-bg: #ffffff;
    --c-surface: #ffffff;
    --c-text-main: #1d1d1f;
    --c-text-sub: #6e6e73;

    /* Vibrant Gradients */
    --c-accent: #0066cc;
    --gradient-primary: linear-gradient(135deg, #ff61d2 0%, #fe9090 100%);
    /* Pink-Peach */
    --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    /* Blue-Cyan */
    --gradient-text: linear-gradient(90deg, #ff3cac 0%, #784ba0 50%, #2b86c5 100%);
    /* Deep Aurora */

    /* Glass Effect Tokens */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(30px);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-en: 'Montserrat', sans-serif;
    --font-ja: 'Zen Kaku Gothic New', sans-serif;

    /* Spacing */
    --section-pad: 180px 5%;
}

/* Base Setup */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--font-ja);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent horizontal scroll globally */
    width: 100%;
    position: relative; /* Ensure overflow hidden works contextually */
}

main {
    overflow-x: hidden; /* Double safety for mobile content */
    width: 100%;
}

h1,
h2,
h3,
h4,
.en-font {
    font-family: var(--font-en);
    letter-spacing: -0.02em;
    /* Tight tracking for modern feel */
}

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

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

/* --- Utilities --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* --- Header (Floating Glass Pill) --- */
header.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.logo img {
    height: 24px;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-main);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--c-text-main);
    transition: width 0.3s ease;
}

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

/* --- Hero Section (3D Fluid) --- */
#webgl-canvas {
    position: fixed;
    /* Fixed bg for intro? Or absolute. Let's stick to absolute inside hero */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Colorful Aurora Blob */
.bg-blob {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(255, 97, 210, 0.2) 0%,
        rgba(79, 172, 254, 0.2) 50%,
        rgba(255, 255, 255, 0) 70%
    );
    filter: blur(60px);
    z-index: 0;
    animation: floatBlob 12s infinite alternate ease-in-out;
    opacity: 0.8;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 50px);
    }
}

/* --- Introduction Page Specifics --- */

.intro-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.intro-title {
    font-family: var(--font-en);
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 900;
    text-align: center;
    line-height: 0.9;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 480px; /* Enforce strict row height for uniformity */
    gap: 30px;
    padding: 80px 5% 100px; /* Top padding ensures decorations don't clipped by Hero */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.intro-grid .large {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .intro-grid .large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.intro-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    /* Removed aspect-ratio to use flex flow */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure card fills the grid cell */
}

/* --- Card Decoration System --- */
.intro-card-wrapper {
    position: relative;
    /* Ensure decorations can sit outside */
    overflow: visible; 
    transition: z-index 0s linear 0.4s; /* Delay z-index reset so hover exit isn't jarring? No, instant is better */
    z-index: 1;
    height: 100%; /* Fill grid cell */
    width: 100%;
}

.intro-card-wrapper:hover {
    z-index: 20; /* Pop above neighbors when hovered (or when child hovered) */
    transition-delay: 0s;
}

/* Decoration Image Base */
.intro-deco {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    /* Default Transition for subtle movement if needed */
    transition: transform 0.4s ease;
}

.intro-card-wrapper:hover .intro-deco {
    transform: translateY(-5px) scale(1.05); /* Gentle interaction sync with card */
}

/* Position Utilities (Stable Pixel-Based) */
.intro-deco.pos-top-right {
    top: 0;
    right: -30px; /* Fixed anchor */
    width: 180px; /* Fixed size to prevent drift */
    max-width: none;
    min-width: auto;
    /* Removed resolution-dependent transform */
    transform: none;
    transform-origin: center bottom;
}

/* --- Individual Member Tuning (Researcher Level Precision) --- */
/* Tip: Use PX for 'top' to maintain stability relative to the card's top edge. */

/* Member 1: Umeda (Standard) */
.intro-deco.pos-top-right.deco-umeda {
    top: -95px;
    right: -30px;
}

/* Member 2: Kitagawa (Standard) */
.intro-deco.pos-top-right.deco-kitagawa {
    top: -100px;
    right: -30px;
}

/* Member 3: Yamada (Standard) */
.intro-deco.pos-top-right.deco-yamada {
    top: -100px;
    right: -20px; /* Slight adjust for pose */
}

/* Member 5: Ota (Standard) */
.intro-deco.pos-top-right.deco-ota {
    top: -81px; 
    right: -30px;
}

/* Member 6: Dojo (Sitting Pose) */
.intro-deco.pos-top-right.deco-dojo {
    top: -97px;
    right: 7px;
}

/* Member 7: Ono (Sitting Pose) */
.intro-deco.pos-top-right.deco-ono {
    top: -87px;
    right: -20px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .intro-deco.pos-top-right {
        width: 130px;
        right: -10px;
    }
    
    .intro-deco.pos-top-right.deco-umeda { top: -70px; }
    .intro-deco.pos-top-right.deco-kitagawa { top: -75px; }
    .intro-deco.pos-top-right.deco-yamada { top: -75px; }
    .intro-deco.pos-top-right.deco-ota { top: -55px; }
    .intro-deco.pos-top-right.deco-dojo { top: -69px; }
    .intro-deco.pos-top-right.deco-ono { top: -64px; }
}

/* Colorful border accent */
.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-text);
    z-index: 5;
    opacity: 1;
}





.intro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.intro-visual {
    width: 100%;
    height: 260px; /* Standard Height for consistent decoration anchor */
    position: relative;
    flex-shrink: 0;
}

.intro-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.intro-card:hover .intro-visual img {
    transform: scale(1.05);
}

.intro-overlay {
    /* Overlay no longer needed for stacked layout */
    display: none;
}

.intro-info {
    position: relative;
    width: 100%;
    box-sizing: border-box; /* Include padding in width */
    padding: 24px 24px 32px; /* Top/Side/Bottom */
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top (below image) */
    gap: 4px; /* Consistent spacing between text elements */
}

.intro-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    display: block;
}

.intro-name {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--c-text-main);
}

.intro-role {
    font-size: 13px;
    color: var(--c-text-sub);
    display: block;
    margin-bottom: 15px;
}

.intro-catch {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    min-height: 3em; /* Reserve space for ~2 lines */
    display: flex;
    align-items: center; /* Center text vertically in reserved space if 1 line */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Prevent blob overflow */
    .bg-blob {
        width: 100%;
        height: 60vh;
        left: 0 !important; /* Force align */
        right: 0 !important;
    }

    /* Header: Stack Logo and Nav */
    header.glass-header {
        /* flex-direction: column; Removed to match recruit.html (Row Layout) */
        /* gap: 15px; Removed */
        padding: 15px 20px;
        border-radius: 24px;
        top: 10px;
        width: 92%;
        justify-content: space-between; /* Ensure separation */
        align-items: center; /* Vertical Center */
    }
    
    nav ul {
        gap: 20px;
        justify-content: center;
        width: 100%;
    }
    
    nav a {
        font-size: 11px;
    }

    /* Hero Height */
    .intro-hero {
        min-height: 320px;
        height: 40vh;
    }
    
    .intro-title {
        font-size: clamp(32px, 12vw, 60px); /* Smaller Max */
    }

    /* Grid Padding */
    .intro-grid {
        padding: 0 20px 80px;
        gap: 40px; /* More breathing room vertical */
    }


    
    /* Ensure card hover effect is subtle on touch */
    .intro-card:hover {
        transform: translateY(-4px);
    }
}

/* --- Smartphone Optimization (< 600px) --- */
@media (max-width: 600px) {
    /* Header: Improve Touch Targets & Layout */
    header.glass-header {
        width: 95%; /* Maximize width */
        padding: 12px 15px; /* Compact padding */
        top: 10px;
        border-radius: 20px; /* Reduced radius for stacking */
        box-sizing: border-box;
    }

    nav ul {
        flex-wrap: wrap; /* Allow wrapping for small screens */
        gap: 12px 24px; /* Generous gap to force comfortable wrapping */
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    nav a {
        font-size: 13px; /* Readable size */
        padding: 8px 4px; /* Increase touch area */
        font-weight: 700;
    }

    /* Hero: Adjust Text Scale */
    .intro-title {
        font-size: clamp(28px, 10vw, 44px);
        margin-top: 10px;
    }

    .intro-hero {
        min-height: 280px;
        height: 35vh;
    }

    /* Grid: Single Column Comfort */
    .intro-grid {
        padding: 0 20px 60px; /* Reduced side padding */
        gap: 50px; /* Vertical spacing */
        width: 100%;
        box-sizing: border-box; /* Strict sizing */
    }

    .intro-card-wrapper {
        max-width: 100%; /* Force containment */
        width: 100% !important; /* Ensure it shrinks */
    }

    /* Decoration: Strict Keep-In-Bounds Policy */
    /* Prevent horizontal scroll or cutoff */
    .intro-deco.pos-top-right {
        width: 140px; /* Increased from 110px for better visibility */
        right: 15px;   /* Safe inset (pulled in to prevent cutoff) */
    }

    /* Retuning 'Sit' Positions for Larger Mobile Images (140px) */
    
    .intro-deco.pos-top-right.deco-umeda { top: -75px; }
    .intro-deco.pos-top-right.deco-kitagawa { top: -80px; }
    .intro-deco.pos-top-right.deco-yamada { top: -80px; }
    
    /* Ota: approx scaled from base */
    .intro-deco.pos-top-right.deco-ota { top: -65px; right: 15px; }
    
    /* Dojo: Sleep pose */
    .intro-deco.pos-top-right.deco-dojo { top: -75px; right: 15px; }

    /* Ono: Sitting */
    .intro-deco.pos-top-right.deco-ono { top: -70px; right: 15px; }
}

/* --- Mobile Toggle Menu --- */
@media (max-width: 768px) {
    header.glass-header {
        justify-content: space-between; /* Ensure logo and toggle are separated */
    }
    .menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 2000;
    }
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--c-text-main);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .menu-toggle span:nth-child(3) { bottom: 0; }

    /* Active State (Hamburger to X) */
    .menu-open .menu-toggle span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .menu-open .menu-toggle span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* Nav Overlay */
    nav ul {
        display: flex; /* Override existing display if needed */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1500; /* Below toggle but above content */
        gap: 40px;
        margin: 0;
        padding: 0;
        transform: translateX(100%); /* Slide from Right */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
    }

    .menu-open nav ul {
        transform: translateX(0);
        visibility: visible;
    }

    nav a {
        font-size: 18px;
        font-weight: 700;
        color: var(--c-text-main);
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: -2px; /* Fine tuning */
    }
}

@media (max-width: 768px) {
    /* Fix Header Logo Distortion */
    header.glass-header .logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        z-index: 2005;
    }
    header.glass-header .logo img {
        width: auto;
        height: 24px;
        object-fit: contain;
    }
    /* Robust Container Constraints */
    header.glass-header {
        width: 95%;
        max-width: 100%;
        box-sizing: border-box; 
    }
}

/* --- Footer CTA (Join Us: Unified Design) --- */
.footer-cta-modern {
    padding: 200px 5%;
    /* Use the Pink/Coral gradient from recruit.html explicitly */
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    text-align: center;
    position: relative;
    border-radius: 60px 60px 0 0;
    
    /* Reset Glass properites if any were inherited or set previously */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    margin: 120px 0 0; /* Remove auto margins, keep top margin for spacing from grid */
    width: 100%; /* Full width self, but parent constraints? */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; /* Force full width background like recruit */
    max-width: none;
    box-shadow: none;
    overflow: visible;
}

.footer-cta-modern h2 {
    font-family: var(--font-en);
    font-size: clamp(50px, 10vw, 150px);
    margin: 0 0 20px; /* Reset margin */
    /* Reset gradient text from previous intro css */
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentcolor;
    color: #fff;
    
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.05em;
    font-weight: 900;
    line-height: 0.9;
}

.footer-cta-modern p {
    font-size: 20px;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn-modern {
    display: inline-block; /* Reset from inline-flex */
    padding: 20px 60px; /* Reset padding */
    width: auto; /* Reset width */
    height: auto; /* Reset height */
    
    background: #fff;
    color: #a18cd1; /* Purple text from recruit */
    
    border-radius: 100px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Reset previous hover effects */
    overflow: visible;
    z-index: 1;
    text-decoration: none;
    font-family: var(--font-en);
}

/* Reset ::before hover effect */
.btn-modern::before {
    display: none;
}

.btn-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #fff; /* Ensure it stays white */
    color: #a18cd1;
}

/* Mobile Adjustments matching recruit */
@media (max-width: 768px) {
    .footer-cta-modern {
        padding: 100px 5%;
        border-radius: 40px 40px 0 0;
        margin-bottom: 0;
    }
    
    .footer-cta-modern h2 {
        font-size: clamp(40px, 12vw, 80px);
    }

    .footer-cta-modern p {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .btn-modern {
        padding: 15px 40px;
        font-size: 16px;
        width: auto;
        height: auto;
    }
}
