.header {
  position: relative;
  padding-top: 28px;

  @media (min-width: 768px) {
    padding-top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.header__logo-box {
  width: 100%;
  height: 116px;
  padding-top: 12px;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  @media (min-width: 768px) {
    width: 350px;
    height: 108px;
  }
}

.header__tel-box {
  --background-color-sp: rgba(255, 255, 255, 0.6);
  --background-color-pc: rgba(233, 239, 242, 0.7);
  --font-color: rgba(0, 91, 171, 1);

  &.is-subpage {
    --font-color: #fff;
  }

  width: 100%;
  background-color: var(--background-color-sp);
  padding: 16px 40px;

  line-height: 1;
  font-style: normal;

  @media (min-width: 768px) {
    width: 350px;
    height: 108px;
    background-color: var(--background-color-pc);
  }

  &.is-subpage {
    background-color: #005bab;
  }

  .header__tel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 272px;
    margin: 0 auto;
  }

  .header__tel-contact-label {
    align-self: flex-start;

    font-size: 16px;
    font-weight: 600;
    color: var(--font-color);
  }

  .header__tel-number {
    display: flex;
    align-items: center;
    gap: 5px;

    font-size: 34px;
    color: var(--font-color);
    letter-spacing: 0.025em;
  }

  .header__tel-hours {
    font-size: 12px;
    color: var(--font-color);
    align-self: flex-end;
  }
}

/* ドロワーメニューボタン */
.drawer-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 3;
  right: 15px;
  top: 15px;
  width: 40px;
  height: 32px;
  cursor: pointer;

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

.drawer-btn {
  & span {
    display: block;
    position: absolute;
    width: 40px;
    height: 4px;
    background: #3e3a39;
    transition: 0.3s ease-in-out;
  }
  & span:nth-child(1) {
    top: 0px;
  }
  & span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  & span:nth-child(3) {
    bottom: 0px;
  }

  &.active {
    & span:nth-child(1) {
      top: 50%;
      transform: translateY(-50%) rotate(-45deg);
      background-color: #fff;
    }
    & span:nth-child(2) {
      opacity: 0;
    }
    & span:nth-child(3) {
      bottom: 50%;
      transform: translateY(50%) rotate(45deg);
      background-color: #fff;
    }
  }
}

/* メニュー背景　*/
.drawer-content {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  color: #fff;
  background-color: rgba(0, 91, 171, 0.9);
  width: 100%;
  height: 676px;
  transform: translateX(100%);
  transition: all 0.6s;

  align-content: center;

  &.active {
    opacity: 100;
    display: grid;
    transform: translateX(0%);

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

.drawer-content ul {
  margin: 0 auto;
  width: 345px;
  height: 510px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-content ul li {
  list-style-type: none;
  padding: 0;
  width: 100%;
  transition: 0.4s all;
}

.drawer-content ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  text-emphasis: none;

  display: block;
  padding: 1em 1em 0.4em;
  border-bottom: 2px solid #fff;
}

.overlay {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: transparent;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

  &.active {
    opacity: 1;
    visibility: visible;
  }

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