/* ========================================================================
   Career Steps Component (Salary Progression)
   ======================================================================== */

/* キャリアステップ - 階段配置 */
.career-steps {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 125px 0 40px;  /* 階段配置のスペース確保 */
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.career-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
}

/* スクロールバーのスタイリング */
.career-steps::-webkit-scrollbar {
  height: 8px;
}

.career-steps::-webkit-scrollbar-track {
  background: var(--color-bg-gray);
  border-radius: 4px;
}

.career-steps::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border-radius: 4px;
}

.career-steps::-webkit-scrollbar-thumb:hover {
  background: #154080;
}

/* 階段効果：translateYで各カードを上方向に持ち上げる */
.career-step:nth-child(1) .step-card {
  transform: translateY(0);  /* 見習い - 最低位 */
}

.career-step:nth-child(2) .step-card {
  transform: translateY(-30px);
}

.career-step:nth-child(3) .step-card {
  transform: translateY(-60px);
}

.career-step:nth-child(4) .step-card {
  transform: translateY(-90px);
}

.career-step:nth-child(5) .step-card {
  transform: translateY(-120px);
}

.career-step:nth-child(6) .step-card {
  transform: translateY(-150px);  /* 役員 - 最高位 */
}

/* カードデザイン */
.step-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 4px 12px rgba(27, 77, 160, 0.08);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(27, 77, 160, 0.12);
}

/* カードヘッダー（職位） */
.step-card .card-header {
  background-color: var(--color-blue);
  padding: 14px 8px;
  text-align: center;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step-card .card-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-white);
  margin-bottom: 2px;
  line-height: 1.4;
  white-space: pre-line;
}

.step-card .card-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  white-space: pre-line;
}

/* カードボディ（金額） */
.step-card .card-body {
  padding: 14px 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dotted var(--color-border-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.7rem;
  color: var(--color-gray);
}

.info-value {
  font-size: 0.85rem;
  font-weight: bold;
}

.info-value.total {
  font-size: 0.95rem;
}

.info-value.annual {
  color: var(--color-blue);
  font-size: 1rem;
  font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .career-steps {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .career-step {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  /* スマホでは階段効果をリセット */
  .career-step:nth-child(1) .step-card,
  .career-step:nth-child(2) .step-card,
  .career-step:nth-child(3) .step-card,
  .career-step:nth-child(4) .step-card,
  .career-step:nth-child(5) .step-card,
  .career-step:nth-child(6) .step-card {
    transform: translateY(0);
  }

  .step-card {
    flex: 1;
  }

  .step-card .card-header {
    padding: 10px 8px;
  }
}

/* ========================================================================
   Career Path Cards (Career Page)
   ======================================================================== */

.career-period {
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--color-blue);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.career-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text-dark);
}

.career-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.career-list__item {
  display: flex;
  align-items: start;
  gap: 8px;
}

.career-list__bullet {
  color: var(--color-blue);
  font-weight: bold;
  flex-shrink: 0;
}

.career-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.career-income-wrapper {
  margin-top: 16px;
}

.career-income-title {
  text-align: center;
  margin-top: 120px;
  margin-bottom: 4px;
}

/* ========================================================================
   Training Support Section (Career Page)
   ======================================================================== */

.training-support {
  margin-top: 64px;
  background-color: var(--color-white);
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-light);
}

.training-support__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-blue);
  margin-bottom: 32px;
}

.training-support__subtitle {
  font-weight: bold;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.training-support__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-text-dark);
}

/* ========================================================================
   Career Story Section (Career Page - Senior Employee Story)
   ======================================================================== */

.career-story {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.career-story__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-blue);
  margin-bottom: 16px;
  text-align: center;
}

.career-story__subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 0.875rem;
}

.career-story__timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.career-story__item {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background-color: var(--color-bg-gray);
  border-radius: var(--radius-sm);
}

.career-story__year {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background-color: var(--color-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
}

.career-story__heading {
  font-weight: bold;
  margin-bottom: 8px;
}

.career-story__text {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ========================================================================
   Inline Link Utility
   ======================================================================== */

.link-inline {
  color: var(--color-blue);
  text-decoration: underline;
}

/* ========================================================================
   Responsive: Career Path & Story
   ======================================================================== */

@media (max-width: 768px) {
  .training-support {
    margin-top: 48px;
    padding: 32px;
  }

  .training-support__title {
    font-size: 1.25rem;
    margin-bottom: 24px;
  }

  .training-support__subtitle {
    font-size: 1rem;
  }

  .career-story {
    padding: 32px;
  }

  .career-story__title {
    font-size: 1.25rem;
  }

  .career-story__item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .career-story__year {
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }
}
