:root {
    --primary-navy: #0A192F;
    --accent-cyan: #00E0FF;
    --text-dark: #2B3A4A;
    --text-gray: #6B7C93;
    --white: #FFFFFF;
    --soft-bg: #F4F7FB;
    --card-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
    --urgent-red: #D90429;
    --banner-height: 0px;
}

body.has-emergency {
    --banner-height: 44px;
}

@media (max-width: 768px) {
    body.has-emergency {
        --banner-height: 85px;
    }
}

/* Emergency Banner */
.emergency-banner {
    background-color: var(--urgent-red);
    color: var(--white);
    padding: 10px 0;
    position: relative;
    z-index: 1500;
    font-size: 0.9rem;
    font-weight: 700;
}

.banner-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.emergency-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.banner-text {
    letter-spacing: 0.05em;
}

.banner-link {
    color: var(--white);
    text-decoration: underline;
    font-size: 0.8rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.banner-link:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .banner-flex {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .banner-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Scroll Progress */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px; background: linear-gradient(90deg, #00B4D8, var(--accent-cyan));
    z-index: 2000;
    width: 0%;
}

/* Header */
.main-header {
    position: fixed;
    top: var(--banner-height);
    width: 100%;
    height: 90px;
    z-index: 1000;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.4s, background 0.4s, height 0.4s;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    height: 70px;
    top: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a { text-decoration: none; color: var(--white); transition: color 0.3s; display: block; }
.main-header.scrolled .logo a { color: var(--primary-navy); }

.logo-jp { font-size: 1.25rem; font-weight: 900; letter-spacing: 1px; }
.logo-en { font-size: 0.65rem; font-family: 'Outfit', sans-serif; letter-spacing: 3px; color: var(--accent-cyan); display: block; margin-top: -3px; }

.nav-menu ul { display: flex; list-style: none; }
.nav-menu ul li a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s;
    opacity: 0.9;
}

.main-header.scrolled .nav-menu ul li a { color: var(--text-dark); }
.nav-menu ul li a:hover { color: var(--accent-cyan); opacity: 1; }

/* Loader */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-navy); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), transform 0.8s cubic-bezier(0.8, 0, 0.2, 1); }
.loader.hidden { opacity: 0; pointer-events: none; transform: scale(1.05); }
.loader-content { text-align: center; color: var(--white); animation: pulse 2s ease-in-out infinite; }
.loader-progress-wrap { width: 180px; height: 1px; background: rgba(255,255,255,0.2); margin: 2rem auto 1rem; overflow: hidden; position: relative; }
.loader-progress-bar { width: 0%; height: 100%; background: var(--accent-cyan); transition: width 0.1s ease-out; box-shadow: 0 0 10px var(--accent-cyan); }
.loader-percent { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 300; color: rgba(255,255,255,0.7); letter-spacing: 2px; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* Hero */
.hero {
    position: relative;
    height: calc(100vh - var(--banner-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

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

.h-slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.4) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-title-main {
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight { color: var(--accent-cyan); text-shadow: 0 0 40px rgba(0, 224, 255, 0.4); }

.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 3px;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    padding: 1.1rem 3rem;
    background: var(--accent-cyan);
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 224, 255, 0.2);
}

.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 224, 255, 0.4); }

.hero-dots {
    position: absolute;
    bottom: 40px; left: 40px;
    z-index: 10;
    display: flex; gap: 12px;
}

.h-dot {
    width: 30px; height: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
    border-radius: 2px;
}

.h-dot.active { background: var(--accent-cyan); width: 50px; }

.scroll-down-indicator {
    position: absolute;
    bottom: 40px; right: 40px;
    z-index: 10;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 5px;
    writing-mode: vertical-rl;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Vision Blocks */
.vision { padding: 12rem 0; overflow: hidden; background: var(--white); }

.editorial-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
    margin-bottom: 12rem;
}

.editorial-block.reverse { flex-direction: row-reverse; }
.editorial-block:last-child { margin-bottom: 0; }

.ed-text { flex: 1; }
.ed-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--soft-bg);
    color: var(--primary-navy);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.ed-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--primary-navy);
}

.ed-p { font-size: 1.1rem; color: var(--text-gray); line-height: 2.2; }

.ed-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
}

