/* Elegant Language Selector */
.lang-switch {
  display: flex;
  justify-content: flex-end;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.language-selector {
  position: relative;
}

.lang-toggle {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 80px;
}

.lang-toggle:hover {
  background: rgba(227, 13, 13, 0.9);
  border-color: rgba(227, 13, 13, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(227, 13, 13, 0.4);
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
}

.flag-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chevron {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.language-selector.active .chevron {
  transform: rotate(90deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

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

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.lang-option:hover {
  background: rgba(227, 13, 13, 0.8);
  transform: translateX(4px);
}

.lang-name {
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-lang-switch{
  margin-left: -65%;
   margin-bottom: 20px;
}
/* Mobile responsive design */
@media (max-width: 768px) {
  .lang-switch {
    top: 15px;
    right: 15px;
  }
  
  .lang-toggle {
    padding: 6px 12px;
    min-width: 70px;
  }
  
  .current-lang {
    font-size: 0.8rem;
  }
  
  .flag-icon {
    font-size: 1rem;
  }
  
  .lang-dropdown {
    min-width: 120px;
  }
  
  .lang-option {
    padding: 10px 14px;
  }
  
  .footer-lang-switch {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-left: 0;
    margin-bottom: 20px;
  }
  
  .footer-lang-switch .lang-switch {
    position: static;
    justify-content: center;
  }
}
