/*
Theme Name: Nihongo
Description: A Japanese learning service theme with multilingual support, course management, and modern design.
Version: 1.0.0
Author: nihongo.net Team
Text Domain: nihongo
*/

/* ===== BREADCRUMBS STYLES ===== */
.breadcrumbs-container {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    margin-top: 80px; /* Account for fixed header */
}

.breadcrumbs {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item.current {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #6c757d;
}

/* ===== ENHANCED NAVIGATION STYLES ===== */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateY(-1px);
}

.nav-link.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.nav-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.nav-text {
    font-size: 0.95rem;
}

/* Mobile Navigation Enhancements */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

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

.mobile-nav-content {
    padding: 100px 2rem 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.mobile-nav-link.active {
    background: #007bff;
    color: white;
}

.mobile-nav-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.mobile-nav-text {
    flex: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Language Switcher Enhancements */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher.switching {
    opacity: 0.6;
    pointer-events: none;
}

.lang-inline {
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.lang-inline:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.lang-inline.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    font-weight: 600;
}

.lang-sep {
    color: #dee2e6;
    font-weight: 300;
}

/* ===== RESPONSIVE HEADER & LOGO ===== */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-img,
    .logo .custom-logo {
        height: 35px;
        margin-right: 8px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo.has-text .logo-text {
        font-size: 1.1rem;
    }
    
    .nav-list {
        display: none;
    }
    
    .header .mobile-menu-toggle {
        display: flex;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .breadcrumbs-container {
        margin-top: 70px;
        padding: 8px 0;
    }
    
    .breadcrumb-list {
        font-size: 13px;
    }
    
    .breadcrumb-separator {
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo-img,
    .logo .custom-logo {
        height: 30px;
        margin-right: 6px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo.has-text .logo-text {
        font-size: 0.9rem;
    }
    
    .mobile-nav-content {
        padding: 80px 1rem 1rem;
    }
    
    .mobile-nav-link {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .breadcrumbs-container {
        margin-top: 60px;
    }
}


/* ===== ASSET OPTIMIZATION & LOADING ===== */
/* Image loading states */
img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Logo specific optimizations */
.logo-img,
.logo .custom-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Background image optimizations */
.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Loading spinner for images */
.image-loading {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-modern, 'Noto Sans JP', 'Inter', sans-serif);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}


body.page-bg { background: none !important; }
/* Page wide background image (Japanese learning landscape and smiling learner) */
body.page-bg {
    /* Dark overlay to reduce saturation perception and improve text contrast */
    background:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url('../img/cobg.jpg') center center / cover no-repeat fixed;
}

/* ===== THEME VARIABLES (aligned with Global Skills style) ===== */
:root {
    --text-color: #1a1a1a;
    --muted-text: #6b7280;
    --accent: #f06a2f; /* orange accent from logo */
    --header-bg: #ffffff;
    --border-color: rgba(0,0,0,0.08);
}

/* Correct CSS root selector and extended palette */
:root {
	/* Core */
	--text-color: #1a1a1a;
	--muted-text: #6b7280;
	--accent: #f06a2f;
	--header-bg: #ffffff;
	--border-color: rgba(0,0,0,0.08);

	/* Neon & vivid */
	--neon-pink: #ff3cac;
	--neon-cyan: #32e6e2;
	--neon-lime: #b6ff00;
	--electric-violet: #7c3aed;

	/* Pastel & muted */
	--pastel-blue: #b3e5fc;
	--pastel-pink: #ffd1e8;
	--pastel-green: #c8f7c5;
	--muted-lavender: #c7c9ff;

	/* Gradients */
	--grad-y2k: linear-gradient(135deg, #8fd3f4 0%, #ff9a9e 100%);
	--grad-sunset: linear-gradient(135deg, #ff6b35, #f7931e, #ff6b9d, #8b5cf6);
	--grad-neon: linear-gradient(135deg, var(--neon-pink), var(--electric-violet));

	/* Natural */
	--leaf: #2e7d32;
	--moss: #7da27d;
	--sand: #d2b48c;
	--earth: #5a4634;
}

/* Typography refinements (JP-friendly, mobile-first) */
html { font-size: 16px; }
@media (max-width: 480px) { html { font-size: 15px; } }
body { font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1 { font-size: 2rem; line-height: 1.3; }
h2 { font-size: 1.6rem; line-height: 1.35; }
h3 { font-size: 1.3rem; line-height: 1.4; }
p, li { font-size: 1rem; line-height: 1.55; }
@media (min-width: 768px) {
	h1 { font-size: 2.25rem; }
	h2 { font-size: 1.8rem; }
	h3 { font-size: 1.4rem; }
	p, li { font-size: 1.05rem; line-height: 1.6; }
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
	position: relative;
	z-index: 1000;
}

/* Toggle button: glassy dark pill with subtle gradient */
.lang-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 9999px;
	background: linear-gradient(135deg, rgba(17,24,39,0.85), rgba(31,41,55,0.85));
	color: #fff;
	border: 1px solid rgba(255,255,255,0.15);
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
	backdrop-filter: blur(6px);
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9rem;
	transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.lang-toggle:hover,
.lang-toggle.active {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0,0,0,0.35);
	background: linear-gradient(135deg, rgba(31,41,55,0.9), rgba(17,24,39,0.9));
}

.lang-current { color: #fff; }
.lang-arrow { color: #fff; transition: transform 0.25s ease; display: flex; align-items: center; }
.lang-toggle.active .lang-arrow { transform: rotate(180deg); }

/* Dropdown: glassy dark panel */
.lang-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 10px;
	min-width: 180px;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.9);
	border: 1px solid rgba(255,255,255,0.12);
	box-shadow: 0 20px 50px rgba(0,0,0,0.35);
	backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
	z-index: 1001;
}

.lang-dropdown.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

/* Options: high-contrast, with accent active state */
.lang-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: #e5e7eb;
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
	position: relative;
}
.lang-option:last-child { border-bottom: none; }

.lang-option:hover { background: rgba(255,255,255,0.06); color: #ffffff; }

.lang-option.active {
	background: linear-gradient(135deg, var(--accent), rgba(240,106,47,0.85));
	color: #ffffff;
}
.lang-option.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #ffffff;
	opacity: 0.9;
	border-radius: 0 2px 2px 0;
}

/* Flags get a soft glow to pop on dark bg */
.lang-flag { filter: drop-shadow(0 0 6px rgba(255,255,255,0.18)); }

/* Mobile language buttons keep consistency */
.mobile-language-switcher .mobile-lang-btn {
	border-color: rgba(255,255,255,0.25);
	background: rgba(17,24,39,0.6);
	color: #fff;
	backdrop-filter: blur(6px);
}
.mobile-language-switcher .mobile-lang-btn:hover {
	border-color: rgba(255,255,255,0.45);
	background: rgba(31,41,55,0.7);
	color: #fff;
}
.mobile-language-switcher .mobile-lang-btn.active {
	background: linear-gradient(135deg, var(--accent), rgba(240,106,47,0.85));
	border-color: transparent;
	color: #fff;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #7f8c8d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HEADER ===== */
.header {
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header-content {
        padding: 0.5rem 0.75rem;
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: translateY(-1px);
}

.logo-img {
    height: 45px;
    width: auto;
    margin-right: 12px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-text {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

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

/* Custom Logo (WordPress) */
.logo .custom-logo {
    height: 45px;
    width: auto;
    margin-right: 12px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo .custom-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Logo with text combination */
.logo.has-text .logo-img,
.logo.has-text .custom-logo {
    margin-right: 8px;
}

.logo.has-text .logo-text {
    font-size: 1.3rem;
}

/* Header right section (navigation + language switcher) */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Language switcher in header */
.header .language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header .lang-inline {
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.header .lang-inline:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.header .lang-inline.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    font-weight: 600;
}

.header .lang-sep {
    color: #dee2e6;
    font-weight: 300;
}

/* Mobile menu toggle in header */
.header .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
}

.header .mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.header .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(240, 106, 47, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(240, 106, 47, 0.1);
    font-weight: 600;
}

.nav-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.nav-text {
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Mobile Navigation Styles */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mobile-nav-list .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-list .nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-list .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-nav-list .nav-link:hover {
    background: rgba(240, 106, 47, 0.1);
    color: var(--accent);
    padding-left: 2rem;
}

.mobile-nav-list .nav-link.active {
    background: rgba(240, 106, 47, 0.15);
    color: var(--accent);
    font-weight: 600;
}

.mobile-nav-list .nav-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.mobile-nav-list .nav-text {
    font-size: 1rem;
}

/* Re-enable footer social icons with custom minimalist style */
.footer .social-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}
.footer .social-link { gap: 0.25rem; }
.star { display: none; }

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

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

.mobile-nav-content {
    padding: 2rem;
}

.mobile-nav-list {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-item {
    margin-bottom: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--accent); }

.mobile-nav-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* ===== MAIN CONTENT ===== */
.main {
    margin-top: 80px;
}

/* Remove top white gap when the first section is a full-screen hero (home) */
@media (max-width: 1024px) {
    .hero + .section, .hero { /* ensure hero anchors to the very top on mobile */
        margin-top: 0;
    }
    .main {
        margin-top: 0; /* avoid extra offset under the fixed header on mobile */
    }
}

/* ===== HERO SECTION ===== */
.hero {
    
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    height: 100vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   
    opacity: 0.3;
}

/* Center home hero text vertically and horizontally (exclude J-Bridge) */
.hero:not(.j-bridge-hero) .hero-content {
	position: relative;
	top: auto;
	left: auto;
	transform: none;
	margin: 0 auto;
	text-align: center;
	width: 100%;
	max-width: 800px;
	padding: 0 20px;
	z-index: 3;
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-image: none;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Unified button styling - Black button with rounded corners and subtle shadow */
.hero-cta, .btn-dark, .read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    text-transform: none;
    letter-spacing: normal;
}

.hero-cta:hover, .btn-dark:hover, .read-more-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-cta:active, .btn-dark:active, .read-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-cta:focus-visible, .btn-dark:focus-visible, .read-more-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Form submit button styling */
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2rem;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.carousel-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 900px;
    padding: 0 20px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.8);
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2rem;
    margin-left: 0;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f39c12;
}

.carousel-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.carousel-comment {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-comment p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    color: #ecf0f1;
    margin: 0;
    text-align: left;
    position: relative;
    padding-left: 2rem;
    text-align: justify;
}

.carousel-comment p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: #f39c12;
    font-family: serif;
    line-height: 1;
}

/* Carousel Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: #f39c12;
    border-color: white;
    transform: scale(1.2);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ===== VIDEO INTERVIEW SECTION ===== */
.video-interview {
    background: #f8f9fa;
}

.video-interview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.video-section {
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.play-icon {
    color: white;
    font-size: 2rem;
    margin-left: 4px;
}

.video-info {
    padding: 1.5rem;
    text-align: center;
}

.video-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.video-info p {
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}

.video-duration {
    font-size: 0.9rem;
    color: #95a5a6;
    font-weight: 500;
}

.qa-section {
    width: 100%;
}

.interview-qa {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qa-item {
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qa-item:hover {
    background: #f8f9fa;
    border-radius: 1px;
    padding: 1rem;
}

.qa-item:last-child {
    border-bottom: none;
    padding-bottom: 1rem;
}

.qa-item.active {
    background: #f8f9fa;
    border-radius: 1px;
    padding: 1rem;
}

.question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 2rem;
}

.question::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8rem;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.qa-item.active .question::after {
    transform: rotate(180deg);
}

.answer-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Message Display Styles */
.message-display {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 1px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.message-display.active {
    opacity: 1;
    visibility: visible;
}

.message-container {
    width: 100%;
    max-width: 500px;
}

.message-bubble {
    position: relative;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.message-bubble.active {
    opacity: 1;
    transform: translateY(0);
}

.question-bubble {
    align-self: flex-start;
    margin-right: 20%;
}

.answer-bubble {
    align-self: flex-end;
    margin-left: 20%;
}

.message-content {
    padding: 0.8rem 1.2rem;
    border-radius: 1px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-bubble .message-content {
    background: #3498db;
    color: white;
}

.answer-bubble .message-content {
    background: white;
    color: #2c3e50;
    border: 1px solid #ecf0f1;
}

.bubble-tail {
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

.question-bubble .bubble-tail {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: #3498db;
}

.answer-bubble .bubble-tail {
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.answer-bubble .bubble-tail::after {
    content: '';
    position: absolute;
    right: -7px;
    top: -6px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: #ecf0f1;
}

.answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.translation {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #7f8c8d;
    font-style: italic;
    border-left: 3px solid #3498db;
    padding-left: 1rem;
}

.hero-bg {
    background-image: url("../img/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* full viewport height */
    width: 100%; /* avoid viewport scrollbar-induced overflow */
    position: relative;
    animation: heroZoom 24s ease-in-out infinite alternate;
  }
  
@keyframes heroZoom {
    0% { background-size: 100%; background-position: center; }
    100% { background-size: 106%; background-position: center 40%; }
}

/* Form submit button styling */
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.form-submit:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.form-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-submit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Background image variant for hero */
.hero-bg {
    background-image: url("../img/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* full viewport height */
    width: 100%; /* avoid viewport scrollbar-induced overflow */
    position: relative;
    animation: heroZoom 24s ease-in-out infinite alternate;
  }
  
@keyframes heroZoom {
    0% { background-size: 100%; background-position: center; }
    100% { background-size: 106%; background-position: center 40%; }
}
  
.about-section {
    background-color: #edf1f5;
    padding: 4rem 0;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}



/* ===== FEATURES SECTION ===== */
.features { background: transparent; }

.features-panels {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
    order: 2;
    flex: 1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.features-panels::-webkit-scrollbar {
    display: none;
}

/* Features panels container with navigation */
.features-panels-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    width: 100%;
}

.nav-arrow {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-prev {
    order: 1;
}

.nav-next {
    order: 3;
}

.feature-panel {
    flex: 1;
    max-width: 280px;
    text-align: left;
    min-width: 250px;
    padding: 0;
    margin: 0;
}

.feature-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.3;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

/* Add extra space under the first card's title */
.feature-panel:first-child .feature-panel-title {
    margin-bottom: 2.5rem;
}

.feature-panel-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-panel-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.feature-panel-image a {
    display: block;
    text-decoration: none;
}

.feature-panel-image a:hover img {
    transform: scale(1.05);
}

.feature-panel-text {
    color: #6b7280;
    line-height: 1.6;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

.feature-panel-text p {
    margin: 0;
    font-size: 0.95rem;
    padding-left: 0;
    margin-left: 0;
}

/* Center feature cards on mobile */
@media (max-width: 768px) {
    .features-panels-container { justify-content: center; }
    .features-panels {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }
    .feature-panel {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .feature-panel-title,
    .feature-panel-text { text-align: center; }
}



/* News flow section removed */

/* ===== MOVING CARDS (12 items, 6 visible) ===== */
.flow-cards-container {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.flow-cards-track {
    display: flex;
    gap: 16px;
    animation: flowCardsLTR 60s linear infinite;
    width: max-content;
}

.flow-card {
    flex: 0 0 calc((100vw - (5 * 16px)) / 6);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.flow-card-image { width: 100%; height: 220px; overflow: hidden; }
.flow-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.flow-card-content { padding: 1rem 1rem 1.25rem; }
.flow-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.4rem;
}
.flow-card-text { font-size: 0.95rem; color: #374151; line-height: 1.7; margin: 0; }

@keyframes flowCardsLTR {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc( (100vw + 16px) * -12 / 6 )); }
}

/* ===== COURSES SECTION ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: white;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.course-description {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #95a5a6;
}

.course-level {
    background: #e8f5e8;
    color: #27ae60;
    padding: 0.3rem 0.8rem;
    border-radius: 1px;
    font-weight: 500;
}

.course-duration {
    color: #7f8c8d;
}

/* ===== NEWS SECTION ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    
}
.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-date {
    color: #95a5a6;
}

.news-category {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 1px;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.4;
}

.news-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials { background: transparent; }

/* Japanese text specific styling */
.lang-jp .testimonial-comment {
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
}

.lang-jp .testimonial-title {
    line-height: 1.5;
    word-break: keep-all;
}

/* English text specific styling */
.lang-en .testimonial-comment {
    line-height: 1.6;
}

.lang-en .testimonial-title {
    line-height: 1.3;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    justify-items: start;
    align-items: start;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: #e74c3c;
    opacity: 0.2;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    overflow: visible;
}

.testimonial-comment {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-info h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
}

.star {
    color: #f39c12;
    font-size: 1.2rem;
}

/* Enhanced testimonial card styles */
.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid #f39c12;
}

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

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Load more button styles */
#load-more-container {
    margin-top: 3rem;
}

#load-more-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#load-more-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Testimonial card animation for scroll loading */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    min-width: 200px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow: visible;
    margin-bottom: 0.5rem;
}

.testimonial-date {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== J-BRIDGE SECTION ===== */
.j-bridge-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Noto Sans', sans-serif;
}

/* Improve text contrast on hero (J-Bridge) */
.j-bridge-hero .hero-content {
    background: rgba(0, 0, 0, 0.38);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.j-bridge-hero .hero-title,
.j-bridge-hero .hero-subtitle {
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0,0,0,0.65), 0 1px 0 rgba(0,0,0,0.25);
    -webkit-text-stroke: 0.3px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .j-bridge-hero .hero-content { padding: 0.75rem 1rem; border-radius: 12px; }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 255, 0, 0.2), rgba(173, 216, 230, 0.3));
    z-index: 2;
}

.bridge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,50 Q50,20 90,50" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') center/cover;
    z-index: 3;
}

.light-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 4;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    animation: titleSlideIn 1.2s ease-out 0.2s both;
}

.brand-accent {
    color: #007bff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    animation: subtitleFadeIn 1s ease-out 0.5s both;
}

.hero-cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: buttonsFadeIn 1s ease-out 0.8s both;
}

/* Hide J-Bridge hero buttons (For Companies / For Job Seekers) */
.hero-cta-buttons .enterprise-btn,
.hero-cta-buttons .jobseeker-btn { display: none !important; }

.cta-button {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.enterprise-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.jobseeker-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-gradient {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.cta-button:hover .btn-gradient {
    left: 100%;
}

/* J-Bridge specific animations */
@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes buttonsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* J-Bridge Structure Section Styles */
.j-bridge-structure {
    background: linear-gradient(rgba(248, 249, 250, 0.7), rgba(248, 249, 250, 0.7)), url('../img/j2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
}

.structure-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.structure-item {
    background: white;
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.structure-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.structure-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.structure-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e3f2fd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.learning-elements {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phrase {
    background: #007bff;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

.note {
    background: #ff6b35;
    color: white;
    padding: 0.3rem;
    border-radius: 50%;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(255,107,53,0.3);
}

.bridge-logo-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.bridge-logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.bridge-highlights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.highlight {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: highlightGlow 2s ease-in-out infinite;
}

.highlight:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.highlight:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 0.7s;
}

.highlight:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 1.4s;
}

@keyframes highlightGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.building-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.handshake-icon {
    font-size: 2rem;
    color: #007bff;
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

.structure-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.structure-description {
    color: #424242;
    line-height: 1.5;
    font-size: 0.95rem;
}

.structure-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* J-Bridge responsive design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .structure-diagram {
        gap: 1.5rem;
    }
    
    .structure-item {
        min-width: 180px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .structure-diagram {
        flex-direction: column;
        gap: 2rem;
    }
    
    .structure-arrow {
        transform: rotate(90deg);
    }
    
    .structure-item {
        min-width: 250px;
        padding: 2rem;
    }
    
    .structure-image {
        width: 100px;
        height: 100px;
    }
    
    .bridge-logo-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta-buttons {
        gap: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
    
    .j-bridge-structure {
        padding: 60px 0;
    }
    
    .structure-diagram {
        gap: 1.5rem;
    }
    
    .structure-item {
        min-width: 200px;
        padding: 1.5rem;
    }
    
    .structure-image {
        width: 80px;
        height: 80px;
    }
    
    .bridge-logo-text {
        font-size: 1.5rem;
    }
    
    .structure-title {
        font-size: 1.1rem;
    }
    
    .structure-description {
        font-size: 0.9rem;
    }
}

.j-bridge-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.step-description {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Step Visual Elements */
.step-visual {
    margin-bottom: 1.5rem;
}

.step-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.step-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.step-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.step-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Background Colors for Step Containers */
.light-blue-bg {
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
}

.navy-blue-bg {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.orange-bg {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.light-green-bg {
    background: linear-gradient(135deg, #86efac, #bbf7d0);
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.benefits-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

/* Main Visual (Left Column) */
.main-benefit-visual {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.main-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.main-benefit-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    animation: kenBurnsEffect 8s ease-in-out infinite alternate;
}

.world-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    pointer-events: none;
}

@keyframes kenBurnsEffect {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.05) translate(-10px, -10px);
    }
}

/* Benefits Grid (Right Column) */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInLeft 0.8s ease-out forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }
.benefit-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.benefit-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 120px;
}

.benefit-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.benefit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.benefit-image-container:hover .benefit-overlay {
    transform: translateY(0);
}

.benefit-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.benefit-description {
    font-size: 0.85rem;
    opacity: 0.9;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .benefits-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-benefit-image {
        height: 300px;
    }
    
    .benefit-image-container {
        height: 100px;
    }
    
    .benefit-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    }
    
    .benefit-title {
        font-size: 0.9rem;
    }
    
    .benefit-description {
        font-size: 0.8rem;
    }
}

/* ===== LEARNER BENEFITS SECTION ===== */
.learner-benefits-section {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    position: relative;
    overflow: hidden;
}

.learner-benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="ripples" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23ripples)"/></svg>');
    opacity: 0.3;
    animation: rippleEffect 20s linear infinite;
}

@keyframes rippleEffect {
    0% { transform: translateX(-20px) translateY(-20px); }
    100% { transform: translateX(20px) translateY(20px); }
}

.learner-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.learner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.learner-benefits-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

/* Learner Hero Visual */
.learner-hero-visual {
    position: relative;
}

.learner-hero-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.learner-hero-container:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.learner-hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.motivational-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.motivational-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 0.25rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.motivational-subtext {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Learner Benefits Grid */
.learner-benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.learner-benefit-card {
    animation: floatingCard 3s ease-in-out infinite;
}

.learner-benefit-card:nth-child(1) { animation-delay: 0s; }
.learner-benefit-card:nth-child(2) { animation-delay: 1s; }
.learner-benefit-card:nth-child(3) { animation-delay: 2s; }

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

.learner-benefit-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 140px;
    background: white;
}

.learner-benefit-image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

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

.learner-benefit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    color: white;
}

.learner-benefit-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: white;
}

.learner-benefit-description {
    font-size: 0.9rem;
    opacity: 0.9;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Career Ladder Section */
.career-ladder-section {
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.career-ladder-container {
    position: relative;
    text-align: center;
}

.career-ladder-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.ladder-silhouettes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.silhouette {
    position: absolute;
    width: 40px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    opacity: 0;
    animation: silhouetteFadeIn 2s ease-out forwards;
}

.silhouette-1 { top: 20%; left: 15%; animation-delay: 0.5s; }
.silhouette-2 { top: 35%; left: 25%; animation-delay: 1s; }
.silhouette-3 { top: 50%; left: 35%; animation-delay: 1.5s; }
.silhouette-4 { top: 65%; left: 45%; animation-delay: 2s; }

@keyframes silhouetteFadeIn {
    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .learner-benefits-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .learner-hero-image {
        height: 300px;
    }
    
    .learner-benefit-image-container {
        height: 120px;
    }
    
    .motivational-overlay {
        top: 10px;
        right: 10px;
        padding: 0.75rem 1rem;
    }
    
    .motivational-text {
        font-size: 1.2rem;
    }
    
    .motivational-subtext {
        font-size: 0.8rem;
    }
    
    .learner-benefit-title {
        font-size: 1rem;
    }
    
    .learner-benefit-description {
        font-size: 0.85rem;
    }
    
    .career-ladder-image {
        max-width: 100%;
    }
    
    .silhouette {
        width: 30px;
        height: 45px;
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cta-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

.cta-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff6b9d, #8b5cf6);
    opacity: 0.8;
    animation: sunsetGradient 8s ease-in-out infinite alternate;
}

@keyframes sunsetGradient {
    0% {
        background: linear-gradient(135deg, #ff6b35, #f7931e, #ff6b9d, #8b5cf6);
    }
    50% {
        background: linear-gradient(135deg, #f7931e, #ff6b9d, #8b5cf6, #ff6b35);
    }
    100% {
        background: linear-gradient(135deg, #ff6b9d, #8b5cf6, #ff6b35, #f7931e);
    }
}

/* Bridge People Animation */
.bridge-people {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.japanese-professionals {
    position: absolute;
    left: 10%;
    bottom: 20%;
    display: flex;
    gap: 1rem;
}

.international-learners {
    position: absolute;
    right: 10%;
    bottom: 20%;
    display: flex;
    gap: 1rem;
}

.person {
    width: 40px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    opacity: 0;
    animation: personWalk 3s ease-out forwards;
}

.person-1 { animation-delay: 0.5s; }
.person-2 { animation-delay: 0.7s; }
.person-3 { animation-delay: 0.9s; }
.person-4 { animation-delay: 1.1s; }
.person-5 { animation-delay: 1.3s; }
.person-6 { animation-delay: 1.5s; }

@keyframes personWalk {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.unity-highlight {
    position: absolute;
    left: 50%;
    bottom: 25%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: unityGlow 4s ease-out forwards;
    animation-delay: 2s;
}

@keyframes unityGlow {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
}

/* CTA Content */
.cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.cta-headline {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: headlineGlow 3s ease-in-out infinite alternate;
}

@keyframes headlineGlow {
    0% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 2px 2px 12px rgba(255, 255, 255, 0.2);
    }
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    position: relative;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    animation: buttonPulse 2s ease-in-out infinite;
    overflow: hidden;
}

.company-cta {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.jobseeker-cta {
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.button-shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 50px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

/* Hover Effects */
.company-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.4);
}

.company-cta:hover .button-glow {
    opacity: 1;
}

.jobseeker-cta:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.4);
}

.jobseeker-cta:hover .button-shadow {
    opacity: 0.8;
    transform: translateY(-3px);
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-headline {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .cta-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
        width: 280px;
    }
    
    .japanese-professionals,
    .international-learners {
        display: none;
    }
    
    .unity-highlight {
        width: 60px;
        height: 60px;
    }
    
    .person {
        width: 30px;
        height: 60px;
    }
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
}

.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    opacity: 0.3;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateX(-20px) translateY(-20px); }
    100% { transform: translateX(20px) translateY(20px); }
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.contact-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.contact-hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

/* Modern Contact Form Section */
.modern-contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    position: relative;
}

.modern-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.modern-form-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.modern-form-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: formSlideUp 0.8s ease-out;
}

/* Modern Alert */
.modern-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid;
    animation: alertSlideIn 0.5s ease-out;
}

.modern-alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
    color: #155724;
}

.modern-alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: #dc3545;
    color: #721c24;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    opacity: 0.9;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modern-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.modern-form-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Form Layout */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Form Groups */
.modern-form-group {
    position: relative;
}

.field-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    display: block;
}

.yard-value {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    opacity: 0.8;
}

.input-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.input-container:focus-within {
    background: white;
    border-color: #27ae60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
    transform: translateY(-2px);
}

.input-container.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.input-container.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

/* Modern Inputs */
.modern-input,
.modern-select,
.modern-textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #2c3e50;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.modern-textarea {
    padding: 1rem;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    outline: none;
}

.modern-input::placeholder,
.modern-textarea::placeholder {
    color: #bdc3c7;
}





/* Border Animation */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.input-container:focus-within .input-border {
    transform: scaleX(1);
}

/* Character Count */
.character-count {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Validation Messages */
.validation-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2rem;
    transition: all 0.3s ease;
}

.validation-message.error {
    color: #e74c3c;
}

.validation-message.success {
    color: #27ae60;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.modern-submit-btn {
    position: relative;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 200px;
}

.modern-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.3);
}

.modern-submit-btn:active {
    transform: translateY(-1px);
}

.modern-submit-btn.loading {
    pointer-events: none;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: opacity 0.3s ease;
}

.modern-submit-btn.loading .btn-content {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-submit-btn.loading .btn-loader {
    opacity: 1;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-form-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-form-title {
        font-size: 2rem;
    }
    
    .modern-form-subtitle {
        font-size: 1rem;
    }
    
    .modern-input,
    .modern-select,
    .modern-textarea {
        padding: 1rem;
    }
    
    .modern-textarea {
        padding: 1rem;
    }
    
    .modern-submit-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    /* FAQ Mobile Responsive */
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-center {
        width: 100%;
        height: 300px;
        order: -1;
    }
    
    .faq-left,
    .faq-right {
        gap: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .question-title {
        font-size: 0.9rem;
    }
    
    .answer-content {
        padding: 1.5rem;
    }
    
    .answer-title {
        font-size: 1.1rem;
    }
    
    .answer-text {
        font-size: 0.9rem;
    }
}

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

.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: formSlideUp 0.8s ease-out;
}

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

.contact-submit-btn {
    position: relative;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    animation: iconBounce 2s ease-in-out infinite;
}

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

/* Corporate Information Section */
.corporate-info-section {
    position: relative;
    padding: 5rem 0;
    background: white;
    overflow: hidden;
}

.corporate-info-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.corporate-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.corporate-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
    z-index: 2;
}

.corporate-info-section .container {
    position: relative;
    z-index: 3;
}

.corporate-section-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.corporate-info-simple {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 3rem;
}

.corporate-left-info,
.corporate-right-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: left;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    transform: translateX(10px);
    padding-left: 1rem;
}

.info-icon-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    font-size: 3rem;
    z-index: 2;
    position: relative;
}

.info-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    opacity: 0.15;
    animation: pulse 2s infinite;
}

.info-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-description {
    color: #34495e;
    line-height: 1.8;
    font-size: 1.1rem;
}

.info-description strong {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Contact Methods Section */
.contact-methods-section {
    padding: 80px 0;
    background: white;
}

.contact-section-title {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-section-subtitle {
    color: #7f8c8d;
    margin-bottom: 3rem;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-method-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.method-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
}

.method-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-method-card:hover .method-glow {
    opacity: 1;
}

.method-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.method-description {
    color: #7f8c8d;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.faq-section-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left and Right Question Columns */
.faq-left,
.faq-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-question {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.faq-question:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: #27ae60;
}

.faq-question.active {
    border-color: #27ae60;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.2);
}

.question-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.question-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

/* Center Image Section */
.faq-center {
    position: relative;
    width: 400px;
    height: 400px;
}

.faq-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.faq-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* Question Bubble Styles */
.question-bubble {
    position: absolute;
    top:    0px;
    left: 20px;
    background: #e3f2fd;
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.question-bubble.active {
    opacity: 1;
    visibility: visible;
    animation: bubblePopLeft 0.5s ease-out;
}

/* Answer Bubble Styles */
.answer-bubble {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.answer-bubble.active {
    opacity: 1;
    visibility: visible;
    animation: bubblePopRight 0.5s ease-out;
}

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



.bubble-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.bubble-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
    margin: 0;
}

.question-bubble .bubble-tail {
    position: absolute;
    bottom: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e3f2fd;
}

.answer-bubble .bubble-tail {
    position: absolute;
    top: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

@keyframes bubblePopLeft {
    0% {
        transform: translateX(-20px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.1);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes bubblePopRight {
    0% {
        transform: translateX(20px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(10px) scale(1.1);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.placeholder-text {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}





/* Final CTA Section */
.final-cta-section {
    padding: 80px 0;
    background: white;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
    opacity: 0.3;
    animation: ctaFloat 15s linear infinite;
}

@keyframes ctaFloat {
    0% { transform: translateX(-30px) translateY(-30px); }
    100% { transform: translateX(30px) translateY(30px); }
}

.final-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: #2c3e50;
    position: relative;
    z-index: 2;
}

.final-cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #7f8c8d;
    position: relative;
    z-index: 2;
}

.final-cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.final-cta-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phone-btn {
    background: #27ae60;
    color: white;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.email-btn {
    background: transparent;
    color: #27ae60;
    border: 2px solid #27ae60;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.1);
}

.final-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.phone-btn:hover {
    background: #2ecc71;
}

.email-btn:hover {
    background: #27ae60;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-form-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .corporate-info-simple {
        flex-direction: column;
        gap: 3rem;
    }
    
    .corporate-left-info,
    .corporate-right-info {
        width: 100%;
    }
    
    .corporate-info-card {
        padding: 2rem;
    }
    
    .info-title {
        font-size: 1.4rem;
    }
    
    .info-description {
        font-size: 1rem;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-left, .faq-right {
        order: 2;
    }
    
    .faq-center {
        order: 1;
        width: 100%;
        height: 300px;
    }
    
    .faq-question {
        margin-bottom: 1rem;
    }
    
    .question-bubble {
        max-width: 160px;
        padding: 1rem;
        top: 15px;
        left: 15px;
    }
    
    .answer-bubble {
        max-width: 160px;
        padding: 1rem;
        bottom: 15px;
        right: 15px;
    }
    
    .bubble-title {
        font-size: 1rem;
    }
    
    .bubble-text {
        font-size: 0.8rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .final-cta-button {
        width: 280px;
        justify-content: center;
    }
    
    .final-cta-title {
        font-size: 2rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

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

.form-submit {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.company-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

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

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #e74c3c;
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* footer legal links removed per design */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: start;
        align-items: start;
    }
    
    .testimonial-card {
        min-height: 450px;
    }
    
    .carousel-title {
        font-size: 1.6rem;
    }
    
    .carousel-description {
        font-size: 1.1rem;
    }
    
    .carousel-caption {
        padding: 2rem;
    }
    
    .carousel-comment p {
        font-size: 1rem;
    }
    
    .video-interview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title { font-size: 2.2rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .courses-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        justify-items: start;
        align-items: start;
    }
    
    .testimonial-card {
        min-height: 400px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Carousel mobile styles */
    .carousel-title {
        font-size: 1.4rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .carousel-caption {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .carousel-comment {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .carousel-comment p {
        font-size: 0.9rem;
        line-height: 1.6;
        padding-left: 1.5rem;
    }
    
    .carousel-comment p::before {
        font-size: 2rem;
        top: -0.3rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Video interview mobile styles */
    .video-interview-grid {
        gap: 1.5rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h4 {
        font-size: 1.1rem;
    }
    
    .interview-text {
        padding: 1rem;
    }
    
    .question {
        font-size: 1rem;
    }
    
    .answer {
        font-size: 0.9rem;
    }
    
    .translation {
        font-size: 0.8rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle { font-size: 1rem; }
    
    .section {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        justify-items: start;
        align-items: start;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        min-height: 350px;
    }
    
    .feature-card,
    .course-card,
    .news-card {
        padding: 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===== COURSES PAGE STYLES ===== */
.course-card {
    transition: all 0.3s ease;
}

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

.course-image img {
    transition: all 0.3s ease;
}

.course-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Hero Slideshow Styles */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
}

/* ===== ULTRA-MOBILE OPTIMIZATIONS (<= 435px) ===== */
@media (max-width: 435px) {
    html { font-size: 15px; }
    body { line-height: 1.55; }

    /* Global image scaling */
    img { max-width: 100%; height: auto; }

    /* Header */
    .header-content { padding: 0.4rem 0; }
    .logo-img { height: 28px; margin-right: 8px; }
    .logo-text { font-size: 1rem; }

    /* Hero */
    .hero { min-height: 75vh; height: 75vh; padding: 0 14px; }
    .hero-content { max-width: 92%; padding: 0 6px; }
    .hero-title { font-size: 1.7rem; line-height: 1.25; animation: fadeInUp 0.5s ease-out both; }
    .hero-subtitle { font-size: 0.95rem; margin-top: 0.5rem; animation: fadeInUp 0.6s ease-out both; }
    .read-more-btn, .hero-cta { padding: 0.7rem 1.4rem; font-size: 0.95rem; animation: fadeInUp 0.7s ease-out both; }

    /* Hero slideshow/carousels */
    .hero-carousel { height: 75vh; }
    .carousel-caption { max-width: 92%; padding: 1rem; border-radius: 14px; }
    .carousel-title { font-size: 1.25rem; }
    .carousel-description { font-size: 0.95rem; }
    .carousel-comment p { font-size: 0.9rem; line-height: 1.6; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 18px; }
    .dot { width: 9px; height: 9px; }

    /* Cards and grids */
    .features-panels-container { margin-top: 2rem; }
    .feature-panel { padding: 1rem; animation: fadeInUp 0.5s ease-out both; }
    .feature-panel-image img { height: auto; }

    .courses-grid, .news-grid, .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .course-image { height: auto; }
    .course-image img { height: auto; object-fit: contain; }
    .news-image { height: auto; }
    .news-image img { height: auto; object-fit: contain; }
    .testimonial-image { height: auto; }
    .testimonial-image img { height: auto; object-fit: contain; }

    /* Flow cards ticker */
    .flow-card { flex: 0 0 260px; }
    .flow-card-image { height: 160px; }

    /* Sections */
    .section { padding: 48px 0; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.95rem; }

    /* J-Bridge specifics */
    .j-bridge-hero { height: 75vh; }
    .j-bridge-structure { padding: 60px 0; }

    /* Contact */
    .modern-form-card { padding: 1.5rem; }
    .modern-submit-btn { width: 100%; padding: 1rem 1.5rem; }

    /* Footer */
    .footer-main { grid-template-columns: 1fr; }
    .footer-title { font-size: 1.3rem; }
    .footer-subtitle { font-size: 1rem; }
    .copyright { font-size: 0.85rem; }
}

/* Replace home hero text animations with unified fade-in-up and remove letter/slide effects */
/* Home hero (non J-Bridge) */
.hero .hero-title,
.hero .hero-subtitle,
.hero .read-more-btn {
    animation: none;
}

/* Apply middle-section style fade-in from below for home hero */
.hero .hero-title { animation: fadeInUp 0.6s ease-out 0.0s both; }
.hero .hero-subtitle { animation: fadeInUp 0.6s ease-out 0.1s both; }
.hero .read-more-btn { animation: fadeInUp 0.6s ease-out 0.2s both; }

/* Keep J-Bridge hero animations intact */
.j-bridge-hero .hero-title { animation: titleSlideIn 1.2s ease-out 0.2s both; }
.j-bridge-hero .hero-subtitle { animation: subtitleFadeIn 1s ease-out 0.5s both; }
.j-bridge-hero .hero-cta-buttons { animation: buttonsFadeIn 1s ease-out 0.8s both; }

/* === Home Hero Per-Character Reveal === */
/* Characters fade up one by one; scoped to generic home hero only */
.hero .char {
	display: inline-block;
	opacity: 0;
	transform: translateY(8px) scale(0.98);
	animation: charFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* Inline Language Switcher (JA / EN) */
.inline-lang { 
	color: #ffffff; 
	text-decoration: none; 
	font-weight: 700; 
	letter-spacing: 0.06em; 
	transition: color 0.2s ease; 
}
.inline-lang:hover { color: #f3f4f6; }
.inline-lang.active { 
	position: relative; 
}
.inline-lang.active::after { 
	content: ''; 
	position: absolute; 
	left: 0; 
	right: 0; 
	bottom: -6px; 
	height: 2px; 
	background: #ffffff; 
	border-radius: 2px; 
}
.lang-sep { 
	margin: 0 10px; 
	color: #ffffff; 
	opacity: 0.9; 
	font-weight: 600; 
}
.language-switcher.inline-lang { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.language-switcher.inline-lang .lang-active-indicator {
	position: absolute;
	bottom: -8px;
	height: 3px;
	background: var(--grad-neon);
	border-radius: 2px;
	transition: left 0.25s ease, width 0.25s ease, opacity 0.25s ease;
	opacity: 0.9;
}

/* Hide legacy indicator bar under JA/EN */
.language-switcher.inline-lang .lang-active-indicator { display: none; }

/* Ensure header context renders inline language nicely */
.header .inline-lang { font-size: 0.95rem; }
@media (max-width: 768px) { .header .inline-lang { font-size: 0.95rem; } }

/* Fix actual link class used in markup: .lang-inline (remove underline, add highlight) */
.lang-inline {
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #4b5563;
    padding: 2px 8px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.language-switcher a.lang-inline,
.language-switcher a.lang-inline:hover,
.language-switcher a.lang-inline:focus,
.language-switcher a.lang-inline:active,
.language-switcher a.lang-inline:visited { text-decoration: none !important; border-bottom: none !important; box-shadow: none; }
.lang-inline:hover {
    background: linear-gradient(135deg, #f3e8ff, #e0e7ff);
    color: #111827;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}
.lang-inline.active {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* === Courses Page Responsive Enhancements === */
/* Hero slideshow already present, ensure no text clipping */
#hero-slideshow { position: relative; overflow: hidden; }
#hero-slideshow .slide { background-size: cover; background-position: center; }

/* Feature cards layout: stack on small screens */
.features .feature-content-wrapper { display: flex; align-items: center; gap: 2rem; }
.features .feature-image img { width: 100%; height: 250px; object-fit: cover; border-radius: 1px; }

@media (max-width: 992px) {
	.features .feature-content-wrapper { gap: 1.25rem; }
	.features .feature-image img { height: 220px; }
}
@media (max-width: 768px) {
	.features .feature-content-wrapper { flex-direction: column; align-items: stretch; }
	.features .feature-image { flex: 0 0 auto !important; width: 100% !important; }
	.features .feature-image img { height: auto; object-fit: contain; }
	.feature-title { font-size: 1.1rem; }
	.feature-subtitle { font-size: 0.95rem; }
}
@media (max-width: 480px) {
	.features .feature-content-wrapper { gap: 1rem; }
	.features .feature-image img { height: auto; object-fit: contain; }
}

/* Courses grid: ensure img never crop text on small screens */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
@media (max-width: 768px) { .courses-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Course image scaling */
.course-image { height: 200px; }
.course-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
@media (max-width: 576px) {
	.course-image { height: auto; }
	.course-image img { height: auto; object-fit: contain; }
}
@media (max-width: 400px) {
	.course-image { height: auto; }
	.course-image img { height: auto; object-fit: contain; }
}

/* Typography scaling for course cards */
@media (max-width: 768px) {
	.course-title { font-size: 1.15rem; }
	.course-description { font-size: 0.95rem; line-height: 1.6; }
}
@media (max-width: 480px) {
	.course-title { font-size: 1.05rem; }
	.course-description { font-size: 0.9rem; }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
	.course-card:hover { transform: none !important; box-shadow: none !important; }
	.features .feature-image img { transition: none !important; }
}

/* Generic animation utilities for scroll storytelling */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate="scale-in"] { transform: scale(0.96); }
[data-animate="scale-in"].is-visible { transform: scale(1); }
[data-animate="fade-left"] { transform: translateX(20px); }
[data-animate="fade-left"].is-visible { transform: translateX(0); }
[data-animate="fade-right"] { transform: translateX(-20px); }
[data-animate="fade-right"].is-visible { transform: translateX(0); }

/* Scroll storytelling structure */
.scroll-story { position: relative; }
.story-sticky { position: sticky; top: 80px; height: calc(100vh - 80px); display: grid; place-items: center; }
.story-visual { width: 100%; max-width: 820px; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); background: #000; }
.story-steps { display: flex; flex-direction: column; gap: 40px; }
.story-step { padding: 1.25rem 1rem; background: rgba(255,255,255,0.75); border: 1px solid rgba(0,0,0,0.06); border-radius: 1px; backdrop-filter: blur(8px); }
.story-step.is-active { outline: 2px solid var(--accent); background: rgba(255,255,255,0.92); }

/* Lightweight parallax */
.parallax-container { position: relative; perspective: 800px; overflow: hidden; }
.parallax-layer { position: absolute; inset: 0; will-change: transform; transform: translateZ(0); }
.parallax-layer[data-depth="0.1"] { transform: translateZ(-60px) scale(1.08); }
.parallax-layer[data-depth="0.2"] { transform: translateZ(-120px) scale(1.16); }


/* Accent gradient button variant */
.btn-accent { background: var(--grad-neon); color: #ffffff; }
.btn-accent:hover { filter: brightness(1.05); }

/* ===== LANGUAGE SWITCHER STYLES (moved from header.php) ===== */
.language-switcher {
    position: relative;
    z-index: 1000;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 60px;
    justify-content: center;
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.lang-toggle.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.lang-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.lang-toggle.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    z-index: 1001;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    color: #667eea;
    transform: translateX(4px);
}

.lang-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.lang-option.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
    border-radius: 0 2px 2px 0;
}

.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    justify-content: center;
}

.mobile-lang-btn:hover {
    border-color: rgb(158, 160, 165);
    color: #997487;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.mobile-lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, rgb(228, 221, 235) 100%);
    border-color: rgb(201, 206, 226);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Mobile pull-down nav (header-local styles) */
@media (max-width: 991px) {
    /* Right-side drawer menu (not full screen) */
    .mobile-nav { 
        display: block; 
        position: fixed; 
        top: 60px; 
        right: 0; 
        left: auto; 
        width: 82vw; 
        max-width: 360px; 
        height: calc(100vh - 60px); 
        background: #fff; 
        box-shadow: -8px 0 20px rgba(0,0,0,0.12); 
        transform: translateX(100%); 
        transition: transform 0.3s ease; 
        z-index: 1000; 
        overflow-y: auto; 
        border-left: 1px solid #eee; 
    }
    .mobile-nav.open { transform: translateX(0); }
    .mobile-nav-list { list-style: none; margin: 0; padding: 8px 0; }
    .mobile-nav-item { border-bottom: 1px solid #eee; }
    .mobile-nav-link { 
        display: flex; 
        align-items: center; 
        gap: 10px; 
        padding: 14px 18px; 
        color: #333; 
        text-decoration: none; 
    }
    .mobile-nav-link:hover { background: #f7f7f7; }
    /* Hide language switcher inside drawer */
    .mobile-language-switcher { display: none; }
    body.no-scroll { overflow: hidden; }
}

/* ===== HOME PAGE STYLES (moved from home.php) ===== */
/* Mobile-first base styles */
* {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Features Section */
.features-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-panel {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 12px;
    background: white;
}

.feature-panel-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-panel-image {
    margin-bottom: 1rem;
}

.feature-panel-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.feature-panel-text p {
    color: #666;
    line-height: 1.6;
}

/* Flow Cards Section */
.flow-cards-container {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.flow-cards-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 45s linear infinite;
    width: max-content;
}

.flow-card {
    flex: 0 0 300px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

/* Mobile: Show 1 card */
@media (max-width: 767px) {
    .flow-card {
        flex: 0 0 280px;
    }
    
    .hero {
        height: 100vh;
        padding: 1rem;
        position: relative;
    }
    
    .hero-image {
        object-position: 20% center;
        object-fit: cover;
    }
    
    /* Center hero text on mobile (guaranteed center) */
    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 32px);
        text-align: center;
        padding: 0 16px;
        z-index: 3;
        display: block;
    }

    /* Override reserved widths from typewriter for small screens */
    .hero .hero-title,
    .hero .hero-subtitle {
        width: 100% !important;
        display: block;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .read-more-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    /* Mobile navigation adjustments */
    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-nav-prev {
        left: 10px;
    }
    
    .hero-nav-next {
        right: 10px;
    }
    
    .hero-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
}

.flow-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.flow-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flow-card-content {
    padding: 1.5rem;
}

.flow-card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.flow-card-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Learning Columns */
.learning-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.learning-column.reverse {
    flex-direction: column;
}

.learning-image {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
}

.learning-image img {
    width: 100%;
    height: auto;
    display: block;
}

.learning-content {
    flex: 1;
    max-width: 520px;
}

.learning-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.learning-content .section-subtitle {
    text-align: left;
    margin: 0;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
}

.testimonial-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

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

.testimonial-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.testimonial-rating {
    color: #f39c12;
    margin-bottom: 1rem;
}

.testimonial-comment {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author h4 {
    color: #333;
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    color: #666;
    font-size: 0.9rem;
}

/* Ultra-small screens: prevent cropping of img with text */
@media (max-width: 400px) {
    /* Flow cards */
    .flow-card-image { height: auto; }
    .flow-card-image img { height: auto; object-fit: contain; }

    /* Learning columns */
    .learning-image { height: auto; }
    .learning-image img { height: auto; object-fit: contain; }

    /* Testimonials img */
    .testimonial-image { height: auto; }
    .testimonial-image img { height: auto; object-fit: contain; }

    /* Hero text sizing tweaks for very small screens */
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.95rem; }
}

/* CTA Section */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-cta:hover {
    transform: translateY(-2px);
}

.btn-dark {
    display: inline-block;
    padding: 1rem 2rem;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: #555;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .features-panels {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .hero-image {
        object-position: 25% center;
    }
}

@media (min-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .features-panels {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .learning-column {
        flex-direction: row;
        gap: 3rem;
    }
    
    .learning-column.reverse {
        flex-direction: row-reverse;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Flow Cards - Show 4 on desktop */
    .flow-card {
        flex: 0 0 280px;
    }
    
    .hero-image {
        object-position: 30% center;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Pause animation on hover */
.flow-cards-container:hover .flow-cards-track {
    animation-play-state: paused;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .flow-cards-container:hover .flow-cards-track {
        animation-play-state: running;
    }
    
    .read-more-btn:hover,
    .hero-cta:hover,
    .btn-dark:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .flow-card,
    .testimonial-card,
    .feature-panel {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .flow-cards-track {
        animation: none;
    }
    
    .read-more-btn:hover,
    .hero-cta:hover,
    .btn-dark:hover {
        transform: none;
    }
    
    .hero-image {
        transition: none;
    }
}

/* ===== VOICES PAGE STYLES (moved from voices.php) ===== */
/* Base Responsive Styles */
* {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section Responsive */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    width: 100%;
    height: 100vh;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.carousel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.carousel-caption {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.carousel-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.carousel-comment {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Carousel Navigation */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

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

.testimonial-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.testimonial-rating {
    color: #f39c12;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-comment {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: #666;
    font-size: 0.9rem;
}

/* Video Interview Section */
.video-interview {
    background: #f8f9fa;
}

.video-interview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.play-icon {
    font-size: 2rem;
    margin-left: 5px;
}

.video-info h4 {
    color: #333;
    margin-bottom: 1rem;
}

/* Q&A Section */
.qa-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.qa-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.qa-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.question {
    color: #333;
    cursor: pointer;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0;
    position: relative;
    user-select: none;
}

.question:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #666;
    font-size: 0.8rem;
}

.qa-item.active .question::after {
    transform: translateY(-50%) rotate(180deg);
}

.answer-content {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.translation {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* CTA Section */
.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-cta:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .carousel-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .video-interview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-carousel {
        height: 80vh;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-description {
        font-size: 1.1rem;
    }
    
    .carousel-comment {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-carousel {
        height: 70vh;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .carousel-comment {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-image {
        height: 150px;
    }
    
    .video-wrapper {
        margin-bottom: 0.5rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        font-size: 1.5rem;
    }
    
    .qa-section {
        padding: 1.5rem;
    }
    
    .question {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .answer-content {
        padding: 0.8rem;
    }
    
    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .carousel-title {
        font-size: 1.3rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
    
    .carousel-comment {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 0.8rem;
    }
    
    .testimonial-image {
        height: 120px;
    }
    
    .testimonial-title {
        font-size: 1.1rem;
    }
    
    .video-interview-grid {
        gap: 1.5rem;
    }
    
    .qa-section {
        padding: 1rem;
    }
    
    .question {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .answer-content {
        padding: 0.6rem;
    }
}

/* Ultra-small screens: ensure text img scale without cropping */
@media (max-width: 400px) {
    .carousel-image img { height: auto; object-fit: contain; }
    .testimonial-image { height: auto; }
    .testimonial-image img { height: auto; object-fit: contain; }
    .video-wrapper video { height: auto; }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .carousel-arrow {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .carousel-arrow:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .testimonial-card:hover {
        transform: none;
    }
    
    .hero-cta:hover {
        transform: none;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .carousel-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .hero-carousel,
    .carousel-arrow,
    .carousel-dots,
    .video-wrapper,
    .play-button {
        display: none !important;
    }
    
    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* Ultra-small screens: ensure course img with text scale properly */
@media (max-width: 400px) {
    .course-image img { height: auto !important; object-fit: contain !important; }
}


/* ===== TYPOGRAPHY THEMES (five styles) ===== */
/* Utilities */
.font-rounded { font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
.font-modern { font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
.font-humanist { font-family: 'BIZ UDGothic', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
.font-mincho { font-family: 'Noto Serif JP', serif !important; }
.font-pop { font-family: 'Hachi Maru Pop', 'M PLUS Rounded 1c', cursive !important; }

/* Demonstration mappings (safe, non-invasive) */
.nav-link, .inline-lang, .mobile-lang-btn { font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.hero-cta, .btn-dark, .read-more-btn, .modern-submit-btn, .contact-submit-btn { font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.cta-headline, .final-cta-title, .section-title { font-family: 'Noto Serif JP', serif; }
.testimonial-comment, .news-excerpt, .course-description { font-family: 'BIZ UDGothic', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.phrase, .badge-pop { font-family: 'Hachi Maru Pop', 'M PLUS Rounded 1c', cursive; }


/* ========================================
    HERO SLIDER STYLES
    Background image slider functionality
======================================== */

/* Hero Section Base */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.hero-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0), rgba(118, 75, 162, 0));
    z-index: 2;
}



/* Image Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-indicator.active {
    background: white;
    border-color: white;
}

/* Hero Content */
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.read-more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
}

/* Pagination Info */
.hero-pagination-info {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    z-index: 10;
    text-align: center;
}

.hero-pagination-counter {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hero {
        height: 100vh;
        padding: 1rem;
    }
    
    .hero-image {
        object-position: 20% center;
        object-fit: cover;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .read-more-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .hero-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
    
    .hero-pagination-info {
        bottom: 60px;
        font-size: 0.8rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-indicator {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-image {
        transition: none;
    }
}

/* Ultra-small screens: make hero and cards text-img fully visible */
@media (max-width: 400px) {
    #news-hero { height: auto !important; min-height: auto !important; }
    #news-hero img { height: auto !important; object-fit: contain !important; }
    .news-image img { height: auto; object-fit: contain; }
}