/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
}

/* ===== Flat display (PC) ===== */
.lang-flat {
  display: flex;
  align-items: center;
}

.lang-flat a,
.lang-flat span.current-lang {
  display: inline-block;
  padding: 4px 6px 3px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
  vertical-align: middle;
}

.lang-flat a {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.lang-flat a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.lang-flat span.current-lang {
  color: #b20d0d;
  background: #fff;
  cursor: default;
  margin: 0 5px;
}

.lang-flat .lang-separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 1px;
  font-size: 11px;
}

/* ===== Dropdown (Mobile) ===== */
.lang-dropdown {
  display: none;
  position: relative;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: #fff;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.lang-dropdown-toggle:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-globe-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-current-label {
  font-size: 0.8rem;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 80px;
  overflow: hidden;
  z-index: 1000;
  animation: langDropdownFade 0.15s ease;
}

@keyframes langDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-dropdown.open .lang-dropdown-menu {
  display: block;
}

.lang-dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.lang-dropdown-item:hover {
  background: #f5f5f5;
}

.lang-dropdown-active {
  color: #b20d0d;
  background: #fef2f2;
  cursor: default;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .lang-flat {
    display: none;
  }

  .lang-dropdown {
    display: block;
  }
}

/* Japanese Hero Overlay */
.hero-text-overlay {
  position: relative;
  overflow: hidden;
  background: #f5f0e8;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}

.hero-bg-pattern {
  position: relative;
  width: 100%;
  padding: 60px 40px;
  background-image: url('../images/pc_top.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-red-circle {
  display: none;
}

.hero-title {
  position: relative;
  z-index: 2;
  color: #b20d0d;
  font-size: 48px;
  line-height: 1.3;
  margin-bottom: 20px;
  -webkit-text-stroke: 1px #b20d0d;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

.hero-subtitle {
  position: relative;
  z-index: 2;
  color: #b20d0d;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-note {
  position: relative;
  z-index: 2;
  color: #888;
  font-size: 13px;
}

@media (max-width: 768px) {
  .hero-text-overlay {
    min-height: 250px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-note {
    font-size: 11px;
  }

  .hero-red-circle {
    width: 180px;
    height: 180px;
    top: -15%;
    left: -10%;
  }
}