/**
 * NERV ENTERPRISE - 共通スタイル
 * 全ページで読み込み、デザインを統一
 */

:root {
    --color-bg: #44318d;
    --color-text: #ffffff;
    --color-accent: #00f2ff;
    --color-accent-dark: #0047ff;
    --color-muted: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.25);
}

/* 同ページ内アンカー遷移のスムーズスクロール・固定ヘッダー分の余白 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

/* 背景グラデーション・ノイズ */
.grainy-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 0, 0, 0.2) 0%, transparent 40%),
        var(--color-bg);
}

.grainy-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Typography */
.tracking-ultra {
    letter-spacing: -0.05em;
}

/* ヘッダー・フッター：背景白・文字は濃い色で視認性確保 */
header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

header a,
header span,
header button {
    color: #1a1a1a !important;
}

header .site-logo-header {
    filter: none;
    opacity: 1;
}

header .glass-panel {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a1a !important;
}

header .glass-panel span {
    color: #1a1a1a !important;
}

header .glass-panel [class*="bg-white"] {
    background: rgba(0, 0, 0, 0.2);
}

/* ヘッダー内メニューボタンのハンバーガー線を暗色に */
header .glass-panel > div span[class*="bg-white"] {
    background-color: #333 !important;
}

/* PC用ヘッダーナビ：白背景で視認できる色 */
header .header-nav-link {
    color: #1a1a1a !important;
}

header .header-nav-link:hover {
    color: #0891b2 !important;
}

footer {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

footer .site-logo-footer {
    filter: none;
    opacity: 1;
}

footer a,
footer p,
footer span {
    color: #333 !important;
}

footer a:hover {
    color: var(--color-accent-dark) !important;
}

/* サイトロゴ */
.site-logo-header {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-logo-footer {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

/* Scroll Reveal（初期は表示し、スクロールでスライドアップを適用） */
.reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    transform: translateY(0);
}

/* Menu Overlay */
#menu-overlay {
    clip-path: circle(0% at 95% 5%);
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#menu-overlay.open {
    clip-path: circle(150% at 95% 5%);
}

/* Breadcrumb（下層ページ） */
.breadcrumb a:hover {
    color: var(--color-accent);
}

/* 会社概要テーブル */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

.table-wrap th {
    color: var(--color-accent);
    font-weight: 600;
    width: 30%;
}

/* 戦略的バンドル比較表：Core/Advanced/Elite/Ultimate の4列幅を統一 */
.bundle-comparison-table {
    table-layout: fixed;
}

.bundle-comparison-table col.bundle-col {
    width: 7rem;
}

.bundle-comparison-table th:nth-child(2),
.bundle-comparison-table th:nth-child(3),
.bundle-comparison-table th:nth-child(4),
.bundle-comparison-table th:nth-child(5),
.bundle-comparison-table td:nth-child(2),
.bundle-comparison-table td:nth-child(3),
.bundle-comparison-table td:nth-child(4),
.bundle-comparison-table td:nth-child(5) {
    width: 7rem;
    min-width: 7rem;
    box-sizing: border-box;
}

/* スクロールバー */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
