/*---------------------------------
header
--------------------------------*/
/* スマホ用 580px以下に適用されるCSS */

header .pc {
  display: none !important;
}

header .sp {
  display: inherit !important;
}

/* menu */
header .sp {
  width: 100%;
  height: 20vw;
}

/* Nav items */
header .sp .menu {
  list-style: none;
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: auto;
  top: 0;
  padding: 20.8vw 2.666vw 8vw 2.666vw;
  margin: 0;
  clear: both;
  background-color: #F2F9FD;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  transform: scale(1, 0);
  transform-origin: top;
  z-index: 998;
}

/* Hamburger menu button */
header .sp .menu-btn:checked~.menu {
  transform: scale(1, 1);
  transform-origin: top;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

header .sp .menu-btn {
  display: none;
}

header .sp .menu-icon {
  display: inline-block;
  position: fixed;
  right: 0;
  cursor: pointer;
  padding: 7.61vw 4vw 2.53vw;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  z-index: 999;
}

header .sp .menu-icon .btn-text::before {
  position: absolute;
  content: "menu";
  font-size: 3.333vw;
  color: var(--main-color);
  bottom: -6.2vw;
  left: 50%;
  transform: translateX(-50%);
}

header .sp .navicon {
  background: var(--main-color);
  display: block;
  height: 0.533vw;
  width: 10.666vw;
  position: relative;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

header .sp .navicon:before,
header .sp .navicon:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

header .sp .navicon:before {
  top: 3.2vw;
  background: #034577;
}

header .sp .navicon:after {
  bottom: 3.2vw;
  background: #0085B6;
}

/* Hamburger Menu Animation Start */
header .sp .menu-btn:checked~.menu-icon .navicon:before {
  transform: rotate(-45deg);
}

header .sp .menu-btn:checked~.menu-icon .navicon:after {
  transform: rotate(45deg);
}

header .sp .menu-btn:checked~.menu-icon:not(.steps) .navicon:before {
  top: 0;
}

header .sp .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
  bottom: 0;
}

header .sp .menu-btn:checked~.menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
  transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

header .sp .menu-btn:checked~.menu-icon .btn-text::before {
  content: "close";
}

/* Hamburger Menu Animation End */

/* Navbar Container */
header .sp .navtext-container {
  width: 100%;
  height: 20vw;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: start;
}

/* logo */
header .sp .logo {
  padding: 1.333vw;
  position: absolute;
}

header .sp .logo img {
  width: 50.133vw;
}

/* Tablet用 581px以上に適用されるCSS */
@media (min-width: 581px) {

  /* menu */
  header .sp {
    width: 100%;
    height: 112px;
  }

  /* Nav items */
  header .sp .menu {
    padding: 120px 30px 30px 30px;
  }

  header .sp .menu-icon {
    padding: 40px 30px 15px;
  }

  header .sp .menu-icon .btn-text::before {
    font-size: .8125rem;
    bottom: -26px;
  }

  header .sp .navicon {
    height: 2px;
    width: 46px;
  }

  header .sp .navicon:before {
    top: 14px;
  }

  header .sp .navicon:after {
    bottom: 14px;
  }

  /* logo */
  header .sp .logo {
    padding: 7px 0 5px 13px;
  }

  header .sp .logo img {
    width: 286px;
  }
}

/* PC用 981px以上に適用されるCSS */
@media (min-width: 981px) {

  header .pc {
    display: inherit !important;
  }

  header .sp {
    display: none !important;
  }

  header .pc .logo {
    padding: 7px 0 5px 13px;
  }

  header .pc .logo img {
    width: 286px;
  }

  header .pc .menu {
    padding: 30px;
  }

  header .pc .menu ul {
    margin: 0;
    padding: 0;
  }

  header .pc .menu ul li {
    list-style: none;
    margin: auto;
  }

  header .pc .menu ul li a ,#searchform{
    display: block;
    color: #101010;
    font-weight: bold;
    padding: 1em 1.3em;
  }

  header .pc .menu ul li a:hover {
    color: var(--main-color);
  }

  header .pc .menu ul li:nth-child(5) a {
    padding-right: 2em;
  }

  header .pc .menu ul li.contact a {
    padding: 0;
    width: 160px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    text-align: center;
    display: block;
    position: relative;
    z-index: 0;
  }

  header .pc .menu ul li.contact a::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    left: 0;
    transition: 0.5s;
    background: linear-gradient(to right, #034577, #0064AF, #0085B6);
    border-radius: 50px;
  }

  header .pc .menu ul li.contact a::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -2;
    left: 0;
    background: linear-gradient(to right, #0085B6, #0064AF, #034577);
    border-radius: 50px;
  }

  header .pc .menu ul li.contact a:hover {
    opacity: 1;
  }

  header .pc .menu ul li.contact a:hover::before {
    opacity: 0;
  }
}