@charset "utf-8";

/* 事業内容ページ - TOPページ基準統一デザイン */

/* 既存のpage-heroクラスは削除し、統一されたheroクラスを使用 */
/* subpage-unified.cssのheroスタイルが適用されます */

/* body要素の背景色上書き - subpage-unified.cssのbody背景を無効化 */
body.page-template-page-business,
html body.page-template-page-business {
  background-color: #fff !important;
  background: #fff !important;
}

/* ヒーローセクションは元の背景を維持 */
.hero--business,
.hero--gradient.hero--business {
  background: linear-gradient(135deg, var(--col_primary) 0%, color-mix(in srgb, var(--col_primary) 80%, #1e40af) 100%) !important;
}

/* 最優先背景対策 - body要素からの灰色背景上書き */
html body.page-template-page-business .main-content,
html body.page-template-page-business .section__business,
html body.page-template-page-business .business__content,
html body.page-template-page-business .business__materials,
html body.page-template-page-business .business__quality {
  background-color: #fff !important;
}

/* CTAセクションは特別扱い（グラデーション背景を保持） */
html body.page-template-page-business .business__cta {
  background: linear-gradient(135deg, var(--col_primary) 0%, #c41414 100%) !important;
}

/* 特定セクションの背景確保 */
.business__materials,
.business__quality {
  background-color: #fff !important;
  background-image: none !important;
  background: #fff !important;
  position: relative;
  z-index: 5;
}

/* 最終保険: ページ内すべての要素が確実に表示される */
.page-template-page-business .business__content > *,
.page-template-page-business .business__materials,
.page-template-page-business .business__quality,
.page-template-page-business .business__cta {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 5;
}

/* JavaScript失敗時のフォールバック - 5秒後に強制表示 */
@keyframes forceVisible {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.intersect-elem {
  animation: forceVisible 0.8s ease-out 5s both;
}

/* ==========================================================================
   事業内容ページ専用コンテンツスタイル（TOPページ基準）
   ========================================================================== */

/* 事業コンテンツエリア - 統一デザイン */
.business__content {
  background: #ffffff;
  margin-top: -80px;
  position: relative;
  z-index: 3;
  border-radius: 20px 20px 0 0;
  padding: 80px 60px;
  min-height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ページ全体の背景対策 */
.main-content {
  background: #fff !important;
}

/* セクション全体の背景対策 */
.section__business {
  background: #fff !important;
}

/* 共通スタイルはsubpage-unified.cssで定義済み - 重複削除 */

/* 事業サービス一覧（共通カードUI使用） */
.business__services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

/* service__itemは共通のsection-cardクラスを使用 */
.service__item {
  /* 共通.section-cardスタイルを継承 */
  overflow: hidden;
}


.service__header {
  background: linear-gradient(135deg, 
    var(--col_primary) 0%, 
    #c41414 50%, 
    var(--col_primary) 100%);
  background-size: 200% 200%;
  animation: none;
  color: white;
  padding: 48px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.service__header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.service__number {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.service__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.service__content {
  padding: 48px;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%);
}

.service__image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service__image:hover img {
  transform: scale(1.05);
}

.service__desc {
  font-size: 1rem;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* 対応材料・品質管理セクション - 統一デザイン */
.business__materials,
.business__quality {
  background: #ffffff;
  border-radius: 16px;
  padding: 60px 40px;
  margin: 80px auto;
  max-width: 1400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
}

.materials__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.materials__category {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.materials__category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--col_primary, #e11f1f);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.category__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category__list li {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.5;
}

.category__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--col_primary, #e11f1f);
  font-size: 0.8rem;
  top: 0.1rem;
}

/* 品質管理 */
.quality__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.quality__item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quality__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.quality__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quality__icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.quality__text {
  flex: 1;
}

.quality__heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.quality__desc {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* 注意: CTAセクションは共通コンポーネント /parts/components/contact-cta.php を使用してください */
/* このページ固有のCTAスタイルは削除されました */

/* アニメーションクラスはcommon.cssで定義済み - 重複削除 */

/* レスポンシブ対応（共通クラス基準準拠） */
@media (max-width: 1024px) {
  .business__services {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .service__header {
    padding: 32px;
  }
  
  .service__content {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .business__services {
    gap: 20px;
  }
  
  .service__header {
    padding: 24px;
  }
  
  .service__content {
    padding: 24px;
  }
  
  .service__title {
    font-size: 1.25rem;
  }
}