/* CSS Variables for Brand Colors */
:root {
    --primary-blue: #2196F3;
    --primary-blue-dark: #1976D2;
    --primary-blue-light: #42A5F5;
    --secondary-white: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --background-light: #f8f9fa;
    --background-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    --shadow: 0 10px 30px rgba(33, 150, 243, 0.1);
    --shadow-hover: 0 20px 50px rgba(33, 150, 243, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --max-width: 1200px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Additional variables for better dark mode support */
    --card-background: #ffffff;
    --border-color: rgba(33, 150, 243, 0.1);
    --footer-background: #1a1a1a;
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.8);
    --navbar-background: rgba(255, 255, 255, 0.95);
}

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

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-white);
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Japanese Typography with better responsive handling */
body[lang="ja"] {
    font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Typography with better responsive text handling */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}
h2 { 
    font-size: clamp(2rem, 4vw, 2.5rem);
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}
h4 { 
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Container with better responsive padding */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 180px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--background-gradient);
    color: var(--secondary-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--secondary-white);
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 30px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.lang-btn.active {
    color: var(--primary-blue);
    background: rgba(33, 150, 243, 0.1);
}

.lang-btn:hover {
    color: var(--primary-blue);
}

.lang-divider {
    color: var(--text-light);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.cta-btn {
    background: var(--background-gradient);
    color: var(--secondary-white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
}

.nav-link.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, var(--secondary-white) 100%);
    padding: 120px 0 60px;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.smoothie-carousel {
    position: relative;
    width: clamp(250px, 40vw, 400px);
    height: clamp(250px, 40vw, 400px);
}

.smoothie-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    box-shadow: var(--shadow-hover);
}

.smoothie-img.active {
    opacity: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--background-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--background-light);
}

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

.product-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--secondary-white);
    padding: 30px 20px 20px;
}

.product-info h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 8px;
    word-wrap: break-word;
}

.product-info p {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    opacity: 0.9;
    margin-bottom: 0;
    word-wrap: break-word;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--card-background);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--background-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary-white);
}

.feature-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 15px;
    color: var(--text-dark);
    word-wrap: break-word;
}

.feature-card p {
    line-height: 1.6;
    color: var(--text-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--background-light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    background: var(--card-background);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--background-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-white);
}

.step h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 15px;
    color: var(--text-dark);
    word-wrap: break-word;
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Statistics Section */
.stats {
    padding: 80px 0;
    background: var(--background-gradient);
    color: var(--secondary-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
}

/* Host Section */
.host {
    padding: 100px 0;
}

.host-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.host-text {
    max-width: 600px;
}

.host-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--text-gray);
    margin-bottom: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.host-benefits {
    margin-bottom: 40px;
}

