@charset "utf-8";

.p-header {
  background: #fff;
  width: 100%;
  height: 80px;
  position: fixed;
  top: 0;
  z-index: 10;
  transition: all 0.2s ease;

  @media (width < 768px) {
    height: 60px;
  }

  .l-inner {
    max-width: none;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    @media (width < 768px) {
      padding: 0 10px;
    }
  }
}

.p-header.is-top {
  background: transparent;
  .p-header__link {
    color: #fff;
  }

  .p-header__link a:hover::before {
    background: #fff;
  }
}

.p-header.is-top.p-header.is-scroll {
  background: #fff;

  .p-header__link {
    color: var(--color-base);
  }

  .p-header__link a:hover::before {
    background: hsla(0, 0%, 20%, 1);
  }
}

.p-header__logo {
}

.p-header__nav {
  display: flex;
  align-items: center;
  gap: 40px;

  @media (width < 768px) {
    display: none;
  }
}

.p-header__link a {
  position: relative;
}

.p-header__link a::before {
  transition: all 0.2s ease;
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1px;
  left: 0;
}

.p-header__link a:hover::before {
  background: hsla(0, 0%, 20%, 1);
}

.p-header__contact {
  a {
    width: fit-content;
    min-width: 143px;
    height: 50px;
    background: var(--color-red);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    transition: all 0.2s ease;
  }
}

.p-header__contact a:hover {
  background: #b30a14;
}

.p-header__contact a::before {
  content: "";
  width: 13px;
  height: 10px;
  background: url("https://ajpc-inc.com/system_panel/uploads/images/mail-white.svg") no-repeat center center / contain;
  transition: all 0.2s ease;
}

.p-header__btn {
  background: var(--color-red);
  border-radius: 50%;
  width: 50px;
  aspect-ratio: 1;
  cursor: pointer;
  position: fixed;
  top: 5px;
  right: 10px;
  z-index: 30;
  display: none;

  @media (width < 768px) {
    display: flex;
  }
}

.p-header__btn.is-open {
  .p-header__bar div:nth-of-type(1) {
    transform: translateY(7.6px) rotate(-45deg);
  }

  .p-header__bar div:nth-of-type(2) {
    opacity: 0;
  }

  .p-header__bar div:nth-of-type(3) {
    transform: translateY(-6px) rotate(45deg);
  }
}

.p-header__bar {
  width: 16px;
  height: 16px;
  position: relative;
  margin: auto;

  div {
    position: absolute;
    display: flex;
    background: #fff;
    width: 100%;
    height: 2px;
    transition: all 0.2s ease;
  }
}

.p-header__bar div:nth-of-type(1) {
  top: 0;
}

.p-header__bar div:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}

.p-header__bar div:nth-of-type(3) {
  bottom: 0;
}

.p-drawer {
  position: fixed;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  top: 0;
  right: -400px;
  overflow: auto;
  transition: all 0.2s ease;
  opacity: 0;
  background: #fff;
  z-index: 20;
  display: none;

  @media (width < 768px) {
    display: block;
  }
}

.gjs-dashed *[data-highlightable] .p-drawer {
  right: 0;
  opacity: 1;
  display: block;
  top: 80px;

  @media (width < 768px) {
    top: 60px;
  }
}

.p-drawer.is-show {
  opacity: 1;
  right: 0;
}

.p-drawer__inner {
  padding: 120px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;

  .p-header__link {
    color: var(--color-base);
  }
}
