/*
|---------------------------------------------------------------
| qinc2026-kachinote-problems.css - カチノテ 課題セクション
|---------------------------------------------------------------
*/

/* ==========================================================================
   Section: Kachinote Problems
   ========================================================================== */
.kachinote-problems {
  background-color: #e6f0f6;
  padding: 120px 0;
  overflow: hidden;
}

.kachinote-problems__inner {
  max-width: 1280px;
}

/* Grid Layout (2x2)
   ========================================================================== */
.kachinote-problems__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 64px;
}

/* Header (Top Left Cell)
   ========================================================================== */
.kachinote-problems__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  z-index: 1;
}

/* Circle Decoration - SVG */
.kachinote-problems__decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 840px;
  height: 840px;
  pointer-events: none;
  z-index: 0;
}

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

.kachinote-problems__title {
  position: relative;
  font-size: 48px;
  font-weight: 900;
  color: var(--color-blue01, #020441);
  line-height: 1.4;
  margin: 0;
  text-align: left;
  z-index: 1;
}

/* Cards
   ========================================================================== */
.kachinote-problems__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.kachinote-problems__card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Card Icon
   ========================================================================== */
.kachinote-problems__card-icon {
  position: relative;
  flex-shrink: 0;
  width: 143px;
  height: 92px;
  background: #f7f7f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kachinote-problems__card-icon img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.kachinote-problems__card:hover .kachinote-problems__card-icon img {
  transform: scale(1.1);
}

.kachinote-problems__card-number {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  border-radius: 4px 0 4px 0;
  padding: 4px 8px;
  font-family: var(--font-family-en, "Oswald", sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-blue01, #020441);
}

/* Card Body
   ========================================================================== */
.kachinote-problems__card-body {
  flex: 1;
}

.kachinote-problems__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue01, #020441);
  margin: 0 0 8px;
}

.kachinote-problems__card-desc {
  font-size: 14px;
  font-weight: 350;
  color: var(--color-blue01, #020441);
  line-height: 1.43;
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .kachinote-problems__title {
    font-size: 36px;
  }

  .kachinote-problems__decoration {
    width: 680px;
    height: 680px;
  }
}

@media (max-width: 1024px) {
  .kachinote-problems {
    padding: 80px 0;
  }

  .kachinote-problems__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kachinote-problems__header {
    padding: 0 40px;
    margin-bottom: 16px;
  }

  .kachinote-problems__title {
    text-align: center;
  }

  .kachinote-problems__decoration {
    width: 540px;
    height: 540px;
  }
}

@media (max-width: 768px) {
  .kachinote-problems {
    padding: 64px 0;
  }

  .kachinote-problems__title {
    font-size: 28px;
  }

  .kachinote-problems__decoration {
    width: 480px;
    height: 480px;
  }

  .kachinote-problems__card {
    flex-direction: column;
    padding: 24px;
  }

  .kachinote-problems__card-icon {
    width: 100%;
    height: 120px;
  }
}
