@charset "utf-8";

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

.p-header__inner {
  padding: 26px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;

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

.p-header__logo {
  width: 275px;
  aspect-ratio: 275 / 50;

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

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

.p-header__nav {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 10px;

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

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

.p-header__link {
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.03em;

  a {
    color: var(--color-base);
  }
}

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

.p-header__entry {
  width: 152px;
  height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  gap: 6px;
  background: var(--color-base);
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease-out;

  p {
    color: var(--color-white);
    transition: all 0.3s ease-out;
  }
}

.p-header__entry::before {
  content: '';
  width: 12px;
  height: 18px;
  background: url('https://tkk4649.jp/system_panel/uploads/images/entry-icon-white.svg') no-repeat center center / contain;
  transition: all 0.3s ease-out;
}

.p-header__entry:hover {
  background: var(--color-white);

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

.p-header__entry:hover::before {
  background: url('https://tkk4649.jp/system_panel/uploads/images/entry-icon-black.svg') no-repeat center center / contain;
}

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

  @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-out;
  opacity: 0;
  z-index: 30;
  background: var(--color-yellow);
  display: none;

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

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

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

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

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