:root {
    --bg-color: #ffffff;
    --text-primary: #333333;
    --text-accent: #003366;
    /* Deep Trust Blue */
    --accent-blue: #007AFF;
    /* Tech Blue */
    --bg-light: #f5f7fa;
    --border-color: #e0e0e0;

    --font-en: 'Montserrat', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-jp);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title.center {
    display: block;
    text-align: center;
    margin-bottom: 5rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-accent);
    letter-spacing: 0.05em;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    position: relative;
}

.main-nav a:hover {
    color: var(--text-accent);
}

/* Tech Details */
.tech-status {
    font-family: 'Courier New', monospace;
    /* Explicit monospace */
    font-size: 0.75rem;
    color: var(--text-accent);
    /* Darker for readability on white */
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 51, 102, 0.2);
    /* Navy border */
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tech-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #28c840;
    /* Vivid Green */
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(40, 200, 64, 0.5);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.glitch-text {
    display: inline-block;
    min-width: 0.5em;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Slight fade */
}

/* White gradient overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-en);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-accent);
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
    line-height: 1.8;
}

/* About Section */
.section {
    padding: 120px 0;
}

.about-section {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-lead {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    line-height: 1.4;
}

.company-info .info-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.company-info dt {
    width: 120px;
    font-weight: 700;
    color: var(--text-accent);
}

.company-info dd {
    font-weight: 400;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
    background: var(--bg-light);
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.service-card h3 {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-ja {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-accent);
}

.service-desc {
    font-size: 0.95rem;
    color: #666;
}

/* Contact */
.contact-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
}

.contact-box p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 18px 50px;
    background: var(--text-accent);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.btn-primary:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.3);
}

/* Footer */
.site-footer {
    padding: 40px 0;
    background: #f9f9f9;
    color: #888;
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

/* Mobile Toggle (Hidden on Desktop) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-accent);
    transition: 0.3s;
}

/* Responsive Design */
@media screen and (max-width: 768px) {

    /* Header Fix: Hamburger */
    .site-header .container {
        justify-content: space-between;
        /* Keep Logo left, Toggle right */
        flex-direction: row;
        /* Ensure row alignment */
        align-items: center;
    }

    .logo {
        width: auto;
        text-align: left;
    }

    .mobile-toggle {
        display: block;
    }

    /* Animate Hamburger */
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Nav Overlay */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
        z-index: 1000;
    }

    .main-nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        /* Vertical stack links */
        gap: 2rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.5rem;
        /* Larger font for mobile menu */
        font-weight: 700;
        display: block;
    }

    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }

    /* General Mobile Layout */
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title.center {
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .company-info dt {
        width: 100px;
    }

    .grid-services {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-box p {
        font-size: 1rem;
    }

    .glitch-text {
        font-size: 0.9em;
    }
}