@charset "utf-8";

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

.p-header__inner {
  padding: 9px 28px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;

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

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

.p-header__head {
  display: flex;
  align-items: center;
  gap: 30px;

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

.p-header__logo {
  width: 284px;
  aspect-ratio: 1254/475;

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

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

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

.p-header__text {
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  color: #000;

  @media (width < 1120px) {
    font-size: 10px;
  }
}

.p-header__links {
  display: flex;
  align-items: center;
  gap: 10px;

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

.p-header-link {
  height: 70px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;

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

.p-header-link:hover {
  opacity: 0.7;
}

.p-header-link.is-tel {
  background: var(--color-orange);
  padding: 4px 16px;

  @media (width < 1120px) {
    padding: 4px 8px;
  }
}

.p-header-link.is-mail {
  background: #02b900;
  padding: 4px 18px;

  @media (width < 1120px) {
    padding: 4px 8px;
  }
}

.p-header-link__icon {
  width: 32px;
  object-fit: contain;
}

.p-header-link.is-tel {
  .p-header-link__icon {
    width: 35px;
  }
}

.p-header-link__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;

  @media (width < 1120px) {
    font-size: 11px;
  }
}

.p-header-link__tel {
  font-family: var(--font-lato);
  color: var(--color-yellow);
  font-size: 33px;
  font-weight: 700;
  line-height: 1;

  @media (width < 1120px) {
    font-size: 24px;
  }
}

.gjs-dashed *[data-highlightable] .p-header-link__tel {
  font-size: 24px;
}

.p-header-link__mail {
  font-weight: 700;
  font-size: 16px;

  @media (width < 1120px) {
    font-size: 13px;
  }
}

.p-header__nav {
  width: 100%;
  height: 38px;
  background: #f3fafd;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;

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

.p-header__nav-link {
  width: 100%;
  max-width: 250px;
  position: relative;
  height: 100%;
}

.p-header__nav-link p {
  height: 100%;
}

.p-header__nav-link a {
  width: 100%;
  height: 100%;
  text-align: center;
  color: var(--color-l-blue);
  line-height: normal;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-header__nav-link a:hover {
  opacity: 0.7;
}

.p-header__nav-link::before {
  position: absolute;
  content: '';
  width: 1px;
  height: 18px;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  background: var(--color-l-blue);
}

.p-header__nav-link:last-of-type::after {
  position: absolute;
  content: '';
  width: 1px;
  height: 18px;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  background: var(--color-l-blue);
}

.p-header-icon {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  aspect-ratio: 3/2;
  z-index: 50;
  background: #f3fafd;
  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-l-blue);
    width: 100%;
    height: 2px;
    transition: all 0.3s ease-out;
    border-radius: 2px;
  }
}

.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: #fff;
  display: none;

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

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

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

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

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

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

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

.p-drawer__links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-drawer-link {
  width: 100%;
  height: 60px;
  border-radius: 5px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-drawer-link.is-tel {
  background: var(--color-orange);
  padding: 4px 16px;
}

.p-drawer-link.is-mail {
  background: #02b900;
  padding: 4px 18px;
}

.p-drawer-link:hover {
  opacity: 0.7;
}

.p-drawer__nav {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.p-drawer__nav-link a {
  text-align: center;
  color: var(--color-l-blue);
  line-height: normal;
  font-size: 14px;
  position: relative;
}

.p-drawer__nav-link a:hover {
  opacity: 0.7;
}
