@charset "utf-8";

.p-header {
  width: 100%;
  padding-right: 90px;
  padding-left: 8px;
  height: 65px;
  position: fixed;
  top: 10px;
  z-index: 10;
  overflow: hidden;

  @media (width < 768px) {
    padding-right: 75px;
  }
}

.p-header.is-scroll {
  padding-right: 8px;

  & + .p-header-btn {
    @media (width < 768px) {
      display: flex;
    }
  }
}

.p-header__inner {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

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

.p-header__nav {
  padding: 0 30px;
  display: flex;
  gap: 48px;

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

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

.p-header__link a,
.p-drawer__link a {
  color: var(--color-black);
  font-weight: 500;
}

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

.p-header-btn {
  display: none;
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 40;
  background: var(--color-blue);
  width: 60px;
  height: 40px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.p-side {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  right: 0;
  width: 76px;
  min-height: 630px;
  height: 100vh;
  max-height: 769px;
  z-index: 30;

  @media (width < 768px) {
    width: 60px;
    height: 520px;
    min-height: auto;
    max-height: none;
  }
}

.p-side__nav {
  background: var(--color-blue);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 419px;

  @media (width < 768px) {
    min-height: 320px;
  }
}

.p-side-btn {
  width: 100%;
  height: 105px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  flex: 1 1 auto;

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

.p-side-btn::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  width: 72%;
  height: 1px;
}

.p-side-btn__bar {
  width: 26px;
  height: 10px;
  position: relative;

  div {
    position: absolute;
    display: block;
    background: var(--color-white);
    width: 100%;
    height: 1px;
    transition: all 0.3s ease;
  }
}

.p-side-btn__bar div:first-of-type {
  top: 0;
}

.p-side-btn__bar div:last-of-type {
  bottom: 0;
}

.p-side-btn.is-open,
.p-header-btn.is-open {
  .p-side-btn__bar div:first-of-type {
    transform: translateY(4px) rotate(-30deg);
  }

  .p-side-btn__bar div:last-of-type {
    transform: translateY(-5px) rotate(30deg);
  }
}

.p-side-btn__text {
  color: var(--color-white);
  font-size: 10px;
  font-weight: 600;
  line-height: normal;

  @media (width < 768px) {
    font-size: 8px;
  }
}

.p-side-btn__icon {
  width: auto;
  height: 20px;
  object-fit: contain;
}

.p-side-btn[href="./contact"] .p-side-btn__icon {
  height: 14px;
}

.p-side__text {
  flex: 1 1 auto;
  width: 100%;
  background: #eceded;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-lr;
  font-size: 18px;
  font-weight: 700;

  @media (width < 768px) {
    font-size: 16px;
  }
}

.p-drawer {
  position: absolute;
  width: 100%;
  max-width: 0px;
  min-height: 630px;
  height: 100vh;
  max-height: 769px;
  top: 0;
  right: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 20;
  background: #eceded;

  @media (width < 768px) {
    position: fixed;
    max-height: none;
    min-height: auto;
  }
}

.gjs-dashed *[data-highlightable] .p-drawer {
  max-width: 320px;
  top: 70px;
}

.p-drawer.is-show {
  max-width: 320px;
}

.p-drawer__nav {
  padding: 60px 100px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.p-drawer__link {
  white-space: nowrap;
}
