.case-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  padding: 32px 12px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.case-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.case-card::before {
  content: "";
  display: block;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #2183f0, #60a5fa);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 14px 14px 0 0;
}

/* キラーン演出 */
.case-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(15deg) translateX(-100%);
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: rotate(15deg) translateX(-100%);
  }
  50% {
    transform: rotate(15deg) translateX(100%);
  }
  100% {
    transform: rotate(15deg) translateX(100%);
  }
}
.case-card.flash::after {
  animation: shine 2s forwards;
}

.case-highlight {
  background-color: #e4f0fd;
  border-radius: 12px;
  padding: 4px 12px 12px 12px;
  position: relative;
}

.case-highlight::before {
  content: "";
  display: block;
  width: 60px;
  height: 60px;
  background-image: url("https://ishiyama-g.v3x6y84f.work/wp-content/themes/ishiyama/img/common/icon_chara.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
}
.case-problem::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  margin: 12px auto;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #999; /* 色は調整可 */
}

/* カード本文 */
.case-line {
  display: flex;
  align-items: center;
  margin: 28px 0;
  position: relative;
}

.case-problem,
.case-solution {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 80px;
  font-weight: 600;
  font-size: 13px;
  width: auto;
  text-align: center;
  margin: 0 12px 0 0;
  letter-spacing: 0.2em;
}

.case-problem {
  background-color: #ffecec;
  color: #d8000c;
  border: 1px solid #dfcece;
}

.case-solution {
  background-color: #e0f7fa;
  color: #00796b;
  border: 1px solid #b8ddd9;
}

.case-text {
  flex: 1 1 auto;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.case-text.-solution {
  color: #00919c;
}

/* 案件情報リスト */
.case-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 4px;
  list-style: none;
  padding: 0px 8px;
  margin: 20px 0 0 0;
}

.case-info li {
  flex: 1 1 40%;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-info .label {
  flex: 0 0 36%;
  white-space: nowrap;
  padding: 3px 6px;
  background: #eef1f5;
  border-radius: 6px;
  font-size: 11px;
  text-align: center;
}
.case-info .text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.5;
}

@media screen and (min-width: 835px) {
  .case-card {
    padding: 36px 24px;
  }
  .case-card::before {
    height: 12px;
  }

  .case-highlight {
    padding: 10px 16px 16px 16px;
  }
  .case-highlight::before {
    top: -25px;
  }
  .case-problem::after {
    bottom: -34px;
  }

  .case-problem,
  .case-solution {
    font-size: 16px;
  }
  .case-line {
    flex-direction: row;
  }

  .case-text {
    font-size: 20px;
  }
  .case-info {
    padding: 0px 8px;
    gap: 12px 8px;
  }
  .case-info li {
    font-size: 15px;
    gap: 12px;
  }
  .case-info .label {
    font-size: 15px;
  }
}
