/* --------画像DL--------- */
.wrapper-3 {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.wrapper-3 a {
  flex: 1 1 300px; /* 最小300pxで折り返す */
  max-width: 500px;
  text-align: center;
}

.wrapper-3 img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.wrapper-3 img:hover {
  transform: scale(1.1);
}

/* スマホなど画面幅が狭いときに縦並び */
@media (max-width: 768px) {
  .wrapper-3 {
    flex-direction: column;
    align-items: center;
  }
}

/* -------------- */
.donyu-content {
  background: #f7f7f7;
  padding: 5rem;
}

.deploy-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin-left: 2.5vw;
  margin-bottom: 0.4em;
}
.deploy-sub {
  text-align: center;
  font-size: 1.3rem;
  color: #bcd0db;
  margin-left: 2.7vw;
  margin-bottom: 2.2em;
}

.deploy-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.deploy-row {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 0;
}

.deploy-text {
  flex: 1.4;
  padding-left: 3vw;
  min-width: 260px;
}

.deploy-text h3 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.3em;
}
.deploy-text p {
  font-size: 1.07rem;
  color: #444;
}

.deploy-imgs {
  flex: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.deploy-imgs img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  background: #222;
}

/* 画像が1枚しかない場合は2列ぶち抜きでセンター表示 */
.deploy-imgs.single {
  grid-template-columns: 1fr 1fr;
}
.deploy-imgs.single img {
  grid-column: 1 / 3;
  justify-self: center;
  width: 100%;
  height: 260px;
}

@media (max-width: 900px) {
  .deploy-row {
    flex-direction: column;
    gap: 26px;
  }
  .deploy-imgs,
  .deploy-imgs.single {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .deploy-imgs img,
  .deploy-imgs.single img {
    width: 100%;
    height: 32vw;
    min-height: 140px;
    max-height: 260px;
  }
}
