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

:root {
    --background: #0a0a0a;
    --background-light: #111111;
    --surface: #1a1a1a;
    --surface-light: #222222;
    --border: #2a2a2a;

    --text-primary: #ededed;
    --text-secondary: #a1a1a1;
    --text-tertiary: #6b6b6b;

    --accent-green: #3ecf8e;
    --accent-green-dark: #2da771;
    --accent-blue: #4c9aff;

    --gradient-green: linear-gradient(135deg, #3ecf8e 0%, #2da771 100%);
    --gradient-hero: linear-gradient(to bottom, #0a0a0a 0%, #111111 100%);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--accent-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-selector {
    display: flex;
    gap: 4px;
    background-color: var(--surface);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: var(--text-primary);
    background-color: var(--surface-light);
}

.lang-btn.active {
    background-color: var(--accent-green);
    color: var(--background);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(62, 207, 142, 0.15) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-5%, -5%) scale(1.1);
        opacity: 0.5;
    }
}

.hero-content {
    text-align: center;
    color: var(--text-primary);
    z-index: 1;
    padding: 0 32px;
    max-width: 1000px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description p {
    font-size: clamp(18px, 2.5vw, 28px);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.hero-description-jp {
    margin-top: 12px;
    font-size: clamp(16px, 2vw, 24px) !important;
    opacity: 0.8;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    animation: bounce 2.5s infinite;
    opacity: 0.5;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-tertiary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 6px;
    background-color: var(--text-tertiary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    text-align: center;
    width: 100%;
}

.section-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-text {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* About Section */
.about-section {
    background-color: var(--background-light);
}

.about-text-group {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-text-group .section-text {
    padding: 32px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Solution Section */
.solution-section {
    background-color: var(--background);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 80px;
}

.cards-grid.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 48px 32px;
    border-radius: 16px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    background-color: var(--surface-light);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    margin-bottom: 24px;
    color: var(--accent-green);
    transition: transform 0.3s ease;
}

.card-icon svg {
    width: 40px;
    height: 40px;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

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

/* Product Section */
.product-section {
    background-color: var(--background-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.product-grid.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background-color: var(--surface);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    box-shadow: 0 24px 48px rgba(62, 207, 142, 0.3);
    border-color: var(--accent-green);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: var(--background);
    position: relative;
    min-height: 70vh;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(62, 207, 142, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 64px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: clamp(56px, 8vw, 120px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Contact Section */
.contact-section {
    background-color: var(--background-light);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.contact-info.contact-single {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    background-color: var(--surface-light);
}

.contact-icon {
    flex-shrink: 0;
    color: var(--accent-green);
    transition: transform 0.3s ease;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-details {
    text-align: left;
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: var(--background);
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    padding: 48px 0;
    text-align: center;
    font-size: 14px;
}

.footer-company {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-address {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-tertiary);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-container {
        padding: 0 16px;
    }

    /* Fix logo on mobile */
    .logo {
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
        max-width: 130px;
    }

    /* Disable heavy effects for smooth scrolling */
    .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(10, 10, 10, 0.95);
    }

    .hero::before {
        animation: none;
        opacity: 0.3;
    }

    .section {
        transform: none;
        opacity: 1;
        transition: none;
    }

    .card,
    .product-card,
    .contact-item {
        transition: none;
    }

    .card:hover,
    .product-card:hover,
    .contact-item:hover {
        transform: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        width: 100%;
        padding: 32px 0;
        border-bottom: 1px solid var(--border);
        transition: left 0.3s ease;
        gap: 0;
    }

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

    .nav-menu li {
        padding: 16px 32px;
    }

    .nav-menu a {
        font-size: 16px;
    }

    .nav-right {
        gap: 12px;
    }

    .language-selector {
        padding: 3px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 10px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        padding: 0 24px;
    }

    /* Hide br tags on mobile for proper text flow */
    .section-text br,
    .hero-description br {
        display: none;
    }

    .cards-grid,
    .cards-grid.grid-2x2,
    .product-grid,
    .product-grid.product-grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 48px;
    }

    .about-text-group .section-text {
        padding: 24px;
    }

    .stats-grid {
        gap: 48px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section {
        padding: 80px 0;
        min-height: auto;
    }

    .stats-section {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 11px;
        max-width: 110px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .card {
        padding: 32px 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .contact-details {
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .hero-subtitle {
        font-size: 20px;
    }

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* Selection */
::selection {
    background-color: var(--accent-green);
    color: var(--background);
}

::-moz-selection {
    background-color: var(--accent-green);
    color: var(--background);
}
