/*------------------------------
	Header
------------------------------*/
.inner {
  width: 100%;
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
  position: relative;
}
.inner:after {
  content: "";
  clear: both;
  display: block;
}
#top-head {
  top: -120px;
  position: absolute;
  width: 100%;
  margin: 120px auto auto;
  padding: 0;
  line-height: 1;
  z-index: 10000;
}
#top-head a, #top-head {
  text-decoration: none;
}
#top-head .inner {
  position: relative;
  top: 0px;
}
#top-head .logo {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 26%;
}
#top-head .logo h1 {
  text-align: justify;
}
#top-head .logo img {
  width: 100%;
  height: auto;
  max-width: 310px;
  display: block;
  top: auto;
}
#gnav-ul li a {
  width: 100%;
  font-size: 0.9rem;
  margin: 0;
  padding: 10px 20px;
  letter-spacing: 2px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  color: rgba(255, 255, 255, 1.00);
  white-space: nowrap;
}
#sub-nav {
  display: block;
}
#sub-nav ul {
  padding: 0;
  text-align: right;
  list-style: none;
}
#sub-nav ul li {
  display: inline-block;
  padding: 0 10px;
}
#sub-nav a {
  display: block;
  color: rgba(255, 255, 255, 1.00);
}
#sub-nav a:hover {
  color: rgba(0, 215, 187, 1.00);
}
/*固定化されたときのCSS
-----------*/
#top-head.fixed {
  top: 0;
  position: fixed;
  background-color: rgba(2, 11, 37, 1.00);
  transition: top 0.80s ease-in;
  height: 60px;
  padding: 0;
  margin: 0 auto;
  z-index: 10000;
}
#top-head.fixed #gnav-ul {
  margin-top: 5px;
}
#top-head.fixed #gnav-ul li ul {
  background-color: rgba(255, 255, 255, 1.00);
}
#top-head.fixed #sub-nav {
  display: none;
}
@media screen and (min-width:992px) {
  #global-nav {
    position: absolute;
    top: 1vh;
    right: 20px;
  }
  #gnav-ul {
    margin-top: 10px;
    list-style-type: none;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  #gnav-ul li:first-child {
    border-left: 1pt solid rgba(255, 255, 255, 1.00);
  }
  #gnav-ul li:last-child {
    border-right: 0pt solid rgba(255, 255, 255, 1.00);
  }
  #gnav-ul li {
    margin: 0 0;
    padding-top: 0;
    text-align: center;
    border-right: 1pt solid rgba(255, 255, 255, 1.00);
  }
  #gnav-ul li a {
    display: inline-block;
    text-align: center;
  }
  #gnav-ul li a:hover {
    color: rgba(0, 215, 187, 1.00);
    transition: all 0.8s ease;
    transform: translateY(-6px);
    animation: upfrfr 1.5s linear infinite alternate 0.5s;
  }
  #gnav-ul .abt {
    height: 25px;
    margin-top: 8px;
  }
  #gnav-ul .abt a {
    padding: 5px 20px;
  }
 #gnav-ul .ibt {
    margin-left: 20px;
  }
  #gnav-ul .ibt a {
    border: 1px solid rgba(255, 255, 255, 1.00);
    padding: 10px 20px;
  }
  #gnav-ul .ibt a:hover {
    border: 1px solid rgba(0, 215, 187, 1.00);
    background-color: rgba(2, 11, 37, 1.00);
  }
  #gnav_sns {
    display: none;
  }
  .sns a i {
    font-size: 2.2em;
  }
  /*固定化されたときのCSS
-----------*/
  #top-head.fixed .logo {
    display: none;
  }
  #top-head.fixed .logo img {
    max-width: 200px;
  }
}
/*スマホ
-------------*/
@media screen and (max-width:991.98px) {
  #header #contctbt {
    position: absolute;
    top: 5px;
    right: 70px;
    display: flex;
  }
  #header #contctbt a {
    margin: 8px 0px 10px 10px;
  }
  #top-head .logo {
    width: 50%;
  }
  #top-head .logo img {
    max-width: 200px;
  }
  #top-head #sub-nav {
    display: none;
  }
  .head-inner {
    display: none;
  }
  #top-head .inner {
    width: 100%;
    padding: 0;
  }
  #mobile-head {
    width: 100%;
    height: 70px;
    z-index: 999;
    position: relative;
  }
  /* #global-nav スライドアニメーション */
  #global-nav {
    position: absolute;
    /* 開いてないときは画面外に配置 */
    margin-top: -700px;
    top: 0px;
    background-color: rgba(2, 11, 37, 1.00);
    width: 100%;
    text-align: center;
    padding: 100px 0 20px;
    transition: .5s ease-in-out;
    overflow: scroll;
  }
  .open #global-nav {
    transform: translateY(700px);
  }
  #global-nav ul {
    list-style: none;
    position: static;
    font-size: 12px;
    margin: 0;
    padding: 0;
    display: inline-block;
  }
  #global-nav ul li {
    width: 100%;
    position: static;
    padding: 5px 0;
    margin: 0;
    text-align: left
  }
  #global-nav ul li a {
    font-size: 14px;
    line-height: 1.2;
  }
  #global-nav a:hover {
    transition: all 0.6s ease;
    color: rgba(0, 215, 187, 1.00);
  }
  #gnav_sns {
    text-align: right;
    padding-right: 10px;
  }
  #gnav_sns a {
    padding: 10px;
    display: inline-block;
    color: rgba(255, 255, 255, 1.00);
  }
  #gnav_sns a i {
    font-size: 30px;
  }
  #top-head #global-nav ul li a, #top-head.fixed #global-nav ul li a {
    width: 100%;
    display: block;
    height: 28px;
  }
  #top-head.fixed {
    height: 60px;
  }
  #top-head.fixed #gnav-ul {
    margin-top: 0px;
  }
  /*トグルボタンのCSS
-------------*/
  #nav-toggle {
    display: none;
    position: absolute;
    width: 30px;
    height: 28px;
    cursor: pointer;
    z-index: 101;
    text-align: center;
    margin-top: 22px;
    top: 20%;
    right: 5px;
    transform: translate(-50%, -50%);
  }
  #nav-toggle div {
    position: relative;
  }
  #nav-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: rgba(255, 255, 255, 1.00);
    left: 0;
    transition: .35s ease-in-out;
  }
  #nav-toggle span:nth-child(1) {
    top: 0;
  }
  #nav-toggle span:nth-child(2) {
    top: 11px;
  }
  #nav-toggle span:nth-child(3) {
    top: 22px;
  }
  #nav-toggle {
    display: block;
  }
  /* #nav-toggle 切り替えアニメーション */
  .open #nav-toggle span:nth-child(1) {
    top: 11px;
    -webkit-transform: rotate(315deg);
    -moz-transform: rotate(315deg);
    transform: rotate(315deg);
  }
  .open #nav-toggle span:nth-child(2) {
    width: 0;
    left: 50%;
  }
  .open #nav-toggle span:nth-child(3) {
    top: 11px;
    -webkit-transform: rotate(-315deg);
    -moz-transform: rotate(-315deg);
    transform: rotate(-315deg);
  }
  .sns a i {
    font-size: 40px;
  }
  .sns a i.fa-line {
    font-size: 36px;
    margin-top: 2px;
  }
}