.ed-image img { width: 100%; display: block; transition: transform 2s; }
.ed-image:hover img { transform: scale(1.05); }

/* News & Recruit */
.news-recruit { padding: 6rem 0; background: var(--white); }
.news-recruit-container { display: flex; gap: 80px; align-items: flex-start; }
.news-area { flex: 2; }
.recruit-area { flex: 1.2; }
.align-left { text-align: left !important; }
.news-area .section-title, .recruit-area .section-title { margin-bottom: 2.5rem; }

.news-list { list-style: none; border-top: 2px solid var(--primary-navy); }
.news-list li { display: flex; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.1); transition: background 0.3s; }
.news-list li:hover { background: rgba(0,224,255,0.03); }
.news-meta { display: flex; gap: 1rem; align-items: center; width: 220px; flex-shrink: 0; }
.news-date { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--primary-navy); }
.news-category { font-size: 0.75rem; padding: 0.2rem 0.8rem; background: var(--primary-navy); color: var(--white); border-radius: 50px; font-weight: 700; }
.news-text { color: var(--text-dark); text-decoration: none; font-weight: 500; font-size: 1.05rem; flex: 1; transition: color 0.3s; }
.news-list li:hover .news-text { color: var(--accent-cyan); }

.recruit-box { padding: 3rem; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.recruit-notice { font-size: 1.2rem; font-weight: 700; color: var(--primary-navy); margin-bottom: 1rem; line-height: 1.6; }
.recruit-sub { font-size: 0.9rem; color: var(--text-gray); }

/* Message */
.message { padding: 8rem 0 4rem; background: var(--soft-bg); }
.message-box { max-width: 900px; margin: 0 auto; padding: 4rem; background: var(--white); box-shadow: var(--card-shadow); border-radius: 24px; text-align: left; }
.message-title { font-size: 1.4rem; color: var(--primary-navy); margin-bottom: 2.5rem; border-bottom: 2px solid rgba(0,0,0,0.05); padding-bottom: 1.5rem; line-height: 1.6; font-weight: 700; text-align: center; }
.message-body p { margin-bottom: 1.5rem; line-height: 2.1; color: var(--text-dark); text-indent: 1em; letter-spacing: 0.05em; font-size: 1.05rem; }
.message-sign { margin-top: 4rem; text-align: right; font-weight: 700; color: var(--primary-navy); font-size: 1.1rem; }
.message-sign span { display: block; margin-bottom: 0.5rem; }

/* Company */
.company {
    padding: 10rem 0;
    background: var(--soft-bg);
    position: relative;
}

.company::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to bottom, var(--white), transparent);
}

.section-header { text-align: center; margin-bottom: 80px; position: relative; z-index: 2; }
.section-title { font-size: 2.5rem; font-weight: 900; color: var(--primary-navy); }
.section-title span { display: block; font-size: 0.9rem; color: var(--accent-cyan); letter-spacing: 8px; margin-top: 1rem; }

.company-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
    position: relative; z-index: 2;
}

.company-details { flex: 1; }
.company-map-area { flex: 1; }

.glass-glow {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 24px;
    height: 100%;
    box-shadow: var(--card-shadow);
}

.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { padding: 1.8rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); vertical-align: top; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: none; padding-bottom: 0; }
.profile-table th { width: 130px; font-weight: 700; color: #8F9EB2; font-size: 0.9rem; letter-spacing: 1px; }
.profile-table td.bold { font-weight: 900; font-size: 1.15rem; color: var(--primary-navy); }
.address-note { margin-top: 0.8rem; font-size: 0.8rem; color: #888; line-height: 1.5; }

.business-list { list-style: none; }
.business-list li { margin-bottom: 0.6rem; padding-left: 1.5rem; position: relative; color: var(--text-dark); }
.business-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--accent-cyan); border-radius: 50%; }

.map-frame { padding: 0.5rem; background: var(--white); box-shadow: var(--card-shadow); border-radius: 24px; height: 100%; }
.map-frame iframe { border-radius: 18px; width: 100%; height: 100%; display: block; border: none; min-height: 400px; }

