/* service-ec.css */

/* Service Intro Section */
.service-intro .image-text-section {
  align-items: flex-start; /* テキストと画像の上端を揃える */
}
.service-intro .image-text-section .text-content p {
  margin-bottom: 20px;
}
.service-intro .image-text-section .image-wrapper img {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Service Details Content Section (Specific to EC Support services) */
.service-details-content {
  background-color: var(--bg-light); /* 背景色を他のコンテンツと変える場合 */
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.detail-block {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px; /* アイテムの高さ統一 */
}

.detail-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.detail-block img {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.detail-block h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.detail-block p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Service Features Section (common style, but specific to this page content) */
.service-features {
  background-color: #fdfdfd; /* 背景色を他のコンテンツと変える場合 */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-item img {
  width: 200px;
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Responsive Adjustments for service-ec.html */
@media (max-width: 992px) {
  .service-intro .image-text-section {
    flex-direction: column;
    text-align: center;
  }
  .service-intro .image-text-section .text-content,
  .service-intro .image-text-section .image-wrapper {
    width: 100%;
    min-width: unset;
  }
  .service-intro .image-text-section .text-content p {
    text-align: center;
  }
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .detail-block {
    min-height: unset; /* スマホで高さの制約を解除 */
  }
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .service-intro .image-text-section .image-wrapper img {
    max-width: 80%;
    margin: 0 auto;
  }
  .details-grid {
    grid-template-columns: 1fr; /* スマホでは1列に */
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .details-grid .detail-block {
    padding: 20px;
  }
  .details-grid .detail-block h3 {
    font-size: 20px;
  }
  .features-grid .feature-item {
    padding: 20px;
  }
  .features-grid .feature-item h3 {
    font-size: 20px;
  }
}
