/* 調整用スタイル */

a {
  text-decoration: none;
}

ul,
li {
  list-style: none;
}


/* main {
  background-color: #f1f1f1;
  height: 800px;
  display: flex;
} */


.main {
  margin: auto;
}

.footer {
  background-color: #f6f6f6;
  height: 200px;
  display: flex;
}

.footer div {
  margin: auto;
}


/* ヘッダー */
.header {
  background-color: white;
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
}

@media screen and (min-width:521px) and (max-width: 959px) {
  .header {
    z-index: 500;
  }
}

@media screen and (max-width: 520px) {
  .header {
    z-index: 199;
  }
}

.header__inner {
  padding: 0 5vw 0 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: inherit;
  position: relative;
}


/* ヘッダーのロゴ部分 */
@media screen and (min-width: 960px) {
  .header__title {
    width: 120px;
  }
}
@media screen and (max-width: 959px) {
  .header__title {
    width: 8rem;
  }
}

@media screen and (max-width: 520px) {
  .header__title {
    width: 7.7rem;
  }
}




.header__title img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ヘッダーのナビ部分 */

.header__nav {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  transform: translateX(100%);
  background-color: #fff;
  transition: ease .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 {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (max-width: 959px) {
  .nav-items {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-items li{
    margin-bottom: 3rem;
    width: 60vw;
  }

  /* .nav-items li:last-child{
    margin-bottom: 0;
    margin-top: 2rem;
    width: 60vw;
    text-align: center;
  } */

  .nav-items li a,
  .nav-items li a:link{
    color: #565AC0;
    font-size: 1.4rem;
    font-weight: 300;
  }
}

@media screen and (max-width: 520px) {
  .nav-items {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-items li{
    margin-bottom: 2.5rem;
    width: 15em;
  }

  /* .nav-items li:last-child{
    margin-bottom: 0;
    margin-top: 2rem;
    width: 60vw;
    text-align: center;
  } */

  .nav-items li a,
  .nav-items li a:link{
    color: #565AC0;
    font-size: 4.5vw;
    font-weight: 300;
  }
}


/* .nav-items li:last-child a{
  color: #fff;
  background: linear-gradient(180deg, rgba(170,173,247,1) 0%, rgba(108,113,241,1) 100%);
  box-shadow: 0px 8px 16px -2px rgba(10,10,10,0.1), 0px 0px 0px 1px rgba(10,10,10,0.02);
  border-radius: 65px;
  padding: 1rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-weight: 400;
} */

@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;
}

/* .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: 48px;
  height: 100%;

}

.hamburger {
  background-color: transparent;
  border-color: transparent;
  z-index: 9999;
}

@media screen and (min-width: 960px) {
  .hamburger {
    display: none;
  }
}

/* ハンバーガーメニューの線 */
.hamburger span {
  width: 100%;
  height: 1px;
  background-color: #333;
  position: relative;
  transition: ease .4s;
  display: block;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  margin: 8px 0;
}

.hamburger span:nth-child(3) {
  top: 0;
}


/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
  transform: translateX(0);
  background-color: #FAFDFF;
}

.hamburger.active span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;

}

.hamburger.active span:nth-child(3) {
  top: -12px;
  transform: rotate(-45deg);
}
