@charset "utf-8";

.p-header {
  width: 100%;
  height: 97px;
  background: var(--color-white);
  position: fixed;
  top: 0;
  z-index: 10;

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

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

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

.p-header__container:first-of-type {
  display: flex;
  align-items: center;
  gap: 13px;

  @media (width < 768px) {
    gap: 8px;
  }
}

.p-header__logo {
  width: 156px;
  aspect-ratio: 156/52;

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

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.p-header__text {
  color: #393939;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

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

  @media (width < 1120px) {
    gap: 20px;
  }

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

.p-header__link a {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.p-header__link a:hover {
  opacity: 0.7;
}

.p-header__contact {
  width: fit-content;
  min-width: 152px;
  height: 54px;
  background: var(--color-red);
  border: 1px solid var(--color-white);
  border-radius: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  p {
    color: #ffffff;
    line-height: 1.429;
    letter-spacing: 0.05em;
    transition: all 0.3s ease-out;
  }

  img {
    width: 15px;
    height: 11px;
    object-fit: contain;
    transition: all 0.3s ease-out;
  }
}

.p-header__contact:hover {
  opacity: 0.7;
}

.p-header__btn {
  background: #f6f5f3;
  border: 1px solid #d9e0dd;
  border-radius: 50%;
  width: 54px;
  aspect-ratio: 1;
  cursor: pointer;
  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: var(--color-red);
    width: 100%;
    height: 2px;
    transition: all 0.3s ease-out;
  }
}

.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-header-btn__text {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--color-blue);
  line-height: 2.5;
  text-align: center;
  text-transform: uppercase;
}

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

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

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

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

.p-drawer__inner {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
