/* ======================================
   gt-ondemand.v1.css
   Google Translate オンデマンド共通スタイル
   shop.joysound.com 全LP共通
   ====================================== */

/* --- GT UI非表示（変更不可） --- */
#google_translate_element {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
.goog-te-banner-frame,
.goog-te-menu-frame,
#goog-gt-tt {
  display: none !important;
}
body {
  top: 0 !important;
  position: static !important;
}
.skiptranslate:not(#google_translate_element) {
  display: none !important;
  height: 0 !important;
}

/* --- Language Switcher ベーススタイル --- */
.lang-wrap {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: none;
  color: #555;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.lang-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.lang-btn:hover {
  border-color: #999;
}
.lang-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  min-width: 120px;
  z-index: 200;
}
.lang-list.open {
  display: block;
}
.lang-list a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}
.lang-list a:hover {
  background: #f5f5f5;
}
.lang-list a.is-active {
  font-weight: 700;
}

/* --- エラートースト --- */
.gt-error-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s;
}
.gt-error-toast.is-show {
  opacity: 1;
}
