/*
|---------------------------------------------------------------
| qinc2026-top-challenges.css - 3つの見えない壁
|---------------------------------------------------------------
*/

/* ==========================================================================
   Top Challenges
   ========================================================================== */
.top-challenges {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.top-challenges__header {
  text-align: center;
  margin-bottom: 80px;
}

.top-challenges__title {
  margin: 0 0 24px;
  font-family: var(--font-family-ja);
  font-weight: 900;
  font-size: 48px;
  line-height: 1.2;
  color: var(--color-blue01);
}

.top-challenges__title-num {
  font-size: 78px;
  line-height: 1;
}

.top-challenges__lead {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.83;
  color: var(--color-blue01);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.top-challenges__cards {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.top-challenges__card {
  position: relative;
  flex: 1 1 0;
  max-width: 384px;
  aspect-ratio: 1;
}

/* Ring (background circle) */
.top-challenges__card-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: filter 0.3s ease;
}

.top-challenges__card:hover .top-challenges__card-ring {
  filter: drop-shadow(0 8px 16px rgba(2, 4, 65, 0.12));
}

/* Body (overlaid content) */
.top-challenges__card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 19% 10% 0;
}

/* Icon */
.top-challenges__card-icon {
  width: 26%;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.top-challenges__card:hover .top-challenges__card-icon {
  transform: scale(1.1);
}

/* Title */
.top-challenges__card-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-blue01);
  text-align: center;
}

/* Description */
.top-challenges__card-desc {
  margin: 0;
  font-weight: 350;
  font-size: 14px;
  line-height: 1.625;
  color: var(--color-blue01);
  text-align: center;
  max-width: 272px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1200px) {
  .top-challenges br {
    display: none;
  }

  .top-challenges__cards {
    flex-wrap: wrap;
    gap: 32px;
  }

  .top-challenges__card {
    flex: 0 1 calc((100% - 32px) / 2);
  }
}

@media screen and (max-width: 1024px) {
  .top-challenges {
    padding: var(--section-padding-y-md) 0;
  }

  .top-challenges__header {
    margin-bottom: 64px;
  }

  .top-challenges__title {
    font-size: 36px;
  }

  .top-challenges__title-num {
    font-size: 60px;
  }
}

@media screen and (max-width: 768px) {
  .top-challenges {
    padding: var(--section-padding-y-sp) 0;
  }

  .top-challenges__header {
    margin-bottom: 40px;
  }

  .top-challenges__title {
    font-size: 24px;
  }

  .top-challenges__title-num {
    font-size: 42px;
  }

  .top-challenges__lead {
    font-size: 14px;
  }

  .top-challenges__card-title {
    font-size: 18px;
  }

  .top-challenges__card-desc {
    font-size: 13px;
    max-width: 240px;
  }
}

@media screen and (max-width: 480px) {
  .top-challenges__cards {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .top-challenges__card {
    flex: 0 0 auto;
    max-width: 304px;
    width: 100%;
  }
}
