/* header */
#top-head {
  top: -100px;
  width: 100%;
  height: 70px;
  margin: 0 auto;
  padding: 0;
  line-height: 1;
  z-index: 999;
  background: #222;
  border-bottom: 2px solid #111;
}

#top-head .inner {
  position: relative;
}

#top-head .inner:after {
  content: "";
  clear: both;
  display: block;
}

#top-head #logo {
  position: absolute;
  left: 17px;
  top: 0;
  margin: 18px 0 0 0;
  z-index: 100;
}

#top-head #logo img {
  width: 180px;
  display: block;
}

#top-head.fixed {
  margin-top: 0;
  top: 0;
  position: fixed;
  height: 70px;
  background: #222;
  transition: top 0.65s ease-in;
  -webkit-transition: top 0.65s ease-in;
  -moz-transition: top 0.65s ease-in;
}

/* Menu list*/
#global-nav ul {
  width: 100%;
  position: relative;
  float: right;
  list-style: none;
  top: 0;
  bottom: 0;
  right: 0px;
  display: table;
  display: flex;
  justify-content: flex-end;
}

.main-nav {
  display: block !important;
}

.js-menu-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  display: none;
  z-index: 100;
}

.our-services-menu.is-open {
  visibility: visible !important;
  pointer-events: auto;
  opacity: 1 !important;
}

.js-menu-content {
  display: none;
  margin: 0;
  padding: 0;
}

#global-nav ul a {
  color: #fff;
  display: block;
  font-size: 0.85em;
  font-family: Century Gothic, Lato, "Noto Sans JP", "游ゴシック Medium",
    "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN",
    "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック",
    "MS PGothic", sans-serif;
  letter-spacing: normal;
}

#global-nav ul a.video {
  letter-spacing: -0.04em;
}

#global-nav ul li {
  width: 110px;
  height: 70px;
  line-height: 70px;
  float: left;
  text-align: center;
  position: relative;
  border-left: 1px solid #5a5a5a;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#global-nav ul li:last-child {
  background: #f39700;
}

/* #global-nav ul li a:hover {
  background: #f7c36d;
} */

@media (hover: hover) and (pointer: fine) {
  #global-nav ul li a:hover {
    background: #f7c36d;
  }
}

@media (hover: none) and (pointer: coarse) {
  #global-nav ul li a:active {
    background: #f7c36d;
  }
}

#global-nav li.menu__multi {
  position: relative;
}

#global-nav ul.menu__second-level {
  position: absolute;
  top: 70px;
  width: calc(100% + 1px);
  left: 0px;
  right: 0px;
  visibility: hidden;
  opacity: 0;
  z-index: 1;
}

#global-nav ul.our-services-menu {
  display: flex;
  flex-direction: column;
  top: 270px !important;
}

#global-nav li.menu__multi ul.menu__second-level li {
  position: relative;
  width: 100%;
  height: 50px;
  line-height: 50px;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid #333;
  border-left: 0;
  transition-duration: 0s;
}

.menu__multi:hover > .js-menu-content {
  display: block;
}

#global-nav li.menu__multi:hover ul.menu__second-level {
  visibility: visible;
  opacity: 1;
}

#global-nav li.menu__multi ul a {
  display: block;
  color: #fff;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

/* add */

/* Close Button */
#nav-toggle {
  display: none;
  position: absolute;
  right: 12px;
  top: 14px;
  width: 34px;
  height: 36px;
  cursor: pointer;
  z-index: 101;
}

#nav-toggle div {
  position: relative;
}

#nav-toggle span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #fff;
  left: 0;
  -webkit-transition: 0.35s ease-in-out;
  -moz-transition: 0.35s ease-in-out;
  transition: 0.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;
}

a {
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

@media only screen and (max-width: 640px) {
  .main-nav {
    display: none;
  }

  #global-nav ul {
    width: 100%;
    float: right;
    list-style: none;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0px;
    display: flex;
    justify-content: initial;
    flex-wrap: wrap;
  }

  #global-nav ul.menu__second-level,
  .js-menu-content {
    position: relative !important; /* override absolute */
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: none; /* keep hidden until JS opens it */
  }

  .js-menu-content {
    position: relative;
    background: #f9f9f9;
  }

  .menu__multi.is-open > .js-menu-content {
    display: block;
  }

  .main-nav {
    /* border-top: 1px solid #ddd; */
    margin-top: 10px;
  }

  #global-nav ul.our-services-menu {
    /* display: flex; */
    flex-direction: column;
    top: 0 !important;
  }
}

#header {
  border: none;
}

#header .l-header__inner.l-container {
  padding: 0;
}

.swell-head__widget {
  float: right;
  display: flex;
  height: 100%;
  gap: 2px;
}

.l-header__customBtn,
.l-header__menuBtn {
  height: 100%;
}

.pc-view {
  display: block;
}

.sp-view {
  display: none;
}

@media only screen and (max-width: 980px) {
  #top-head {
    top: 0;
    position: fixed;
    margin: 0;
    padding: 0;
    height: 60px;
    overflow: visible !important;
  }

  #top-head.fixed {
    height: 60px;
    padding-top: 0;
    background: transparent;
    background: #222;
  }

  #top-head #logo {
    color: #333;
    top: 0px;
    font-size: 26px;
    margin: 15px 0 0 0;
  }

  #top-head #logo img {
    width: 150px;
  }

  #mobile-head {
    width: 100%;
    z-index: 300;
    position: relative;
  }

  #global-nav {
    position: absolute;
    top: -720px;
    background: #333;
    width: 100%;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    z-index: 200;
  }

  #global-nav ul {
    width: 100%;
    list-style: none;
    position: static;
    right: 0;
    bottom: 0;
    font-size: 18px;
  }

  #global-nav ul li {
    width: 100%;
    height: fit-content;
    line-height: 80px;
    box-shadow: none;
    position: static;
    background-position: 15px center !important;
    border-bottom: 1px solid #000;
    border-left: none;
    border-top: none;
    text-align: left;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  #global-nav ul li a {
    width: 100%;
    display: block;
    color: #fff;
    padding: 0 0 0 20px;
    text-decoration: none;
  }

  #global-nav ul li a span {
    visibility: visible;
    color: #fff;
  }

  #global-nav ul li a p {
    display: none;
  }

  #global-nav ul li:first-child br,
  #global-nav ul li:nth-child(3) br {
    display: none;
  }

  #global-nav ul li:first-child a,
  #global-nav ul li:nth-child(3) a {
    padding: 0 0 0 20px;
    line-height: unset;
  }

  #nav-toggle {
    display: none;
    margin: 5px 0 0 0;
  }

  .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);
  }

  .open #nav-toggle span ul {
    background: #f00;
  }

  .open #nav-toggle span ul li {
    float: none;
  }

  .open #nav-toggle span ul li span {
    color: #fff;
  }

  .open #global-nav {
    -moz-transform: translateY(722px);
    -webkit-transform: translateY(722px);
    transform: translateY(722px);
  }

  .pc-view {
    display: none;
  }

  .sp-view {
    display: block;
    margin-top: 60px;
  }

  .sp_,
  .sp_only {
    display: block !important;
  }

  .c-headLogo.-txt {
    justify-content: center;
  }

  .l-fixHeader,
  .l-header__gnav {
    display: none;
  }
}
