/* =========================================
   1. 基本設定 & フォント
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fafafa 100%);
    color: #333;
    font-family: 'Inter', "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. ヘッダー & ナビゲーション
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 50px;
    z-index: 1000;
    transition: 0.5s;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.scrolled .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    pointer-events: auto;
}

.header-nav { 
    opacity: 0; 
    transform: translateY(-10px); 
    transition: 0.8s ease; 
}

body.scrolled .header-nav { 
    opacity: 1; 
    transform: 
    translateY(0); 
}

.nav-list { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
}

.nav-list a { 
    text-decoration: none; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
}

.nav-list .en { 
    font-size: 0.85rem; 
    font-weight: 700; 
    letter-spacing: 0.1em; 
    color: #1a1a1a; 
}

.nav-list .jp { 
    font-size: 0.6rem; 
    color: #999; 
    margin-top: 2px; 
}

.nav-list a:hover .en { 
    color: #007bff; 
}

.header-logo-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    opacity: 0; 
    transform: translateY(-10px); 
    transition: 0.8s ease; 
}

body.scrolled .header-logo-wrapper { 
    opacity: 1; 
    transform: 
    translateY(0); 
}

.header-logo { 
    height: 35px; 
    width: auto; 
}

.header-company-name { 
    font-weight: 400; 
    font-size: 1.3rem; 
    color: #1a1a1a; 
}

/* =========================================
   3. ファーストビュー (FV)
   ========================================= */
.logo-wrapper {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
    transition: all 1.2s cubic-bezier(0.45, 0, 0, 1);
}

body.scrolled .logo-wrapper { 
    top: 35px; 
    left: 70px; 
    transform: translate(-50%, -50%) scale(0.01); 
    opacity: 0; 
}

.fv {
    position: relative; width: 100%; height: 100vh;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    z-index: 10;
}

.fv-brand-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    min-width: 800px; 
}

.logo-unit { 
    position: relative; 
    width: 120px; 
    height: 120px; 
    flex-shrink: 0; 
}

.circle { 
    position: absolute; 
    border-radius: 50%; 
    animation: orbit 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    opacity: 0.9; 
}

