.gtranslate__header {
  margin-left: auto;
  margin-right: 30px;
}

.gtranslate_wrapper {
  position: relative;
}

.gt_black_overlay {
  display: none !important;
}

.gt_switcher-popup {
  display: flex;
  align-items: center;
  padding-left: 30px;
  font-family: "Noto Sans JP", sans-serif !important;
  line-height: normal !important;
}

a.gt_switcher-popup::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('../img/gtranslate/globe.svg') no-repeat center / contain;
}

a.gt_switcher-popup span:first-of-type {
  margin-right: 10px !important;
}

a.gt_switcher-popup span:last-of-type {
  position: relative;
  top: 3px;
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0 !important;
  background: url('../img/gtranslate/caret.svg') no-repeat center / contain;
  transform: scale(-1);
}

a.gt_switcher-popup span:last-of-type.flip {
  transform: none;
}

.gt_white_content {
  position: absolute !important;
  top: 55px !important;
  width: 150px !important;
  height: max-content !important;
  margin: unset !important;
  padding: 10px 10px 15px !important;
  border: none !important;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  overflow: unset !important;
  transform: translateX(-50%);
}

.gt_white_content::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 15px 15px;
  border-color: transparent transparent #fff;
  filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.1));
  transform: translateX(-50%);
}

.gt_white_content a {
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 15px !important;
  line-height: 1em !important;
  text-align: center;
  border-bottom: none !important;
}

.gt_white_content a.glink.gt-current-lang {
  position: relative;
  font-weight: 400 !important;
}

.gt_white_content a.glink.gt-current-lang::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 75%;
  height: 1px;
  background-color: #000;
  transform: translateX(-50%);
}

.gt_languages {
  flex-wrap: nowrap !important;
  max-height: unset !important;
}

a.glink span {
  font-size: 18px !important;
}

a.glink img {
  display: none !important;
}

@media only screen and (max-width: 767.98px) {
  .gtranslate__header {
    margin-right: auto;
  }

  .gtranslate__header .input-header-search {
    width: 0.8rem;
  }

  a.gt_switcher-popup {
    padding-left: 20px;
  }

  a.gt_switcher-popup::before {
    width: 14px;
    height: 14px;
  }

  a.gt_switcher-popup span:last-of-type {
    top: 1px;
    width: 10px;
    height: 10px;
  }

  .gt_white_content {
    top: 40px !important;
    padding: 10px !important;
  }

  .gt_white_content::after {
    top: -7px;
    border-width: 0 8px 8px;
  }

  .gt_white_content a {
    padding: 10px !important;
  }

  a.glink span {
    font-size: 14px !important
  }
}
