/* =========================================
   Salary Page Styles (CONST-X PRO)
   ========================================= */

.salary-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 600px;
  background: linear-gradient(
    100deg,
    rgba(185, 34, 51, 1) 0%,
    rgba(121, 42, 54, 1) 40%,
    rgba(223, 29, 49, 1) 100%
  );
  color: var(--color-white);
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
  overflow: hidden;
}

.salary-hero__bg-text {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  z-index: 0;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.salary-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.salary-hero__title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.salary-hero__text {
  /* vision__textを参考に */
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 40px;
}

/* =========================================
   Feature Blocks (img & Text)
   ========================================= */

.feature-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.feature-block--reverse {
  flex-direction: row-reverse;
}

.feature-block__text {
  flex-basis: 50%;
}

.feature-block__img {
  flex-basis: 40%;
  border-radius: 24px;
  overflow: hidden;
  /* aspect-ratio: 1 / 1; */
}

.feature-block__img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
}

.feature-block__title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.4;
  color: var(--color-text);
}

.feature-block__desc {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}

.salary-constx-pro-feature-block-img {
  flex-basis: 55.278%;
  border-radius: 0;
  background: none;
}

.salary-constx-debut-feature-block-img {
  flex-basis: 55.278%;
  background: none;
}

/* =========================================
   Three Point Grid
   ========================================= */

.points-header {
  text-align: center;
  margin-bottom: 60px;
}

.points-header__title {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 20px;
}

.points-header__desc {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}

.three-point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.point-card {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  min-height: 250px;
}

.point-card__number {
  text-align: center;
  font-size: 64px;
  font-weight: 900;
  color: rgb(235 59 73 / 28%);
  margin-bottom: 15px;
  line-height: 1;
}

.point-card__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
  text-align: center;
}

.point-card__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* =========================================
   Responsive adjustments
   ========================================= */

@media (max-width: 1024px) {
  .feature-block,
  .feature-block--reverse {
    flex-direction: column;
  }

  .feature-block__text,
  .feature-block__img {
    flex-basis: 100%;
    width: 100%;
  }

  .feature-block__img {
    order: -1;
    /* 画像を上に配置 */
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .salary-hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .salary-hero__title {
    font-size: 36px;
  }

  .salary-hero__bg-text {
    font-size: 80px;
  }

  .feature-block {
    gap: 40px;
    margin-bottom: 60px;
  }

  .feature-block__title,
  .points-header__title {
    font-size: 24px;
  }

  .points-header__desc {
    text-align: left;
  }

  .three-point-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .point-card {
    min-height: auto;
  }
}

/* =========================================
   Career Chart Styles (Copied from engineer.css)
   ========================================= */
.career-chart {
  background-color: var(--color-white);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  margin-bottom: 80px;
  width: 100%;
}

.career-step {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.career-step:last-child {
  margin-bottom: 0;
}

.career-step__label {
  width: 100px;
  background-color: #f03737;
  color: white;
  padding: 8px 0;
  text-align: center;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-right: 20px;
  position: relative;
  z-index: 2;
}

.career-step__bar-container {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: stretch;
}

.career-step__bar {
  width: 60%;
  /* Default width */
  height: auto;
  min-height: 100px;
  background: linear-gradient(
    100deg,
    rgba(185, 34, 51, 1) 0%,
    rgba(121, 42, 54, 1) 40%,
    rgba(223, 29, 49, 1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  color: white;
  font-weight: 700;
  position: relative;
}

/* Width modifiers for PC */
.career-step__bar--sm {
  width: 35%;
}

.career-step__bar--md {
  width: 45%;
}

.career-step__bar--lg {
  width: 60%;
}

.career-step__bar--xl {
  width: 80%;
}

.career-step__bar--xl2 {
  width: 100%;
}

.career-step__bar--gray {
  background: #f0f0f0;
  color: var(--color-text);
}

.career-step__bar--dark-blue {
  background: #0056b3;
}

.career-step__value-group {
  display: flex;
  align-items: baseline;
  margin-bottom: 5px;
}

.career-step__value {
  font-size: 32px;
  line-height: 1;
  margin-right: 5px;
}

.career-step__unit {
  font-size: 16px;
}

.career-step__sub-value {
  font-size: 14px;
  margin-left: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.career-step__circle {
  width: 80px;
  height: 80px;
  background-color: #f03737;
  border-radius: 50%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.career-step__circle span {
  font-size: 16px;
}

.career-step__desc-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  background-color: white;
  font-size: 12px;
  line-height: 1.6;
  margin-left: 30px;
  width: 250px;
  position: relative;
}

/* Connecting line */
.career-chart::before {
  content: "";
  position: absolute;
  top: 80px;
  bottom: 80px;
  left: 80px;
  width: 2px;
  background-color: #f03737;
  z-index: 1;
}

@media (max-width: 768px) {
  .career-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .career-step__label {
    margin-bottom: 10px;
    margin-right: 0;
  }

  .career-step__bar-container {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .career-step__bar,
  .career-step__bar--sm,
  .career-step__bar--md,
  .career-step__bar--lg,
  .career-step__bar--xl {
    width: 100%;
    height: auto;
    min-height: 80px;
    padding: 15px;
    padding-right: 90px;
    margin-bottom: 15px;
    box-sizing: border-box;
    flex-wrap: wrap;
  }

  .career-step__value {
    font-size: 28px;
  }

  .career-step__circle {
    width: 70px;
    height: 70px;
    right: 10px;
    font-size: 10px;
  }

  .career-step__circle span {
    font-size: 14px;
  }

  .career-step__desc-box {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .career-chart::before {
    display: none;
  }
}
