body {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  line-height: 1.6;

  img {
    height: auto;
  }

  header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 80px;
    background: #fff;
      font-size: 1.2rem;
    font-weight: 600;
    z-index: 100;

    .header-site-title {
      display: flex;
      gap: .5rem;
      align-items: center;
      color: inherit;
      text-decoration: none;

      .header-site-title-image {
        width: 1.2rem;
        height: auto;

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

    .nav {
      .nav-list {
        display: flex;
        gap: 1rem;
        align-items: center;
      }
    }
  }

  footer {
    padding:  2rem;

    a {
      color: inherit;
      text-decoration: none;
    }
  }
}

.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 4rem 2rem;
  margin: 4rem auto;
  width: 1400px;
  max-width: calc(100% - 4rem);

  @media (max-width: 1000px) {
    grid-template-columns: 1fr 1fr;
  }

  @media (max-width: 800px) {
    grid-template-columns: 1fr;
  }

  .project {
    color: inherit;
    text-decoration: none;

    .project-image {
      aspect-ratio: 1;
      width: 100%;
      background: #eee;
      border: 1px solid #ddd;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    .project-title {
      margin-top: 1rem;
      font-weight: 600;
    }
    .project-link {
      display: inline-block;
      margin-top: 2rem;
      color: #aaa;
      font-weight: 600;
      text-decoration: none;

      &:after {
        content: "→";
        display: inline-block;
        margin-left: 1rem;
      }
    }
  }
}

.page {
  margin: 4rem auto;
  width: 1000px;
  max-width: calc(100% - 4rem);

  .page-header {
    margin: 4rem 0;
    .page-title {
      font-size: 2rem;
      font-weight: 600;
      line-height: 1.4;
    }
  }
  .page-body {
    margin: 4rem auto;
    .page-content {
      & > * + * {
        margin-top: 1rem;
      }
      img {
        border: 1px solid #ddd;
      }
    }
  }
}