:root {
    /* Logo Colors Approximation:
       Navy: #1B365D (Deep Blue) -> Used for Text/Headings
       Teal: #00A99D (Cyan-ish) -> Primary Accent
       Lime: #8CC63F (Yellow-Green) -> Secondary Accent
    */
    --bg-color: #ffffff;
    /* White background */
    --text-color: #1B365D;
    /* Navy from logo for main text */
    --text-dim: #5c6c7f;
    /* Muted slate for secondary text */
    --accent-primary: #00A99D;
    /* Teal */
    --accent-secondary: #8CC63F;
    /* Lime */

    /* Card styles for light mode */
    --card-bg: #f8fbff;
    /* Very subtle cold white/blue tint */
    --card-border: rgba(0, 169, 157, 0.2);
    /* Teal tint */

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay - Adjusted for Light Mode */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    /* Subtle texture on white */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(27, 54, 93, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
}

.nav-list a:hover {
    color: var(--accent-primary);
}

.btn {
    display: inline-block;
    padding: 0.8em 2em;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--text-color);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    transition: transform 0.4s ease;
    transform: translateX(-100%);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    border-color: transparent;
    color: #fff;
    /* White text on hover for contrast */
}

.btn-sm {
    padding: 0.5em 1.5em;
    font-size: 0.85rem;
}

.btn-glow {
    box-shadow: 0 4px 15px rgba(0, 169, 157, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: #fff;
}

.btn-glow:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 169, 157, 0.4);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-dim);
    border-left: 3px solid var(--accent-primary);
    padding-left: 1.5rem;
}

.hero-bg-effect {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    /* Lighter, fresher gradient for light mode */
    background: radial-gradient(circle, rgba(0, 169, 157, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    filter: blur(80px);
    z-index: 1;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: translateX(-50%) scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: translateX(-50%) scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: translateX(-50%) scaleY(0);
        transform-origin: bottom;
    }
}

/* General Section Styles */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.section-desc {
    color: var(--text-dim);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mission / Vision */
.mvv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.mvv-card {
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    /* Slightly softer corners */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.mvv-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.mvv-lead {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.mvv-text {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.values h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    display: inline-block;
    padding-bottom: 10px;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-item .value-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(0, 169, 157, 0.1);
    /* Subtle teal ghost number */
    display: block;
    line-height: 1;
    margin-bottom: -10px;
}

.value-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.value-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Service */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 169, 157, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.service-summary {
    color: var(--accent-primary);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.service-detail {
    list-style: none;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.service-detail li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.service-detail li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

/* Works */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.work-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--card-border);
}

.work-meta {
    flex: 1;
    min-width: 300px;
}

.work-cat {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.work-title {
    font-size: 1.8rem;
}

.work-body {
    flex: 2;
    color: var(--text-dim);
    line-height: 2;
}

/* Workflow */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--card-border);
    z-index: -1;
    display: none;
    /* Hidden on mobile */
}

.step {
    background: var(--bg-color);
    padding: 20px;
    width: 180px;
    border: 1px solid var(--card-border);
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.step-num {
    display: block;
    color: var(--accent-primary);
    font-weight: bold;
    margin-bottom: 10px;
}

/* Company Info */
.company-info {
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 12px;
    background: var(--card-bg);
}

.info-row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer divider */
    padding: 20px 0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row dt {
    width: 150px;
    font-weight: bold;
    color: var(--text-color);
}

.info-row dd {
    flex: 1;
    color: var(--text-dim);
}

/* Footer */
.footer {
    padding: 100px 0 50px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f0f4f8);
}

.contact-cta h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-color), var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-cta p {
    color: var(--text-dim);
    margin-bottom: 40px;
}

.contact-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-bottom {
    margin-top: 80px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Responsive */
@media (min-width: 768px) {
    .workflow-steps::before {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 5%;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .work-item {
        flex-direction: column;
        gap: 20px;
    }

    .step {
        width: 100%;
        text-align: left;
    }

    .info-row {
        flex-direction: column;
        gap: 10px;
    }
}