@charset "utf-8";
/* CSS Document */

/* Languageボタンをl-header__inner内の右上に配置 */
.w-header.pc_ {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex: 1 !important;
}
.w-header__inner {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}
#text-3.w-header__item {
  position: static !important;
  top: auto !important;
  right: auto !important;
}
.admin-bar #text-3.w-header__item {
  top: 42px;
}

/* ===== SP: JSのmoveLangBtnForSP()がdisplay/position/orderを上書きするため
         ここではpc_クラスの非表示をそのままにしておく ===== */

/* ===== GTranslate本体UIを非表示 ===== */
.gt_switcher .gt_selected {
  display: none !important;
}

/* ===== gt_switcher ===== */
.gt_switcher {
  position: relative;
  display: inline-block;
  font-size: 14px;
}

/* ===== ドロップダウンリスト（初期非表示） ===== */
.gt_switcher .gt_option {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  min-width: 180px;
  padding: 6px 0;
}

/* 開いた状態 */
.gt_switcher.is-open .gt_option {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* 各言語リンク */
.gt_switcher .gt_option .nturl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  transition: background 0.2s;
}
.gt_switcher .gt_option .nturl:hover,
.gt_switcher .gt_option .nturl.gt_current {
  background: #f0f0f0;
}

/* ===== Language ボタン ===== */
.custom-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid #266181 !important;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700 !important;
  color: #266181;
  line-height: 1.4 !important;
  letter-spacing: 0.03em;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.custom-lang-btn:hover {
  /*background: #266181;
  border-color: #266181;
  color: #fff;*/
}
.lang-btn-arrow {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block !important;
  line-height: 1 !important;
}
.gt_switcher.is-open .custom-lang-btn .lang-btn-arrow {
  transform: rotate(180deg);
}
.lang-btn-text {
  font-weight: bold !important;
}
.lang-btn-icon svg {
  vertical-align: middle;
}

@media (max-width: 860px) {
	.custom-lang-btn {
		padding: 5px 10px;
	}
}

/* Language ボタン幅 220px　準備中対応 */
[class*="gt_container"] .gt_switcher {
  width: 220px !important;
}

@media (max-width: 959px) {
  .l-mainContent.l-article {
    padding-top: 0 !important;
  }
}