@charset "utf-8";

header {
  padding: 30px 4% 10px;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  background-color: #fff;
  z-index: 2;
}

header h1 {
  width: 250px;
}

header nav {
  margin: 0 0 0 auto;
}

header ul {
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
}

header li {
  margin: 0 0 0 15px;
  font-size: 16px;
}

header li a {
  color: #666;
}

header li a i {
  color: #2A4073;
}


header .sp-nav {
  display: none;
}

@media screen and (max-width: 640px) {

  header {
    padding: 10px 4% 10px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    background-color: #fff;
    z-index: 2;
  }

  header h1 {
    width: 150px;
  }

  /*ハンバーガーメニュー*/
  header .pc-nav {
    display: none;
  }

  header .sp-nav {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    width: 100%;
    background: rgba(0, 0, 0, .8);
    opacity: 0;
    transform: translateY(-100%);
    transition: all .2s ease-in-out;
  }

  header #hamburger {
    position: relative;
    display: block;
    width: 30px;
    height: 25px;
    margin: 0 0 0 auto;
  }

  header #hamburger span {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: translateY(-50%);
  }

  header #hamburger::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
  }

  header #hamburger::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: 2px;
    background-color: #000;
  }

  /*スマホメニュー*/
  header .sp-nav ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  header .sp-nav li {
    margin: 0;
    padding: 0;
  }

  header .sp-nav li span {
    font-size: 17px;
    color: #fff;
  }

  header .sp-nav li a, header .sp-nav li span {
    display: block;
    padding: 20px 0;
    color: #fff;
    text-shadow: none;
  }

  /*-閉じるアイコンー*/
  header .sp-nav .close {
    position: relative;
    padding-left: 20px;
  }

  header .sp-nav .close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 16px;
    height: 1px;
    background: #fff;
    transform: rotate(45deg);
  }

  header .sp-nav .close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 16px;
    height: 1px;
    background: #fff;
    transform: rotate(-45deg);
  }

  header .toggle {
    transform: translateY(0);
    opacity: 1;
  }

}