@charset "UTF-8";

@layer style {
  .sp-menu {
    position: fixed;
    top: 28px;
    right: 40px;
    z-index: 220;
    inline-size: 52px;
    aspect-ratio: 52/33.5;
    background-image: url('../../../img/recruit/_common/menu.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    @media only screen and (width <=768px) {
      top: calc((100 / 390) * 17 * 1vw);
      right: calc((100 / 390) * 24 * 1vw);
      z-index: 220;
      inline-size: calc((100 / 390) * 40 * 1vw);
    }
  }

  /* ==== 閉じる ==== */
  .menu-on {
    .sp-menu {
      position: fixed;
      top: 28px;
      right: 40px;
      background-image: url('../../../img/recruit/_common/menu_close.png');

      @media only screen and (width <=768px) {
        top: calc((100 / 390) * 17 * 1vw);
        right: calc((100 / 390) * 24 * 1vw);
      }
    }
  }

  .sp-nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background: linear-gradient(180deg, #001636 0%, #0c7db5 100%);
    transform: translateY(-100%);
    transition: all 350ms var(--easeOutExpo) 0s;

    &::before {
      position: absolute;
      inset: 0;
      inline-size: 100%;
      block-size: 718px;
      content: '';
      background-image: url('../../../img/recruit/_common/menu_bg.png');
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
    }

    @media only screen and (width <=768px) {
      &::before {
        block-size: calc((100 / 390) * 718 * 1vw);
      }
    }

    /* ==== inner ==== */
    .sp-nav-inner {
      position: relative;
      inline-size: 1440px;
      max-block-size: 100dvh;
      margin-inline: auto;

      @media only screen and (width <=768px) {
        inline-size: 100%;
      }

      .body {
        block-size: 100dvh;
        padding-block: 114px 56px;
        padding-inline: 211px;
        overflow-y: auto;
        color: #fff;

        @media only screen and (width <=768px) {
          padding-block: calc((100 / 390) * 114 * 1vw) calc((100 / 390) * 56 * 1vw);
          padding-inline: calc((100 / 390) * 24 * 1vw);
        }

        .main-nav {
          display: block grid;
          grid-template-columns: repeat(3, 270px);
          gap: 72px 104px;
          justify-content: center;

          @media only screen and (width <=768px) {
            grid-template-columns: 1fr;
            gap: calc((100 / 390) * 48 * 1vw) 0;
          }

          .head {
            position: relative;
            display: block flow;
            padding-block: 16px;
            font-size: 18px;
            font-weight: 500;
            border-block-end: 1px solid #fff;

            @media only screen and (width <=768px) {
              padding-block: calc((100 / 390) * 16 * 1vw);
              font-size: calc((100 / 390) * 18 * 1vw);
            }

            &::after {
              position: absolute;
              top: 50%;
              right: 0;
              inline-size: 12px;
              aspect-ratio: 1 / 1;
              content: '';
              background: white;
              mask-image: var(--icon-arrow);
              mask-repeat: no-repeat;
              mask-position: center;
              mask-size: contain;
              transform: translateY(-50%);
              transition: all 250ms ease 0s;
            }

            @media only screen and (width <=768px) {
              &::after {
                inline-size: calc((100 / 390) * 12 * 1vw);
              }
            }
          }

          .middle {
            margin-block-start: 16px;
            font-weight: 500;

            @media only screen and (width <=768px) {
              margin-block-start: calc((100 / 390) * 16 * 1vw);
            }

            >li {
              & a {
                display: block flow;
                padding-block: 16px;

                @media only screen and (width <=768px) {
                  padding-block: calc((100 / 390) * 16 * 1vw);
                }
              }
            }

            .dot {
              position: relative;
              display: block flex;
              gap: 12px;

              @media only screen and (width <=768px) {
                gap: calc((100 / 390) * 12 * 1vw);
              }

              &::before {
                content: '•';
              }
            }

            .has-sub {
              display: block flex;
              gap: 40px;

              @media only screen and (width <=768px) {
                gap: calc((100 / 390) * 40 * 1vw);
              }

              .sub {
                display: block flex;

                &>li+li {
                  display: block flex;
                  align-items: center;

                  &::before {
                    margin-inline: 12px;
                    content: '/';
                  }

                  @media only screen and (width <=768px) {
                    &::before {
                      margin-inline: calc((100 / 390) * 12 * 1vw);
                    }
                  }
                }
              }
            }
          }

          .entry-list {
            &>li {
              & a {
                display: block grid;
                place-content: center;
                inline-size: 246px;
                block-size: 57px;
                background-color: #fff;

                @media only screen and (width <=768px) {
                  inline-size: calc((100 / 390) * 246 * 1vw);
                  block-size: calc((100 / 390) * 57 * 1vw);

                  & img {
                    inline-size: calc((100 / 390) * 157 * 1vw);
                  }
                }
              }
            }

            & li+li {
              margin-block-start: 24px;

              @media only screen and (width <=768px) {
                margin-block-start: calc((100 / 390) * 24 * 1vw);
              }
            }
          }
        }

        .sub-nav-list {
          display: block flex;
          gap: 64px;
          align-items: center;
          justify-content: flex-start;
          margin-block-start: 78px;
          font-size: 14px;

          @media only screen and (width <=768px) {
            flex-direction: column;
            gap: calc((100 / 390) * 24 * 1vw);
            margin-block-start: calc((100 / 390) * 48 * 1vw);
            font-size: calc((100 / 390) * 14 * 1vw);

            & img {
              inline-size: calc((100 / 390) * 40 * 1vw);
            }
          }
        }
      }
    }
  }

  /* Menu on */
  .menu-on {
    .sp-nav {
      pointer-events: auto;
      transform: translateY(0);
      transition: all 350ms var(--easeOutExpo) 0s;
    }
  }
}
