/* サービスページ用スタイル */

/* ページヘッダー */
.page-header {
  background-color: #f8f9fa;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 0;
}

.page-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.page-description {
  font-size: 1.6rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* サービスカテゴリー */
.services-categories {
  padding: 80px 0;
  background-image: url('../../assets/images/corporate_sv-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* オーバーレイを削除 */
.services-categories .container {
  position: relative;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
  margin-bottom: 20px;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

/* サービス詳細セクション */
.service-detail-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.section-subtitle {
  font-size: 1.6rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-item {
  display: flex;
  gap: 40px;
  align-items: center;
}

.service-image {
  flex: 0 0 40%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
}

.service-content {
  flex: 1;
}

.service-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.service-description {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 30px;
  margin-bottom: 30px;
  padding-left: 20px;
}

.service-features li {
  font-size: 1.4rem;
  color: #444;
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e83a3b;
  font-weight: bold;
}

/* サービスコンテンツ内の詳細を見るボタン */
.service-content .btn {
  margin-top: 20px;
  width: auto;
  display: inline-flex;
}

/* よくある質問はテンプレートCSSを使用 */
/* template.cssに定義されているFAQスタイルを使用するため、ここでの再定義は不要 */

/* CTA Block */
.cta-block {
  background-color: #f8f9fa;
  padding: 80px 0;
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTAセクション内のボタン設定を上書き */
.cta-block .btn {
  margin: 0; /* ボタンの自動マージンを解除 */
  flex: 0 0 auto; /* フレックスアイテムとしての伸縮を防止 */
  min-width: 200px; /* 最小幅を設定 */
}

.cta-block .btn-primary {
  flex: 1 0 auto; /* プライマリボタンを少し広く */
}

.cta-block .btn-outline-primary {
  flex: 0 1 auto; /* アウトラインボタンはコンテンツに合わせる */
}

/* レスポンシブ対応 */
@media screen and (max-width: 992px) {
  .service-item {
    flex-direction: column;
  }
  
  .service-image {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  
  .service-features {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .page-header {
    padding: 40px 0;
    margin-bottom: 40px;
  }
  
  .page-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.4rem;
  }
  
  .service-detail-section {
    padding: 60px 0;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 576px) {
  .page-title {
    font-size: 2.4rem;
  }
  
  .service-title {
    font-size: 2rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .category-icon img {
    width: 50px;
    height: 50px;
  }
}
