@charset "utf-8";

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

.p-header__inner {
  padding: 24px 24px 0;
  display: flex;
  align-items: start;
  justify-content: space-between;

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

.p-header__logo {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;

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

  img {
    object-fit: contain;
  }
}

.p-header__logo-icon {
  width: 106px;
  aspect-ratio: 106/74;

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

  @media (width < 768px) {
    margin-top: 0;
  }
}

.p-header__logo-text {
  width: 210px;
  aspect-ratio: 201 / 18;
  margin-bottom: 16px;

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

.p-header__nav {
  background: var(--color-white);
  border-radius: 5px;
  padding: 13px 20px 13px 48px;
  display: flex;
  align-items: center;
  gap: 40px;

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

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

.p-header__link {
  width: fit-content;
  line-height: normal;
  letter-spacing: 0.03em;
  position: relative;
}

.p-header__link::before {
  position: absolute;
  content: '';
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #014da1;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.p-header__link:hover::before {
  width: 100%;
}

.p-header__contact {
  width: 152px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  gap: 6px;
  background: #014da1;
  letter-spacing: 0.05em;

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

.p-header__contact::before {
  content: '';
  width: 14px;
  height: 12px;
  background: url('https://mykako.co.jp/system_panel/uploads/images/mail-icon.svg') no-repeat center center / contain;
}

.p-header__contact:hover {
  background: #00346b;
}

.p-header-icon {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  aspect-ratio: 3/2;
  z-index: 50;
  background: var(--color-white);
  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: #014da1;
    width: 100%;
    height: 2px;
    transition: all 0.3s 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-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: #fff;
  display: none;

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

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

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

.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: 30px;
}
