@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap');


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
:root {
    --primary: #44C4A4;
    --secondary: #30A69A;
    --dark-text: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: visible;
}

/* Ensure Japanese containers have proper mobile padding */
@media (max-width: 768px) {
    html[lang="ja"] .container,
    body.lang-ja .container {
        padding: 0 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    html[lang="ja"] .container,
    body.lang-ja .container {
        padding: 0 0.75rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(68, 196, 164, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(48, 166, 154, 0.35);
}

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

.btn-secondary:hover {
    background: rgba(68, 196, 164, 0.1);
    transform: translateY(-2px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Background Pattern */
.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.03) 0%, rgba(48, 166, 154, 0.01) 100%);
    z-index: -1;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(68, 196, 164, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(48, 166, 154, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(68, 196, 164, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 80% 90%, rgba(48, 166, 154, 0.04) 0%, transparent 20%);
    background-size: 150% 150%;
    opacity: 0.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo-outfit .fit-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.logo-outfit .pulse-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.logo .fit-text {
    color: var(--dark-text);
    font-weight: 700;
}

.logo .pulse-text {
    color: var(--primary);
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

/* Add to your CSS */
.language-selector {
    position: relative;
}

.language-selector select {
    appearance: none;
    background: transparent;
    padding: 0.3rem 0.5rem;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    color: var(--dark-text);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;

    /* Center text in the dropdown for most browsers */
    text-align: center;

    /* Specifically ensure the last line (the actual option text) is centered */
    text-align-last: center;
    -moz-text-align-last: center;      /* Firefox prefixed */
    -webkit-text-align-last: center;   /* (Sometimes needed, though less common) */
}

.language-selector select:hover,
.language-selector select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(68, 196, 164, 0.1);
}


.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    visibility: hidden; /* Add this line */
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible; /* Add this line */
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important; /* Force hide on larger screens */
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-text);
    cursor: pointer;
}

/* Hero Section */
/* Hero Section Base Structure */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.97) 100%);
}

/* Background gradient elements */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, rgba(68, 196, 164, 0.15) 0%, rgba(48, 166, 154, 0.08) 60%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(48, 166, 154, 0.1) 0%, rgba(68, 196, 164, 0.05) 60%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    z-index: 1;
}

/* Image container for layered images */
.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    pointer-events: none; /* Make container pass through events */
    z-index: 3; /* Just above background elements */
}


/* Background pattern */
.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.03) 0%, rgba(48, 166, 154, 0.01) 100%);
    z-index: -1;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(68, 196, 164, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(48, 166, 154, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(68, 196, 164, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 80% 90%, rgba(48, 166, 154, 0.04) 0%, transparent 20%);
    background-size: 150% 150%;
    opacity: 0.6;
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 5;
    width: 85%;
    height: calc(100vh - 80px); /* Account for header height */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 80px; /* Add margin for the fixed header */
    padding: 0 2rem; /* Add padding to prevent text from hitting screen edges */
    pointer-events: none; /* This allows clicks to pass through to elements below */

}

/* Text content styling */
.hero-text {
    max-width: 450px;
    margin-right: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    z-index: 2; /* Keep text above most elements but below hovered items */
    pointer-events: auto; /* Ensure text is still clickable */

}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

/* CTA buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Benefits list styling */
.hero-benefits {
    list-style: none;
}

.hero-cta a, .hero-benefits {
    pointer-events: auto;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hero-benefits li i {
    color: var(--primary);
    margin-right: 0.75rem;
}



/* Image layers container */
.hero-image-layers {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Container passes through events */
}

/* Base styles for all image layers */
.image-layer {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    pointer-events: auto; /* Ensure this is explicitly set */
    z-index: 2; /* Base z-index for all layers */
}

.image-frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Transformation image (positioned behind and to the left) */
.image-layer-1 {
    width: 300px;
    height: 400px;
    top: 15%;
    right: 65%;
    z-index: 6;
    transform: rotate(-5deg);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.12);
}

.image-layer-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    z-index: 2;
    border-radius: 20px;
}

.transformation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Community/Support image (positioned in middle) */
.image-layer-2 {
    width: 280px;
    height: 370px;
    top: 35%;
    right: 40%;
    z-index: 7;
    transform: rotate(3deg);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.15);
}

