@charset "utf-8";

.header {
  background-color: white;
  width: 100%;
  height: 65px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  margin: 0;
}

.header__inner {
  padding: 0 20px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: inherit;
  position: relative;
}

/* ヘッダーのロゴ部分 */
.header__title {
  width: 228px;
}

@media screen and (min-width: 960px) {
  .header__title {
    width: 120px;
  }
}

.header__title img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ヘッダーのナビ部分 */

.header__nav {
  position: absolute;
  right: 0;
  left: 0;
  top: 65px;
  width: 100%;
  height: 100vh;
  transform: translateX(100%);
  background-color:#F8F8F8;
  transition: ease 0.4s;
}

@media screen and (min-width: 960px) {
  .header__nav {
    position: static;
    transform: initial;
    background-color: inherit;
    height: inherit;
    display: flex;
    justify-content: end;
    width: 50%;
  }
}

@media screen and (min-width: 960px) {
  .nav__items {
    width: 100%;
    display: flex;
    align-items: center;
    height: initial;
    justify-content: space-between;
  }
}


.nav-items:first-child{
  top: 42%;
  width: 70%;
  border-top:1px solid #707070;
}
.nav-items:first-child li:first-child{
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-items:first-child li:first-child a{
  width: auto;
    padding: 20px 0;
    margin: 0 10px;
}
.nav-items:first-child li:first-child a:last-child{
  font-size: 1rem;
}
.nav-items:first-child li a{
  font-size: 1.5rem;
  padding: 20px;
  letter-spacing: .5rem;
  color: #4E4C4C;
  margin: 0;
}
.nav-items:first-child li{
  border-bottom:1px solid #707070;
}


.nav-items:first-child li:nth-child(7){
border: none;
margin: 40px 0 0;
}
.nav-items:first-child li:nth-child(8){
border: none;
}
.nav-items:first-child li:nth-child(9){
border: none;
}

.nav-items:first-child li:nth-child(7) a{
padding: 0;
font-size: 1.2rem;
font-family: sans-serif;
margin: 0 0 20px;
}
.nav-items:first-child li:nth-child(8) a{
padding: 0;
font-size: 1.2rem;
font-family: sans-serif;
margin: 0 0 20px;
}
.nav-items:first-child li:nth-child(9) a{
padding: 0;
font-size: 1.2rem;
font-family: sans-serif;
margin: 0 0 20px;
}

/*.nav-items:last-child{
  top: 63%;
}
.nav-items:last-child a{
  font-size: 1.2rem;
  font-family: sans-serif;
  color: #4E4C4C;
  letter-spacing: .25rem;
}*/

.nav-items {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
}

@media screen and (min-width: 960px) {
  .nav-items {
    position: inherit;
    top: 0;
    left: 0;
    transform: translate(0, 0);
  }
}

/* ナビのリンク */
.nav-items__item a {
  color: black;
  width: 100%;
  display: block;
  text-align: center;
  font-size: 20px;
  margin-bottom: 24px;
  color: black;
}

.nav-items__item:last-child a {
  margin-bottom: 0;
}

@media screen and (min-width: 960px) {
  .nav-items__item a {
    margin-bottom: 0;
  }
}

/* ハンバーガーメニュー */

.header__hamburger {
  width: 34px;
  margin: 0 0 -4px;
}

.hamburger {
  background-color: transparent;
  border-color: transparent;
  z-index: 998;
}

@media screen and (min-width: 960px) {
  .hamburger {
    display: none;
  }
}

/* ハンバーガーメニューの線 */
.hamburger span {
  width: 100%;
  height: 1px;
  background-color: #000;
  position: relative;
  transition: ease 0.4s;
  display: block;
}

.hamburger span:nth-child(1) {
  top: 0;
  margin: 0 0 5px;
}

.hamburger span:nth-child(2) {
  margin: 0 0 5px;
}

.hamburger span:nth-child(3) {
  margin: 0 0 5px;
}

.hamburger span:nth-child(4) {
  margin: 0;
}

/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
  transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
  left: 0;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  opacity: 0;
}

.hamburger.active span:nth-child(4) {
  top: -11px;
  transform: rotate(-45deg);
  left: 0;
}
