/**
 * Pages CSS - ページ固有スタイル統合
 * 各ページ特有のスタイルを整理・統合
 */

/* ====================================
   サービスページ
==================================== */
.page-template-page-services .consulting-features,
.page-template-page-services .dx-features,
.page-template-page-services .development-features {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 25px !important;
  margin: 40px auto !important;
  max-width: 500px !important;
}

.page-template-page-services .feature-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  padding: 25px 35px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
  border-radius: 15px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
  width: 100% !important;
  max-width: 400px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  border: 2px solid #e8ebff !important;
  position: relative !important;
  overflow: hidden !important;
}

.page-template-page-services .feature-item:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25) !important;
  border-color: #667eea !important;
  background: linear-gradient(135deg, #ffffff 0%, #f0f3ff 100%) !important;
}

.page-template-page-services .feature-icon {
  font-size: 36px !important;
  line-height: 1 !important;
  display: inline-block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.page-template-page-services .feature-text {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
}

/* ====================================
   お問い合わせページ
==================================== */
.page-template-page-contact .contact-info {
  text-align: center;
  padding: 80px 0;
  background: #f8f9fa;
}

.page-template-page-contact .contact-info h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

.page-template-page-contact .contact-info-description {
  max-width: 700px;
  margin: 0 auto;
}

.page-template-page-contact .contact-cta {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 0 auto;
}

.page-template-page-contact .contact-form-info {
  text-align: center;
  margin: 20px 0;
}

.page-template-page-contact .contact-form-link {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.page-template-page-contact .contact-form-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

/* ====================================
   会社概要ページ
==================================== */
.page-template-page-about .approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-template-page-about .approach-item {
  background: white;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.page-template-page-about .approach-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.page-template-page-about .approach-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

/* ====================================
   採用情報ページ
==================================== */
.page-template-page-recruit .apply-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.page-template-page-recruit .cta-content h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.page-template-page-recruit .cta-content p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
}

.page-template-page-recruit .btn.btn-primary {
  background: white;
  color: #667eea;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-template-page-recruit .btn.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
  color: white;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ====================================
   ニュースページ
==================================== */
.page-template-page-news .news-layout,
.archive .news-layout {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-main {
  flex: 1;
  min-width: 0;
}

.news-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.news-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  margin-bottom: 20px;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ====================================
   実績ページ
==================================== */
.page-template-page-works .works-grid,
.post-type-archive-works .works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.work-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ====================================
   レスポンシブ対応
==================================== */
@media (max-width: 768px) {
  /* サービスページ */
  .page-template-page-services .consulting-features,
  .page-template-page-services .dx-features,
  .page-template-page-services .development-features {
    gap: 20px !important;
    padding: 0 20px !important;
  }
  
  .page-template-page-services .feature-item {
    padding: 20px 25px !important;
    max-width: 350px !important;
  }
  
  .page-template-page-services .feature-icon {
    font-size: 28px !important;
  }
  
  .page-template-page-services .feature-text {
    font-size: 16px !important;
  }
  
  /* お問い合わせページ */
  .page-template-page-contact .contact-info {
    padding: 60px 0;
  }
  
  .page-template-page-contact .contact-cta {
    padding: 30px 20px;
    margin: 0 20px;
  }
  
  /* 採用情報ページ */
  .page-template-page-recruit .apply-cta {
    padding: 60px 0;
  }
  
  .page-template-page-recruit .btn.btn-primary {
    padding: 16px 40px;
    font-size: 16px;
    min-width: 180px;
  }
  
  /* ニュースページ */
  .news-layout {
    flex-direction: column;
  }
  
  .news-sidebar {
    width: 100%;
  }
  
  /* 実績ページ */
  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-template-page-services .feature-item {
    flex-direction: column !important;
    text-align: center !important;
    padding: 25px 20px !important;
    gap: 12px !important;
  }
  
  .page-template-page-services .feature-icon {
    font-size: 32px !important;
  }
}