.image-layer-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 2;
    border-radius: 20px;
}

.community-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App mockup (positioned in front and to the right) */
.image-layer-3 {
    width: 260px; /* Smaller size */
    height: 520px; /* Smaller size */
    top: 21%;
    right: 15%;
    z-index: 8;
    transform: perspective(1000px) rotateY(-8deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Lighter shadow */
}

.app-mockup-frame {
    border-radius: 35px;
    background: transparent; /* Remove white background */
    padding: 13px; /* Remove padding */
    width: 100%;
    height: 100%;
}

.app-mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from contain to cover to fill the frame */
    border-radius: 28px;
}

/* Interactive hover effects */
.image-layer:hover {
    transform: translateY(-10px) rotate(0deg);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.image-layer-3:hover {
    transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
}

/* Success highlights section */
.success-highlights {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(68, 196, 164, 0.2);
    padding: 1.5rem 0;
    margin-top: auto;
    position: relative;
    z-index: 5;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.highlights-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight-item {
    text-align: center;
    padding: 0 1rem;
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}


.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-benefits {
    list-style: none;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hero-benefits li i {
    color: var(--primary);
    margin-right: 0.75rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center; /* Vertical centering */
    max-width: 40%;
    position: relative;
}

.hero-image img {
    max-height: 600px;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.15));
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
}

/* Features Section */
.features {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="2" cy="2" r="1" fill="%2344C4A4" opacity="0.1"/></svg>');
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: 0 10px 20px rgba(48, 166, 154, 0.2);
}

.feature-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Add or update these styles in your styles.css */

/* Updated CSS for transform-based scrolling */

/* CSS for continuous scrolling carousel */

.screenshots-container {
    width: 100%;
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
    overflow: hidden; /* Critical to hide screenshots until they appear */
    height: 600px; /* Adjust based on your screenshot height */
}

.screenshots-scroll {
    position: relative;
    width: 100%;
    height: 560px; /* This will be set dynamically by JS */
}

.screenshot {
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: absolute; /* Important for continuous scrolling */
    top: 0;
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none; /* Prevents image dragging */
    -webkit-user-drag: none; /* Prevents image dragging in Safari */
}

/* Visual indicators for scrollable content */
.screenshots-container::before,
.screenshots-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 3;
    pointer-events: none; /* Allow clicks to pass through */
}

.screenshots-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.screenshots-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}



/* Journey Section - Timeline approach */
.journey-section {
    position: relative;
    background-color: var(--white);
    padding: 5rem 0;
    overflow: hidden;
}

.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(48, 166, 154, 0.08) 100%);
    z-index: 0;
}

/* Timeline layout */
.journey-timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    z-index: 1;
}

/* Vertical line connecting timeline steps - only visible on larger screens */
@media (min-width: 769px) {
    .journey-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 4.4rem;
        width: 3px;
        background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 100%);
        z-index: -1;
    }
}

/* Individual journey steps */
.journey-step {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.journey-step:last-child {
    margin-bottom: 0;
}

/* Step number circles */
.journey-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(48, 166, 154, 0.3);
    z-index: 2;
    margin-right: 2.5rem;
}

/* Content area for each step */
.journey-content {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    flex-grow: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-step:hover .journey-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Headings and content styles */
.journey-content h3 {
    font-size: 1.6rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.journey-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.journey-content p {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Features list for each step */
.journey-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.journey-features span {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--light-text);
    font-weight: 500;
}

.journey-features i {
    color: var(--primary);
    margin-right: 0.5rem;
}



/* Testimonials */
/* Enhanced background for testimonials section */
.testimonials {
    position: relative;
    background-color: var(--white);
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(48, 166, 154, 0.08) 100%);
    z-index: 0;
}

/* Change to horizontal grid layout */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for horizontal layout */
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 100%; /* Equal height cards */
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    flex-grow: 1; /* Makes content area grow to fill space */
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-top: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto; /* Pushes author info to bottom */
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 3px solid rgba(68, 196, 164, 0.2);
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 0.875rem;
}

