@charset "UTF-8";
/* ============================================
   Optimization Section
   成果推移・運用フロー
   ============================================ */
.service-optimization-section {
  padding: 60px 40px;
  margin-top: 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 20px;
}

.optimization-description {
  max-width: 900px;
  margin: 30px auto 50px;
  font-size: 15px;
  line-height: 2;
  color: #555;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Graph Placeholder */
.optimization-graph-placeholder {
  max-width: 1000px;
  margin: 50px auto;
}

.graph-phases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.phase-item {
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.phase-1 {
  border-left: 6px solid var(--bg-dark);
}

.phase-2 {
  border-left: 6px solid var(--accent-color);
}

.phase-badge {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f8f9fa, #e0e0e0);
  border-radius: 25px;
}

.phase-1 .phase-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--bg-dark), #34495e);
}

.phase-2 .phase-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color), #8B1515);
}

.phase-desc p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  letter-spacing: 0.03em;
}

.phase-desc strong {
  font-weight: 700;
  color: var(--accent-color);
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.legend-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.legend-color.cv {
  background: var(--accent-color);
}

.legend-color.cpa {
  background: var(--bg-dark);
}

.legend-line {
  width: 40px;
  height: 3px;
  background: #888;
  border-top: 2px dashed #888;
}

/* Optimization Flow */
.optimization-flow-description {
  max-width: 900px;
  margin: 30px auto 50px;
  font-size: 15px;
  line-height: 2;
  color: #555;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Optimization Flow - 全体表示（スクロールなし） */
.optimization-flow {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 20px 10px;
  margin: 50px 0;
  margin-right: auto;
  margin-left: auto;
}

.flow-step {
  flex: 1;
  min-width: 130px;
  max-width: 180px;
  padding: 20px 15px;
  text-align: center;
  background: #fff;
  border-top: 4px solid #f0f0f0;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.flow-client {
  border-top-color: #888;
}

.flow-fullfill {
  border-top-color: var(--accent-color);
}

.flow-asp {
  border-top-color: #3b7ddd;
}

.flow-monitor {
  border-top-color: #28a745;
}

.flow-report {
  border-top-color: #ffc107;
}

.flow-icon {
  margin-bottom: 15px;
  font-size: 32px;
}

.flow-step h4 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.06em;
}

.flow-step p {
  margin-bottom: 15px;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.03em;
}

.flow-step ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-step li {
  font-size: 11px;
  line-height: 1.6;
  color: #666;
  letter-spacing: 0.02em;
}

.flow-arrow {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-color);
}

/* PDCA Feedback */
.pdca-feedback {
  margin: 50px 0;
  text-align: center;
}

.pdca-badge {
  display: inline-block;
  padding: 15px 35px;
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--accent-color), #8B1515);
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(179, 27, 27, 0.3);
}

.pdca-subtitle {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.04em;
}

/* Optimization Features */
.optimization-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  margin-top: 50px;
}

.feature-col {
  padding: 35px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.feature-col h4 {
  padding-left: 15px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.06em;
  border-left: 4px solid var(--accent-color);
}

.feature-col p {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 2;
  color: #555;
  letter-spacing: 0.03em;
}

/* CTA to Cases */
.service-cta-cases {
  padding: 60px 40px;
  margin-top: 80px;
  text-align: center;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 3px solid #f0f0f0;
  border-radius: 20px;
}

.service-cta-cases h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.06em;
}

.service-cta-cases p {
  margin-bottom: 35px;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  letter-spacing: 0.03em;
}

.btn-cases {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 20px 50px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent-color), #8B1515);
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(179, 27, 27, 0.3);
  transition: all 0.4s ease;
}

.btn-cases:hover {
  background: linear-gradient(135deg, #8B1515, var(--accent-color));
  box-shadow: 0 10px 30px rgba(179, 27, 27, 0.5);
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1024px) {
  .optimization-flow {
    gap: 10px;
    padding: 20px 5px;
  }
  .flow-step {
    min-width: 110px;
    padding: 18px 12px;
  }
  .flow-step h4 {
    font-size: 14px;
  }
  .flow-step p {
    font-size: 11px;
  }
  .flow-step li {
    font-size: 10px;
  }
  .flow-arrow {
    font-size: 20px;
  }
}
@media (max-width: 768px) {
  .graph-phases,
  .optimization-features {
    grid-template-columns: 1fr;
  }
  .optimization-flow {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 20px 10px;
  }
  .flow-step {
    width: 100%;
    min-width: auto;
    max-width: 400px;
  }
  .flow-arrow {
    margin: 10px 0;
    font-size: 24px;
    transform: rotate(90deg);
  }
  .service-optimization-section {
    padding: 40px 25px;
  }
}
@media (max-width: 480px) {
  .service-cta-cases {
    padding: 40px 25px;
  }
  .service-cta-cases h3 {
    font-size: 24px;
  }
  .btn-cases {
    padding: 18px 40px;
    font-size: 16px;
  }
}