@charset "utf-8";

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

.p-header__inner {
  width: 100%;
  height: 100%;
  padding: 42px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

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

  .c-contact-btn {
    @media (width < 768px) {
      display: none;
    }
  }
}

.p-header__logo {
  display: block;
  width: 183px;
  aspect-ratio: 183/34;
  flex-shrink: 0;

  img {
    object-fit: contain;
  }
}

.p-header__nav {
  max-width: fit-content;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 10px 35px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);

  @media (width < 1120px) {
    padding: 10px 18px;
  }

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

.p-header__link a {
  font-weight: 500;
  white-space: nowrap;
}

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

.p-header-icon {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
  width: 50px;
  aspect-ratio: 3/2;
  cursor: pointer;
  position: fixed;
  top: 18px;
  right: 25px;
  z-index: 50;
  display: none;

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

.p-header-icon.is-open {
  background: transparent;

  .p-header-icon__bar div:nth-of-type(1) {
    transform: translateY(7.6px) rotate(-45deg);
  }

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

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

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

  div {
    position: absolute;
    display: flex;
    background: var(--color-base);
    width: 100%;
    height: 2px;
    transition: all 0.5s ease;
  }
}

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

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

.p-header-icon__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.5s ease;
  opacity: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
  display: none;

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

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

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

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

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

.p-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-drawer__link a {
  font-weight: 500;
  white-space: nowrap;
}

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