body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #EDE896;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

header {
  background-color: #b0dcd5;
  color: #fff;
  padding: 1rem 0;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

section {
  padding: 3rem 0;
  background-color: #F4F3F7;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

section.appear {
  opacity: 1;
  transform: translateY(0);
}

.about-wrapper {
  display: flex;
  align-items: center; /* 縦位置を揃える */
  gap: 20px; /* 画像と文章の間に余白 */
}

.profile-img {
  width: 150px;   /* 好きなサイズに調整 */
  height: 150px;
  border-radius: 50%; /* 丸くする */
  object-fit: cover;  /* 顔を中心に表示 */
  border: 3px solid #ccc; /* おしゃれに縁をつける */
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.skill {
  background-color: #e0f2f1;
  padding: 1rem;
  text-align: center;
  border-radius: 6px;
  font-weight: bold;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.work-item {
  background-color: #f1f8e9;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;

  display: flex;            /* flexboxにする */
  flex-direction: column;   /* 縦並び */
  justify-content: space-between; /* 上と下に要素を配置 */
  height: 100%;             /* グリッドの高さを揃えたい場合は親で調整 */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.work-item.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Creationの画像を統一 */
.work-item img {
  width: 100%;         /* 横幅は親要素いっぱい */
  height: 200px;       /* 高さを統一 */
  object-fit: cover;    /* 中心を基準に切り抜き */
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.sns-links {
  display: flex;
  justify-content: center; /* 横方向で中央寄せ */
  align-items: center;     /* 縦方向で位置を揃える */
  gap: 30px;               /* 画像の間の余白 */
}

/* アイコンサイズを統一 */
.sns-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
  color: #fff;
  background-color: #b0dcd5;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #b0dcd5;
}

footer {
  background-color: #b0dcd5;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

@media (max-width: 600px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .work-item img {
    height: 180px;      /* 少し小さめに調整 */
  }
}

@media (max-width: 480px) {
  .work-item img {
    height: 150px;      /* スマホではさらに小さく */
  }
}