@charset "utf-8";

/* セクション共通 */
.services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 5%;
}

/* 各項目 */
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 40px;
  flex-wrap: wrap;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-item img {
  width: 48%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s ease;
}

.service-item img:hover {
  transform: scale(1.03);
}

.service-text {
  flex: 1;
  min-width: 300px;
}

.service-text h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #444;
}

.service-text p {
  font-size: 1rem;
  color: #555;
}

/* --- フェードインアニメーション --- */
.fadein {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fadein.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
  .service-item {
    flex-direction: column;
    text-align: center;
  }

  .service-item:nth-child(even) {
    flex-direction: column;
  }

  .service-item img {
    width: 100%;
  }

  .service-text {
    width: 100%;
    text-align: left;
  }
}