/* ヘッダースタイル */
.header {
  background-color: var(--blue);
  width: 100%;
  height: 5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, rgba(0, 0, 0, 0.15) 0 3px 6px;
}

@media screen and (min-width: 1080px) {
  .header {
    height: 6rem;
  }
}
@media screen and (min-width: 960px) {
  .header {
    height: 4.5rem;
  }
}

/* ヘッダー内部レイアウト */
.header__inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: inherit;
  position: relative;
}
@media screen and (min-width: 2560px) {
  .header__inner {
    max-width: 1920px;
  }
}

/* ヘッダーのロゴ部分 */
.header__logo {
  z-index: 999;
  width: auto;
  height: 100%;
}

.header__logo a {
  height: 100%;
  display: flex;
  align-items: center;
}

.header__logo img {
  width: 8rem;
}

/* ヘッダーのナビゲーション部分 */
.header__nav {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  transform: translateX(100%);
  background-color: var(--blue);
  transition: ease 0.4s;
  display: flex;
}

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

/* ナビゲーションリスト */
.header__nav-list {
  margin: auto;
  list-style: none;
}

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

/* ナビゲーションアイテム */
.header__nav-item {
  cursor: pointer;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ナビゲーションリンク */
.header__nav-item a {
  color: var(--white);
  text-decoration: none;
  width: 100%;
  display: block;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
}

.header__nav-item:last-child a {
  margin-bottom: 0;
}

@media screen and (min-width: 960px) {
  .header__nav-item a {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: normal;
  }

  .header__nav-item a:hover {
    opacity: 0.8;
    transition: ease 200ms;
  }
}

@media screen and (min-width: 1280px) {
  .header__nav-item a {
    font-size: 1.2rem;
  }
}

/* 外部リンク用スタイル */
.header__nav-link--external::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.5em;
  background-image: url("/images/page-transition-white.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ハンバーガーメニュー */
.header__hamburger {
  width: 48px;
  height: 100%;
  background-color: transparent;
  border-color: transparent;
  z-index: 9999;
  cursor: pointer;
}

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

/* ハンバーガーメニューの線 */
.header__hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: ease 0.4s;
  display: block;
}

.header__hamburger span:nth-child(1) {
  top: 0;
}

.header__hamburger span:nth-child(2) {
  margin: 8px 0;
}

.header__hamburger span:nth-child(3) {
  top: 0;
}

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

.header__hamburger.active span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

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

.header__hamburger.active span:nth-child(3) {
  top: -13px;
  transform: rotate(-45deg);
}