.c-blue   { 
    width: 50px; 
    height: 50px; 
    background: radial-gradient(circle at 30% 30%, #00e5ff, #004ba0); 
}

.c-orange { 
    width: 30px; 
    height: 30px; 
    background: radial-gradient(circle at 30% 30%, #ff9100, #ff3d00); 
    animation-delay: -1.6s; 
}

.c-green  { 
    width: 45px; 
    height: 45px; 
    background: radial-gradient(circle at 30% 30%, #00e676, #00796b); 
    animation-delay: -3.2s; 
}
.c-cyan   { 
    width: 20px; 
    height: 20px; 
    background: radial-gradient(circle at 30% 30%, #b2ebf2, #00acc1); 
    animation-delay: -4.8s; 
}
.c-yellow { 
    width: 40px; 
    height: 40px; 
    background: radial-gradient(circle at 30% 30%, #ffd600, #ff9100); 
    animation-delay: -6.4s;
}

@keyframes orbit {
    0%   { transform: translate(45px, 0); }
    25%  { transform: translate(0, 45px); }
    50%  { transform: translate(-45px, 0); }
    75%  { transform: translate(0, -45px); }
    100% { transform: translate(45px, 0); }
}

.fv-logo-text { 
    font-size: 3.5rem; 
    font-weight: 400; 
    color: #1a1a1a; 
    margin-left: 40px; 
    width: 600px; 
}

.message-area { 
    position: absolute; 
    top: 60%; left: 50%; 
    transform: translateX(-50%); 
    width: 100%; 
    text-align: center; 
    z-index: 40; 
    transition: 0.8s ease; 
}
body.scrolled .message-area { 
    opacity: 0; 
    pointer-events: none; 
}

.keywords { 
    font-size: 1rem; 
    letter-spacing: 0.4em; 
    color: #007bff; 
    margin-bottom: 15px; 
    min-height: 1.5em; 
}

.main-copy { 
    font-size: 2.2rem; 
    font-weight: 500; 
    min-height: 1.5em; 
}

/* =========================================
   4. 共通セクション設定 (デカ文字ベース)
   ========================================= */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 40px;
 }

.fade-in-section { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: 1s ease-out; 
}

.fade-in-section.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* 各セクション背景のデカ文字共通 */
.about-section::before, .business-section::before, .news-section::before, .recruit-section::before {
    position: absolute; 
    font-size: 8rem; 
    font-weight: 900; 
    color: rgba(0, 123, 255, 0.08); 
    z-index: -1; 
    pointer-events: none; 
    line-height: 1;
}

/* =========================================
   5. About Us セクション
   ========================================= */
.about-section { 
    position: relative; 
    padding: 120px 0; 
    text-align: center; 
    overflow: hidden; 
}

.about-section::before { 
    content: "ABOUT"; 
    top: 50px; 
    right: 10%; 
} 

.section-title { 
    font-size: 2.8rem; 
    font-weight: 500; 
    letter-spacing: 0.15em; 
    color: #1a1a1a; 
    margin-bottom: 20px;
    position: relative; 
    display: inline-block; 
    z-index: 2; 
}

.section-title::after { 
    content: ""; 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; height: 4px; 
    background: linear-gradient(90deg, #00e5ff, #004ba0); 
    border-radius: 2px; 
}
.section-lead { 
    font-size: 1.1rem; 
    color: #666; 
    max-width: 600px; 
    margin: 0 auto 100px; 
    line-height: 2;
}

/* ストーリーボード */
.about-story-container { 
    position: relative; 
    max-width: 1000px; 
    margin: 0 auto; }
.about-center-line { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    left: 50%; 
    width: 2px; 
    background: #f0f0f0; 
    transform: translateX(-50%); 
}

.line-progress { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 0%; 
    background: linear-gradient(to bottom, #00e5ff, #004ba0, #ff9100); 
    transition: height 0.4s cubic-bezier(0.2, 0.5, 0.5, 1); 
}

.about-card-wrapper { 
    display: flex; 
    width: 50%; 
    margin-bottom: 80px; 
    position: relative; 
    z-index: 2; 
}

.about-card-wrapper.left { 
    justify-content: flex-end; 
    padding-right: 50px; 
    text-align: right; 
}

.about-card-wrapper.right { 
    justify-content: flex-start; 
    padding-left: 50px; 
    margin-left: auto; 
    text-align: left; 
}

.about-card { 
    background: white; 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    width: 100%; 
    opacity: 0; 
    transform: translateY(40px); 
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s linear; 
}

.about-card-wrapper.is-visible .about-card { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- 【重要】数字の発光アニメーション --- */
.card-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: #bbbbbb !important; /* 最初はグレー */
    margin-bottom: 15px;
    display: inline-block;
    transform: scale(1);
    transition: color 0.8s ease 0.9s, text-shadow 0.9s ease 0.9s, transform 0.9s ease 0.9s; 
    /* 0.6s 遅らせることで、カードが出た後に色が変化する演出 */
}
.about-card-wrapper.is-visible .card-num { 
    color: #007bff !important; 
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6); 
    transform: scale(1.15); 
}

/* 01, 03 (左側) はブルーへ */
.about-card-wrapper.left.is-visible .card-num {
    color: #007bff !important;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
    transform: scale(1.15);
}

.about-card-wrapper.right.is-visible .card-num { 
    color: #ff9100 !important;
    text-shadow: 0 0 15px rgba(255, 145, 0, 0.6);
    transform: scale(1.15);
}

.about-card h3, .about-card p { 
    text-align: left; 
}

.about-card p { 
    text-align: justify;
    word-break: break-all; 
}

/* --- スクロールガイド --- */
.scroll-guide { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-top: 80px; 
    opacity: 0; 
    transform: translateY(20px); 
    transition: 1s ease 0.8s;
 }

.scroll-guide.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.guide-text { 
    font-size: 0.9rem; 
    font-weight: 700; 
    letter-spacing: 0.2em;
    color: #007bff; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
}

.guide-line { 
    width: 2px; 
    height: 60px; 
    background: linear-gradient(to bottom, #007bff, transparent); 
    position: relative; 
    overflow: hidden; 
}

.guide-line::after { 
    content: ""; 
    position: absolute; 
    top: -100%; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #00e5ff; 
    animation: scrollLine 2s infinite; 
}

@keyframes scrollLine { 0% { top: -100%; } 100% { top: 100%; } }

/* =========================================
   6. WHAT'S NEW セクション
   ========================================= */
.news-section { 
    position: relative; 
    padding: 120px 20px; 
    overflow: hidden; 
}

.news-section::before { 
    content: "NEWS"; 
    top: 50px; 
    right: 10%; 
}

.news-list { 
    background: rgba(255, 255, 255, 0.8); 
    border-radius: 20px; 
    padding: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.02); 
}

.news-item { 
    display: flex; 
    align-items: center; 
    padding: 20px 10px; 
    border-bottom: 1px solid #eee; 
    text-decoration: none; 
    color: #333; 
    transition: 0.3s; 
}

.news-item:hover { 
    background: rgba(0, 123, 255, 0.05); 
    padding-left: 25px; 
}

.news-date { 
    font-size: 0.9rem; 
    color: #999; 
    width: 120px; 
    flex-shrink: 0; 
}
.news-category { 
    font-size: 0.75rem; 
    padding: 2px 10px; 
    border: 1px solid #007bff; 
    color: #007bff; 
    border-radius: 20px; 
    margin-right: 20px; 
    flex-shrink: 0; 
}

.news-text { 
    flex-grow: 1; 
    font-size: 1rem; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.news-arrow { 
    color: #007bff; 
    font-weight: bold; 
    opacity: 0; 
    transition: 0.3s; 
}

.news-item:hover .news-arrow { 
    opacity: 1; 
    transform: translateX(10px); 
}

/* =========================================
   7. OUR BUSINESS セクション
   ========================================= */
.business-section { 
    position: relative; 
    padding: 120px 0; 
    text-align: left; 
    overflow: hidden; 
}

.business-section::before {  
    content: "BUSINESS"; 
    top: 100px; 
    right: 10%; 
}

.dept-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-top: 60px; 
}

.dept-card { 
    position: relative; 
    height: 350px; 
    border-radius: 20px; 
    overflow: hidden; 
    text-decoration: none; 
    display: block; 
    transition: all 0.4s ease; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.dept-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15); 
}

.dept-img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.8s ease; 
}

.dept-card:hover .dept-img { 
    transform: scale(1.1); 
}

.dept-card::before { 
    content: ""; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8)); 
    z-index: 1; 
}

.dept-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 40px; 
    z-index: 2; 
    color: #fff; 
}

