@charset "utf-8";
/* CSS Document */


/********** header **********/

.l-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%,0);
  width: calc(100% - 4rem);
  max-width: 1200px;
  z-index: 1;
  .l-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    height: 70px;
    border-radius: 35px;
    /* background: var(--yellow); */
    background: #fff;
    box-shadow: 0px 0px 8px rgb(0, 0, 0, .8);
    >.logo {
      display: flex;
      align-items: center;
      gap: .5em;
      &:hover {
        opacity: .5;
      }
      img {
        display: block;
        width: 44px;
      }
      h1 {
        display: block;
        padding: 0;
        font-size: 2.4rem;
        line-height: 1.2;
        letter-spacing: .05em;
      }
    }
    nav {
      display: flex;
      align-items: center;
      .menuList {
        display: flex;
        align-items: center;
        gap: 3rem;
        li {
          a {
            font-size: 1.6rem;
            font-weight: 700;
            &:hover {
              opacity: .5;
            }
          }
        }
      }
      .contactArea {
        display: none;
      }
    }
    .contactList {
      display: flex;
      gap: 1rem;
      li {
        a {
          display: flex;
          align-items: center;
          gap: .3rem;
          padding: 0 1rem;
          height: 36px;
          font-size: 1.5rem;
          font-weight: 700;
          border: 2px solid var(--text);
          border-radius: 18px;
          .material-symbols-outlined {
            padding: .1em 0 0;
            font-size: 1.5em;
          }
        }
        &.line {
          a {
            color: rgb(6, 199, 85);
            border-color: rgb(6, 199, 85);
            &:hover {
              color: #fff;
              background: rgb(6, 199, 85);
            }
            img {
              display: block;
              width: 1.6em;
            }
          }
        }
        &.tel {
          a {
            color: var(--yellow);
            border-color: var(--yellow);
            &:hover {
              color: #fff;
              background: var(--yellow);
            }
            img {
              display: block;
              width: 24px;
            }
          }
        }
        &.contact {
          a {
            &:hover {
              color: #fff;
              background: var(--text);
            }
          }
        }
      }
    }
    .hamburgerBtn {
      display: none;
    }
  }
}

.l-footer {
  background: var(--yellow);
  .contactList {
    display: none;  
  }
  .l-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem 6rem;
    justify-content: space-between;
    margin: 0 auto;
    padding: 8rem 4rem;
    max-width: 1000px;
    .info {
      .logo {
        display: flex;
        align-items: center;
        gap: .5em;
        font-size: 3.2rem;
        margin: 0 0 3rem;
        &:hover {
          opacity: .5;
        }
        img {
          display: block;
          width: 2.5em;
          /* filter: brightness(0) saturate(100%) invert(10%) sepia(0%) saturate(1046%) hue-rotate(143deg) brightness(90%) contrast(88%); */
        }
        h1 {
          display: block;
          padding: 0;
          font-size: 1em;
          letter-spacing: .05em;
        }
      }
      p {
        font-weight: 700;
        a {
          text-decoration: underline;
        }
      }
    }
    nav {
      margin: 1rem 0 0;
      display: flex;
      gap: 0 6rem;
      ul {
        li {
          font-size: 1.6rem;
          + li {
            margin: .5em 0 0;
          }
          &::before {
            content: "-";
            margin-right: .5em;
          }
          a {
            position: relative;
            font-weight: 700;
            &:hover {
              opacity: .5;
            }
          }
        }
      }
    }
    .contactArea {
      margin: 1rem 0 0;
      p {
        font-size: 1.6rem;
      }
      .contactBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0 .5em;
        margin: 3rem 0 0;
        padding: 1.5rem;
        width: 240px;
        font-weight: 700;
        letter-spacing: .05em;
        border: 2px solid var(--text);
        border-radius: 30px;
        background: #fff;
        &:hover {
          color: var(--text);
          background: var(--yellow);
        }
      }
    }
  }
  .l-footer__copyright {
    padding: 1.5rem;
    width: 100%;
    font-size: 1.4rem;
    color: #fff;
    background: #222;
    text-align: center;
    letter-spacing: .05em;
    border-top: 1px solid #ccc;
  }
}

