/* ===================================================================
   service.css - Service Page Specific Styles
   株式会社シグナス サービスページ専用スタイルシート
   =================================================================== */

/* ===================================================================
   Service Cards Grid
   =================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-frame);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(28, 55, 184, 0.10);
  }
}

.service-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-frame);
  border-radius: 50%;
}

.service-card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--color-heading);
  margin-bottom: 16px;
  font-weight: 600;
}

.service-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

/* ===================================================================
   Development Flow Section
   =================================================================== */
.dev-flow-section {
  background: var(--color-frame);
  padding: 64px 0;
  margin: 80px 0;
}

.dev-flow-container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.dev-flow-title {
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  color: var(--color-heading);
}

.dev-flow-subtitle {
  text-align: center;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 48px;
}

.dev-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.dev-flow-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(28, 55, 184, 0.06);
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .dev-flow-item:hover {
    transform: translateY(-2px);
  }
}

.dev-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Step Colors */
.dev-flow-item:nth-child(1) .dev-flow-step {
  background: #ffe5e5;
  color: #d32f2f;
}

.dev-flow-item:nth-child(2) .dev-flow-step {
  background: #fff4e5;
  color: #f57c00;
}

.dev-flow-item:nth-child(3) .dev-flow-step {
  background: #f0f8e5;
  color: #7cb342;
}

.dev-flow-item:nth-child(4) .dev-flow-step {
  background: #e5f8f5;
  color: #00897b;
}

.dev-flow-item:nth-child(5) .dev-flow-step {
  background: #e5f0ff;
  color: #1976d2;
}

.dev-flow-item:nth-child(6) .dev-flow-step {
  background: #f3e5ff;
  color: #7b1fa2;
}

.dev-flow-step-label {
  font-size: 10px;
}

.dev-flow-step-number {
  font-size: 14px;
  font-weight: 700;
}

.dev-flow-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-flow-icon img {
  width: 64px;
  height: 64px;
  display: block;
}

.dev-flow-title-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-heading);
  margin-bottom: 8px;
}

/* ===================================================================
   Case Studies Section
   =================================================================== */
.case-studies {
  margin: 64px 0;
}

.case-category {
  margin-bottom: 48px;
}

.case-category:last-child {
  margin-bottom: 0;
}

.case-category-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-heading);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-frame);
}

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

.case-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.case-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand);
  font-weight: 600;
}

/* ===================================================================
   Service Content Containers
   =================================================================== */
.service-content-wrapper {
  max-width: 900px;
  margin: 0 auto 48px;
}

.service-content-intro {
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 32px;
  font-size: 15px;
}

/* Service Intro (Top Section) */
#service > section {
  width: min(1100px, 90%);
  margin: 80px auto;
}

.service-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

/* Scroll Margin for Anchor Links */
.scroll-target {
  scroll-margin-top: 100px;
}

/* ===================================================================
   Service Page - Section Titles Underline (match recruit-detail)
   =================================================================== */

#service .section-title {
  width: 100%;
  margin: 64px auto 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--color-brand); /* recruit-detail と同じ太さ・色 */
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-heading);
  text-align: center;
}

/* ===================================================================
   Responsive Adjustments
   =================================================================== */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024.98px) {
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }
  
  .dev-flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile (〜767px) */
@media (max-width: 767.98px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
  }
  
  .service-card {
    padding: 24px 20px;
  }
  
  .dev-flow-section {
    padding: 48px 0;
    margin: 60px 0;
  }
  
  .dev-flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .dev-flow-item {
    padding: 20px 12px;
  }
  
  .dev-flow-icon {
    width: 60px;
    height: 60px;
  }
  
  .dev-flow-icon img {
    width: 48px;
    height: 48px;
  }
  
  .dev-flow-title-text {
    font-size: 14px;
  }
  
  .case-category-title {
    font-size: 18px;
  }
  
  .case-list li {
    font-size: 13px;
  }
}
