/* 採用フロー専用CSS */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1px;
  margin: 40px 0;
  padding: 20px;
  overflow-x: auto;
}

.step-container {
  flex-shrink: 0;
}

.step {
  background: #e7ecf9;
  border: none;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  width: 130px;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.step-1 {
  background: #fff;
  border: 2px solid #2557c7;
}

.step-7 {
  background: #1e40af;
  border: 2px solid #1e40af;
  color: white;
}

.step-number {
  font-size: 14px;
  font-weight: bold;
  color: #2557c7;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.step-7 .step-number {
  color: white;
}

.step-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.step-7 .step-title {
  display: none;
}

.step-final {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
  letter-spacing: 2px;
}

.step-description {
  font-size: 12px;
  color: #666;
  margin: 5px 0 0 0;
  line-height: 1.4;
}

.arrow {
  font-size: 12px;
  color: #2557c7;
  margin: 0 5px;
  flex-shrink: 0;
}

/* レスポンシブ対応 - タブレット：2行レイアウト */
@media screen and (max-width: 1200px) and (min-width: 769px) {
  .process-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 500px;
    margin: 40px auto;
  }
  
  /* 1行目：STEP1-4 */
  .step-container:nth-child(1),
  .arrow:nth-child(2),
  .step-container:nth-child(3),
  .arrow:nth-child(4),
  .step-container:nth-child(5),
  .arrow:nth-child(6),
  .step-container:nth-child(7) {
    flex: 0 0 auto;
  }
  
  /* STEP4の後の矢印を改行ポイントに */
  .arrow:nth-child(8) {
    flex-basis: 100%;
    height: 0;
    overflow: hidden;
  }
  
  .step {
    width: 90px;
    height: 140px;
    padding: 8px 4px;
  }
  
  .step-number {
    font-size: 11px;
  }
  
  .step-title {
    font-size: 13px;
  }
  
  .step-description {
    font-size: 9px;
  }
  
  .arrow {
    font-size: 10px;
    margin: 0 2px;
    align-self: center;
  }
}

/* レスポンシブ対応 - スマホ：1カラムレイアウト */
@media screen and (max-width: 768px) {
  .process-flow {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 15px;
    margin: 30px 0;
    padding: 15px;
    overflow-x: visible;
  }
  
  .arrow {
    transform: rotate(90deg);
    margin: 5px 0;
  }
  
  .step {
    width: 280px;
    height: 160px;
    padding: 25px 20px;
  }
  
  .step-number {
    font-size: 16px;
  }
  
  .step-title {
    font-size: 18px;
  }
  
  .step-final {
    font-size: 28px;
  }
  
  .step-description {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .step {
    width: 240px;
    height: 140px;
    padding: 20px 15px;
  }
  
  .step-title {
    font-size: 16px;
  }
  
  .step-final {
    font-size: 24px;
  }
}
