#lofi-language-switcher {
  position: fixed;
  z-index: 2147483647;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid #4f3c3c;
  border-radius: 999px;
  color: #4f3c3c;
  background: rgba(251, 240, 220, 0.96);
  box-shadow: 0 5px 0 rgba(79, 60, 60, 0.95);
  font-family: Arial, "Noto Sans JP", sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#lofi-language-switcher button {
  min-width: 42px;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font: 700 11px/1 Arial, "Noto Sans JP", sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

#lofi-language-switcher button:hover,
#lofi-language-switcher button:focus-visible {
  color: #ffffff;
  background: #4f3c3c;
  outline: none;
}

#lofi-language-switcher button[aria-pressed="true"] {
  color: #ffffff;
  background: #ff6800;
}

#lofi-language-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#lofi-legal-translation-notice {
  position: fixed;
  z-index: 2147483646;
  left: 22px;
  bottom: 22px;
  width: min(430px, calc(100vw - 210px));
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid rgba(79, 60, 60, 0.35);
  border-radius: 10px;
  color: #4f3c3c;
  background: rgba(251, 240, 220, 0.96);
  box-shadow: 0 3px 0 rgba(79, 60, 60, 0.45);
  font: 500 12px/1.5 Arial, "Noto Sans JP", sans-serif;
}

#lofi-newsletter-host {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
}

#lofi-newsletter-host form {
  margin: 0;
}

#lofi-newsletter-host .hs-field-group {
  width: 100%;
  padding-bottom: 0;
}

#lofi-newsletter-host input[type="email"] {
  display: block;
  width: 100%;
  max-width: 620px;
  height: 94px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 40px;
  border: 0;
  border-radius: 999px;
  outline: none;
  color: #666666;
  background: #ffffff;
  font: 18px/1 Helvetica, Arial, sans-serif;
}

#lofi-newsletter-host input[type="email"]::placeholder {
  color: #bdbdbd;
}

#lofi-newsletter-host .hs-btnWrapper {
  width: 100%;
  margin-top: 44px;
  text-align: center;
}

#lofi-newsletter-host .hs-button {
  display: block;
  width: 100%;
  max-width: 620px;
  height: 86px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: #ff7300;
  box-shadow: inset 0 0 0 3px #ff7300, inset 0 0 0 5px #ffffff;
  font: 400 26px/1 "Special Elite", cursive;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#lofi-newsletter-host .hs-button:hover { opacity: 0.95; }
#lofi-newsletter-host .hs-button:disabled { opacity: 0.6; cursor: not-allowed; }

#lofi-newsletter-host .hs-response {
  display: none;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  color: #333333;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

#lofi-newsletter-host .hs-error { color: #d93025; }

@media (max-width: 600px) {
  #lofi-language-switcher {
    right: 10px;
    bottom: 10px;
    gap: 2px;
    padding: 5px;
  }

  #lofi-language-switcher button {
    min-width: 37px;
    height: 31px;
    padding: 0 7px;
    font-size: 10px;
  }

  #lofi-legal-translation-notice {
    right: 10px;
    bottom: 58px;
    left: 10px;
    width: auto;
    padding: 10px 12px;
    font-size: 11px;
  }

  #lofi-newsletter-host input[type="email"] {
    height: 60px;
    padding: 0 24px;
    font-size: 16px;
  }

  #lofi-newsletter-host .hs-button {
    height: 56px;
    font-size: 16px;
    box-shadow: inset 0 0 0 4px #ff7300, inset 0 0 0 5px #ffffff;
  }

  #lofi-newsletter-host .hs-btnWrapper { margin-top: 20px; }
  #lofi-newsletter-host .hs-response { padding: 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #lofi-language-switcher button {
    transition: none;
  }
}
