/* 導入事例・お客さまの声 */
.case-wrap {
  width: min(1000px, calc(100% - 40px));
  margin-inline: auto;
}

.case-heading > p,
.case-intro {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}

.case-section {
  padding-block: clamp(34px, 4.5vw, 68px);
}

.case-section > h2 {
  margin: 0 20px 22px;
  color: var(--navy);
  text-align: center;
  font-size: clamp(22px, 3vw, 28px);
}

.case-tint {
  background: #e6f5fa;
}

.case-survey {
  text-align: center;
}

.case-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.case-survey > h2 {
  color: #a73570;
  margin-block: 8px 12px;
}

.case-survey > p:not(.case-kicker) {
  margin: 0 20px;
}

.case-survey figure {
  max-width: 1240px;
  margin: 22px auto 0;
}

.case-survey img {
  display: block;
  width: 100%;
  height: auto;
}

.case-survey figcaption {
  padding-top: 12px;
}

.case-note {
  font-size: 12px;
  line-height: 1.7;
}

.case-examples,
.case-voices {
  display: grid;
  gap: 16px;
}

.case-examples {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-voices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 20px;
}

.case-card {
  padding: 20px;
  border: 1px solid #d0e0ea;
  border-radius: 12px;
  background: #fff;
}

.case-examples .case-card {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.case-card h3 {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.6;
  margin: 8px 0;
}

.case-card > p {
  line-height: 1.8;
}

.case-photo {
  width: 100%;
  aspect-ratio: 3.3;
  border-radius: 8px;
  background: #d7e8f2;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.case-tags li,
.case-theme {
  padding: 2px 9px;
  border-radius: 99px;
  background: #e7f2f8;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.case-theme {
  display: inline-block;
  background: #005a9e;
  color: #fff;
}

.case-theme[data-theme="家計の備え"] { background: #18765b; }
.case-theme[data-theme="もしもの備え"] { background: #a45300; }

.case-card .button {
  margin-top: auto;
}

.case-contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr .9fr;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.case-contact > div {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px 16px;
  font-size: 13px;
}

.case-contact > div:first-child {
  background: var(--navy);
  color: #fff;
  text-align: left;
  justify-items: start;
}

.case-contact > div:last-child { background: #edf5f9; }
.case-contact h2 { font-size: 18px; }
.case-phone { color: var(--navy); font-size: 24px; font-weight: 900; }
.case-mobile-break { display: none; }

@media (max-width: 740px) {
  .case-examples,
  .case-voices,
  .case-contact {
    grid-template-columns: 1fr;
  }

  .case-mobile-break { display: initial; }
}

/* お客さまの声：人物イラストをカード上端に重ねる */
.case-voices {
  column-gap: 20px;
  row-gap: 76px;
  margin-top: 76px;
}

.case-voice-card {
  position: relative;
  min-width: 0;
  padding: 66px 20px 24px;
  border: 5px solid #bdeff6;
  border-radius: 26px 26px 0 26px;
}

.case-voice-avatar {
  position: absolute;
  top: -51px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 108px;
  height: auto;
}

.case-voice-card .case-theme {
  padding: 5px 14px;
  border-radius: 8px;
  background: #005cbe;
  font-size: 12px;
}

.case-voice-card h3 {
  margin: 10px 0;
  font-weight: 900;
}

.case-voice-card > p:not(.case-note) {
  padding: 12px;
  background: #e1fafb;
}

.case-voice-card .case-tags {
  margin: 12px 0 3px;
}

.case-voice-card .case-tags li {
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
}

.case-voice-card .case-tags li::before { content: "[ "; }
.case-voice-card .case-tags li::after { content: " ]"; }

@media (max-width: 740px) {
  .case-voices {
    max-width: 520px;
  }
}
