/* --- Restorations grid (補綴物) --- */
.restorations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.restoration-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.restoration-card img {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.restoration-card > div {
  flex: 1 1 auto;
}
.restoration-card h4 {
  margin: 0 0 8px 0;
  font-weight: bold;
  color: #6b90db;
}

/* --- スマホ（説明→写真） --- */
@media (max-width: 576px) {
  .restoration-card {
    flex-direction: column;
    align-items: stretch;
  }
  .restoration-card > div { order: 1; }   /* テキストを先に */
  .restoration-card img   { order: 2; width: 100%; height: auto; }
}

/* --- PC/タブレット（左右交互） --- */
@media (min-width: 577px) {
  .restoration-card:nth-child(even) {
    flex-direction: row-reverse;
  }
}
/* --- Restorations: 1 row per card, Photo | Text --- */
.restorations-grid {
  display: grid;
  grid-template-columns: 1fr;  /* 1カード=1行 */
  gap: 24px;
}

.restorations-grid .restoration-card {
  display: flex;
  flex-direction: row !important; /* 交互配置を禁止して常に横並び */
  align-items: flex-start;
  gap: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* 写真：左・一定サイズ */
.restorations-grid .restoration-card > img {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  order: 0; /* 写真を必ず先頭に */
}

/* 説明文：右・可変 */
.restorations-grid .restoration-card > div {
  flex: 1 1 auto;
  order: 1;
}

.restorations-grid .restoration-card h4 {
  margin: 0 0 8px 0;
  font-weight: bold;
  color: #6b90db;
  line-height: 1.4;
}

/* スマホ：縦並び（写真→説明文の順を維持） */
@media (max-width: 576px) {
  .restorations-grid .restoration-card {
    flex-direction: column !important;
    align-items: stretch;
  }
  .restorations-grid .restoration-card > img {
    width: 100%;
    height: auto;
  }
}
