header {
  position: relative;
  z-index: 99999;
}
.s header {
  position: fixed;
  top: 0;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background-color: #fff;
}
.s .header-inner {
  padding: 10px 12px;
  grid-template-columns: 1fr 1fr;
}
.sub-logo {
  display: flex;
  align-items: center;
}
.sub-logo a {
  display: inline-block;
  width: 25%;
}

/* .sub-logo img {
  width: 25%;
}
.s .sub-logo img {
  width: 80%;
} */
.logo {
  text-align: -webkit-center;
}
.s .logo {
  text-align: left;
  width: 110%;
}
.logo img {
  width: 50%;
}
.s .logo img {
  width: 90%;
}
/* 言語選択ボタン */
.language-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 16px;
  color: #013274;
  transition: transform 0.4s ease;
}
.s .language-btn {
  font-size: 12px;
}
.language-btn:hover {
  transform: scale(1.05);
}

.language-btn.sp {
  display: none;
}
.s .language-btn.pc {
  display: none;
}
.s .language-btn.sp {
  display: flex;
  justify-content: flex-end;
  padding-right: 5px;
}
.language-btn img {
  width: 20%;
  flex-shrink: 0;
}
.language-btn font {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 言語選択モーダル */
.popover_sp._lang-popover {
  padding: 0 0 90px 0;
}
.popover_sp._lang-popover .header-inner {
  background-color: unset;
  padding: 5px 10px 28px 10px;
}
/* 言語選択モーダル　閉じるボタン */
.lang-popover-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  top: 5%;
}
.s .lang-popover-close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  top: 0;
  width: 100%;
  height: auto;
}
.lang-popover-close img {
  width: 26%;
}
/* 言語選択 */
.gtranslate_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
}
.s .gtranslate_wrapper {
  gap: 8px 10px;
}
.s .gtranslate_wrapper a {
  width: 154px !important;
}
.gtranslate_wrapper a:nth-child(10) {
  letter-spacing: -3px;
}
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.s .lang-list {
  padding: 24px 20px 0 28px;
}
.lang-list a {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #ccc;
  padding: 5px 14px 4px 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}
.s .lang-list a {
  width: 100%;
  padding: 14px 12px 14px 12px;
  font-size: 16px;
}
/* ホバー時 */
.lang-list a:hover {
  background-color: #e0e0e0;
}

/* チェック枠 */
.lang-list a::before {
  content: '';
  width: 1.15em;
  height: 1.15em;
  margin-right: 8px;
  position: relative;
  background-color: #dddddd;
  border-radius: 50%;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
.s .lang-list a::before {
  width: 1em;
  height: 1em;
}
/* 選択中（現在の言語） */
.lang-list a.is-active {
  background-color: #0c72be;
  color: #fff;
  border-color: #0c72be;
}
.lang-list a.is-active::before {
  background: #fff;
}
.lang-list a.is-active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%) rotate(-45deg);
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #0c72be;
  border-left: 2px solid #0c72be;
}
.s .lang-list a.is-active::after {
  top: 50%;
  left: 10%;
  width: 9px;
  height: 5px;
}
.s .lang-list .tsutaeru-btn.is-active::after {
  left: 4.5% !important;
}

/* 言語選択　PC */
.popover {
  display: none;
  position: absolute;
  top: 47%;
  right: 5%;
  z-index: 10;
  background: #e7f7ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  min-width: 260px;
  width: 506px;
  border-radius: 12px;
  padding: 20px 28px 24px 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}
.header-actions .gtranslate {
  display: inline-flex;
  align-items: center;
}

.searchBtn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
}

/* header内　検索アイコン */
.searchBtn-header {
  max-width: 40px;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  grid-column: 3;
  justify-self: end;
  transition: transform 0.4s ease;
}
.s .searchBtn-header {
  max-width: 32px;
  width: 100%;
  flex-shrink: 0;
}
.searchBtn-header:hover {
  transform: scale(1.08);
}

/* ナビゲーションエリア */
.header-nav {
  background-color: #fff;
  padding: 0 2rem 1rem;
  border-radius: 0 0 32px 32px;
  position: relative;
  transition: border-radius 0.2s;
}

