.tb-language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  margin-left: 12px;
  padding-left: 14px;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.tb-language-switcher--mobile-inline,
.tb-language-switcher--mobile-menu {
  display: none;
}

.tb-language-switcher::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 24px;
  background: rgba(58, 58, 58, 0.16);
  transform: translateY(-50%);
}

.tb-language-switcher__button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 9px 0 10px;
  border: 1px solid rgba(20, 166, 191, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(11, 139, 162, 0.1);
  color: #177e91;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.tb-language-switcher__button:hover,
.tb-language-switcher.is-open .tb-language-switcher__button {
  border-color: rgba(20, 166, 191, 0.48);
  box-shadow: 0 10px 26px rgba(11, 139, 162, 0.16);
  color: #0a9eb9;
  opacity: 1;
}

.tb-language-switcher__button:focus-visible {
  outline: 2px solid rgba(10, 158, 185, 0.3);
  outline-offset: 3px;
}

.tb-language-switcher__current,
.tb-language-switcher__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tb-language-switcher__current {
  gap: 5px;
}

.tb-language-switcher__code {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.tb-language-switcher__chevron {
  color: rgba(58, 58, 58, 0.46);
  transition: transform 0.18s ease;
}

.tb-language-switcher.is-open .tb-language-switcher__chevron {
  transform: rotate(180deg);
}

.tb-language-switcher__flag {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border-radius: 3px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(58, 58, 58, 0.14), 0 1px 2px rgba(20, 36, 70, 0.1);
}

.tb-language-switcher__flag--ja {
  background-image: url("flag-jp.svg");
}

.tb-language-switcher__flag--mm {
  background-image: url("flag-mm.svg");
}

.tb-language-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 300;
  display: grid;
  min-width: 174px;
  padding: 8px;
  gap: 4px;
  border: 1px solid rgba(20, 166, 191, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 44px rgba(20, 55, 65, 0.18), 0 2px 8px rgba(20, 55, 65, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.2s ease;
}

.tb-language-switcher.is-open .tb-language-switcher__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.tb-language-switcher__item {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 40px;
  padding: 8px 10px;
  gap: 10px;
  border-radius: 10px;
  color: #3a3a3a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.tb-language-switcher__item:hover,
.tb-language-switcher__item.is-current {
  background: #eefafd;
  color: #0b8da6;
  opacity: 1;
}

.tb-language-switcher__item.is-current::after {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 7px;
  height: 12px;
  margin-left: auto;
  border-right: 2px solid #0a9eb9;
  border-bottom: 2px solid #0a9eb9;
  transform: rotate(45deg);
}

@media screen and (max-width: 1080px) {
  .tb-language-switcher--desktop {
    display: none;
  }

  .header_inner > .tb-language-switcher--mobile-inline,
  .fat-nav_header > .flex > .tb-language-switcher--mobile-menu {
    display: flex;
    position: absolute;
    top: 53px;
    right: 78px;
    z-index: 120;
    margin-left: 0;
    padding-left: 0;
  }

  .header_inner > .tb-language-switcher--mobile-inline::before,
  .fat-nav_header > .flex > .tb-language-switcher--mobile-menu::before {
    display: none;
  }

  .header_inner > .tb-language-switcher--mobile-inline .tb-language-switcher__button,
  .fat-nav_header > .flex > .tb-language-switcher--mobile-menu .tb-language-switcher__button {
    height: 36px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .header_inner > .tb-language-switcher--mobile-inline .tb-language-switcher__menu,
  .fat-nav_header > .flex > .tb-language-switcher--mobile-menu .tb-language-switcher__menu {
    top: 45px;
  }

  .fat-nav_header .hum_sns_icon {
    right: 170px !important;
  }
}

@media screen and (max-width: 414px) {
  .header_inner > .tb-language-switcher--mobile-inline,
  .fat-nav_header > .flex > .tb-language-switcher--mobile-menu {
    right: 74px;
  }
}

@media screen and (min-width: 1081px) {
  .header_nav > .tb-language-switcher--desktop {
    display: flex;
  }
}

