:root {
  --font-family: 'Noto Sans JP', sans-serif;
  --primary-bg-color: #FFFFFF;
  --secondary-bg-color: #F5F5F5;
  --tertiary-bg-color: #5A5A5A;
  --primary-text-color: #1E1E1E;
  --secondary-text-color: #F5F5F5;
  --tertiary-text-color: #5A5A5A;
  --primary-border-color: #D9D9D9;
}

body, html, ul, li, header, nav, a, p, div, button, main, h1, h2, h3, h4, h5, h6, img, footer {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
  background: none;
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 48rem) {
  a[href^="tel:"]{
    pointer-events: none;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 4rem;
  padding: 0.5rem 1rem;

  background-color: var(--primary-bg-color);
  border-bottom: 0.0625rem solid var(--primary-border-color);

  .navigation {
    display: none;
    align-items: center;
    gap: 2rem;

    a {
      font-family: var(--font-family);
      font-size: 1rem;
      font-weight: 500;
      line-height: 150%;
      letter-spacing: 0.0625rem;
      color: var(--primary-text-color);
      text-align: center;
      text-decoration: none;

      &:hover {
        opacity: 0.5;
      }
    }
  }

  .menu {
    display: flex;
    align-items: center;
    gap: 1rem;

    width: 3rem;
    height: 3rem;
    padding: 0.5rem;

    border-radius: 50%;

    &:hover {
      background-color: var(--secondary-bg-color);

      cursor: pointer;
    }
  }

  .overlay {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  
    width: 100%;
    height: 100vh;
    padding: 6rem 1rem;
  
    background-color: var(--primary-bg-color);
  
    .navigation {
      display: flex;
      flex-direction: column;
      gap: 2rem;
  
      a {
        font-family: var(--font-family);
        font-size: 1.5rem;
        font-weight: 500;
        line-height: 150%;
        letter-spacing: 0.0625rem;
        color: var(--primary-text-color);
        text-align: center;
  
        &:hover {
          opacity: 0.5;
        }
      }
    }
  
    .close {
      position: absolute;
      top: 0.5rem;
      right: 1rem;
  
      width: 3rem;
      height: 3rem;
      padding: 0.5rem;
  
      border-radius: 50%;
  
      &:hover {
        background-color: var(--secondary-bg-color);
  
        cursor: pointer;
      }
    }
  }
}

@media (min-width: 48rem) {
  header {
    .menu {
      display: none;
    }

    .navigation {
      display: flex;
    }
  }
}

@media (min-width: 64rem) {
  header {
    padding: 1rem 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  &:hover {
    cursor: pointer;
  }

  img {
    width: 2rem;
    height: 2rem;
  }

  p {
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: 0.125rem;
    color: var(--primary-text-color);
  }
}

main {
  margin-top: 4rem;
}

.main-image {
  width: 100%;
  height: calc(100vh - 4rem);

  background-image: url('images/main-image-mobile.jpg');
  background-size: cover;
}

@media (min-width: 48rem) {
  .main-image {
    background-image: url('images/main-image.jpg');
  }
}

.section-title {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 0.125rem;
  color: var(--primary-text-color);
  text-align: center;
}

@media (min-width: 64rem) {
  .section-title {
    font-size: 2.5rem;
  }
}

#services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;

  padding: 4rem 1rem;

  background-color: var(--primary-bg-color);

  .service-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    justify-content: center;
    gap: 2rem;

    width: 100%;
    max-width: 80rem;

    .service-item {
      display: flex;
      flex-direction: column;
      gap: 1rem;

      width: 100%;

      border-radius: 1rem;

      .image {
        display: flex;
        justify-content: center;

        img {
          width: 100%;
          height: auto;

          border-radius: 1rem;
        }
      }

      .content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        width: 100%;

        .title {
          font-family: var(--font-family);
          font-size: 1.5rem;
          font-weight: 700;
          line-height: 150%;
          letter-spacing: 0.125rem;
          color: var(--primary-text-color);
        }

        .description {
          font-family: var(--font-family);
          font-size: 1rem;
          font-weight: 400;
          line-height: 150%;
          letter-spacing: 0.0625rem;
          color: var(--primary-text-color);
        }
      }
    }
  }
}

@media (min-width: 64rem) {
  #services {
    padding: 7.5rem 2rem;
    gap: 5rem;

    .service-items {
      grid-template-columns: repeat(3, 1fr);
      gap: 2.5rem;
    }
  }
}

@media (min-width: 90rem) {
  #services {
    padding: 7.5rem 5rem;
  }
}

#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;

  padding: 4rem 1rem;

  background-color: var(--secondary-bg-color);

  .about-list-items {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 60rem;

    .about-list-item {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      gap: 0.5rem;

      width: 100%;
      padding: 1rem 0;

      border-bottom: 0.0625rem solid var(--primary-border-color);

      .title {
        flex: 0 0 25%;

        font-family: var(--font-family);
        font-size: 1rem;
        font-weight: 500;
        line-height: 150%;
        letter-spacing: 0.0625rem;
        color: var(--primary-text-color);
      }

      .description {
        display: flex;
        flex-wrap: wrap;
        flex: 0 0 calc(75% - 1rem);
        gap: 0.5rem;

        font-family: var(--font-family);
        font-size: 1rem;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: 0.0625rem;
        color: var(--primary-text-color);

        div {
          display: flex;
          gap: 0.25rem;

          img {
            width: 1.5rem;
            height: 1.5rem;
          }
        }
      }
    }
  }
}