/* Pricing */
.pricing {
    background-color: var(--light-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-card.popular::before {
    content: attr(data-popular-text);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-name {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 0.25rem;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: normal;
}

.pricing-alternate {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.pricing-description {
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-features li i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(-30deg);
}

.cta h2 {
    color: var(--white);
    position: relative;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-button {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.cta-button:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--light-bg);
    border-top: 4px solid var(--secondary);
    padding: 4rem 0 2rem;
    color: var(--dark-text);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10rem;
    align-items: start;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--dark-text);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary);
    font-size: 1.4rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--light-text);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .image-layer-1 {
        right: 60%;
        width: 250px;
        height: 330px;
    }
    
    .image-layer-2 {
        right: 35%;
        width: 240px;
        height: 320px;
    }
    
    .image-layer-3 {
        right: 10%;
        width: 220px;
        height: 440px;
    }
    
    .hero-text {
        margin-right: 40%;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero {
        min-height: auto;
        height: auto;
    }
    
    .hero-content {
        min-height: auto;
        height: auto;
        flex-direction: column;
        padding: 25px 2rem 60px; /* Top padding accounts for fixed navbar */
        align-items: center;
        text-align: center;
        margin-top: 0; /* Remove margin since we have padding */
    }
    
    .hero-text {
        margin-right: 0;
        max-width: 600px;
        padding: 0 0 2rem 0;
        width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: row; /* Keep buttons side by side on tablets */
        width: 100%;
    }
    
    .hero-benefits li {
        justify-content: center;
    }
    
    .hero-image-container {
        width: 100%;
        height: 500px;
        position: relative;
        margin-top: 100px;
    }
    
    .hero-image-layers {
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    /* Rearrange image layers for better tablet layout */
    .image-layer-1 {
        width: 200px;
        height: 280px;
        top: 100px;
        left: 15%;
        right: auto;
    }
    
    .image-layer-2 {
        width: 200px;
        height: 280px;
        top: 100px;
        right: 15%;
        left: auto;
    }
    
    .image-layer-3 {
        width: 220px;
        height: 440px;
        top: 30px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) perspective(1000px) rotateY(-5deg);
    }
    
    .image-layer-3:hover {
        transform: translateX(-50%) perspective(1000px) rotateY(0deg) translateY(-10px);
    }

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

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

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

@media (max-width: 900px) {
    .journey-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header-container {
        padding: 0.2rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--dark-text);
        cursor: pointer;
    }

    .mobile-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-nav .nav-links li {
        margin: 1rem 0;
    }
    
    .hero-content {
        padding: 40px 2rem 40px; /* Top padding accounts for fixed navbar */
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-container {
        height: 450px;
    }
    
    .image-layer-1 {
        width: 180px;
        height: 240px;
        left: 10%;
        top: 80px;
    }
    
    .image-layer-2 {
        width: 180px;
        height: 240px;
        right: 10%;
        top: 80px;
    }
    
    .image-layer-3 {
        width: 200px;
        height: 400px;
        top: 30px;
    }
    
    .hero-cta {
        flex-direction: row; /* Still keep buttons side by side */
        gap: 0.5rem; /* Reduce gap between buttons */
    }
    
    .btn {
        padding: 0.8rem 1.5rem; /* Slightly smaller buttons */
        font-size: 0.95rem;
    }

    .section {
        padding: 4rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .journey-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }
    
    .journey-number {
        margin-bottom: 2.5rem;
        margin-right: 0;
        width: 4rem;
        height: 4rem;
        font-size: 1.8rem;
    }
    
    .journey-content {
        width: 100%;
        padding: 2rem;
    }
    
    /* Center the title underline */
    .journey-content h3 {
        display: block;
        text-align: center;
    }
    
    .journey-content h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    /* Add number to the top of each card as a design element */
    .journey-content {
        position: relative;
        padding-top: 2.5rem;
        margin-top: -2rem;
        z-index: 1;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    /* Add a colored accent top border */
    .journey-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, var(--primary), var(--secondary));
    }
    
    /* Center the features on mobile */
    .journey-features {
        text-align: left;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content {
        padding: 30px 1.5rem 30px; /* Top padding accounts for fixed navbar */
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-image-container {
        height: 350px;
    }
    
    /* Fix for mobile: hide side images, center phone mockup */
    .image-layer-1, .image-layer-2 {
        /* display: none; Hide side images on very small screens */
        width:120px;
        height:180px;
    }
    
    .image-layer-3 {
        width: 160px;
        height: 320px;
        top: 0;
    }
    
    .hero-cta {
        flex-direction: column; /* Stack buttons on mobile */
        width: 100%;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }
    
    .journey-timeline {
        padding: 0;
    }
    
    .journey-content {
        padding: 1.5rem;
    }
    
    .journey-content h3 {
        font-size: 1.4rem;
    }
    
    .journey-step {
        padding: 0;
    }
}

/* Japanese Text Wrapping Styles */
/* These styles apply only when Japanese language is active */
html[lang="ja"] body,
body.lang-ja {
    /* Japanese font stack with proper fallbacks */
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', 'MS PGothic', sans-serif;
    
    /* Enable proper Japanese text wrapping */
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    
    /* Improved line height for Japanese text */
    line-height: 1.8;
}

/* Japanese text wrapping for headings */
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ja"] h5,
html[lang="ja"] h6,
body.lang-ja h1,
body.lang-ja h2,
body.lang-ja h3,
body.lang-ja h4,
body.lang-ja h5,
body.lang-ja h6 {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    line-height: 1.6;
    
    /* Prevent orphaned characters */
    text-wrap: balance;
}

/* Japanese text wrapping for paragraphs and general text */
html[lang="ja"] p,
html[lang="ja"] span,
html[lang="ja"] div,
html[lang="ja"] li,
html[lang="ja"] td,
html[lang="ja"] th,
body.lang-ja p,
body.lang-ja span,
body.lang-ja div,
body.lang-ja li,
body.lang-ja td,
body.lang-ja th {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    
    /* Better spacing for Japanese text */
    letter-spacing: 0.05em;
    
    /* Increased font weight for Japanese text (excluding titles) */
    font-weight: 600;
}

/* Japanese text wrapping for buttons and interactive elements */
html[lang="ja"] .btn,
html[lang="ja"] button,
html[lang="ja"] a,
body.lang-ja .btn,
body.lang-ja button,
body.lang-ja a {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    
    /* Increased font weight for Japanese buttons and links */
    font-weight: 600;
}

/* Japanese text wrapping for navigation */
html[lang="ja"] .nav-links a,
html[lang="ja"] .mobile-nav a,
body.lang-ja .nav-links a,
body.lang-ja .mobile-nav a {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    white-space: nowrap;
    
    /* Increased font weight for Japanese navbar */
    font-weight: 600;
}

/* Japanese text wrapping for hero section */
html[lang="ja"] .hero-text h1,
html[lang="ja"] .hero-text p,
body.lang-ja .hero-text h1,
body.lang-ja .hero-text p {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    text-align: left;
}

/* Japanese text wrapping for cards and content blocks */
html[lang="ja"] .problem-card,
html[lang="ja"] .feature-card,
html[lang="ja"] .testimonial-card,
html[lang="ja"] .pricing-card,
body.lang-ja .problem-card,
body.lang-ja .feature-card,
body.lang-ja .testimonial-card,
body.lang-ja .pricing-card {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

/* Japanese text wrapping for specific content areas */
html[lang="ja"] .section-header,
html[lang="ja"] .journey-content,
html[lang="ja"] .testimonial-content,
body.lang-ja .section-header,
body.lang-ja .journey-content,
body.lang-ja .testimonial-content {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

/* Japanese font weight adjustments - Apply font-weight 600 to all text except titles */
html[lang="ja"] p,
html[lang="ja"] span:not(.fit-text):not(.pulse-text),
html[lang="ja"] div:not(.section-header):not(.page-header),
html[lang="ja"] li,
html[lang="ja"] td,
html[lang="ja"] th,
html[lang="ja"] .btn,
html[lang="ja"] button,
html[lang="ja"] a:not(.logo),
html[lang="ja"] .nav-links a,
html[lang="ja"] .mobile-nav a,
html[lang="ja"] .hero-benefits li,
html[lang="ja"] .feature-card p,
html[lang="ja"] .testimonial-content p,
html[lang="ja"] .journey-content p,
html[lang="ja"] .pricing-features li,
html[lang="ja"] .footer-description,
html[lang="ja"] .footer-links a,
body.lang-ja p,
body.lang-ja span:not(.fit-text):not(.pulse-text),
body.lang-ja div:not(.section-header):not(.page-header),
body.lang-ja li,
body.lang-ja td,
body.lang-ja th,
body.lang-ja .btn,
body.lang-ja button,
body.lang-ja a:not(.logo),
body.lang-ja .nav-links a,
body.lang-ja .mobile-nav a,
body.lang-ja .hero-benefits li,
body.lang-ja .feature-card p,
body.lang-ja .testimonial-content p,
body.lang-ja .journey-content p,
body.lang-ja .pricing-features li,
body.lang-ja .footer-description,
body.lang-ja .footer-links a {
    font-weight: 600 !important;
}

/* Responsive adjustments for Japanese text on mobile */
@media (max-width: 768px) {
    html[lang="ja"] body,
    body.lang-ja {
        line-height: 1.9;
        letter-spacing: 0.03em;
    }
    
    html[lang="ja"] h1,
    html[lang="ja"] h2,
    html[lang="ja"] h3,
    body.lang-ja h1,
    body.lang-ja h2,
    body.lang-ja h3 {
        line-height: 1.7;
        word-spacing: 0.1em;
    }
    
    html[lang="ja"] p,
    body.lang-ja p {
        line-height: 2.0;
        margin-bottom: 1.8rem;
    }
    
    /* Ensure all containers and sections are properly contained on mobile */
    html[lang="ja"] .container,
    html[lang="ja"] .section,
    html[lang="ja"] .hero-content,
    html[lang="ja"] .problems,
    html[lang="ja"] .solutions,
    html[lang="ja"] .stories,
    html[lang="ja"] .cta,
    html[lang="ja"] footer,
    body.lang-ja .container,
    body.lang-ja .section,
    body.lang-ja .hero-content,
    body.lang-ja .problems,
    body.lang-ja .solutions,
    body.lang-ja .stories,
    body.lang-ja .cta,
    body.lang-ja footer {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Ensure text elements don't cause horizontal overflow */
    html[lang="ja"] .section-header h2,
    html[lang="ja"] .problem-card h3,
    html[lang="ja"] .solution-item h3,
    html[lang="ja"] .story-card h3,
    html[lang="ja"] .cta h2,
    body.lang-ja .section-header h2,
    body.lang-ja .problem-card h3,
    body.lang-ja .solution-item h3,
    body.lang-ja .story-card h3,
    body.lang-ja .cta h2 {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    /* Allow more flexible breaking for very long Japanese text on mobile */
    html[lang="ja"] .section-header p,
    html[lang="ja"] .problem-card p,
    html[lang="ja"] .solution-description p,
    html[lang="ja"] .story-card p,
    html[lang="ja"] .cta p,
    html[lang="ja"] .footer-description,
    body.lang-ja .section-header p,
    body.lang-ja .problem-card p,
    body.lang-ja .solution-description p,
    body.lang-ja .story-card p,
    body.lang-ja .cta p,
    body.lang-ja .footer-description {
        word-break: break-word;
        overflow-wrap: break-word;
        line-break: auto;
    }
}

/* Prevent text overflow in constrained containers for Japanese */
html[lang="ja"] .container,
html[lang="ja"] .hero-content,
html[lang="ja"] .section,
body.lang-ja .container,
body.lang-ja .hero-content,
body.lang-ja .section {
    overflow-wrap: break-word;
    word-break: keep-all;
    /* Ensure containers don't overflow on mobile */
    max-width: 100%;
}

/* Japanese punctuation handling */
html[lang="ja"],
body.lang-ja {
    /* Proper hanging punctuation for Japanese */
    hanging-punctuation: allow-end;
    
    /* Better text justification for Japanese */
    text-justify: inter-character;
}

/* Japanese text in forms and inputs */
html[lang="ja"] input,
html[lang="ja"] textarea,
html[lang="ja"] select,
body.lang-ja input,
body.lang-ja textarea,
body.lang-ja select {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

/* Japanese text in tooltips and small text */
html[lang="ja"] .tooltip,
html[lang="ja"] .caption,
html[lang="ja"] .footnote,
html[lang="ja"] small,
body.lang-ja .tooltip,
body.lang-ja .caption,
body.lang-ja .footnote,
body.lang-ja small {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    line-height: 1.7;
}

/* Enhanced Japanese text rendering */
html[lang="ja"],
body.lang-ja {
    /* Enable advanced Japanese text features */
    font-feature-settings: "palt" 1, "pkna" 1;
    
    /* Better text rendering for Japanese */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Japanese-specific text spacing */
    text-spacing: ideograph-alpha ideograph-numeric;
}

/* Prevent awkward line breaks in Japanese text */
html[lang="ja"] .hero-text h1,
html[lang="ja"] .section-header h2,
html[lang="ja"] .problem-card h3,
html[lang="ja"] .feature-card h3,
body.lang-ja .hero-text h1,
body.lang-ja .section-header h2,
body.lang-ja .problem-card h3,
body.lang-ja .feature-card h3 {
    /* Prevent single character orphans */
    orphans: 2;
    widows: 2;
    
    /* Better word spacing for Japanese */
    word-spacing: 0.1em;
}

/* Japanese text in buttons should not break */
html[lang="ja"] .btn,
html[lang="ja"] button,
body.lang-ja .btn,
body.lang-ja button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Allow breaking in longer button text if needed */
html[lang="ja"] .btn.btn-long,
html[lang="ja"] button.btn-long,
body.lang-ja .btn.btn-long,
body.lang-ja button.btn-long {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

/* Japanese text in navigation should be more compact */
html[lang="ja"] .nav-links,
html[lang="ja"] .mobile-nav,
body.lang-ja .nav-links,
body.lang-ja .mobile-nav {
    letter-spacing: 0.02em;
}

/* Better Japanese text handling in constrained spaces */
html[lang="ja"] .testimonial-content,
html[lang="ja"] .pricing-card,
body.lang-ja .testimonial-content,
body.lang-ja .pricing-card {
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

/* Japanese text alignment improvements */
html[lang="ja"] .text-center,
body.lang-ja .text-center {
    text-align: center;
    text-align-last: center;
}

html[lang="ja"] .text-left,
body.lang-ja .text-left {
    text-align: left;
    text-align-last: left;
}

/* Responsive Japanese text adjustments */
@media (max-width: 480px) {
    html[lang="ja"] body,
    body.lang-ja {
        font-size: 14px;
        line-height: 2.1;
    }
    
    html[lang="ja"] h1,
    body.lang-ja h1 {
        font-size: 1.8rem;
        line-height: 1.8;
        margin-bottom: 1.2rem;
    }
    
    html[lang="ja"] h2,
    body.lang-ja h2 {
        font-size: 1.5rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    html[lang="ja"] p,
    body.lang-ja p {
        margin-bottom: 2rem;
        line-height: 2.2;
    }
    
    /* Force proper containment on very small screens */
    html[lang="ja"] *,
    body.lang-ja * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure no element can cause horizontal overflow */
    html[lang="ja"] .container,
    html[lang="ja"] .section,
    html[lang="ja"] .hero-content,
    html[lang="ja"] .problems,
    html[lang="ja"] .solutions,
    html[lang="ja"] .stories,
    html[lang="ja"] .cta,
    html[lang="ja"] footer,
    html[lang="ja"] .footer-content,
    body.lang-ja .container,
    body.lang-ja .section,
    body.lang-ja .hero-content,
    body.lang-ja .problems,
    body.lang-ja .solutions,
    body.lang-ja .stories,
    body.lang-ja .cta,
    body.lang-ja footer,
    body.lang-ja .footer-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* More aggressive text breaking for very small screens */
    html[lang="ja"] h1,
    html[lang="ja"] h2,
    html[lang="ja"] h3,
    html[lang="ja"] p,
    html[lang="ja"] span,
    html[lang="ja"] div,
    body.lang-ja h1,
    body.lang-ja h2,
    body.lang-ja h3,
    body.lang-ja p,
    body.lang-ja span,
    body.lang-ja div {
        word-break: break-word;
        overflow-wrap: break-word;
        line-break: auto;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        max-width: 100%;
    }
}