.benefit {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.benefit-content h3 {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 8px;
    color: var(--text-dark);
    word-wrap: break-word;
}

.benefit-content p {
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.host-image {
    display: flex;
    justify-content: center;
}

.kiosk-img {
    width: 100%;
    max-width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--background-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(33, 150, 243, 0.05);
}

.faq-question h3 {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 0;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-right: 20px;
}

.faq-question i {
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--background-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 5px;
    color: var(--text-dark);
    word-wrap: break-word;
}

.contact-details p {
    color: var(--text-gray);
    margin-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Contact Form */
.contact-form {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: clamp(14px, 2vw, 16px);
    transition: var(--transition);
    background: var(--card-background);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer - Enhanced for better dark mode support */
.footer {
    background: var(--footer-background);
    color: var(--footer-text);
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.footer-logo-text {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.footer-description {
    color: var(--footer-text-muted);
    line-height: 1.6;
    max-width: 400px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section h4 {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 20px;
    color: var(--footer-text);
    word-wrap: break-word;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.9rem, 2vw, 1rem);
    word-wrap: break-word;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--footer-text-muted);
    font-size: clamp(0.9rem, 2vw, 1rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-contact i {
    color: var(--primary-blue);
    width: 16px;
    flex-shrink: 0;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    word-wrap: break-word;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--background-gradient);
    border: none;
    border-radius: 50%;
    color: var(--secondary-white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container,
    .host-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .smoothie-carousel {
        width: clamp(250px, 35vw, 300px);
        height: clamp(250px, 35vw, 300px);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--navbar-background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 30px 0;
        gap: 20px;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .language-toggle {
        margin-right: 15px;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    
    .smoothie-carousel {
        width: clamp(200px, 50vw, 250px);
        height: clamp(200px, 50vw, 250px);
    }
    
    .products-grid,
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .benefit {
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
        gap: 15px;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .faq-question {
        padding: 20px 25px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 25px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2rem);
        line-height: 1.3;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2rem);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        min-width: auto;
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .hero {
        padding: 90px 0 30px;
    }
    
    .language-toggle {
        margin-right: 10px;
    }
}

/* Language-specific styles - Enhanced for mobile */
body[lang="ja"] .hero-title {
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

body[lang="ja"] .section-title {
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
}

body[lang="ja"] h3 {
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

body[lang="ja"] p {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.8;
}

/* Mobile Japanese text improvements */
@media (max-width: 768px) {
    body[lang="ja"] {
        line-height: 1.9;
    }
    
    body[lang="ja"] .hero-title {
        line-height: 1.5;
    }
    
    body[lang="ja"] .section-title {
        line-height: 1.6;
    }
    
    body[lang="ja"] p {
        line-height: 1.9;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-top,
    .hamburger {
        display: none;
    }
    
    .hero {
        padding-top: 0;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Dark Mode Support - Completely Rewritten and Enhanced */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode color overrides */
        --secondary-white: #1a1a1a;
        --text-dark: #ffffff;
        --text-gray: #b0b0b0;
        --text-light: #888888;
        --background-light: #242424;
        --card-background: #2a2a2a;
        --border-color: rgba(255, 255, 255, 0.1);
        --navbar-background: rgba(42, 42, 42, 0.95);
        --footer-background: #111111;
        --footer-text: #ffffff;
        --footer-text-muted: rgba(255, 255, 255, 0.9);
        
        /* Adjusted shadows for dark mode */
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.4);
    }
    
    /* Body and general elements */
    body {
        background-color: var(--secondary-white);
        color: var(--text-dark);
    }
    
    /* Navigation dark mode */
    .navbar {
        background: var(--navbar-background);
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Cards and containers */
    .product-card,
    .feature-card,
    .step,
    .faq-item,
    .contact-form {
        background: var(--card-background);
        border: 1px solid var(--border-color);
        color: var(--text-dark);
    }
    
    /* Form elements dark mode */
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--card-background);
        border-color: var(--border-color);
        color: var(--text-dark);
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: var(--text-light);
    }
    
    /* FAQ hover state */
    .faq-question:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* Hero section dark mode */
    .hero {
        background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, var(--secondary-white) 100%);
    }
    
    /* Footer enhanced contrast */
    .footer {
        background: var(--footer-background);
        color: var(--footer-text);
    }
    
    .footer-description,
    .footer-links a,
    .footer-contact p {
        color: var(--footer-text-muted);
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .footer-bottom p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    /* Mobile navigation dark mode */
    .nav-menu {
        background-color: var(--navbar-background);
        border-top: 1px solid var(--border-color);
    }
    
    /* Improved text contrast for readability */
    h1, h2, h3, h4, h5, h6 {
        color: var(--text-dark);
    }
    
    .section-title {
        background: var(--background-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Product overlay text improvements */
    .product-overlay {
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    }
    
    /* Enhanced visibility for interactive elements */
    .btn-secondary {
        border-color: var(--primary-blue);
        color: var(--primary-blue);
    }
    
    .btn-secondary:hover {
        background: var(--primary-blue);
        color: var(--secondary-white);
    }
}

/* Extra small screens - Enhanced Japanese support */
@media (max-width: 320px) {
    body[lang="ja"] {
        font-size: 15px;
        line-height: 2;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 1.8rem);
    }
    
    .section-title {
        font-size: clamp(1.6rem, 7vw, 1.8rem);
    }
    
    .nav-container {
        height: 65px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}