:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-display: 'Michroma', sans-serif;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

/* Three.js Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    line-height: 1.8;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none; /* For custom cursor logic */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    color: #fff !important;
}

header .logo,
header nav a,
header nav ul li a {
    color: #fff !important;
}

@media (min-width: 1400px) {
    header {
        padding: 1.5rem 5rem;
    }
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

nav a {
    font-size: 0.95rem;
    transition: opacity 0.3s;
    padding: 0;
}

/* Override mega-menu.css - Remove padding from .nav-item > a */
.nav-item > a {
    position: relative;
    display: block;
    /* padding: 1rem 0; */
}

nav a:hover {
    opacity: 0.7;
}

nav a.btn-nav,
.nav-item > a.btn-nav,
nav .nav-item > a.btn-nav,
header nav .nav-item > a.btn-nav,
header .nav-item > a.btn-nav {
    border: 1px solid #fff !important;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s;
    font-size: 0.95rem;
    color: #fff !important;
}

.btn-nav:hover {
    background: #fff;
    color: #000;
}

/* Sections General */
.section {
    min-height: 100vh;
    padding: 8rem 4rem;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(128,128,128, 0.2);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Theme Switching */
body.theme-dark {
    --bg-color: #000000;
    --text-color: #ffffff;
}

body.theme-light {
    --bg-color: #ffffff;
    --text-color: #000000;
}

/* Hero Section */
.hero-container {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

h1.glitch-text {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
}

.subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    opacity: 0.7;
    margin-bottom: 4rem;
}

.hero-content {
    margin-top: 2rem;
    display: block !important;
    visibility: visible !important;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 300;
    color: #fff !important;
    display: block !important;
    visibility: visible !important;
}

.section.theme-dark .hero-content,
.section.theme-dark .campaign-description,
.section.theme-dark .campaign-description p {
    color: #fff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.campaign-badge {
    display: inline-block;
    border: 1px solid #fff;
    padding: 1rem 2rem;
    position: relative;
    font-weight: 700;
    color: #fff !important;
}

.pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.campaign-description {
    margin-top: 3rem;
    max-width: 600px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.campaign-description p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.campaign-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    border: 2px solid #00ffff;
    color: #00ffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: rgba(0, 255, 255, 0.1);
}

.campaign-button:hover {
    background: #00ffff;
    color: #000 !important;
    border-color: #00ffff;
}

.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-indicator .line {
    width: 1px;
    height: 100px;
    background: var(--text-color);
}

/* Grid Layout (Reactor Intro) */
.section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    border-left: 5px solid currentColor;
    padding-left: 2rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.grid-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.5rem;
}

/* Services */
.service-header {
    margin-bottom: 3rem;
}

.service-num {
    font-family: var(--font-display);
    font-size: 8rem;
    opacity: 0.1;
    display: block;
    line-height: 0.5;
}

.service-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.feature-list, .consulting-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 1rem 0;
    border-top: 1px solid rgba(128,128,128, 0.3);
}

.consulting-list li {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.consulting-list strong {
    font-size: 1.5rem;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

/* Cards (Reskilling) */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    border: 1px solid currentColor;
    padding: 2rem;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(0,0,0,0.05);
}

/* Message Section */
.message-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.message-image {
    flex: 0 0 300px;
    text-align: center;
}

.message-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.ceo-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.message-text {
    flex: 1;
    min-width: 300px;
}

.message-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

/* Contact */
.center-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    margin-top: 3rem;
    padding: 1.5rem 4rem;
    background: #000;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.cta-button:hover {
    background: #333;
    letter-spacing: 0.1em;
}

.note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 4rem;
    background: #000;
    color: #fff;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Responsive */
@media (max-width: 1200px) {
    nav ul {
        gap: 1.5rem;
    }
    header {
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    h1.glitch-text { font-size: 4rem; }
    .grid-layout, .cards { grid-template-columns: 1fr; }
    .section { padding: 4rem 2rem; }
    header { 
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.9rem;
    }
    .section-title { font-size: 2.5rem; }
}

/* Override mega-menu.css for Contact button */
header nav .nav-item > a.btn-nav,
header .nav-item > a.btn-nav,
nav .nav-item > a.btn-nav,
.nav-item > a.btn-nav {
    padding: 0.5rem 1.5rem !important;
}
