.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}

.header-nav__trigger {
  width: 3rem;
  height: 3rem;
  display: flex;
  cursor: pointer;
  position: relative;
  border-radius: 1rem;
  background-color: var(--ink);

  & .header-nav__trigger-toggle {
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%);
    border-radius: 1px;
    height: 2px;
    width: 1.25rem;
    display: block;
    background-color: var(--white);
    position: absolute;
    transition: all 150ms ease;

    &::before,
    &::after {
      content: "";
      top: 0;
      left: 0;
      border-radius: 1px;
      height: 2px;
      width: 1.25rem;
      display: block;
      background-color: var(--white);
      position: absolute;
      transition: all 150ms ease;
    }

    &::before {
      animation: toggler-top 800ms ease forwards;
    }

    &::after {
      animation: toggler-bottom 800ms ease forwards;
    }
  }

  &.active .header-nav__trigger-toggle {
    transition-delay: 200ms;
    transform: translate(-50%, -50%) rotate(135deg);

    &::before {
      animation: toggler-top-open 800ms ease forwards;
    }

    &::after {
      animation: toggler-bottom-open 800ms ease forwards;
    }
  }
}

.header-nav__content {
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 8rem;
  height: 100%;
  width: 100%;
  background-color: var(--blue);
  transition: all 400ms ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: -1;
  color: var(--ink);
}


/** Keyframes **/
@keyframes toggler-top-open {
  0% {
    transform: translateY(6px);
  }

  30% {
    transform: translateY(0);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes toggler-bottom-open {
  0% {
    transform: translateY(-6px);
  }

  30% {
    transform: translateY(0);
  }

  to {
    transform: translateY(0) rotate(90deg);
  }
}

@keyframes toggler-bottom {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(0);
  }

  to {
    transform: translateY(6px);
  }
}

@keyframes toggler-top {
  0% {
    transform: translateY(0) rotate(90deg);
  }

  30% {
    transform: translateY(0);
  }

  to {
    transform: translateY(-6px);
  }
}

/**
 * 開発時にLoading Spinnerで隠れないようにするためのスタイル
 */
.loading-spinner {
  display: none;
}

.page-components {
  display: none;
}

.header-menu {
  position: relative;
  
  & .header-menu__content {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    border-radius: 1rem;
    padding: 1rem;
    width: 12.5rem;
    background-color: var(--snow);
    box-shadow: 0px 4px 8px 4px rgba(0, 0, 0, 0.04), 0px 8px 16px 8px rgba(0, 0, 0, 0.02);
  }
}

.header-insta-link {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background-image: var(--grad-instagram);
  display: flex;
  align-items: center;
  justify-content: center;
  & > img {
    width: 2rem;
  }
}

