@charset "utf-8";

.p-header {
  width: 100%;
  position: fixed;
  top: 20px;
  z-index: 20;
  transition: all 0.3s ease;

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

.p-header__inner {
  width: 100%;
  padding: 0 20px;

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

.p-header__box {
  width: 100%;
  height: 54px;
  padding: 0 10px 0 15px;
  border-radius: 2px;
  background: var(--color-l-green);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-header__logo {
  display: flex;
  align-items: center;
  gap: 4px;

  .p-header__logo-img {
    width: 164px;
    aspect-ratio: 151/34;
    object-fit: contain;

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

  .p-header__logo-text {
    font-weight: 300;
    font-size: 12px;
    line-height: calc(32 / 12);
  }
}

.p-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, calc(64vw / 13.66), 64px);

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

.gjs-dashed *[data-highlightable] .p-header__nav {
  display: flex;

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

.p-header__nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, calc(28vw / 13.66), 28px);
}

.p-header__link {
  font-family: var(--font-noto-serif-jp);
  font-size: 13px;
  font-weight: 600;

  a {
    transition: all 0.3s ease;
  }
}

.p-header__link a:hover {
  color: var(--color-green);
}

.p-header__contact {
  width: 134px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--color-green);

  p {
    font-family: var(--font-noto-serif-jp);
    font-weight: 600;
    color: var(--color-white);
  }
}

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

.p-header-icon {
  display: none;
  position: fixed;
  top: 30px;
  right: 32px;
  width: 50px;
  aspect-ratio: 3/2;
  z-index: 50;
  background: var(--color-green);
  border-radius: 2px;
  cursor: pointer;

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

  @media (width < 768px) {
    top: 21px;
    right: 18px;
  }
}

.gjs-dashed .p-header-icon {
  @media (width < 1120px) {
    display: none;
  }

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

.p-header-icon.is-open {
  .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-white);
    width: 100%;
    height: 2px;
    transition: all 0.3s ease-out;
  }
}

.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-header-icon__bar {
}

.p-drawer {
  position: fixed;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  top: 0;
  right: -400px;
  overflow: auto;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 30;
  background: var(--color-l-green);
  backdrop-filter: blur(30px);
  display: none;

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

.p-drawer.is-top {
  background: var(--color-base);
}

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

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

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

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

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

  .p-header__link a {
    display: block;
    min-width: 134px;
  }
}

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