.header-nav.has-open-dropdown {
  border-radius: 0;
}

.header-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.8rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.header-nav.is-wrapped .header-nav-list {
  justify-content: flex-start; /* 段落ち時は左詰め */
}

.header-nav-list > li > a {
  display: block;
  position: relative;
  /* padding: 0.5rem 1rem; */
  font-size: 0.875rem;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.header-nav-list > li > a:hover {
  color: #0c72be;
}
.dropdown-toggle {
  line-height: 1.3;
}

/* ドロップダウンメニュー */
.has-dropdown {
  position: static;
}
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  background: url(../../common/img/arrow-bottom-02.svg);
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}
.has-dropdown--v6 > a::after,
.has-dropdown--v7 > a::after {
  content: '';
  display: inline-block;
  background: url(../../common/img/arrow-right-02.svg);
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.has-dropdown.open .dropdown-toggle::after {
  transform: rotate(-90deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  list-style: none;
  border-radius: 0 0 2rem 2rem;
  background-color: #013274;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
  padding: 0.625rem 2rem 0.75rem;
  margin: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: min(820px, calc(100vw - 2rem));
}
/* ナビ選択時 */
.has-dropdown.open .dropdown-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}
/* .has-dropdown.open .dropdown-menu--v5 {
  display: grid;
  width: min(1100px, calc(100vw - 2rem));
  max-width: min(1100px, calc(100vw - 2rem));
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.5rem;
} */
.dropdown-menu li {
  flex: 0 0 auto;
  text-align: center;
}

.has-dropdown.open .dropdown-toggle::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 30%;
  bottom: -0.6rem;
  width: 40%;
  height: 0.3125rem;
  border-radius: 0.3125rem;
  background-image: linear-gradient(to right, #0074ef, #00aeef, #0074ef);
}
.has-dropdown--v8.open .dropdown-toggle::before,
.has-dropdown--v9.open .dropdown-toggle::before {
  left: 30%;
  bottom: -0.625rem;
}
/* .has-dropdown a:hover::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 30%;
  bottom: -1.125rem;
  width: 40%;
  height: 0.3125rem;
  border-radius: 0.3125rem;
  background-image: linear-gradient(to right, #0074ef, #00aeef, #0074ef);
} */
.has-dropdown--v8 a:hover::before,
.has-dropdown--v9 a:hover::before {
  left: 30%;
  bottom: -0.625rem;
}

.has-dropdown.open .dropdown-toggle {
  color: #0c72be;
}

.dropdown-menu li a {
  display: block;
  color: #fff;
  font-size: 0.875rem /* 14px (基準16px) */;
  font-weight: 400;
  padding: 0.5rem 1rem;
  white-space: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.dropdown-menu li a::before {
  content: '';
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.5rem;
  background: url(../../common/img/arrow-right.svg);
}

.dropdown-menu li a:hover {
  text-decoration: underline;
  color: #fff;
}

/* SP表示時は非表示 */
.s .header-nav {
  display: none;
}
/* タブレット表示時は非表示 */
/* @media screen and (max-width: 1240px) {
  .header-nav {
    display: none;
  }
} */

/* ヘッダー内の閉じるボタン（サイトマップモーダル用） */
.header-close-btn {
  display: none;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 47px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.sitemap-modal .header-close-btn {
  display: flex;
}

.sitemap-modal .header-actions {
  display: none !important;
}

.sitemap-modal .header-nav {
  display: none !important;
}

.sitemap-modal .header-inner {
  background-color: #eef9ff;
}

.s .header-close-btn {
  top: 3.5%;
}

/* ナビ内でどれか開いている間は、全トリガーを一旦無効化 */
.header-nav.has-open-dropdown .dropdown-toggle {
  pointer-events: none;
}
/* 開いているやつだけ有効に戻す */
.header-nav.has-open-dropdown .has-dropdown.open > .dropdown-toggle {
  pointer-events: auto;
}
/* 開いているメニューは当然触れる */
.header-nav.has-open-dropdown .has-dropdown.open .dropdown-menu {
  pointer-events: auto;
}
