@charset "utf-8";

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

.p-header-top {
  background: linear-gradient(90deg, #f8e8ce 0%, #fff 52%, #f7ecc4 100%);
  padding: 4px 16px;
  width: 100%;
  height: 40px;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  @media (width < 768px) {
    height: auto;
    justify-content: center;
  }
}

.p-header-top__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.033em;

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

.p-header-top__tel {
  display: flex;
  align-items: center;
  gap: 5px;

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

.p-header-top__num {
  font-family: var(--font-noto-sans);
  font-size: 18px;
  color: #a07f69;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;

  div:last-of-type {
    font-size: 24px;
    font-weight: 500;
    font-family: var(--font-lato);
  }
}

.p-header-top__hours {
  font-size: 11px;
  letter-spacing: 0.039em;
}

.p-header__main {
  width: 100%;
  height: 90px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 12px;

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

  @media (width < 768px) {
    height: 50px;
    padding: 0 16px 0 0;
  }
}

.p-header__logo {
  width: clamp(240px, calc(310vw / 13.66), 310px);
  aspect-ratio: 5/1;
  flex-shrink: 0;

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

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

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

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

.p-header__link {
  color: #333333;
  line-height: normal;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

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

.p-header__contact {
  margin-left: -6px;
  width: 160px;
  height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  gap: 8px;
  background: var(--color-gold);
  border: 1px solid var(--color-gold);

  p {
    color: var(--color-white);
    transition: all 0.3s ease;
  }
}
.p-header__contact,
.p-header__contact * .p-header__contact::before {
  transition: all 0.3s ease;
}

.p-header__contact::before {
  content: '';
  width: 14px;
  height: 12px;
  background: url('https://ikeuchi-kougyou.com/system_panel/uploads/images/mail-white.svg') no-repeat center center / contain;
  transition: all 0.3s ease;
}

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

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

.p-header__contact:hover::before {
  background: url('https://ikeuchi-kougyou.com/system_panel/uploads/images/mail-gold.svg') no-repeat center center / contain;
}

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

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

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

.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;
  }
}

.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: 40px;
  right: -400px;
  overflow: auto;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 30;
  background: var(--color-white);
  display: none;

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

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

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

.gjs-dashed .p-drawer {
  z-index: 1;
  right: 0;
  opacity: 1;
  display: block;
  top: calc(var(--header-pc) - 40px);

  @media (width < 1120px) {
    top: calc(var(--header-tab) - 80px);
  }

  @media (width < 768px) {
    top: calc(var(--header-sp) - 80px);
  }
}

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

.p-drawer__nav {
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 25px;
}

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

.p-drawer__tel {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 0 40px;

  .p-header-top__num {
    line-height: 1.5;
  }
}
