/* !important はテーマスタイル上書きのため必要 */
.abc-cases a {
  text-decoration: none !important;
}

.abc-cases p {
  margin-bottom: 1.6em;
  line-height: 1.8;
}

.abc-cases h2 {
  font-size: clamp(20px, 2vw + 10px, 28px);
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.abc-cases h3 {
  font-size: clamp(16px, 1.5vw + 8px, 20px);
  line-height: 1.6;
}

.abc-cases__fv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  margin-bottom: 2em;
}

.abc-cases__fv figure {
  margin: 0;
  overflow: hidden;
}

.abc-cases__fv figure img {
  width: 100%;
  height: auto;
  display: block;
}

.abc-cases figure {
  margin: 0 0 1em;
}

.abc-cases figure img {
  width: 100%;
  height: auto;
  display: block;
}

.abc-cases__separator {
  border: none;
  height: 2px;
  background-color: var(--abc-color-primary, #005bac);
  margin: 2em 0;
}

.abc-cases__links {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin-bottom: 1.6em;
}

.abc-cases__case-link {
  display: block;
  padding: 1em 1.5em;
  border: 1px solid var(--abc-color-text, #333);
  background: var(--abc-color-white, #fff);
  color: var(--abc-color-text, #333);
  text-align: center;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.abc-cases__case-link:hover {
  background-color: var(--abc-color-primary, #005bac);
  border-color: var(--abc-color-primary, #005bac);
  color: var(--abc-color-white, #fff);
}

.abc-cases .rank-math-block {
  margin-bottom: 2em;
}

.abc-cases .rank-math-list-item {
  margin-bottom: 1.2em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid #e0e0e0;
}

.abc-cases .rank-math-list-item:last-child {
  border-bottom: none;
}

.abc-cases .rank-math-question {
  margin-bottom: 0.5em;
}

.abc-cases .rank-math-answer p {
  margin-bottom: 0.8em;
}

@media (max-width: 768px) {
  .abc-cases__fv {
    grid-template-columns: 1fr;
  }

  .abc-cases__case-link {
    padding: 0.8em 1em;
  }
}
