: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: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: #fff;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 1.5rem 0; /* Expand hover area */
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: left;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown li {
    margin-bottom: 0.8rem;
    list-style: none;
}

.dropdown li:last-child {
    margin-bottom: 0;
}

.dropdown a {
    color: #000;
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    opacity: 0.7;
    transition: 0.2s;
    font-weight: 500;
    text-decoration: none;
}

.dropdown a:hover {
    opacity: 1;
    color: #000;
    transform: translateX(5px);
}

.btn-nav {
    border: 1px solid #fff;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-nav:hover,
.btn-nav.active {
    background: #0058a5;
    color: #fff;
    border-color: #0058a5;
}

/* 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-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.campaign-badge {
    display: inline-block;
    border: 1px solid var(--text-color);
    padding: 1rem 2rem;
    position: relative;
    font-weight: 700;
}

.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; }
}

.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;
}

/* News Section */
.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    transition: 0.3s;
    gap: 2rem;
    cursor: pointer;
}

.news-item:hover {
    padding-left: 1rem;
    background: rgba(0,0,0,0.05);
}

.news-date {
    font-family: var(--font-display);
    opacity: 0.7;
    min-width: 120px;
}

.news-cat {
    border: 1px solid #000;
    padding: 0.2rem 1rem;
    font-size: 0.8rem;
    min-width: 80px;
    text-align: center;
}

.news-title {
    flex: 1;
}

/* 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;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-follower {
        display: none !important;
    }
    body, a {
        cursor: auto;
    }
}

/* Tablet: 1024px以下 */
@media (max-width: 1024px) {
    header {
        padding: 1.5rem 2rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    h1.glitch-text {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .service-num {
        font-size: 6rem;
    }
    
    .service-content h3 {
        font-size: 2rem;
    }
    
    .section {
        padding: 6rem 3rem;
    }
}

/* Mobile: 768px以下 */
@media (max-width: 768px) {
    /* Header & Navigation */
    header {
        padding: 1rem 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-item {
        padding: 0;
    }
    
    .nav-item a {
        font-size: 1.3rem;
        color: #fff !important;
    }
    
    /* Mobile Dropdown: Show always or click? Usually simplified for mobile */
    .dropdown {
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0.5rem 0;
        opacity: 1;
        visibility: visible;
        text-align: center;
        min-width: auto;
    }
    
    .dropdown a {
        color: #aaa;
        font-size: 0.9rem;
    }
    
    .btn-nav {
        margin-top: 1rem;
    }
    
    /* Hero Section */
    h1.glitch-text {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-container {
        height: auto;
        min-height: 80vh;
        padding-top: 80px;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .campaign-badge {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Sections */
    .section {
        min-height: auto;
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-left: 1rem;
        border-left-width: 3px;
    }
    
    /* Grid Layout */
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-item h3 {
        font-size: 1.2rem;
    }
    
    .grid-item p {
        font-size: 0.95rem;
    }
    
    /* Services */
    .service-num {
        font-size: 5rem;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .service-lead {
        font-size: 1rem;
    }
    
    .consulting-list strong {
        font-size: 1.2rem;
    }
    
    /* Cards */
    .cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    /* Message Section */
    .message-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .message-image {
        flex: none;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .message-text {
        min-width: auto;
    }
    
    .message-text p {
        font-size: 0.95rem;
        text-align: left;
    }
    
    /* Contact */
    .cta-button {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .company-info {
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    /* News Responsive */
    .news-item { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0.5rem; 
    }
}

/* Small Mobile: 480px以下 */
@media (max-width: 480px) {
    h1.glitch-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .hero-desc {
        font-size: 0.9rem;
    }
    
    .hero-desc br {
        display: none;
    }
    
    .campaign-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .service-num {
        font-size: 4rem;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}
