:root {
    --primary-blue: #2a5298;
    --deep-blue: #1e3c72;
    --light-blue: #4a90c2;
    --accent-orange: #f97316;
    --dark-orange: #ea580c;
    --gradient-primary: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%);
}

* {
    font-family: 'Inter', sans-serif;
}

/* モバイル対応：ヘッダー修正 */
@media (max-width: 991.98px) {
    /* ナビバーの背景を確実に設定 */
    .mega-menu {
        background: rgba(42, 82, 152, 0.98) !important;
        backdrop-filter: blur(20px);
    }
    
    /* モバイルメニューが閉じている時は隠す */
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    /* モバイルメニューが開いている時 */
    .navbar-collapse.show {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(42, 82, 152, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1000;
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }
    
    /* メガドロップダウンをモバイルでは非表示 */
    .mega-dropdown {
        display: none !important;
    }
    
    /* コンテンツのトップマージンを確保 */
    .hero-slider {
        margin-top: 76px !important;
        padding-top: 0 !important;
    }
    
    /* 言語切替をモバイル用に調整 */
    .language-switcher-inline {
        flex-direction: column;
        align-items: start !important;
        margin: 1rem 0;
    }
    
    .language-switcher-inline a {
        margin: 0.25rem 0;
    }
    
    .language-switcher-inline span {
        display: none;
    }
}

/* デスクトップ時の設定 */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
    
    .mega-dropdown {
        display: block;
    }
}



/* ===== MEGA MENU ===== */
.mega-menu {
    background: rgba(42, 82, 152, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ffffff, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-orange) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-orange);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(42, 82, 152, 0.98);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--accent-orange);
    padding: 2rem 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mega-menu:hover .mega-dropdown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mega-item {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: block;
}

.mega-item:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    transform: translateX(10px);
}

.mega-item i {
    width: 20px;
    margin-right: 10px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: calc(100vh + 80px);  /* ナビ分の高さを追加 */
    overflow: hidden;
    margin-top: -100px;  /* ナビの分だけ上にずらす */
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
}

.hero-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.4;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--accent-orange);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-hero-primary:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ===== SLIDER CONTROLS ===== */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-orange);
    transform: scale(1.2);
}


/* ===== HERO CONTENT ADJUSTMENT ===== */
.hero-content {
    position: absolute;
    top: 55%;  /* 50%から55%に調整 */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    padding-top: 2rem;  /* 上部余白を追加 */
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hero-content {
        top: 50%;
        padding-top: 1rem;
    }
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.section-subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-orange);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-orange), #ff8c42);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 0.9;
}

.feature-icon i {
    position: relative;
    z-index: 2;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-col {
    flex: 0 0 auto;
    width: 25%; /* お好みの幅に調整 */
}

.pricing-card.featured {
    border: 3px solid var(--accent-orange);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: '人気プラン';
    position: absolute;
    top: 1rem;
    right: -1rem;
    background: var(--accent-orange);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(10deg);
}

.price {
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 1rem 0;
    line-height: 1.2;
}

.price-unit {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
    margin-left: 0.2rem;
}

.price-small {
    font-size: 0.8rem;
    vertical-align: top;
    margin-left: 0.2rem;
}

/* ===== STEALTH EXPLANATION STYLES ===== */
.stealth-explanation {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stealth-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-blue));
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-orange), var(--dark-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.problem-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #ef4444;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.solution-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #22c55e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hunter-result {
    background: #fee2e2;
    border: 1px solid #fecaca;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.stealth-result {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mega-dropdown {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 1rem 0;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .pricing-col {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .problem-solution {
        grid-template-columns: 1fr;
    }
    
    .benefit-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TECH DEMO STYLES ===== */
.demo-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .before-after {
        grid-template-columns: 1fr;
    }
}

.demo-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.demo-box.before {
    border-left: 5px solid #ef4444;
}

.demo-box.after {
    border-left: 5px solid #22c55e;
}

.terminal-output {
    background: #1f2937;
    color: #10b981;
    padding: 1.5rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* ===== 言語切替の z-index 修正（強制版） ===== */
.navbar-nav .dropdown {
    position: static !important;
}

.language-switcher .dropdown-menu {
    position: fixed !important;
    z-index: 99999 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25) !important;
    min-width: 160px !important;
    top: 70px !important;
    right: 120px !important;
}

.language-switcher .dropdown-item {
    padding: 0.75rem 1rem !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: var(--accent-orange) !important;
}

/* メガメニューは下に */
.mega-dropdown {
    z-index: 1000 !important;
}

.mega-menu {
    z-index: 999 !important;
}

/* ===== 言語切替 横並び（修正版） ===== */
.language-switcher-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
}

.language-switcher-inline .nav-link {
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    margin: 0 !important;
}

.language-switcher-inline .nav-link:hover {
    background: rgba(249, 115, 22, 0.1) !important;
    color: var(--accent-orange) !important;
}

.language-switcher-inline .active-lang {
    background: var(--accent-orange) !important;
    color: white !important;
}

.language-switcher-inline span {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
}