.header-rakusta-lp__root {
  --rlpHeaderHeightMobile: 40;
  --rlpHeaderHeightPaddingX: 16;

  width: 100%;
  display: flex;
  align-items: center;
  z-index: 20;

  @media (min-width: 0px) {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    background: #FFFFFF;
    height:  calc(var(--rlpHeaderHeightMobile) * var(--as1Px));
  }
  @media (min-width: 768px) {
    position: relative;
    top: unset;
    background: transparent;
    height:  calc(80 * var(--as1Px));
  }
  .header-rakusta-lp__content {
    width: var(--responsiveContentMaxWidth);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    @media (min-width: 0px) {
      padding: 0 calc(var(--rlpHeaderHeightPaddingX) * var(--as1Px));
    }
    @media (min-width: 768px) {
      padding: 0 calc(40 * var(--as1Px));
    }
  }

  .rlp-header-nav {
    align-items: center;
    height: 100%;
    gap: calc(16 * var(--as1Px));
    @media (min-width: 0px) {
      display: none;
    }
    @media (min-width: 768px) {
      display: flex;
    }
  }

  .rlp-header-logo {
    @media (min-width: 0px) {
      width:  calc(80 * var(--as1Px));
      height: calc(18 * var(--as1Px));
    }
    @media (min-width: 768px) {
      width:  calc(120 * var(--as1Px));
      height: calc(27 * var(--as1Px));
    }
    img {
      width: 100%;
      height: 100%;
    }
  }

  .rlp-header-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .rlp-header-menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 calc(8 * var(--as1Px));
    box-sizing: border-box;
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: calc(3 * var(--as1Px));
      background-color: var(--rlp-color--primary--default);
      transition: left 0.25s ease-out, width 0.25s ease-out;
    }
    &.rlp-header-menu-item--active, &:hover {
      &::after {
        left: 0%;
        width: 100%;
      }
      * {
        color: var(--rlp-color--primary--default);
      }
    }
    a {
      display: flex;
      align-items: center;
      height: 100%;
      cursor: pointer;
      text-decoration: none;
      font-style: normal;
      font-weight: 700;

      .rlp-header-menu-item__label {
        display: inline-block;
        font-size: calc(10 * var(--as1Px));
        padding: calc(2 * var(--as1Px)) calc(6 * var(--as1Px));
        border-radius: 9999px;
        margin-left: calc(2 * var(--as1Px));
        color: white;
        background-color: var(--rlp-color--primary--default);
      }
    }
  }

  .rlp-header-button-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: calc(16 * var(--as1Px));
  }
  .rlp-header-button-item {
    margin: 0;
  }


  .rlp-header-menu {
    @media (min-width: 0px) {
      display: block;
    }
    @media (min-width: 768px) {
      display: none;
    }
  }

  .rlp-header-menu__toggle {
    cursor: pointer;
    user-select: none;
    svg {
      width: calc(24 * var(--as1Px));
      height: calc(24 * var(--as1Px));
    }
  }
  .rlp-header-menu__content {
    position: fixed;
    height: calc(100dvh - var(--wp-admin--admin-bar--height, 0));
    top: var(--wp-admin--admin-bar--height, 0);
    right: 0;
    background: #FFFFFF;
    /*display: grid;*/
    /*grid-template-columns: 0fr;*/
    /*transition: grid-template-columns 0s ease-out; !* アニメーション時の余白がおかしいので一旦 0s *!*/
    /*&.rlp-header-menu__content--opened {*/
    /*  grid-template-columns: 1fr;*/
    /*}*/
    z-index: 24;

    width: 0;
    transition: width 0.25s ease-out;
    &.rlp-header-menu__content--opened {
      width: calc(232 * var(--as1Px));
    }

    /*@keyframes expand {*/
    /*  0% {*/
    /*    width: 0;*/
    /*  }*/
    /*  100% {*/
    /*    width: asPx(280);*/
    /*  }*/
    /*}*/
    /*@keyframes collapse {*/
    /*  0% {*/
    /*    width: asPx(280);*/
    /*  }*/
    /*  100% {*/
    /*    width: 0;*/
    /*  }*/
    /*}*/
  }

  .rlp-aside-nav {
    overflow: hidden;
    height: 100%;
    width: 100%;
    /*display: flex;*/
    /*flex-direction: column;*/
    /*align-items: flex-end;*/
    /*justify-content: flex-end;*/
    overscroll-behavior-y: contain;
  }
  .rlp-aside-nav__head {
    /*width: 100%;*/
    height: calc(var(--rlpHeaderHeightMobile) * var(--as1Px));
    padding: 0 calc(var(--rlpHeaderHeightPaddingX) * var(--as1Px));
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .rlp-aside-menu-list {
    list-style: none;
    margin: 0 calc(16 * var(--as1Px));
    padding: calc(16 * var(--as1Px));
    width: calc(200 * var(--as1Px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(8 * var(--as1Px));
  }

  .rlp-aside-menu-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: calc(3 * var(--as1Px));
      background-color: var(--rlp-color--primary--default);
      transition: left 0.25s ease-out, width 0.25s ease-out;
    }

    &:hover, &:active {
      * {
        color: var(--rlp-color--primary--default);
      }
      &::after {
        left: 0%;
        width: 100%;
      }
    }
    a {
      display: flex;
      align-items: center;
      height: 100%;
      padding: calc(16 * var(--as1Px));
      cursor: pointer;
      text-decoration: none;

      font-family: 'Noto Sans JP';
      font-style: normal;
      font-weight: 700;
      font-size: calc(14 * var(--as1Px));
      line-height: 100%;

      .rlp-header-menu-item__label {
        display: inline-block;
        font-size: calc(10 * var(--as1Px));
        padding: calc(2 * var(--as1Px)) calc(6 * var(--as1Px));
        border-radius: 9999px;
        margin-left: calc(2 * var(--as1Px));
        color: white;
        background-color: var(--rlp-color--primary--default);
      }
    }
  }

  .rlp-aside-button-list {
    list-style: none;
    margin: 0;
    padding: calc(16 * var(--as1Px));
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(16 * var(--as1Px));
  }
  .rlp-aside-button-item {
    width: 100%;
  }
}
