/* style.css - VTOS Minimalist Style Redesign */

/* =========================================================================
   Variables
   ========================================================================= */
:root {
    --color-bg: #f9f9f9;  /* Off-white */
    --color-bg-dark: #f0f0f0;  /* Slightly darker for alternating sections */
    --color-text-main: #333333; /* Deep charcoal */
    --color-text-sub: #888888; /* Mid gray */
    --color-line: #dddddd; /* Subtle lines */
    
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    
    --space-sm: 20px;
    --space-md: 60px;
    --space-lg: 120px;
    --space-xl: 200px;
    
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: 0.3s ease;
}

/* =========================================================================
   Reset & Base Setup
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px; /* Base size */
}

body {
    font-family: var(--font-serif); /* Default to serif for elegance */
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 2; /* Very loose line-height */
    letter-spacing: 0.08em; /* Wide tracking */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Disable scrolling while loading */
body.is-loading { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: opacity var(--transition-fast); }
a:hover { opacity: 0.5; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }


/* =========================================================================
   Loading Screen
   ========================================================================= */
.loader {
    position: fixed; inset: 0; background-color: var(--color-bg);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease, visibility 1s;
}
.loader-text {
    font-family: var(--font-sans); font-size: 1.2rem; font-weight: 300;
    letter-spacing: 0.2em; animation: pulse 1.5s infinite; color: var(--color-text-sub);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }

@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }


/* =========================================================================
   Header (Minimalist)
   ========================================================================= */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: var(--space-sm) 40px;
    mix-blend-mode: difference; /* VTOS trick for headers sliding over dark/light */
    color: #fff;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-sans); font-size: 1rem; font-weight: 500;
    letter-spacing: 0.15em;
}

.nav-desktop { display: none; } /* Show on larger screens */
@media (min-width: 1024px) {
    .nav-desktop { display: block; }
    .menu-btn { display: none; }
    .nav-list { display: flex; gap: 40px; }
    .nav-list a {
        font-family: var(--font-sans); font-size: 0.8rem; font-weight: 400;
        letter-spacing: 0.1em; display: flex; flex-direction: column; align-items: flex-start;
    }
    .nav-list a span {
        font-family: var(--font-serif); font-size: 0.7rem; color: #aaa; margin-top: 4px;
    }
}

/* Mobile Menu Button */
.menu-btn {
    background: transparent; border: none; cursor: pointer;
    width: 30px; height: 16px; position: relative; z-index: 1001;
}
.menu-btn .line {
    position: absolute; width: 100%; height: 1px; background-color: currentColor;
    left: 0; transition: transform 0.4s ease;
}
.menu-btn .line-1 { top: 0; }
.menu-btn .line-2 { bottom: 0; }

.menu-btn.is-active .line-1 { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-active .line-2 { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-mobile {
    position: fixed; inset: 0; background-color: #111; color: #fff;
    z-index: 999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.5s ease;
}
.nav-mobile.is-active { opacity: 1; visibility: visible; }
.nav-mobile ul { text-align: center; display: flex; flex-direction: column; gap: 2rem; }
.mobile-link { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 300; letter-spacing: 0.2rem; }


/* =========================================================================
   Typography & Vertical Text Utilities
   ========================================================================= */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 2.5;
    letter-spacing: 0.2em;
}
.heading-en { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 300; letter-spacing: 0.2em; color: var(--color-text-sub); margin-bottom: 2rem; }
.heading-ja { font-size: 2.2rem; font-weight: 300; letter-spacing: 0.15em; }

.subheading-en { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em; border-bottom: 1px solid var(--color-line); padding-bottom: 1rem; margin-bottom: 2rem; }


/* =========================================================================
   Animations (Fade up & Reveal)
   ========================================================================= */
.fade-up-delay-1 { opacity: 0; transform: translateY(30px); animation: fadeUp var(--transition-slow) 0.5s forwards; }
.fade-up-delay-2 { opacity: 0; transform: translateY(30px); animation: fadeUp var(--transition-slow) 0.8s forwards; }
.fade-in-delay-3 { opacity: 0; animation: fadeIn var(--transition-slow) 1s forwards; }

.js-fade-up { opacity: 0; transform: translateY(50px); transition: opacity 1s cubic-bezier(0.2,0.8,0.2,1), transform 1s cubic-bezier(0.2,0.8,0.2,1); }
.js-fade-up.is-visible { opacity: 1; transform: translateY(0); }

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


/* =========================================================================
   Layout & Sections
   ========================================================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.container-narrow { max-width: 900px; }
.relative { position: relative; }

.section { padding: var(--space-xl) 0; }
.bg-gray { background-color: var(--color-bg-dark); }

/* Hero Section */
.section-hero { position: relative; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-container { position: relative; z-index: 2; max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 5vw; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; margin-top: 25vh; display: flex; flex-direction: column; gap: 1rem; }

.hero-bottom { margin-bottom: 5vh; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-en { font-family: var(--font-sans); font-size: 0.75rem; color: var(--color-text-sub); letter-spacing: 0.15em; line-height: 1.8; }

.scroll-down { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--color-text-sub); }
.scroll-line { width: 1px; height: 50px; background-color: var(--color-text-sub); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -50px; left: 0; width: 100%; height: 100%; background-color: var(--color-text-main); animation: scrollLine 2s infinite cubic-bezier(0.7, 0, 0.3, 1); }

@keyframes scrollLine { 100% { top: 50px; } }

/* Hero Abstract Background */
.hero-bg { position: absolute; inset: 0; z-index: 1; background-color: var(--color-bg); }
.hero-bg::before {
    content: ''; position: absolute; right: -10vw; top: -10vw;
    width: 60vw; height: 60vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 70%);
}

/* About Section */
.section-header { position: absolute; top: 0; left: 5vw; }
.about-content { padding-top: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-lg); align-items: center; text-align: center; }

