/* 検索機能 */
#header {
  display: flex;
  justify-content: space-between;
}
.searchBox {
  flex: 1 auto;
  flex-basis: 40%;
  flex-grow: initial;
}

/* 多言語機能 */
.wrapper {
  padding-top: 0;
}
.language-wrap {
  background: #009261;
  position: relative;
  z-index: 100000;
}
.active .language-wrap {
  z-index: -1;
}
.language-inner {
  max-width: 1000px;
  margin: auto;
}
@media only screen and (max-width: 999px) {
  .language-inner {
    max-width: 1000px;
    margin: 0 auto 3vw;
  }
}
.language-links {
  display: flex;
  color: #fff;
  padding: 5px 0;
  margin-bottom: 11px;
  justify-content: flex-end;
  font-size: 13px;
}
.language-links * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}
ul.language-menu {
  display: flex;
}

@media only screen and (max-width: 999px) {
  ul.language-menu {
    flex-wrap: wrap;
    width: 80%;
    margin: 0.5rem auto;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    z-index: 10; /* 適切な値を設定 */
  }
}
@media only screen and (max-width: 375px) {
  ul.language-menu {
    width: 90%;
  }
}
.language-menu li {
  margin: 0 10px;
}
@media only screen and (max-width: 999px) {
  .language-menu li {
    width: 23%;
    line-height: 2.5;
    text-align: center;
  }
}
.language-menu a {
  color: #fff;
  text-decoration: underline;
  display: inline-block;
  width: 100%;
  height: auto;
}
.searchBox.faq_sp {
  display: none;
}
@media only screen and (max-width: 999px) {
  .language-txt {
    text-align: center;
  }
  .language-links {
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: auto;
  }
  .language-menu {
    width: 100%;
    justify-content: space-between;
  }
  .searchBox.faq_pc {
    display: none;
  }
  .searchBox.faq_sp {
    display: block;
    width: 90%;
    margin: 2rem auto;
  }

  ul.language-menu li a {
    display: block; /* Ensure full clickable area */
    width: 100%; /* Expand to the full width of the parent */
    height: 100%; /* Expand to the full height of the parent */
    text-align: center;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent; /* Improve touch behavior */
  }
  /* Ensure pointer events are enabled */
  ul.language-menu li a {
    pointer-events: auto;
  }
}
.hamburger .hamburger-lines {
  top: calc(130px + 1vh); /* 固定値と動的値の組み合わせ */
}
.active .hamburger .hamburger-lines {
  top: 7vw; 
}
@media only screen and (min-width: 375px) and (max-width: 999px) {
  .hamburger .hamburger-lines {
    top: calc(130px + 3vw); /* 固定値と動的値の組み合わせ */
  }
  .active .hamburger .hamburger-lines {
    top: 7vw; 
  }
}
/* 自動生成されたページの制御 */
.translated-ltr .language-wrap {
  display: none;
}