/* ============================================
   Headhunt.AI - Shared Styles
   ExecutiveSearch.AI K.K.
   ============================================ */

/* Critical: Language content hiding (backup for inline critical CSS) */
.lang-en [data-lang="ja"]:not(.lang-toggle *) { display: none !important; }
.lang-ja [data-lang="en"]:not(.lang-toggle *) { display: none !important; }
html:not(.lang-en):not(.lang-ja) [data-lang] { visibility: hidden; }

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

body {
    font-family: 'DM Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0b;
    color: #ffffff;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Japanese text handling */
[data-lang="ja"] h1,
[data-lang="ja"] h2,
[data-lang="ja"] h3 {
    word-break: keep-all;
    line-break: strict;
}

/* ============================================
   Typography
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 50%, #9b5de5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* Prevent line breaks within gradient text spans */
h1 .gradient-text,
h2 .gradient-text {
    white-space: nowrap;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #00f5d4;
    margin-bottom: 20px;
    font-weight: 600;
}


h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ============================================
   Buttons
   ============================================ */

.glow-button {
    display: inline-grid;
    place-items: center;
    position: relative;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    border: none;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #0a0a0b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 245, 212, 0.3);
}

.secondary-button {
    display: inline-grid;
    place-items: center;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.secondary-button:hover {
    border-color: #00f5d4;
    color: #00f5d4;
}

/* ============================================
   Layout
   ============================================ */

.section {
    padding: 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
}

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

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

/* ============================================
   Navigation
   ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0b;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #ffffff !important;
}

.logo:hover .logo-text,
.logo:visited .logo-text,
.logo:active .logo-text {
    color: #ffffff !important;
}

/* Language Toggle - matching AgentRPO style */
.lang-toggle {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.lang-toggle button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-toggle button:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.lang-toggle button.active {
    background: linear-gradient(135deg, #00f5d4, #00bbf9);
    color: #0a0a0f;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00f5d4;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 22, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    min-width: 200px;
    padding-top: 24px;
    margin-top: 0;
    z-index: 200;
}

/* Bridge the gap between trigger and dropdown */
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
    display: block;
}

/* Keep dropdown open when hovering the dropdown itself */
.nav-dropdown-content:hover {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.7);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-dropdown-content a:hover {
    background: rgba(0, 245, 212, 0.1);
    color: #00f5d4;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile language toggle - ONLY visible on mobile */
.mobile-lang-toggle {
    display: none !important;
}

@media (max-width: 900px) {
    /* Show mobile language toggle */
    .mobile-lang-toggle {
        display: flex !important;
        margin-left: auto;
        margin-right: 12px;
    }
    
    .mobile-lang-toggle button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 11, 0.98);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-links.active > a,
    .nav-links.active .nav-dropdown > a {
        padding: 12px 0;
        font-size: 18px;
    }
    
    .nav-links.active .glow-button {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }
    
    /* Hide the lang toggle inside nav-links on mobile */
    .nav-links .lang-toggle {
        display: none !important;
    }
    
    .nav-dropdown-content {
        position: static;
        transform: none;
        margin-top: 8px;
        padding-left: 16px;
        display: block;
        background: transparent;
        border: none;
        padding-top: 0;
    }
    
    .nav-dropdown-content::before {
        display: none;
    }
    
    .nav-dropdown-content a {
        padding: 10px 16px;
        font-size: 18px;
    }
}

/* ============================================
   Page Header (for subpages)
   ============================================ */

.page-header {
    position: relative;
    padding-top: 120px;
    padding-bottom: 48px;
    text-align: center;
    overflow: hidden;
}

.page-header .hero-glow-1 {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.page-header .hero-glow-2 {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 93, 229, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(36px, 5vw, 56px);
}

.page-header p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Content Sections
   ============================================ */

.content-section {
    padding: 40px 0;
}

.content-section p {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

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

.content-image {
    max-width: 400px;
}

.content-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.image-caption {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #00f5d4;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Feature cards */
.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1) 0%, rgba(0, 187, 249, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: #00f5d4;
}

/* ============================================
   Tier Benefits
   ============================================ */

.tier-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tier-benefit {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tier-benefit:hover {
    border-color: rgba(0, 245, 212, 0.3);
}

.tier-benefit .number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0b;
    flex-shrink: 0;
}

.tier-benefit h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #ffffff;
}

.tier-benefit p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   Highlight Box
   ============================================ */

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08) 0%, rgba(155, 93, 229, 0.08) 100%);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.highlight-box h2 {
    margin-bottom: 20px;
}

.highlight-box p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Policy section highlight box override */
.policy-section.highlight-box {
    text-align: left;
    max-width: none;
    padding: 32px;
    border-radius: 16px;
}

.policy-section.highlight-box h2 {
    font-size: 24px;
}

.policy-section.highlight-box p {
    font-size: 18px;
    margin-bottom: 16px;
}

.policy-section.highlight-box ul {
    margin-top: 16px;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    margin-top: 24px;
}

/* ============================================
   Team Section
   ============================================ */

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

.team-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-card-content {
    padding: 24px;
}

.team-card h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.team-card .role {
    color: #00f5d4;
    font-size: 18px;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ============================================
   Policy Content (Privacy Policy, Terms)
   ============================================ */

.last-updated {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    margin-top: 16px;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-section {
    margin-bottom: 48px;
}

.policy-section ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.policy-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1.7;
}

.policy-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00f5d4;
}

.policy-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #ffffff;
}

.policy-section h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}

