:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --background-color: #ffffff;
  --background-alt: #f9fafb;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --border-radius: 0.375rem;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

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

body {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--background-color);
}

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

ul {
  list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background-color);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 500;
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.language-toggle:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 10;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  margin-bottom: 6px;
  transition: var(--transition);
}

.mobile-menu-toggle span:last-child {
  margin-bottom: 0;
}

.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);
}

/* Mega Menu - Fixed Version */
.has-mega-menu {
  position: relative;
}

.services-link i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  max-width: 90vw;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}

.mega-menu-container {
  width: 100%;
  padding: 0 2rem;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
}

.mega-menu-column h3 {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.mega-menu-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-menu-column a {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition);
}

.mega-menu-column a:hover {
  color: var(--primary-color);
}

.view-all-link {
  position: absolute;
  top: 0;
  right: 0;
}

.view-all-link a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-link a:hover {
  color: var(--primary-dark);
}

.languages-column {
  position: relative;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.languages-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: var(--background-alt);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  line-height: 1.2;
}

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

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

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Services Section */
.services {
  padding: 5rem 0;
}

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

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
}

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

.service-card {
  background-color: var(--background-alt);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.service-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

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

.service-link {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--primary-dark);
}

/* Languages Section */
.languages {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

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

.language-group {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.language-group h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.language-list span {
  background-color: var(--background-alt);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

.language-list span:hover {
  background-color: var(--primary-light);
  color: white;
}

.languages-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Industries Section */
.industries {
  padding: 5rem 0;
}

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

.industry-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 200px;
  transition: var(--transition);
}

.industry-card:hover {
  transform: scale(1.03);
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.industry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  color: white;
}

.industry-overlay h3 {
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

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

.testimonial-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

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

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1.5rem;
}

.cta-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.cta-section .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background-color: var(--background-alt);
}

.cta-section .btn-secondary {
  border-color: white;
  color: white;
}

.cta-section .btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Footer */
.site-footer {
  background-color: var(--text-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  margin-bottom: 1.5rem;
}

.footer-logo p {
  opacity: 0.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-nav-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-nav-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-column a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-nav-column a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-middle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.contact-info h3,
.social-links h3,
.newsletter h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  opacity: 0.7;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  opacity: 0.7;
  font-size: 0.875rem;
  transition: var(--transition);
}

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

/* Language Toggle */
.jp-active .en {
  display: none;
}

body:not(.jp-active) .jp {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .languages-column {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    padding: 1rem;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .header-actions {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 1rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .footer-top,
  .footer-middle {
    grid-template-columns: 1fr;
  }
  
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .mega-menu {
    position: static;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
  }
  
  .has-mega-menu:hover .mega-menu {
    display: none; /* Prevent hover on mobile */
  }
  
  .mega-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .mega-menu-container {
    padding: 0 1rem;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
  
  .languages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .footer-nav {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive adjustments for mega menu */
@media (max-width: 1024px) {
  .mega-menu {
    width: 90vw;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .languages-column {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .mega-menu {
    position: static;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
  }
  
  .has-mega-menu:hover .mega-menu {
    display: none; /* Prevent hover on mobile */
  }
  
  .mega-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .mega-menu-container {
    padding: 0 1rem;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
  
  .languages-grid {
    grid-template-columns: 1fr;
  }
}



/* Add the following styles for the sidebar menu */

.content-with-sidebar {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  flex: 1;
}

.sidebar-menu {
  width: 280px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

.sidebar-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 0;
  color: #495057;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.sidebar-nav a:hover {
  color: #0056b3;
}

/* Responsive adjustments for sidebar */
@media (max-width: 992px) {
  .content-with-sidebar {
    flex-direction: column;
  }

  .sidebar-menu {
    width: 100%;
    margin-bottom: 2rem;
    position: static;
  }
}
