.l-main {
  margin-top: 60px;

  @media screen and (min-width: 783px) {
    margin-top: 80px;
  }
}


.l-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 8888;
  background-color: var(--wp--preset--color--white);
  display: flex;
  justify-content: space-between;
  padding-inline: 20px;
  padding-block: 5px;
  gap: 5px;
  height: 60px;

  @media screen and (min-width: 783px) {
    padding-inline: 30px;
    padding-block: 15px;
    height: 80px;
  }

  & .__logo {
    display: flex;
    align-items: center;
    width: 65px;

    @media screen and (max-width: 782px) {
      width: 40px;
    }
  }
}

.l-cv {
  display: flex;
  align-items: center;
  gap: 15px;

  & .__tel-number {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 26px;
    font-weight: 700;
    color: var(--wp--preset--color--primary);
    line-height: 1;
  }

  & .__tel-time {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin: auto;
  }

  & .__links {
    display: flex;
    gap: 10px;
  }

  & .__link {
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    border-radius: 100vmax;
    font-size: 18px;
    padding: 6px 25px;
    font-weight: 500;
    transition: .25s;

    &:hover {
      opacity: .7;
    }
  }
}


.l-nav-btn {
  position: relative;
  height: 100%;
  text-align: center;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 600;
  width: 40px;
  font-size: 12px;
  padding-top: 20px;

  @media screen and (min-width: 783px) {
    font-size: 16px;
    padding-top: 25px;
    width: 50px;
  }

  &::before,
  &::after {
    position: absolute;
    content: '';
    display: inline-block;
    background-color: var(--wp--preset--color--black);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 100vmax;
    width: 40px;
    height: 2px;

    @media screen and (min-width: 783px) {
      width: 50px;
      height: 3px;
    }
  }

  &::before {
    top: 12px;

    @media screen and (min-width: 783px) {
      top: 10px;
    }
  }

  &::after {
    top: 20px;
  }
}


.l-nav {
  position: fixed;
  z-index: 9999;
  background-color: var(--wp--preset--color--white);
  left: auto;
  top: 0;
  min-width: 320px;
  width: 100%;
  height: 100vh;
  overscroll-behavior-y: none;
  overflow: auto;
  transform: translateX(120%);
  transition: .25s;
  padding-block: 60px 40px;
  padding-inline: 30px;

  @media screen and (min-width: 783px) {
    padding-block: 110px 60px;
    padding-inline: 40px;
    right: 0;
    width: 425px;
  }

  @media screen and (max-width: 782px) {
    left: 0;
  }

  &.is-open {
    transform: translateX(0);
  }

  & .__button {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 5px;
    right: 10px;

    @media screen and (min-width: 783px) {
      top: 20px;
      right: 30px;
    }

    &::before,
    &::after {
      content: '';
      position: absolute;
      display: inline-block;
      background-color: var(--wp--preset--color--black);
      border-radius: 100vmax;
      width: 40px;
      height: 3px;
      right: 10px;

      @media screen and (min-width: 783px) {
        width: 50px;
      }
    }

    &::before {
      transform: rotate(25deg);
    }

    &::after {
      transform: rotate(-25deg);
    }
  }

  & .__menu {
    list-style: none;
    padding-left: 0;
    width: 100%;
    margin-bottom: 20px;

    @media screen and (min-width: 783px) {
      margin-bottom: 30px;
    }

    & li {
      position: relative;
      line-height: 1;
      border-bottom: 1px solid var(--wp--preset--color--gray);
      font-weight: 600;
      font-size: 15px;

      @media screen and (min-width: 783px) {
        font-size: 16px;
      }

      & a {
        display: inline-block;
        width: 100%;
        padding-block: 20px;

        @media screen and (min-width: 783px) {
          padding-block: 30px;
        }

        &::before {
          content: "";
          width: 0;
          height: 0;
          position: absolute;
          top: 4px;
          bottom: 0;
          right: 4px;
          margin: auto;
          box-sizing: border-box;
          border: 4px solid transparent;
          border-top: 5px solid var(--wp--preset--color--white);
          z-index: 2;
        }

        &::after {
          position: absolute;
          top: 0;
          bottom: 0;
          right: 0;
          margin: auto;
          content: "";
          width: 16px;
          height: 16px;
          border-radius: 9px;
          background: var(--wp--preset--color--primary);
          z-index: 1;
          transition: .25s;
        }

        @media (hover: hover) {
          &:hover {
            color: var(--wp--preset--color--primary);

            &::after {
              opacity: .7;
            }
          }
        }
      }
    }
  }

  & .__links {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;

    @media screen and (min-width: 783px) {
      gap: 15px;
      margin-bottom: 30px;
    }
  }

  & .__link {
    position: relative;
    font-weight: 600;
    text-align: center;
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    border-radius: 100vmax;
    font-size: 16px;
    padding: 15px;
    transition: .25s;

    &:hover {
      opacity: .7;
    }
  }

  & .__tel {
    text-align: center;
    border: 3px solid var(--wp--preset--color--gray);
    padding: 15px;

    @media screen and (min-width: 783px) {
      padding: 20px;
      border-width: 4px;
    }
  }

  & .__tel-number {
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    line-height: 1;
    font-size: 26px;

    @media screen and (min-width: 783px) {
      font-size: 30px;
    }
  }

  & .__tel-time {
    font-size: 14px;
    list-style: 1;

    @media screen and (min-width: 783px) {
      font-size: 16px;
    }
  }
}


.l-nav-overlay {
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;

  &.is-active {
    opacity: 1;
    pointer-events: auto;
  }
}


.l-footer {
  background-color: var(--color-white);
  padding: 50px 30px;

  @media screen and (min-width: 783px) {
    text-align: center;
    padding: 80px 20px;
  }

  & .__nav {
    list-style: none;
    padding: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 50px;

    @media screen and (min-width: 783px) {
      flex-wrap: wrap;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
    }

    & li {
      font-size: 12px;

      @media screen and (min-width: 783px) {
        font-size: 14px;

        &:not(:last-child) {
          border-right: 1px solid var(--wp--preset--color--gray);
          padding-right: 20px;
        }
      }
    }

    & a {
      text-decoration: none;

      @media (hover: hover) {
        &:hover {
          opacity: .5;
        }
      }
    }
  }

  & .__logo {
    display: inline-block;
    margin-bottom: 15px;
    max-width: 80px;
    
    @media screen and (min-width: 783px) {
      max-width: 100px;
      margin-bottom: 20px;
    }
  }

  & .__copyright {
    color: var(--color-darkgray);
    font-size: 12px;

    @media screen and (min-width: 783px) {
      text-align: center;
    }
  }
}