.policy-section p {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.policy-list {
    list-style: none;
    padding-left: 0;
}

.policy-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1.7;
}

.policy-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00f5d4;
}

.policy-meta {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 18px;
}

.policy-meta p {
    margin-bottom: 8px;
}

.policy-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 48px 0;
}

.contact-info-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.contact-info-box p {
    margin-bottom: 8px;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 48px 40px 32px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #00f5d4;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

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

/* ============================================
   Form Styles
   ============================================ */

form label {
    display: block;
    font-size: 18px;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    transition: border-color 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #00f5d4;
}

form select option {
    background: #1a1a1b;
    color: #fff;
}

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

.thank-you-message {
    text-align: center;
    padding: 48px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 16px;
}

/* ============================================
   Benefits List (check marks)
   ============================================ */

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

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
    line-height: 1.5;
}

.benefits-list .check {
    color: #00f5d4;
    font-size: 18px;
    margin-top: 2px;
}

/* ============================================
   Comparison Table
   ============================================ */

.comparison-table {
    background: rgba(0,0,0,0.4);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 32px;
    overflow-x: auto;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    padding: 12px 0;
}

.comparison-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.comparison-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-row.last {
    border-bottom: none;
}

.comparison-cell {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

.comparison-cell.center {
    text-align: center;
}

.comparison-cell.dim {
    color: rgba(255,255,255,0.5);
}

.comparison-cell.highlight {
    color: #00f5d4;
    font-weight: 600;
}

.comparison-cell.label {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 1024px) {
    .section {
        padding: 40px 24px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tier-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .content-image {
        max-width: 100%;
        order: 2;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    .section {
        padding: 24px 16px;
    }
    
    .content-section {
        padding: 24px 0;
    }
    
    .section-header {
        margin-bottom: 24px;
    }
    
    .cta-section {
        padding: 48px 0;
    }
    
    nav {
        padding: 12px 16px;
    }
    
    footer {
        padding: 32px 16px 20px;
    }
    
    /* Page headers */
    .page-header {
        padding-top: 100px;
        padding-bottom: 32px;
    }
    
    .page-header p {
        font-size: 18px;
    }
    
    /* Typography */
    h1 {
        font-size: clamp(28px, 7vw, 40px);
    }
    
    h2 {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 16px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    /* Allow text wrapping on mobile for gradient text */
    h1 .gradient-text,
    h2 .gradient-text {
        white-space: normal;
    }
    
    /* Buttons */
    .glow-button,
    .secondary-button {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    /* Grids */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Comparison table mobile */
    .comparison-table {
        padding: 16px;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 8px;
    }
    
    .comparison-cell {
        font-size: 12px;
    }
    
    /* Footer */
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
        text-align: center;
    }
    
    .footer-brand {
        order: 10 !important;
        text-align: center;
        margin-top: 16px;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-brand p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    /* Cards */
    .card {
        padding: 20px;
    }
    
    /* Highlight box */
    .highlight-box {
        padding: 24px 16px;
    }
    
    .highlight-box p {
        font-size: 18px;
    }
    
    /* CTA section */
    .cta-section > .section > p {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .glow-button,
    .cta-buttons .secondary-button {
        width: 100%;
    }
    
    /* Form elements */
    form input,
    form select,
    form textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    /* Contact form grid */
    form > div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    
    form > div[style*="grid-template-columns: 1fr 1fr"] > div {
        margin-bottom: 16px;
    }
    
    /* Benefits list */
    .benefits-list li {
        font-size: 18px;
    }
    
    /* Content with image */
    .content-with-image {
        gap: 24px;
    }
    
    /* Generic inline grid handling - stack all multi-column grids */
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }
    
    [style*="grid-template-columns: auto 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 60px"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */

@media (max-width: 480px) {
    .section {
        padding: 16px 12px;
    }
    
    nav {
        padding: 10px 12px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .glow-button,
    .secondary-button {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .section {
        padding: 12px 10px;
    }
    
    nav {
        padding: 8px 10px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 13px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 17px;
    }
    
    h3 {
        font-size: 15px;
    }
    
    .mobile-lang-toggle button {
        padding: 4px 6px;
        font-size: 10px;
    }
}

/* ============================================
   Form Responsive
   ============================================ */

@media (max-width: 600px) {
    form [style*="grid-template-columns"] {
        display: block !important;
    }
    
    form [style*="grid-template-columns"] > div {
        margin-bottom: 20px !important;
    }
    
    form [style*="grid-template-columns"] > div:last-child {
        margin-bottom: 0 !important;
    }
    
    form input,
    form select,
    form textarea {
        padding: 14px !important;
        font-size: 16px !important;
    }
    
    form label {
        font-size: 12px !important;
        letter-spacing: 1px !important;
    }
    
    form .glow-button,
    form .submit-btn {
        padding: 16px !important;
        font-size: 16px !important;
    }
    
    .thank-you-message {
        padding: 32px 20px !important;
    }
    
    .thank-you-message h3 {
        font-size: 24px !important;
    }
    
    .thank-you-message p {
        font-size: 16px !important;
    }
}

/* ============================================
   Responsive - Extra Small (Galaxy Fold closed, etc)
   ============================================ */

@media (max-width: 400px) {
    .section {
        padding: 20px 12px;
    }
    
    .content-section {
        padding: 20px 0;
    }
    
    .cta-section {
        padding: 32px 0;
    }
    
    nav {
        padding: 10px 12px;
    }
    
    .logo-text {
        font-size: 16px !important;
    }
    
    .logo-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    /* Page headers */
    .page-header {
        padding-top: 80px;
        padding-bottom: 24px;
    }
    
    /* Typography */
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
        margin-bottom: 12px;
    }
    
    h3 {
        font-size: 17px !important;
    }
    
    .section-label {
        font-size: 14px !important;
        letter-spacing: 3px;
    }


/* Prevent FOUC for language content */
[data-lang] {
    /* Hidden by default until JS initializes */
}

/* Japanese-specific typography adjustments */
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
    letter-spacing: 0.02em;
    line-height: 1.5;
}

html[lang="ja"] p {
    line-height: 1.9;
}
