:root {
    /* Colors */
    --primary: #004080;
    /* Glossy Blue from Logo Symbol */
    --primary-dark: #002c59;
    --secondary: #3B82F6;
    /* Tech Blue */
    --accent: #0EA5E9;
    /* Cyan */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    --border: #E2E8F0;

    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 6rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 0;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--primary);
}

.btn-primary-small {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding-top: 80px;
    overflow: hidden;
    background: #475569;
    /* Much lighter base (Slate 600) */
}

/* Texture Layer: The "Rugged/Concrete" Base */
.hero-bg-texture {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Brightened noise for concrete look */
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    background-color: #64748b;
    /* Slate 500 overlay */
    background-blend-mode: overlay;
    z-index: -3;
    opacity: 1;
    /* Fully visible texture */
    animation: panTexture 60s linear infinite;
}

/* Digital Grid: The "Future/System" Layer - Made brighter */
.hero-bg-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vh;
    transform: translate(-50%, -50%) perspective(500px) rotateX(60deg);
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.4) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
    animation: moveGrid 15s linear infinite;
    pointer-events: none;
}

/* Scanning Effect: "Integration" */
.hero-bg-digital {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(56, 189, 248, 0.3) 50%, transparent 70%);
    background-size: 100% 200%;
    animation: scanLine 6s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
    mix-blend-mode: screen;
}


@keyframes panTexture {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

@keyframes moveGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 80px;
    }
}

@keyframes scanLine {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    /* Changed to Primary */
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 25px rgba(0, 64, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 64, 128, 0.4);
    background: var(--primary-dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: white;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Philosophy */
.philosophy {
    background: var(--bg-surface);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.philosophy-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.philosophy-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-box {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card-emphasis {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Service */
.service {
    background: var(--bg-body);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-list {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.service-list li {
    position: relative;
    margin-bottom: 1rem;
}

.service-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

.service-desc-detail {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-top: 2rem;
    font-weight: 500;
}

/* Service Visual */
.service-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagram-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Ensure SVG matches container width */
.architecture-svg {
    width: 100%;
    height: auto;
    max-height: 500px;
    /* Increased to accommodate larger diagram */
    display: block;
}

.diagram-layer {
    width: 80%;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    position: relative;
}

.app-layer {
    background: #fdf2f8;
    /* Pink tint for App */
    color: #be185d;
    border: 2px dashed #be185d;
}

.network-layer {
    /* Merged into Field Layer per request, but keeping generic styles available */
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.field-layer {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 64, 128, 0.2);
    transform: scale(1.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-layer-header {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.field-integrations {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.field-tag {
    background: white;
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.diagram-connector {
    width: 2px;
    height: 30px;
    background: #cbd5e1;
}

/* Strength */
.strength {
    background: var(--primary);
    color: white;
}

.strength .section-title {
    color: white;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.strength-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.strength-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.strength-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
}

.strength-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.strength-item p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Profile */
.profile {
    background: var(--bg-surface);
}

.profile-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.profile-image {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.profile-info {
    padding: 2rem 0;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-role {
    font-size: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
}

.history-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.history-item:last-child {
    border-bottom: none;
}

.year {
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
}

.highlight .year {
    color: var(--accent);
}

/* Company */
.company {
    background: var(--bg-body);
}

.company-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 30%;
    color: var(--text-muted);
    font-weight: 500;
}

.company-table td {
    font-weight: 500;
}

/* Contact */
.contact-container {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
}

.contact h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-large {
    background: white;
    color: var(--primary);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-large:hover {
    background: var(--bg-body);
    color: var(--primary-dark);
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--text-muted);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-list {
        display: none;
        /* Hide for now, JS needs to toggle */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .service-content {
        grid-template-columns: 1fr;
    }

    .profile-card {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .profile-image {
        height: 200px;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .company-table th {
        color: var(--secondary);
        font-size: 0.9rem;
    }

    .company-table td {
        margin-bottom: 1rem;
    }
}