@charset "UTF-8";
/* ==================================================
   nav.css — グローバルナビゲーション
   ( base.css の nav セクションを分離 )
================================================== */

/* ==================================================
   nav（共通）
================================================== */
.gNav {
  clear: both;
  background: #202020;
  font-family: 'Meiryo', 'メイリオ', 'ＭＳ ゴシック', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
}

.gNav a .i-link {
  margin-left: 8px;
}
.gNav ul.gNav_list > li {
  position: relative;
  height: inherit;
}
.gNav ul.gNav_list > li.icon-new::before {
  content: '';
  display: block;
  position: absolute;
  border-style: solid;
}
.gNav ul.gNav_list > li.icon-new::after {
  content: 'New';
  position: absolute;
  color: #fff;
  background: #e62b3a;
  border-radius: 3px;
}

.gNav ul.gNav_list > li > a,
.gNav ul.gNav_list > li > span {
  color: #fff;
  font-size: 1.6rem;
  position: relative;
}
.gNav ul.gNav_list > li > a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 6px;
  background: #e60012;
  bottom: -17px;
  opacity: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.gNav ul.gNav_list > li > a:hover::before {
  opacity: 1;
}

.gNav ul.gNav_list_child > li > a {
  display: block;
  font-weight: 700;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .sub-menu {
    padding-left: 1em;
    font-size: 1.4rem;
  }
}
@media screen and (min-width: 768px) {
  .sub-menu {
    position: absolute;
    width: max-content;
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 4px 4px 32px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
  }
}

.h-menu {
  display: block;
  width: 40px;
  height: 20px;
  position: absolute;
  right: 5vw;
  top: 5vw;
}
.h-menu span {
  display: block;
  background: #202020;
  height: 2px;
  width: 100%;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.h-menu span + span {
  margin-top: 5px;
}
.h-menu.is-show span:nth-of-type(1) {
  -webkit-transform: translate(0, 9px) rotate(45deg);
  transform: translate(0, 9px) rotate(45deg);
}
.h-menu.is-show span:nth-of-type(2) {
  opacity: 0;
}
.h-menu.is-show span:nth-of-type(3) {
  -webkit-transform: translate(0, -5px) rotate(-45deg);
  transform: translate(0, -5px) rotate(-45deg);
}

/* ==================================================
   PC (@media min-width: 768px)
================================================== */
@media (min-width: 768px) {
  .gNav {
    position: relative;
    height: 58px;
    margin-top: 25px;
    margin-bottom: -55px;
    border-radius: 9999px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gNav ul.gNav_list {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gNav ul.gNav_list > li {
    padding: 0 30px;
  }
  .gNav ul.gNav_list > li:not(:first-child) {
    border-left: 1px solid #7d7b7b;
  }
  .gNav ul.gNav_list > li.icon-new::before {
    border-width: 6px 4px 0 4px;
    border-color: #e62b3a transparent transparent transparent;
    top: -12px;
    left: 20px;
  }
  .gNav ul.gNav_list > li.icon-new::after {
    top: -38px;
    left: 12px;
    padding: 6px 8px;
    font-size: 14px;
  }

  .gNav ul.gNav_list_child {
    position: absolute;
    width: max-content;
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 4px 4px 32px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
  }
  .gNav ul.gNav_list_child > li:not(:first-child) {
    margin-top: 4px;
  }
  .gNav ul.gNav_list_child > li > a {
    padding: 6px 8px;
    color: #333333;
    font-size: 1.4rem;
    border-radius: 4px;
  }
  .gNav ul.gNav_list_child > li > a:hover {
    background-color: rgba(231, 46, 46, 0.25);
  }

  .gNav ul.gNav_list > li.u-menu_toggle > span {
    cursor: pointer;
  }
  .gNav ul.gNav_list > li.u-menu_toggle > span::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-bottom: -0.15em;
    margin-left: 0.2em;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%2226%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23e62b3a%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%224%22%20data-name%3D%22%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%20684%22%3E%3Cpath%20d%3D%22m6.51%2010.764%206.51%206.51M13.02%2017.274l6.51-6.51%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  .gNav ul.gNav_list > li.u-menu_toggle:hover .gNav_list_child {
    visibility: visible;
    opacity: 1;
  }

  .h-menu {
    display: none;
  }
}

/* ==================================================
   SP (@media max-width: 767px)
================================================== */
@media (max-width: 767px) {
  .gNav {
    border-radius: 10px;
    margin: 8vw 5vw;
  }

  .gNav ul.gNav_list > li {
    padding: 5vw;
  }
  .gNav ul.gNav_list > li:not(:first-child) {
    border-top: 1px solid #7d7b7b;
  }
  .gNav ul.gNav_list > li.icon-new::before {
    border-width: 6px 4px 0 4px;
    border-color: #e62b3a transparent transparent transparent;
    top: 13px;
    left: 7px;
  }
  .gNav ul.gNav_list > li.icon-new::after {
    padding: 2px 5px;
    top: -5px;
    left: -5px;
  }
  .gNav ul.gNav_list > li > a,
  .gNav ul.gNav_list > li > span {
    font-size: 16px;
    display: block;
  }

  .gNav ul.gNav_list_child {
    margin-top: 8px;
  }
  .gNav ul.gNav_list_child > li > a {
    color: #fff;
    padding: 4px 0;
  }
}
