/* =========================================
   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 { 
    left: auto !important;
    right: 20px !important;
}

.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: 50%; 
    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; 
    margin-bottom: 30px;
}

/* コンタクトセクション内のリード文だけ余白を小さくする */
.contact-section .section-lead {
    margin-bottom: 20px !important; /* 100px から 20px へ強制変更 */
}

.btn-contact-main:hover { 
    background: #007bff; 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3); 
}

.contact-btn-area {
    margin-top: 5px; /* 40px から 15px に変更（お好みで 10px でもOK） */
}

.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; 
}

.contact-mail-sub {
    font-size: 0.9rem;
    color: #666;
}
.contact-mail-sub a {
    color: #007bff;
    text-decoration: none;
}


@keyframes gridScroll { 0% { transform: rotate(-5deg) translateY(0); } 100% { transform: rotate(-5deg) translateY(-100px); } }

/* =========================================
   10. レスポンシブ (スマホ・タブレット対応)
   ========================================= */

/* --- A. 全デバイス共通 --- */
.menu-trigger, .sp-nav {
    display: none;
}

/* --- B. スマホ版の設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    /* 1. ナビゲーション消去 */
    .header-nav { display: none !important; }

    /* --- デカ文字設定（transformで強制的に上に移動） --- */
    section.about-section::before, 
    section.business-section::before, 
    section.news-section::before, 
    section.recruit-section::before {
        display: block !important;
        position: absolute !important;
        font-size: 3.5rem !important; 
        font-weight: 900 !important;
        
        /* ↓ 基準位置を調整（セクション上部から30pxの位置） */
        top: 30px !important; 
        /* ↓ さらにここから上に40px「強制移動」させます。
             もっと近づけたい（上に上げたい）場合は -50px, -60px と数値を増やしてください */
        transform: translateY(-10px) !important;
        
        right: 5% !important;
        left: auto !important;
        opacity: 0.12 !important;
        z-index: 100 !important;
        white-space: nowrap !important;
        pointer-events: none !important;
        color: #007bff !important;
    }

    /* 各セクションの文字内容 */
    section.about-section::before    { content: "ABOUT" !important; }
    section.business-section::before { content: "BUSINESS" !important; }
    section.news-section::before     { content: "NEWS" !important; }
    section.recruit-section::before  { content: "RECRUIT" !important; }

    /* --- セクションと見出しの余白を極限まで削る --- */
    .about-section, .business-section, .news-section, .recruit-section {
        padding-top: 60px !important; /* セクション全体の余白を少し詰めました */
        position: relative !important;
    }

    .section-title, .recruit-title-en {
        margin-top: 0 !important;
        margin-bottom: 10px !important; /* 見出し下の余白を最小化 */
        padding-top: 0 !important;
        position: relative !important;
        z-index: 2 !important;
        line-height: 1 !important; /* 行間を詰めてデカ文字に寄せやすくします */
    }

    /* --- RECRUIT専用：見出し自体の余白を完全削除 --- */
    .recruit-section .recruit-title-en {
        font-size: 2.2rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 0 !important;
    }

    /* --- ABOUT US コンテンツのレイアウト維持 --- */
    .about-center-line { left: 20px !important; transform: none !important; }
    .about-card-wrapper {
        width: 100% !important;
        padding: 0 0 30px 50px !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    .about-card { width: 100% !important; padding: 20px !important; }
    .scroll-guide { align-items: flex-start !important; padding-left: 50px !important; }

    /* --- 以下、メニュー・ハンバーガー等の設定は変更なし --- */
    .menu-trigger {
        display: block; position: relative; width: 30px; height: 22px;
        z-index: 2000; cursor: pointer; pointer-events: auto;
    }
    .menu-trigger span {
        display: block; position: absolute; left: 0; width: 100%; height: 2px;
        background-color: #1a1a1a; transition: 0.4s;
    }
    .menu-trigger span:nth-child(1) { top: 0; }
    .menu-trigger span:nth-child(2) { top: 10px; }
    .menu-trigger span:nth-child(3) { bottom: 0; }
    .menu-trigger.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .menu-trigger.is-active span:nth-child(2) { opacity: 0; }
    .menu-trigger.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    .sp-nav {
        display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px);
        justify-content: flex-start; align-items: center; padding-left: 15%;
        z-index: 1500; opacity: 0; pointer-events: none; transition: 0.5s;
    }
    .sp-nav.is-active { opacity: 1; pointer-events: auto; }
    .sp-nav-list { list-style: none; }
    .sp-nav-list li { margin: 25px 0; }
    .sp-nav-list a { text-decoration: none; color: #1a1a1a; font-size: 1.5rem; display: flex; align-items: center; gap: 15px; }

    .container { padding: 0 20px !important; }
    .header { padding: 15px 20px; pointer-events: auto; }
    .fv-logo-text { font-size: 1.6rem !important; width: 100%; text-align: center; margin-left: 0; }
    .main-copy { font-size: 1.2rem !important; }
    .dept-grid { grid-template-columns: 1fr; }
    .recruit-content { flex-direction: column; gap: 30px; }
    .recruit-image-side { order: -1; height: 200px; }

} /* スマホ版終了 */

/* --- C. PC版の設定 --- */
@media screen and (min-width: 769px) {
    .header-nav { display: block; }
}
