/* === 基本設定 === */
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 40px;
  border-bottom: 1px solid #ddd;
  gap: 40px; /* ← h1とnavの間に余白 */
}

header h1 {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 8px;
}

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

nav a {
  margin-right: 20px;
  text-decoration: none;
  color: #000000;
  font-size: 13px;
  font-weight: normal;
  line-height: 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

nav a:active,
nav a:focus {
  font-weight: normal;
  outline: none;
  border: none;
}


/* === Profileページ用 === */
.profile {
  padding: 40px 20px 60px 40px;
}

.bio {
  max-width: 600px;
  font-size: 13px;
  line-height: 1.4;
}

.bio p {
  margin-bottom: 20px;
}

.profile-image img {
  display: block;
  margin-top: 20px;
  width: 300px;
  height: auto;
}

/* === Project 詳細ページ === */
.project-detail {
  max-width: 800px;
  padding: 40px 0 60px 40px;
  margin: 0;
}

.project-detail h2 {
  font-size: 15px; /* ← 小さく */
  font-weight: normal;
  margin-bottom: 15px;
  text-align: left; /* ← 左寄せ */
}

.project-description {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
  max-width: 400px;
  white-space: pre-line;
}

.project-images img {
  width: 100%;
  margin-bottom: 8px;
  display: block;
}

/* === トップページのプロジェクト一覧 === */
.project-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.project-item img {
  width: 100%;
  height: auto;
  display: block;
}
.project-item {
  text-decoration: none;
}

.project-text a {
  font-size: 10px;
  color: #000000;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
  font-weight: normal;
  line-height: 1.4;
}
.sticky-title {
  position: sticky;
  top: 0;
  padding: 10px 0;
  z-index: 10; /* 上に来るように */
}
.project-text a:hover {
  text-decoration: underline;
}
.project-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  padding: 12px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  header h1 {
    font-size: 14px;
  }

  nav a {
    font-size: 14px;
    margin: 0 8px;
  }

  .gallery,
  .project-detail {
    padding: 14px;
  }
  
}
/* Commission Works風グリッド */
.commission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.commission-card {
  display: block;
  text-decoration: none;
  color: #000;
}

.commission-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease;
}
.card-title {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}
.project-description {
  text-align: justify;
}

  nav {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
  }

  .profile {
    padding: 60px 40px 60px 20px;
  }

  .commission-grid {
    padding: 20px 10px; /* ←★ここが重要 */
  }
.project-images img {
  display: inline-block;
  max-width: 100%;   /* 親の幅に収まる */
  height: auto;
  margin: 0;
  padding: 0;
}
.card-title {
  display: none;
}
