/* ========================================
   NAIDI Corporation - Main Stylesheet
   Light Mode / Professional IT × Medical
   ======================================== */

/* === CSS Variables === */
:root {
    /* Colors - Light Mode Professional */
    --primary-color: #0052CC;
    --primary-light: #0065FF;
    --primary-dark: #003D99;
    --secondary-color: #00A8E8;
    --accent-color: #00C9A7;

    /* Neutrals */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F9FC;
    --bg-tertiary: #EDF2F7;
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;
    --border-color: #E2E8F0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0052CC 0%, #00A8E8 100%);
    --gradient-accent: linear-gradient(135deg, #00A8E8 0%, #00C9A7 100%);

    /* Typography */
    --font-primary: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --card-radius: 16px;
    --card-shadow: 0 4px 20px rgba(0, 82, 204, 0.08);
    --card-shadow-hover: 0 8px 40px rgba(0, 82, 204, 0.15);

    /* Animation */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Language Selector === */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.language-selector select:hover {
    border-color: var(--primary-color);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo svg text {
    transition: fill 0.3s ease;
}

.logo:hover svg text {
    fill: var(--primary-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-base);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* === Hero Section === */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 82, 204, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.4);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.btn-accent {
    background: var(--accent-color);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 201, 167, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 201, 167, 0.4);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    position: relative;
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.1); }
}

.medical-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 40px rgba(0, 82, 204, 0.2));
}

/* === Service Banner === */
.service-banner {
    background: var(--gradient-primary);
    padding: 40px 0;
    margin: 60px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.banner-icon {
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    min-width: 300px;
}

.banner-text h3 {
    color: #FFFFFF;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
}

/* === Section Styles === */
.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* === Vision Section === */
.vision-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.vision-content {
    max-width: 900px;
    margin: 60px auto 0;
}

.vision-card {
    background: var(--bg-primary);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 48px;
    text-align: center;
    transition: var(--transition-smooth);
}

.vision-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.card-header .icon-wrapper {
    display: inline-block;
    margin-bottom: 24px;
}

.vision-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
}

/* === Company Overview === */
.company-overview {
    padding: var(--section-padding);
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.company-item {
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-base);
}

.company-item:hover {
    background: #FFFFFF;
    box-shadow: var(--card-shadow);
}

.item-label {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.item-value {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.8;
}

/* === Products Section === */
.products-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--card-radius);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.product-icon {
    margin-bottom: 24px;
    display: inline-block;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.product-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.products-cta {
    text-align: center;
    margin-top: 48px;
}

/* === Technology Section === */
.technology-section {
    padding: var(--section-padding);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.tech-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    transition: var(--transition-smooth);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    background: var(--bg-primary);
}

.tech-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    opacity: 0.3;
}

.tech-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tech-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Footer === */
.footer {
    background: var(--text-primary);
    color: #FFFFFF;
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-col ul li a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* === Responsive Design === */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--bg-primary);
        padding: 40px 24px;
        transition: left 0.3s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-cta {
        justify-content: center;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }
}
