@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: 0;
}

html {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  & > * {
    margin: 4rem auto;
    width: 600px;
    max-width: calc(100% - 4rem);
  }

  li {
    list-style-type: none;
  }
}

footer {
  margin-bottom: 4rem;
}

img {
  vertical-align: middle;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
}

h2 {
  margin: 4rem 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;

  &:first-child {
    margin-top: 0;
  }
}

ul {
  & + ul {
    margin-top: 2rem;
  }

  li {
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-gap: 1rem;

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

.links-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  margin: 1rem 0;
  
  @media (max-width: 600px) {
    grid-template-columns: 1fr;
  }

  li {
    display: block;
  }

  a {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-gap: .8rem;
    align-items: center;
    text-decoration: none;

    &:hover {
      .project-image {
        background: #fafafa;
      }
    }

    .project-image {
      aspect-ratio: 1;
      display: block;
      padding: 1rem;
      height: 80px;
      background: #eee;
      border-radius: 28%;
      transition: .4s;
    }

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

    .project-name {
      font-weight: 600;
    }

    p {
      font-size: .8rem;
    }
  }
}

.links-icon {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: 8px;
  margin: 1rem 0;

  @media (max-width: 600px) {
    grid-template-columns: repeat(5, 1fr);
  }

  li {
    display: block;

    a {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      aspect-ratio: 1;
      width: 100%;
      background: #eee;
      border-radius: 28%;
      transition: .4s;

      &[href="#"] {
        opacity: .2;
        pointer-events: none;
      }

      &:hover {
        background: #fafafa;
      }

      img {
        aspect-ratio: 1;
        width: 40%;
        object-fit: contain;
      }
    }
  }
}
