/* ============================================================
   キャリアステップ (Carrier)
   ============================================================ */

/* ── INTRO ── */
.carrier-intro {
  position: relative;
  padding: 88px 0;
}

.carrier-intro-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px;
  background: linear-gradient(to right, rgb(255 255 255/.5) 0%, rgb(255 255 255/.5) 7%, rgb(255 255 255/0) 100%);
}

.carrier-intro-quote {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 36px;
}

.carrier-intro-body {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
}

.carrier-intro-body p {
  margin-bottom: 16px;
}

/* ── CHARTS SECTION ── */
.carrier-charts-section {
  padding: 48px 0 0;
}

/* ── COURSE SECTION ── */
.carrier-course-section {
  padding: 80px 0;
}

.carrier-course-section--gray {
  background: url('../images/carrier_bg.png') no-repeat top center/ 100%;
  position: relative;
}

/*.carrier-course-section--gray::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
}*/

.carrier-course-box {
  border: 5px solid #f5f9ff;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 48px;
}

.carrier-charts-bg {
  background: rgba(255, 255, 255, 0.4);
  padding: 3rem;
}

.carrier-chart-img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.carrier-section-heading {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 48px;
}

.carrier-body {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
}

.carrier-body p {
  margin-bottom: 20px;
}

.carrier-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.carrier-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}

.carrier-img-wrap.fu.show::after {
  transform: translateX(101%);
}

.carrier-img-wrap img {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.carrier-img-wrap.fu.show img {
  opacity: 1;
}

.carrier-img {
  width: 100%;
  display: block;
}

/* ── aboutas 背景なし ── */
.aboutas-section--plain {
  background-image: none;
  background-color: #f5f9ff;
}

/* ── env-section テキストなし ── */
.env-section .text-section {
  display: none;
}

.carrier-chart-link {
  position: relative;
}

/* 右側の縦スライダー枠（はみ出しをクリップ）。width はここで調整 */
.carrier-chart-slider {
  position: absolute;
  bottom: 7.5%;
  right: 0.5%;
  width: 31%;
  height: 74%;
  overflow: hidden;
  z-index: 2;
}

/* 内側トラック：アイコンを縦に並べ、下から上へ無限スクロール */
.carrier-chart-track {
  display: flex;
  flex-direction: column;
  animation: carrierChartScroll 18s linear infinite;
}

/* 2セット出力しているので -50% でちょうど1セット分進み、継ぎ目なくループ */
@keyframes carrierChartScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.job-link {
  width: 100%;
  display: block;
  position: relative;
  /* 各アイコンの縦間隔（％は枠幅基準）。複製分も均等なのでループが途切れない */
  transition: transform 0.25s ease, filter 0.25s ease;
}

.job-link:hover {
  transform: translateY(15%);
  filter: brightness(1.08) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

.job-link .carrier-chart-img {
  width: 70%;
  margin: auto;
}

.job-link:hover .carrier-chart-img {
  width: 95%;
}

/* ホバーで _a 画像へクロスフェード */
.job-link-img--default {
  transition: opacity 0.25s ease;
}

.job-link-img--hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.job-link:hover .job-link-img--default {
  opacity: 0;
}

.job-link:hover .job-link-img--hover {
  opacity: 1;
}

/* ホバーで一時停止（任意） */
.carrier-chart-slider:hover .carrier-chart-track {
  animation-play-state: paused;
}

.carrier-charts-text {
  background: var(--light-navy);
  border-radius: 10px;
  display: inline-block;
  padding: 2rem;
}

/* ── RESPONSIVE ── */

@media (max-width: 991px) {

  .carrier-charts-bg {
    padding: 1rem 0;
  }
}

@media (max-width: 767px) {
  .carrier-intro {
    padding: 48px 0;
  }

  .carrier-intro-inner {
    padding: 24px;
  }

  .carrier-course-section {
    padding: 48px 0;
  }

  .carrier-course-box {
    padding: 2rem 1rem;
  }

  .carrier-course-body {
    padding: 0;
  }
}