/* SERVICESページ用CSS */
/* ===== SERVICESセクション ===== */
.services {
  padding: 80px 20px;
  background: #f9fafc; /* 薄いグレーでセクション分け */
}

.services h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #222;
  letter-spacing: 2px;
}

.services h3 {
  text-align: center;
  margin-bottom: 60px;
  color: #666;
  font-size: 1.1rem;
}

/* サービス項目 */
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 50px;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* 交互デザイン */
.service-item.reverse {
  flex-direction: row-reverse;
}

/* テキスト部分 */
.service-text {
  flex: 1;
}

.service-text h4 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}

.service-text .subtitle {
  font-weight: 600;
  margin-bottom: 20px;
  color: darkorange;
  font-size: 1.1rem;
}

.service-text p {
  margin-bottom: 25px;
  line-height: 1.7;
  color: #444;
}

/* 画像部分 */
.service-image {
  flex: 1;
  text-align: center;
}

/* 各挿入画像調整 */
.img-system {
  width: 270%;
  max-width: 600px;
  margin-left: -120px;
  margin-top: 30px;
  transition: transform 0.4s ease;
}

.img-iso {
  width: 300%;
  max-width: 600px;
  margin-left: -130px;
  margin-top: 20px;
  transition: transform 0.4s ease;
}

.img-ai {
  width: 200%;
  max-width: 500px;
  margin-left: -100px;
  margin-top: 10px;
  transition: transform 0.4s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn:hover {
  background: linear-gradient(135deg, #0056b3, #0099cc);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.5);
  transform: translateY(-3px);
}

/* スマホ・タブレット対応 */
@media (max-width: 900px) {
  .service-item {
    flex-direction: column;  /* 横並び → 縦並び */
    padding: 20px;
    gap: 30px;
  }

  .service-item.reverse {
    flex-direction: column;  /* reverseも縦並びに */
  }

  .service-image img {
    max-width: 100%; /* 幅を画面に合わせる */
  }

  .service-text h4 {
    font-size: 1.5rem;
  }

  .services h2 {
    font-size: 2rem;
  }

  .services h3 {
    font-size: 1rem;
  }
}

/* 初期状態は透明・少し下に下げておく */
.service-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* .visible クラスが付いたらフェードイン */
.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* フッター */
footer {
  background: #80BA4A;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
    position: relative;   /* ← これを追加 */
  z-index: 2;           /* ← Canvasより前に表示 */
}