@charset "utf-8";

/*reset*/
.header-navigation a {
  margin-left: inherit;
}
.header-navigation a:after {
  transition: none;
  display: block;
  width: inherit;
  height: inherit;
  background-color: transparent;
  transform: inherit;
  position: absolute;
  bottom: inherit;
  left: inherit;
}

/* Start Navigation Bar */

.header .navbar {
  color: #0f759c;
  width: 100vw;
  max-width: 1170px;
  margin: 0 auto;
  /*padding: 0 1rem;*/
  font-weight: inherit;
  display: flex;
  padding: 0;
}

.navbar .menu {
  display: flex;
  position: relative;
}

.navbar .menu li {
  flex: 1;
  display: flex;
  text-align: center;
  transition: background-color 0.5s ease;
}

.navbar .menu a {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  color: #444;
  text-decoration: none;
  padding: 10px 5px 10px 5px;
  position: relative;
  width: 148px;
  font-weight: inherit;
}

.navbar .menu a > .fa {
  font-weight: bold;
  margin-left: 8px;
  margin-top: 4px;
}

.navbar .menu li:hover {
  background-color: #3f3f40;
}

.navbar .menu li:hover .hasDropdown.nav-item,
.navbar .menu li:hover a {
  color: #fff;
}

/* ドロップダウンを表示 - ホバーエリアを拡張 */
.navbar .menu li:hover > .container {
  display: flex;
  flex-direction: column;
}

a.hasDropdown:after {
    position: absolute;
    bottom: -31px;
    left: 50%;
    height: 0px;
    width: 0px;
    z-index: 2;
    border-width: 8px;
    border-style: solid;
    border-color: transparent;
    border-image: initial;
}

li:hover a.hasDropdown:after {
  content: "";
  border-top-color: #3f3f40;
}

/* End Navigation Bar */

/* Start Single Section Menu */

.menu .container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgb(228, 235, 236, 0.92);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.menu .container a {
  color: #444 !important;
  flex: 1;
  justify-content: flex-start;
  display: inline-flex;
  text-decoration: none;
  padding: 0 14px;
  position: relative;
  width: 100%;
  font-weight: inherit;
}

.container__title {
  color: #6d6d6d;
  padding: 10px 10px;
  font-weight: 400;
  font-size: 1.2em;
}

.container__title a {
  text-decoration: none;
}

.container__title a:hover {
  /*text-decoration: underline;*/
  color: #009def !important;
}

.container__list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.container__listItem {
  flex: 0 0 25%;
  padding: 10px 20px 10px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.container__listItem a {
  position: relative;
}

.container__listItem a:hover {
  /*text-decoration: underline;*/
  color: #009def !important;
}

.container__listItem a:before,
.container__title a:before {
  content: "";
  display: block;
  position: absolute;
  top: calc(1rem - 7px);
  left: 6px;
  width: 2px;
  height: 8px;
  background-color: #0f759c;
  -webkit-transform: translateY(-50%) rotate(-45deg);
  transform: translateY(-50%) rotate(-45deg);
}

.container__listItem a:after,
.container__title a:after {
  content: "";
  display: block;
  position: absolute;
  top: calc(1rem - 2px);
  left: 6px;
  width: 2px;
  height: 8px;
  background-color: #0f759c !important;
  -webkit-transform: translateY(-50%) rotate(45deg) !important;
  transform: translateY(-50%) rotate(45deg) !important;
}

.container__listItem > div {
  color: #444;
  text-decoration: underline;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-distributor.trans {
  display: none;
}
/* End Single Section Menu */

/* Start Multiple Section Menu */
.container.has-multi .container__listItem {
  flex-basis: 100%;
}

.container.has-multi .container__list {
  flex-basis: 33.333%;
  border-radius: 4px;
}

.container.has-multi .container__list:not(:last-child) {
  border-right: solid 1px #f3f3f3;
  margin-right: 20px;
}

/* End Multiple Section Menu */

/*追加*/
:root {
  --header-outer-height: 76px;
  --header-inner-height: 76px;
  --header-height-difference: calc(var(--header-outer-height) - var(--header-inner-height));
  --header-bg: #fff;
}

.navbar .menu {
  height: 76px;
  align-items: center;
}
.header-outer {
  max-height: 76px;
}
.navbar .menu li {
  height: 76px;
  align-items: center;
}

.header-navigation a:after {
  background-color: transparent;
}
.container__listItem {
  text-overflow: inherit;
}
.header-navigation a {
  font-size: 1rem;
}

/* 1280px以上：PCナビゲーション */
@media (min-width: 1280px) {
  .navbar .menu > li:hover > .container {
    display: flex;
  }
  
  /* ドロップダウンの中にマウスがある時も表示を維持 */
  .navbar .menu > li > .container:hover {
    display: flex;
  }
  
  /* 三角形のインジケーター */
  .navbar .menu > li:hover > a.hasDropdown:after {
    content: "";
    border-top-color: #3f3f40;
  }
}

/* 1280px以下：モバイル表示 */
@media (max-width: 1279px) {
  .navbar .menu {
    display: block;
    position: relative;
  }

  /* a.nav-itemクラスを持つリンクのみ非表示 */
  .navbar .menu a.nav-item {
    display: none !important;
  }

  /* ナビゲーションのli要素を非表示 */
  .navbar .menu > li {
    display: none !important;
  }

  /* お問い合わせボタンを確実に非表示 */
  .navbar .menu .header-btn,
  .header-btn {
    display: none !important;
  }

  /* ハンバーガーメニューは表示 */
  #hamburger-menu-container {
    display: block !important;
  }

  .navbar .menu a {
    color: #FFF;
  }

  /* ドロップダウンを完全に無効化 */
  .navbar .menu li:hover .container,
  .navbar .menu .container {
    display: none !important;
  }

  .fa-angle-down {
    display: none;
  }

  li:hover a.hasDropdown:after {
    display: none;
  }
}

.navbar .menu a.nav-item {
    min-width: 180px;
}

/* 1280px未満ではホバーイベント自体を無効化 */
@media (max-width: 1279px) {
  .navbar .menu > li {
    pointer-events: none; /* ホバー無効 */
  }
  
  .navbar .menu > li > a {
    pointer-events: auto; /* リンクのクリックは有効 */
  }
}
