/* =========================
   Spatial Projects – Index
   ========================= */

.projects {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

/* ---- Project Card ---- */

.project-card {
  display: block;
  text-decoration: none;
  color: #111;
}

/* ---- Thumbnail ---- */

.project-thumb {
  width: 100%;
  margin-bottom: 12px;
}

.project-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.02);
  opacity: 0.95;
}

/* ---- Text ---- */

.project-card h2 {
  margin: 6px 0 4px;
  font-size: 18px;
  font-weight: 500;
}

.project-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* ======================
   Project Detail Page
====================== */

.project-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

/* ---- Header ---- */

.project-header {
  text-align: center;
  margin-bottom: 4rem;
}

.project-header h1 {
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-meta {
  font-size: 0.8rem;
  color: #777;
}

/* ---- Images ---- */

.project-images {
  max-width: 860px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Text ---- */

.project-text {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 2;
  color: #333;
}

/* ======================
   Project Detail – Universal Layout
====================== */

.project-images {
  width: 100%;
  max-width: 860px;     /* PCでの上限 */
  margin: 0 auto 4rem;
}

.project-images img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
   
}
