/* hp.css - HP page template styles */
/* Note: Problem styles are in 02-components/problem.css (shared with match, visa, bpaas, career) */

/* --------------------------------
   Hero
--------------------------------- */
.rso-hp-page .hero {
  padding: 0;
}

.rso-hp-page .hero__title {
  font-size: var(--fz-4xl);
}

/* --------------------------------
   Feature
--------------------------------- */
.hp-feature .feature__item {
  padding: var(--space-lg);
  gap: var(--space-xl);
  border-radius: var(--radius-lg);
}

.hp-feature .feature__text {
  flex: 1 1 50%;
  padding: 0;
}

.hp-feature .feature__image {
  flex: 1 1 50%;
}

.hp-feature .feature__item:nth-child(even) {
  flex-direction: row-reverse;
}

/* --------------------------------
   Flow
--------------------------------- */
.hp-flow {
  background: var(--color-bg-alt);
}

.flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.flow__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
}

.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--space-lg) / 2 - 6px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-primary);
}

.flow__icon {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  padding: 8px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.flow__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow__content {
  flex: 1;
}

.flow__step {
  font-size: var(--fz-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.flow__title {
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
  font-size: var(--fz-lg);
}

.flow__desc {
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --------------------------------
   Strength
--------------------------------- */
.strength {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.strength__item {
  flex: 1;
  text-align: center;
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.strength__label {
  font-size: var(--fz-md);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--space-sm) 0 var(--space-md);
}

.strength__card {
  border-radius: var(--radius-md);
}

.strength__logo {
  margin-bottom: var(--space-sm);
}

.strength__logo img {
  height: 28px;
  width: auto;
}

.strength__image img {
  width: 100%;
  height: auto;
  max-width: 240px;
  border-radius: var(--radius-sm);
}

.strength__arrow {
  flex: 0 0 auto;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strength__arrow img {
  width: 100%;
  height: auto;
  opacity: 0.5;
}

/* ================================
   Smartphone（~767px）
================================ */
@media (max-width: 767px) {
  .hp-feature .feature__item:nth-child(even) {
    flex-direction: column;
  }

  .flow__item {
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .flow__item:not(:last-child)::after {
    bottom: calc(-1 * var(--space-lg) / 2 - 5px);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--color-primary);
  }

  .flow__icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }

  .flow__title {
    font-size: var(--fz-md);
  }

  .strength {
    flex-direction: column;
    gap: var(--space-md);
  }

  .strength__item {
    width: 100%;
  }

  .strength__arrow {
    width: 12px;
    transform: rotate(90deg);
  }


  .strength__card {
    width: 100%;
  }

  .strength__image img {
    max-width: 200px;
  }
}