@charset "utf-8";

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns:
    repeat(auto-fit, minmax(30%, 1fr));
}

.card {
  margin-top: 15px;
  background-color: #63b6ff;
  border: 3px solid #1d3a8b;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card h3 {
  color: #fff;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  border-color: #233146;
}

.card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.card p {
  color: #fff;
  margin: 0;
}

/* 作品セクション */
.projects {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.project-item {
  max-width: 440px;
  height: 440px;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  background-color: #63b6ff;
  border: 5px solid #1d3a8b;
  border-radius: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-item:hover {
  transform: scale(0.95);
  box-shadow: 4px 5px 6px rgba(0, 0, 0, 0.2);
}

.project-item img {
  width: 90%;
  margin: 0 auto;
  display: block;
}

.project-item p {
  color: #fff;
}

.mock_up2 img {
  width: 65%;
  margin: 30px auto 0;
}

.mock_up2 h3 {
  margin-top: 30px;
}

.desc p {
  text-align: center;
}

/* スキルセクション */
#skills .bac_color {
  padding: 20px 70px;
}

.skills {
  width: 90%;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(7, 1fr);
  padding: 100px 0;
}

.skill {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
}

.skill img {
  width: auto;
  margin: auto 0;
}

.level3 {
  width: 100%;
  margin-top: auto;
}

.level {
  width: 70%;
  background-color: #d7e827;
  border-radius: 5px;
  margin: 5px auto;
  padding: 2.5px 0;
}

.level0 {
  width: 70%;
  background-color: #fff;
  border-radius: 5px;
  margin: 5px auto;
  padding: 2.5px 0;
}

#about h3 {
  text-align: left;
}

#about .center {
  margin-bottom: 50px;
}

#Design {
  background: linear-gradient(#fff, #cbffff, #9dd0fd);
}

#Design h2 {
  max-width: 1000px;
  margin: 0 auto 20px;
}

.visual {
  width: max-content;
  color: #fff;
  display: flex;
  align-items: center;
  animation: scroll 40s linear infinite;
}

.visual .img {
  width: 350px;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visual img {
  width: auto;
  height: 300px;
  margin: auto 0;
}

.visual .img p {
  margin-top: auto;
}

.visual .img:nth-child(3) img,
.visual .img:nth-child(10) img {
  width: auto;
  height: 200px;
}

.visual .img:nth-child(6) img,
.visual .img:nth-child(7) img,
.visual .img:nth-child(13) img,
.visual .img:nth-child(14) img {
  width: 300px;
  height: auto;
}


@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* タブレット */
@media screen and (max-width: 900px) {
  .skills {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    padding: 80px 0;
  }

  #skills .bac_color {
    padding: 20px 60px;
  }

  .projects {
    display: block;
  }

  .project-item {
    max-width: 1000px;
    margin-bottom: 20px;
    height: auto;
  }

  .project-item img {
    width: 60%;
    margin: 0 auto;
    display: block;
  }

  .project-item p {
    margin-top: 10px;
  }

  .mock_up2 img {
    width: 40%;
  }
}

/* スマホ */
@media screen and (max-width: 640px) {
  .grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 18px;
    justify-items: center;
  }

  .card {
    width: 80%;
  }

  .skill {
    width: 80px;
    padding: 10px 0;
  }

  .skills {
    padding: 50px 0;
  }

  #skills .bac_color {
    padding: 20px;
  }

  .level {
    width: 55%;
  }

  .level0 {
    width: 55%;
  }

  .project-item img {
    width: 80%;
    margin: 0 auto;
    display: block;
  }

  .mock_up2 img {
    width: 60%;
  }
}

/* スマホ２ */
@media screen and (max-width: 500px) {
  h3 {
    font-size: 20px;
  }
}