/* 導入の流れ */
#implementation-flow {
  padding: 120px 0;
  text-align: center;
  background-color: #f8fffe;
  position: relative;
  width:100%;
}

#flow-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: #515151;
  font-weight: 700;
}

#flow-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 80px;
  line-height: 1.6;
}

#flow-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 0 20px;
}

.flow-step {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  flex: 1;
  max-width: 250px;
  transition: all 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.flow-step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #369e7d, #5bb2c0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  position: relative;
}

.flow-step-content h3 {
  font-size: 20px;
  color: #369e7d;
  margin-bottom: 15px;
  font-weight: 700;
}

.flow-step-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.flow-arrow {
  font-size: 24px;
  color: #369e7d;
  margin: 0 20px;
  font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) and (min-width: 769px) {
  #implementation-flow {
    padding: 100px 0;
  }
  
  #flow-title {
    font-size: 32px;
  }
  
  #flow-subtitle {
    font-size: 16px;
    margin-bottom: 60px;
  }
  
  #flow-steps {
    max-width: 700px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
  }
  
  .flow-step {
    width: auto;
    max-width: none;
    padding: 30px 20px;
    flex: none;
  }
  
  /* 01 お問い合わせ */
  .flow-step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  
  /* 01→02の矢印 */
  .flow-arrow:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    margin: 0 10px;
    font-size: 20px;
    transform: none;
  }
  
  /* 02 ヒアリング */
  .flow-step:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }
  
  /* 02→03の矢印（左下向き） */
  .flow-arrow:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    transform: rotate(135deg);
    margin: 10px 0;
    font-size: 20px;
  }
  
  /* 03 初期設定 */
  .flow-step:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
  }
  
  /* 03→04の矢印 */
  .flow-arrow:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
    margin: 0 10px;
    font-size: 20px;
    transform: none;
  }
  
  /* 04 導入完了 */
  .flow-step:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
  }
}

@media (max-width: 1200px) {
  #implementation-flow {
    padding: 100px 0;
  }
  
  #flow-title {
    font-size: 32px;
  }
  
  #flow-subtitle {
    font-size: 16px;
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  #implementation-flow {
    padding: 80px 0;
  }
  
  #flow-title {
    font-size: 24px;
  }
  
  #flow-subtitle {
    font-size: 15px;
    margin-bottom: 50px;
    padding: 0 20px;
  }
  
  #flow-steps {
    flex-direction: column;
    max-width: 100%;
    padding: 0 30px;
  }
  
  .flow-step {
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
    padding: 30px 25px;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
    font-size: 20px;
  }
  
  .flow-step-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .flow-step-content h3 {
    font-size: 18px;
  }
  
  .flow-step-content p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  #implementation-flow {
    padding: 60px 0;
  }
  
  #flow-title {
    font-size: 24px;
  }
  
  #flow-subtitle {
    font-size: 14px;
    margin-bottom: 40px;
  }
  
  #flow-steps {
    padding: 0 20px;
  }
  
  .flow-step {
    padding: 25px 20px;
  }
  
  .flow-step-content h3 {
    font-size: 16px;
  }
  
  .flow-step-content p {
    font-size: 12px;
  }
}