.btnLink {
  display: block;
  margin: 6rem auto 0;
  padding: 1.8rem 2rem;
  width: fit-content;
  min-width: 200px;
  font-size: 1.6rem;
  font-weight: 700;
  border: 2px solid var(--text);
  text-align: center;
  letter-spacing: .2em;
  color: #fff;
  background: var(--yellow);
  border-radius: 25px;
  &:hover {
    color: var(--text);
    background: #fff;
    &::after{
      background: var(--text);
    }
  }
  &::after{
    content: "";
    display: inline-block;
    margin-left: 1em;
    width: calc(.7em*.7);
    height: .7em;
    clip-path: polygon(0 0, 100% 50%, 0% 100%);
    background: #fff;
    transition: .3s;
  }
}

@media (max-width: 1200px) {
  .l-header {
    .l-header__inner {
      padding: 0 2.5rem;
      nav {
        .menuList {
          gap: 1.5rem;
          li {
            a {
              font-size: 1.5rem;
            }
          }
        }
      }
      .contactList {
        gap: .8rem;
        li {
          a {
            font-size: 1.4rem;
          }
        }
      }
    }
  }
}

@media (max-width: 1024px) {
  .l-header {
    .l-header__inner {
      nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, 20px);
        width: 100%;
        max-height: calc(100vh - 200px);
        padding: 6rem 4rem;
        border-radius: 35px;
        background: #fff;
        box-shadow: 0px 0 8px rgb(0, 0, 0, .8);
        overflow: scroll;
        .menuList {
          gap: 4rem;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          li {
            position: relative;
            &::before {
              content: "";
              position: absolute;
              bottom: -.5rem;
              left: 50%;
              transform: translate(-50%, 0);
              display: inline-block;
              width: 30px;
              height: 2px;
              background: var(--yellow);
            }
            a {
              font-size: 2rem;
            }
          }
        }
        .contactArea {
          display: block;
          margin: 6rem auto 0;
          padding: 6rem 0 0;
          max-width: 600px;
          text-align: center;
          border-top: 2px solid var(--border-gray);
          p {
            word-break: keep-all;
          }
          .contactBtn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0 .5em;
            margin: 3rem auto 0;
            padding: 1.5rem;
            width: 240px;
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: .05em;
            border: 2px solid var(--text);
            border-radius: 30px;
            color: #fff;
            background: var(--yellow);
            &:hover {
              background: var(--yellow);
            }
            + p {
              margin: 2rem 0 0;
              font-weight: 700;
              a {
                text-decoration: underline;
              }
            }
          }
        }
      }
      .contactList {
        margin-left: auto;
      }
      .hamburgerBtn {
        position: relative;
        display: block;
        width: 40px;
        margin-left: 2rem;
        aspect-ratio: 1;
        background: none;
        border: none;
        &.active {
          span {
            &:nth-child(1) {
              transform: translate(-50%, 0) rotate(45deg);
            }
            &:nth-child(2) {
              width: 0;
            }
            &:nth-child(3) {
              transform: translate(-50%, 0) rotate(-45deg);
            }
          }
        }
        &:hover {
          cursor: pointer;
        }
        span {
          display: inline-block;
          position: absolute;
          top: 50%;
          left: 50%;
          width: 100%;
          height: 2px;
          background: var(--text);
          transition: .3s;
          &:nth-child(1) {
            transform: translate(-50%, -10px);
          }
          &:nth-child(2) {
            transform: translate(-50%, 0px);
          }
          &:nth-child(3) {
            transform: translate(-50%, 10px);
          }
        }
      }
    }
  }

  .l-footer {
    .l-footer__inner {
      justify-content: center;
      .info {
        width: 100%;
        text-align: center;
        .logo {
          justify-content: center;
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .l-header {
    .l-header__inner {
      padding: 0 2rem;
      height: 60px;
      border-radius: 30px;
      >.logo {
        img {
          width: 40px;
        }
        h1 {
          font-size: 2rem;
        }
      }
      .contactList {
        gap: 0 .5rem;
        li {
          a {
            padding: 0 .6rem;
            height: 32px;
            font-size: 1.2rem;
          }
        }
      }
      .hamburgerBtn {
        margin-left: 1rem;
        width: 32px;
        span {
          &:nth-child(1) {
            transform: translate(-50%, -8px);
          }
          &:nth-child(2) {
            transform: translate(-50%, 0px);
          }
          &:nth-child(3) {
            transform: translate(-50%, 8px);
          }
        }
      }
    }
  }

}

@media (max-width: 600px) {
  .l-header {
    .l-header__inner {
      .contactList {
        display: none;
      }
    }
  }

  .l-footer {
    padding: 0 0 8rem;
    .contactList {
      position: fixed;
      left: 0;
      bottom: 0;
      display: flex;
      gap: 1rem;
      padding: 1.5rem 1rem;
      width: 100%;
      height: 80px;
      background: #eee;
      z-index: 1;
      li {
        a {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: .5rem;
          padding: 1rem .5rem;
          height: 100%;
          font-size: 1.8rem;
          font-weight: 700;
          background: #fff;
          border-radius: 10px;
          overflow: hidden;
          .material-symbols-outlined {
            padding: .1em 0 0;
            font-size: 1.6em;
          }
        }
        &.line {
          width: calc(30% - 1rem);
          a {
            color: rgb(6, 199, 85);
            border: 2px solid rgb(6, 199, 85);
            img {
              display: block;
              width: 1.6em;
            }
          }
        }
        &.tel {
          width: calc(30% - 1rem);
          a {
            color: var(--yellow);
            border: 2px solid var(--yellow);
            img {
              display: block;
              width: 24px;
            }
          }
        }
        &.contact {
          width: 40%;
          a {
            color: var(--text);
            border: 2px solid var(--text);
          }
        }
      }
    }
  }
}

@media (max-width: 480px) {

  .l-header {
    .l-header__inner {
      nav {
        max-height: calc(100svh - 200px);
        padding: 4rem 2rem;
        border-radius: 30px;
        .menuList {
          gap: 3rem;
          li {
            a {
              font-size: 1.6rem;
            }
          }
        }
        .contactArea {
          margin: 4rem auto 0;
          padding: 4rem 0 0;
          .contactBtn {
            margin: 2rem auto 0;
            font-size: 1.6rem;
            width: 220px;
            border-radius: 30px;
            + p {
              margin: 2rem 0 0;
            }
          }
        }
      }
    }
  }

  .l-footer {
    padding: 0 0 7rem;
    .l-footer__inner {
      .info {
        .logo {
          margin: 0 0 2rem;
        }
      }
    }
    .contactList {
      gap: .5rem;
      height: 70px;
      li {
        a {
          font-size: 1.5rem;
        }
        &.line {
          width: calc(30% - .5rem);
        }
        &.tel {
          width: calc(30% - .5rem);
        }
      }
    }
    .l-footer__inner {
      gap: 2rem;
      flex-direction: column;
      padding: 6rem 2rem;
      .info {
        .logo {
          flex-direction: column;
          h1 {
            font-size: 2rem;
          }
        }
      }
      nav {
        justify-content: center;
        ul {
          li {
            + li {
             margin: .5em 0 0;
           }
           a {
            font-size: 1.5rem;
           }
          }
        }
      }
      .contactArea {
        text-align: center;
        .contactBtn {
          margin: 2rem auto 0;
        }
      }
    }
    .l-footer__copyright {
      font-size: 1.2rem;
    }
  }

  .btnLink {
    margin: 4rem auto 0;
    padding: 1.5rem 1.8rem;
    min-width: 180px;
    font-size: 1.4rem;
  }
}