@charset "UTF-8";

/*////////////////////////*/
/*ヘッダー*/
/*////////////////////////*/
#header {
  /* box-shadow: 0px 3px 15px rgba(0,0,0,0.2); */
  z-index: 99;
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  /* background: #fff; */
}
#gNav a:hover {
  color: #999;
}
nav li a {
  font-size: 15px;
  font-weight: bold;
  /* letter-spacing: 0.1em; */
}
nav li a span {
  display: block;
  font-size: 8px;
  letter-spacing: 0;
}
nav .sub-menu,.mean-container .mean-nav ul ul {
  background: #cdcdcd;
  /*background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);*/
}
@media only screen and ( max-width : 768px ) {
  #header {
/*    padding: 10px 0;*/
    /* height: 60px;
    background: #000; */
  }
  .w-100-60 {
    width: calc(100% - 16%);
  }
  .h_logo {
    width: 60px;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 100;
  }
  #gNav .nav {
    overflow-y: auto;
    height: 100vh;
  }
  .mean-nav .container {
    padding: 0;
  }
  nav li .fa {
    display: none;
  }
}

@media print, screen and ( min-width : 769px ) {
  #header {
    /* height: 80px; */
  }
  .h_logo {
    width: 80px;
  }
  #h_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* height: 80px; */
  }
  #gNav ul {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between !important;
  }
  #gNav li {
    position: relative;
    /* margin: 0 1em; */
    border-left: solid #ccc;
  }
  #gNav li:last-child {
    border-right: solid #ccc;
  }
  #gNav li i {
    font-size: 16px;
    margin-left: 5px;
  }
  #gNav li a {
    position: relative;
    display: block;
    text-align: center;
    /* height: 80px; */
    /* padding-top: 25px; */
    color: #6c757d;
  }
  #gNav li a:hover {
    text-decoration: none;
  }
  #gNav li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #28499d;
    bottom: -5px;               /*アンダーラインがaタグの下端から現れる*/
    transform: scale(0, 1);     /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
    transform-origin: center top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
    transition: transform 0.3s; /*変形の時間*/
  }
  #gNav li a:hover::after {
    transform: scale(1, 1);     /*ホバー後、x軸方向に1（相対値）伸長*/
  }
  .gmenu-last {
    background: #000;
    padding-left: 20px;
    padding-right: 20px;
    color: #fff;
  }
  .gmenu-last:hover {
    background: #00649F;
    color: #fff!important;
  }
  #gNav .sub-menu {
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    display: block;
    position: absolute;
    top: 50px;
    left: 50%;
    margin-left: -100px;
    width: 200px;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
  }
  #gNav .sub-menu a {
    padding: 10px;
    display: block;
    border-bottom: none;
    padding: 20px;
    line-height: 1.2em;
    height: auto;
  }
  #gNav .sub-menu a:hover:after {
    content: none;
  }
  #gNav .sub-menu li {
    display: block;
    font-size: 15px;
    padding: 0;
    margin: 0;
    border: none;
  }
  #gNav .sub-menu li:last-child {
    border-bottom: none;
  }
  #gNav ul > li:hover {
    -webkit-transition: all .5s;
    transition: all .5s;
  }
  #gNav ul > li:hover a,#gNav .current-menu-item a,#gNav .current-menu-parent a {
    color: #000000;
  }
  #gNav li:hover ul.sub-menu {
    top: 80px;
    visibility: visible;
    opacity: 1;
    z-index: 9999;
  }
  #gNav li ul li:after {
    content: none;
  }
 #gNav li:hover ul.sub-menu a {
    color: #111;
  }
  #gNav .sub-menu li a:hover {
    background: #fff;
  }
  #gNav .contact_btn a:hover {
    color: #fff;
  }
}

/*グローバルメニュー-ホバーアンダーライン*/
.top-menu {
  width: 100%;
  height: 60px;
  background: #fff;
}
.top-menu ul li a {
  position: relative;
  display: block;
  text-align: center;
  height: 60px;
  padding-top: 20px;
}
.top-menu ul li a::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #987c63;
  bottom: 10px;               /*アンダーラインがaタグの下端から現れる*/
  transform: scale(0, 1);     /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
  transform-origin: left top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
  transition: transform 0.3s; /*変形の時間*/
}
.top-menu ul li a:hover {
  color: #000000;
}
.top-menu ul li a:hover::after {
  transform: scale(1, 1);     /*ホバー後、x軸方向に1（相対値）伸長*/
}


/*SPのみ*/
@media (max-width: 768px) {

    .sp_menu{
      position: sticky;
      z-index: 99;
      top: 80px;
      width: 100%;
      font-size: 1em;
      line-height:3.5em;
      text-align: center;
      background-color: #00649F;
      display: none;
      padding: 10px 0;
    }
    .sp_menu a{
      text-decoration: none;
      color: #fff;
    }


}