.about-text { font-size: 1.1rem; display: flex; flex-direction: column; gap: 2rem; }
.about-text p { margin: 0; }

.about-image-wrap { margin-top: auto; max-width: 600px; position: relative; overflow: hidden; width: 100%; }
.about-image { transition: transform 2s cubic-bezier(0.1, 0.5, 0.1, 1); width: 100%; }
.about-image:hover { transform: scale(1.05); }

.about-schedule { margin: var(--space-xl) auto 0; max-width: 600px; }
.schedule-list li { display: flex; border-bottom: 1px solid var(--color-line); padding: 1.5rem 0; font-family: var(--font-sans); }
.schedule-list .month { width: 120px; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--color-text-sub); }
.schedule-list .event { font-size: 0.95rem; letter-spacing: 0.05em; font-family: var(--font-serif); }
.schedule-list .highlight { font-weight: 600; }

/* Events Section */
.section-header-horizontal { margin-bottom: var(--space-lg); text-align: center; }
.section-header-horizontal .heading-en { display: block; margin-bottom: 0.5rem; }
.section-header-horizontal .heading-ja { display: block; }

.event-list { display: flex; flex-direction: column; gap: var(--space-md); }
.event-item { padding: var(--space-md) 0; border-top: 1px solid var(--color-line); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.event-title { font-size: 1.5rem; font-weight: 300; }
.event-desc { font-size: 1rem; color: var(--color-text-sub); }

/* Recruit Section */
.recruit-inner { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 50vh; position: relative; text-align: center; }
.recruit-text-area { font-size: 1.2rem; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.recruit-action { transform: none; display: flex; justify-content: center; width: 100%; }

.btn-minimal { display: inline-flex; align-items: center; gap: 20px; font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.15em; border-bottom: 1px solid var(--color-text-main); padding-bottom: 10px; transition: gap var(--transition-fast); }
.btn-minimal:hover { gap: 30px; opacity: 1; }

/* FAQ & Contact */
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

.faq-list { margin-top: var(--space-md); }
.faq-item { margin-bottom: var(--space-md); }
.faq-item dt { font-weight: 500; font-size: 1.1rem; margin-bottom: 1rem; }
.faq-item dd { color: var(--color-text-sub); font-size: 0.95rem; }

.contact-area { background-color: #fff; padding: var(--space-md); border: 1px solid var(--color-line); }
.contact-desc { font-size: 0.95rem; color: var(--color-text-sub); margin-bottom: var(--space-md); }

.contact-links { display: flex; flex-direction: column; gap: 1.5rem; }
.link-line { position: relative; padding-bottom: 10px; font-family: var(--font-sans); font-size: 0.9rem; letter-spacing: 0.1em; display: inline-block; width: fit-content; }
.link-line::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background-color: var(--color-text-sub); transition: width var(--transition-fast); }
.link-line:hover::after { width: 0; }
.link-line::before { content: '→'; position: absolute; right: 0; opacity: 0; transition: opacity var(--transition-fast), transform var(--transition-fast); transform: translateX(-10px); }
.link-line:hover::before { opacity: 1; transform: translateX(20px); }


/* Footer */
.footer { background-color: var(--color-text-main); color: #fff; padding: var(--space-lg) 0 40px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 5vw; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.footer-logo { font-family: var(--font-sans); font-size: 1.2rem; letter-spacing: 0.2em; font-weight: 300; }
.footer-sns { display: flex; gap: 30px; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.15em; color: #fff; margin-bottom: var(--space-sm); align-items: center; justify-content: center; flex-wrap: wrap; }
.sns-link { text-decoration: underline; transition: opacity var(--transition-fast); }
.sns-link:hover { opacity: 0.5; }
.footer-links { display: flex; gap: 40px; font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.1em; color: #aaa; }
.footer-links a:hover { color: #fff; }
.copyright { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.1em; color: #666; margin-top: var(--space-md); }


/* =========================================================================
   Responsive Adjustments
   ========================================================================= */
@media (max-width: 768px) {
    .header { padding: 20px; mix-blend-mode: normal; color: var(--color-text-main); }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }
    
    .about-content { padding-top: var(--space-xl); flex-direction: column; }
    .about-text { height: auto; }
    .about-schedule { padding-left: 0; }
    
    .event-item { grid-template-columns: 1fr; gap: 15px; }
    
    .recruit-inner { min-height: 60vh; align-items: center; }
    .recruit-text-area { height: auto; }
    .recruit-action { margin-top: 40px; }
    
    .form-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
}