@media (min-width: 30rem) {
  #about {
    padding: 4rem 2rem;

    .about-list-items .about-list-item {
      flex-direction: row;
      justify-content: flex-start;
      gap: 1rem;
    }
  }
}

@media (min-width: 48rem) {
  #about .about-list-items .about-list-item {
    .title {
      font-size: 1.5rem;
    }

    .description {
      font-size: 1.5rem;

      div img {
        width: 2rem;
        height: 2rem;
      }
    }
  }
}

@media (min-width: 64rem) {
  #about {
    padding: 7.5rem 2rem;
    gap: 5rem;
  }
}

@media (min-width: 90rem) {
  #about {
    padding: 7.5rem 5rem;
  }
}

#partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;

  padding: 4rem 1rem;

  background-color: var(--primary-bg-color);

  .partner-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    justify-content: center;
    gap: 2rem;

    width: 100%;
    max-width: 60rem;

    .partner-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;

      width: 100%;

      border-radius: 1rem;

      .image {
        display: flex;
        justify-content: center;

        width: 12.5rem;
        height: 12.5rem;

        img {
          width: 12.5rem;
          height: 12.5rem;
        }
      }

      .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;

        width: 100%;

        .subtitle {
          font-family: var(--font-family);
          font-size: 1rem;
          font-weight: 500;
          line-height: 150%;
          letter-spacing: 0.0625rem;
          color: var(--primary-text-color);
          text-align: center;
        }
  
        .title {
          font-family: var(--font-family);
          font-size: 1.5rem;
          font-weight: 700;
          line-height: 150%;
          letter-spacing: 0.125rem;
          color: var(--primary-text-color);
          text-align: center;
        }
  
        .description {
          font-family: var(--font-family);
          font-size: 1rem;
          font-weight: 400;
          line-height: 150%;
          letter-spacing: 0.0625rem;
          color: var(--primary-text-color);
        }

        .contact {
          display: flex;
          flex-direction: column;

          a {
            font-family: var(--font-family);
            font-size: 1rem;
            font-weight: 400;
            line-height: 150%;
            letter-spacing: 0.0625rem;
            color: var(--primary-text-color);
            text-align: center;

            &:hover {
              opacity: 0.5;
            }
          }
        }
      }
    }
  }
}

@media (min-width: 40rem) {
  #partners {
    padding: 4rem 2rem;

    .partner-items {
      grid-template-columns: repeat(2, 1fr);
      gap: 2.5rem;
    }
  }
}

@media (min-width: 64rem) {
  #partners {
    padding: 7.5rem 2rem;
    gap: 5rem;
  }
}

@media (min-width: 90rem) {
  #partners {
    padding: 7.5rem 5rem;
  }
}

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;

  padding: 4rem 1rem;

  background-color: var(--secondary-bg-color);

  .contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    justify-content: center;
    gap: 2rem;

    width: 100%;

    a {
      text-decoration: none;
    }

    .contact-item {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 1rem;

      width: 100%;
      padding: 1.5rem;

      border-radius: 1rem;
      background-color: var(--primary-bg-color);

      .image {
        display: flex;
        justify-content: center;
        align-items: center;

        width: 10rem;
        height: 10rem;

        border-radius: 50%;
        background-color: var(--secondary-bg-color);

        img {
          width: 8rem;
          height: 8rem;
        }
      }

      .content {
        display: flex;
        flex-direction: column;

        width: 100%;

        .title {
          font-family: var(--font-family);
          font-size: 1.5rem;
          font-weight: 700;
          line-height: 150%;
          letter-spacing: 0.125rem;
          color: var(--primary-text-color);
          text-align: center;
        }

        .description {
          font-family: var(--font-family);
          font-size: 1.25rem;
          font-weight: 700;
          line-height: 150%;
          letter-spacing: 0.0625rem;
          color: var(--primary-text-color);
          text-align: center;
          word-break: break-word;
        }
      }
    }
  }
}

@media (min-width: 64rem) {
  #contact {
    padding: 7.5rem 2rem;
    gap: 5rem;

    .contact-items {
      grid-template-columns: repeat(3, 1fr);
      gap: 2.5rem;
    }
  }
}

@media (min-width: 90rem) {
  #contact {
    padding: 7.5rem 5rem;
  }
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;

  width: 100%;
  padding: 4rem 1rem;

  background-color: var(--tertiary-bg-color);

  .logo p {
    color: var(--secondary-text-color);
  }

  .navigation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    a {
      font-family: var(--font-family);
      font-size: 1rem;
      font-weight: 500;
      line-height: 150%;
      letter-spacing: 0.0625rem;
      color: var(--secondary-text-color);
      text-align: center;
      text-decoration: none;

      &:hover {
        opacity: 0.5;
      }
    }
  }
}

@media (min-width: 30rem) {
  footer {
    padding: 4rem 2rem;

    .navigation {
      flex-direction: row;
      justify-content: center;
      gap: 2rem;
    }
  }
}