/* Contact */
.contact { padding: 10rem 0; background: var(--white); }
.contact-box { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-desc { margin-bottom: 2rem; color: var(--text-gray); font-size: 1.1rem; }
.mail-address { font-size: 1.5rem; font-weight: 700; color: var(--primary-navy); margin-bottom: 2rem; font-family: 'Outfit', sans-serif; letter-spacing: 2px; }

/* Contact Form Styles */
.modern-form {
    text-align: left;
    margin-top: 3rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 224, 255, 0.1);
}

.form-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.contact-policy-notice {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.direct-mail-fallback {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px dashed rgba(0,0,0,0.05);
}

.fallback-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.lang-switch { background: var(--accent-cyan); color: var(--primary-navy) !important; padding: 0.3rem 0.6rem; border-radius: 4px; margin-left: 0.2rem; font-weight: 900; }

/* Footer */
.footer { padding: 4rem 0; text-align: center; background: var(--white); border-top: 1px solid rgba(0,0,0,0.05); }
.footer-logo { font-family: 'Outfit', sans-serif; font-weight: 900; letter-spacing: 4px; color: var(--primary-navy); margin-bottom: 1rem; font-size: 1.2rem; }
.footer-links { margin-bottom: 2rem; }
.footer-links a { color: var(--text-gray); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-copy { font-size: 0.8rem; color: #a0a0a0; }


/* Reveals */
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive Media Queries */
@media (max-width: 1000px) {
    .editorial-block, .editorial-block.reverse { flex-direction: column; gap: 3.5rem; text-align: center; }
    .hero-title-main { font-size: 3.5rem; }
    .company-layout { flex-direction: column; }
    .hero-dots { left: 50%; transform: translateX(-50%); bottom: 30px; }
    .hero-desc { font-size: 1rem; }
    .news-recruit-container { flex-direction: column; gap: 3rem; }
    .news-area, .recruit-area { width: 100%; }
    .message-box { padding: 3rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    .header-flex { flex-direction: column; justify-content: center; gap: 10px; }
    .main-header { height: auto; padding: 15px 0; }
    .main-header.scrolled { height: auto; padding: 10px 0; }
    .logo { text-align: center; margin-bottom: 5px; }
    .logo-jp { font-size: 1.1rem; }
    
    .nav-menu ul { flex-wrap: wrap; justify-content: center; gap: 5px; padding: 0; width: 100%; }
    .nav-menu ul li a { margin: 0 5px; font-size: 0.75rem; }
    .lang-switch { margin-top: 5px; }
    
    .hero-title-main { font-size: 2.5rem; line-height: 1.3; }
    .hero-desc { margin-bottom: 2rem; letter-spacing: 1px; font-size: 0.9rem; }
    .cta-btn { padding: 0.8rem 2rem; font-size: 0.9rem; }
    
    .vision { padding: 5rem 0; }
    .editorial-block { margin-bottom: 5rem; gap: 2rem; }
    .ed-title { font-size: 1.8rem; margin-bottom: 1rem; }
    .ed-p { font-size: 0.95rem; line-height: 1.8; }
    
    .message { padding: 4rem 0 2rem; }
    .message-box { padding: 2rem 1.5rem; border-radius: 16px; }
    .message-title { font-size: 1.1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; }
    .message-body p { font-size: 0.95rem; line-height: 1.9; text-indent: 0; }
    .message-sign { margin-top: 2rem; font-size: 0.95rem; }
    
    .news-recruit { padding: 4rem 0; }
    .news-list li { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .recruit-box { padding: 2rem; }
    
    .company { padding: 4rem 0; }
    .section-title { font-size: 2rem; margin-bottom: 1.5rem; }
    
    .glass-glow { padding: 1.8rem; border-radius: 16px; }
    
    .profile-table th, .profile-table td { display: block; border-bottom: none; width: 100%; padding: 0.2rem 0; }
    .profile-table tr { border-bottom: 1px solid rgba(0,0,0,0.05); display: block; padding-bottom: 1rem; margin-bottom: 1rem; }
    .profile-table tr:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .profile-table th { padding-top: 0; font-size: 0.85rem; color: #8F9EB2; }
    .profile-table td.bold { font-size: 1.05rem; }
    
    .map-frame iframe { min-height: 300px; border-radius: 12px; }
    .scroll-down-indicator { display: none; }
    
    .contact { padding: 5rem 0; }
    .contact-desc { font-size: 0.95rem; }
    .direct-mail { padding: 1.5rem; }
    .mail-address { font-size: 1.1rem; }
}