.dept-en { 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: #00e5ff; 
    margin-bottom: 10px; 
    display: block; 
}

/* =========================================
   8. RECRUIT セクション
   ========================================= */
.recruit-section { 
    position: relative; 
    padding: 160px 0; 
    background-color: #f8f9fa; 
    width: 100%; 
    border-top: 1px solid #eee; 
    overflow: hidden; 
}

.recruit-section::before { 
    content: "RECRUIT"; 
    top: 180px; 
    left: 5%; 
    color: rgba(0, 123, 255, 0.05); 
} 

.recruit-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 40px; 
    position: relative; 
    z-index: 2; 
}

.recruit-title-en { 
    display: inline-block; 
    font-size: 2.8rem; 
    font-weight: 500; 
    -spacing: 0.15em; 
    color: #1a1a1a; 
    position: relative; 
    margin-bottom: 60px; 
    text-align: left; 
}

.recruit-title-en::after { 
    content: ""; 
    position: absolute; 
    bottom: -10px; 
    left: 80%; 
    transform: translateX(-50%); 
    width: 60px; height: 4px; 
    background: linear-gradient(90deg, #00e5ff, #004ba0); 
    border-radius: 2px; 
}

.recruit-content { 
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between; 
    gap: 80px; 
}

.recruit-text-side { 
    flex: 1.2; 
    text-align: left; 
}

.recruit-sub-capture { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #333; 
    margin-bottom: 30px; line-height: 1.4; 
}

.recruit-sub-capture span { 
    background: linear-gradient(90deg, #007bff, #00e5ff); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.recruit-lead { 
    font-size: 1.1rem; 
    line-height: 2; 
    color: #444; 
    margin-bottom: 40px; 
}

.btn-primary { 
    display: inline-flex; 
    align-items: center; 
    padding: 15px 40px; 
    background: #fff; 
    color: #1a1a1a; 
    text-decoration: none; 
    font-weight: 700; 
    border: 2px solid #333; 
    border-radius: 4px; 
    transition: 0.4s; 
}

.btn-primary:hover { 
    color: #fff; 
    border-color: #007bff; 
    background: #007bff; 
    transform: translateY(-2px); 
}

.recruit-image-side { 
    flex: 0.8; 
    height: 350px; 
    border-radius: 20px; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); 
    background-image: linear-gradient(135deg, rgba(0, 123, 255, 0.4), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=800&auto=format&fit=crop'); 
    background-size: cover; 
    background-position: center; 
}

/* =========================================
   9. CONTACT & FOOTER / TECH-BG
   ========================================= */
.contact-section { padding: 140px 0; background-color: #f8f9fa; text-align: center; }
.contact-card { max-width: 900px; margin: 0 auto; background: #fff; padding: 80px 40px; border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,0.05); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(to bottom, #007bff, #00e5ff); }
.btn-contact-main { display: inline-flex; align-items: center; padding: 22px 60px; background: #1a1a1a; color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 700; border-radius: 50px; transition: 0.4s; }
.btn-contact-main:hover { background: #007bff; transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3); }

.site-footer { padding: 50px 0; background: #1a1a1a; color: rgba(255,255,255,0.6); text-align: center; }
.footer-copy { font-size: 0.8rem; letter-spacing: 0.1em; }

.tech-bg-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; overflow: hidden; }
.grid-layer { position: absolute; width: 200%; height: 200%; top: -50%; left: -50%; background-image: linear-gradient(to right, rgba(0, 123, 255, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 123, 255, 0.03) 1px, transparent 1px); background-size: 60px 60px; animation: gridScroll 100s linear infinite; }
@keyframes gridScroll { 0% { transform: rotate(-5deg) translateY(0); } 100% { transform: rotate(-5deg) translateY(-100px); } }

/* =========================================
   10. レスポンシブ
   ========================================= */
@media screen and (max-width: 768px){ 
    .fv-logo-text { 
        font-size: 2rem; 
    }
    .recruit-content { 
        flex-direction: column; 
    }
    .about-card-wrapper { 
        width: 100%; 
        padding: 0 20px !important; 
        text-align: left !important; 
    }

    .about-center-line { 
        left: 20px; 
    }
    .about-section::before, .news-section::before, .business-section::before, .recruit-section::before { 
        font-size: 4rem; 
        top: 20px; 
        right: 5%; 
        left: auto; }
    }