/* ============================================================
   Language Switcher (multilang demo)
   既存ブランドカラー #0c419a に合わせたシンプルなドロップダウン
   ============================================================ */

.lang-switcher {
  position: relative;
  display: inline-block;
  margin-right: 16px;
  font-family: inherit;
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 1;
  vertical-align: middle;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0c419a;
  border: 1px solid #0c419a;
  border-radius: 5px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: inherit;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switcher__toggle:hover,
.lang-switcher__toggle:focus {
  background: #0c419a;
  color: #fff;
  outline: none;
}

.lang-switcher__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.lang-switcher__current {
  display: inline-block;
  min-width: 4em;
  text-align: left;
}

.lang-switcher__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
}

.lang-switcher.is-open .lang-switcher__caret {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #d0d6e0;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(12, 65, 154, 0.12);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: 0;
  color: #333;
  text-align: left;
  font-size: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.lang-switcher__item:hover,
.lang-switcher__item:focus {
  background: #f3f6fb;
  color: #0c419a;
  outline: none;
}

.lang-switcher__item.is-active {
  color: #0c419a;
  font-weight: 600;
  background: #f3f6fb;
}

/* SP対応 ----------------------------------------- */
@media screen and (max-width: 767px) {
  .lang-switcher {
    margin-right: 8px;
    font-size: 13px;
    font-size: 1.3rem;
  }
  .lang-switcher__toggle {
    padding: 7px 10px;
  }
  .lang-switcher__menu {
    min-width: 120px;
  }
}

/* ヘッダー右上に並べるためのラッパー --------------- */
.header-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 8px 24px 0 0;
}

@media screen and (max-width: 767px) {
  .header-utility {
    padding: 8px 60px 0 0; /* ハンバーガーボタンと重ならないように右余白 */
  }
}
