/* Reset & Base */
:root {
    --primary-bg: #0a0e17;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-gold: #ffd700;
    --accent-blue: #00f2ff;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--primary-bg);
    line-height: 1.8;
    overflow-x: hidden;
    perspective: 1000px;
    /* Enable 3D space */
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a233a 0%, #0a0e17 100%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Typography */
.section-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    display: block;
    color: var(--accent-blue);
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.section-title {
    font-size: 3rem;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-weight: 600;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0.3s;
}

.header.scrolled {
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: 0.3s;
}

.nav-list a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-contact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue) !important;
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-contact:hover {
    background: var(--accent-blue);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
    transform: translateY(-2px);
}

.btn-contact:hover::before {
    left: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    transition: 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul li {
    margin: 30px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.mobile-menu.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Common */
.section {
    padding: 120px 20px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Philosophy */
.philosophy-content {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2.4;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-content p {
    margin-bottom: 50px;
    position: relative;
}

/* Glass Card Style */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Business */
.business-label {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-blue), #0051ff);
    color: #000;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.business-content h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.business-lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--accent-gold);
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.service-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
}

.service-box h4 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.1rem;
}

.service-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* App Section (Holographic) */
.app-section {
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, rgba(0, 81, 255, 0.05) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.app-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.app-badge {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.app-section h4 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.highlight-text {
    color: var(--accent-gold);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Logic Section */
.logic-section {
    margin-top: 80px;
    text-align: center;
}

.logic-section h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.logic-subtitle {
    color: var(--accent-blue);
    margin-bottom: 50px;
}

.logic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.logic-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.logic-item.highlight {
    background: rgba(197, 160, 89, 0.05);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.1);
}

.logic-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.flat-state {
    margin-top: 50px;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: inline-block;
    max-width: 800px;
}

.flat-state h4 {
    color: var(--accent-blue);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Company Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

.company-table th {
    width: 30%;
    color: var(--accent-blue);
    font-weight: 500;
}

/* Contact */
.contact {
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 30px;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-text {
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-blue), #0051ff);
    color: #fff;
    padding: 15px 60px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.8);
    background: linear-gradient(45deg, #0051ff, var(--accent-blue));
}

.btn-primary:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .service-list,
    .logic-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 30px;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        border: none;
    }

    .company-table th {
        padding-bottom: 5px;
        color: var(--accent-blue);
    }

    .company-table td {
        padding-top: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--glass-border);
    }
}