/* ==========================================================================
   採用選考フロー
   ========================================================================== */

.sf-flow {
  max-width: 100%;
  margin: 0 auto;
}

/* ---------- ステップカード ---------- */
.sf-item {
  display: flex;
  gap: 0;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.sf-item__head {
  flex-shrink: 0;
  width: 80px;
  background: #2592c7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.sf-item__step {
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.sf-item__num {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}

.sf-item__body {
  flex: 1;
  padding: 24px;
}

.sf-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}

.sf-item__text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 14px;
}

/* 詳細テーブル */
.sf-item__table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
}
.sf-item__table th {
  color: #2592c7;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px 6px 0;
  vertical-align: top;
  width: 80px;
  border: none;
}
.sf-item__table td {
  color: #555;
  padding: 6px 0;
  vertical-align: top;
  line-height: 1.6;
  border: none;
}
.sf-item__table tr + tr th,
.sf-item__table tr + tr td {
  border-top: 1px solid #f0f0f0;
}

/* 補足 */
.sf-item__notice {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}

/* ---------- 矢印 ---------- */
.sf-arrow {
  text-align: center;
  padding: 10px 0;
  color: #2592c7;
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ---------- アニメーション ---------- */

/* ステップカード: スライドイン */
.sf-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}
.sf-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.sf-item:nth-child(1) { transition-delay: 0s; }
.sf-item:nth-child(3) { transition-delay: 0.1s; }
.sf-item:nth-child(5) { transition-delay: 0.2s; }
.sf-item:nth-child(7) { transition-delay: 0.3s; }

/* ホバーでカード浮き上がり */
.sf-item:hover {
  box-shadow: 0 8px 28px rgba(37, 146, 199, 0.15);
  transform: translateY(-3px);
}
.sf-item:hover .sf-item__head {
  background: linear-gradient(135deg, #2592c7, #1a6d96);
}

/* ステップ番号パルス */
.sf-item__head {
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.sf-item:hover .sf-item__num {
  animation: sf-pulse 0.5s ease;
}
@keyframes sf-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* 矢印バウンス */
.sf-arrow {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sf-arrow.is-visible {
  opacity: 0.5;
  animation: sf-bounce 2s ease infinite;
}
@keyframes sf-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* テーブルラベルのアンダーライン */
.sf-item__table th {
  position: relative;
  transition: color 0.3s ease;
}
.sf-item:hover .sf-item__table th::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: #2592c7;
  animation: sf-underline 0.3s ease forwards;
}
@keyframes sf-underline {
  from { width: 0; }
  to { width: 100%; }
}

/* CTA ホバー */
.btn-warning:hover,
.btn-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* ---------- モバイル ---------- */
@media (max-width: 575px) {
  .sf-item {
    flex-direction: column;
  }
  .sf-item__head {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    padding: 12px 20px;
    justify-content: flex-start;
  }
  .sf-item__num {
    font-size: 1.3rem;
    margin-top: 0;
  }
  .sf-item__body {
    padding: 20px;
  }
  .sf-item__table th {
    width: 70px;
  }
}
