/* 支援実績カード（テーマ new.css から移植・#ldt 配下に限定） */


#ldt .case-section .case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 36px;
  margin-bottom: 48px;
}

@media only screen and (max-width: 1024px) {
  #ldt .case-section .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 28px;
  }
}

@media only screen and (max-width: 640px) {
  #ldt .case-section .case-list {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

#ldt .case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  container-type: inline-size;
}

#ldt .case-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 24px;
}
#ldt .case-card__category {
  display: inline-block;
  width: fit-content;
  background: #5dbfec;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 5px 12px 6px;
  letter-spacing: 0.05em;
}

#ldt .case-card__devices {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 40px;
}

#ldt .case-device {
  position: relative;
}
#ldt .case-device__screen {
  position: absolute;
  overflow: hidden;
  background: #fff;
  z-index: 0;
}
#ldt .case-device__screen img {
  display: block;
  width: 100%;
  height: auto;
}
#ldt .case-device__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

#ldt .case-card__devices:not(.case-card__devices--detail) .case-device--tablet .case-device__screen {
  filter: drop-shadow(1.2cqw -0.3cqw 0.9cqw rgba(0, 0, 0, 0.5));
}
#ldt .case-card__devices:not(.case-card__devices--detail) .case-device--phone .case-device__screen {
  filter: drop-shadow(-0.4cqw -0.15cqw 0.6cqw rgba(0, 0, 0, 0.4));
}

#ldt .case-card__devices--detail .case-device::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -4%;
  height: 8%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 65%);
  filter: blur(0.9cqw);
  pointer-events: none;
  z-index: 0;
}
#ldt .case-card__devices--detail .case-device--tablet::after {
  left: -25%;
  right: -25%;
  height: 2.5%;
  bottom: -2.5%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75), transparent 70%);
  filter: blur(0.45cqw);
}
#ldt .case-card__devices--detail .case-device--phone::after {
  left: -35%;
  right: -35%;
  height: 2.5%;
  bottom: -2.5%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75), transparent 70%);
  filter: blur(0.45cqw);
}

#ldt .case-device--monitor {
  position: relative;
  width: 78%;
  margin-left: auto;
  margin-right: 0;
  aspect-ratio: 1800 / 1527;
  z-index: 1;
}
#ldt .case-device--monitor .case-device__screen {
  top: 1.4%;
  left: 1.2%;
  width: 97.6%;
  height: 65.2%;
}
#ldt .case-device--monitor .case-device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: object-position 0.3s ease-out;
  will-change: object-position;
}

#ldt .case-device--monitor .case-device__screen:hover img {
  object-position: bottom center;
  transition: object-position var(--scroll-duration, 4s) linear;
}

#ldt .case-device--tablet {
  position: absolute;
  left: -4%;
  bottom: 0;
  width: 32%;
  aspect-ratio: 1400 / 1842;
  z-index: 2;
}
#ldt .case-device--tablet .case-device__screen {
  top: 2.6%;
  left: 3.2%;
  width: 93.6%;
  height: 94.8%;
  border-radius: 2%;
}

#ldt .case-device--phone {
  position: absolute;
  left: 24%;
  bottom: 0;
  width: 15%;
  aspect-ratio: 800 / 1646;
  z-index: 3;
}
#ldt .case-device--phone .case-device__screen {
  top: 1.5%;
  left: 3.7%;
  width: 92.6%;
  height: 97.2%;
  border-radius: 8%;
}

#ldt .case-card__devices--detail {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px;
  container-type: inline-size;
}

#ldt .case-card__devices--detail .case-device--monitor {
  position: relative;
  width: 53.44%;
  margin: 0 0 0 11%;
  z-index: 1;
}

#ldt .case-card__devices--detail .case-device--tablet {
  position: absolute;
  left: 3%;
  right: auto;
  bottom: 0;
  top: auto;
  width: 25%;
  z-index: 2;
}

#ldt .case-card__devices--detail .case-device--phone {
  position: absolute;
  left: auto;
  right: 3%;
  bottom: 0;
  top: auto;
  width: 14%;
  max-width: 200px;
  z-index: 2;
}

#ldt .case-card__legacy-thumb {
  width: 100%;
  margin-bottom: 40px;
  background: #f4f4f4;
  border: 1px solid #e5e5e5;
  aspect-ratio: 100 / 66;
  overflow: hidden;
}
#ldt .case-card__legacy-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ldt .case-card__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#ldt .case-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #0e2b4c;
  margin: 0;
}
#ldt .case-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}
#ldt .case-card__meta {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
  margin: 0;
}

#ldt .case-card__buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
#ldt .case-card__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0e2b4c;
  background: #fff;
  border: 1px solid #0e2b4c;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
#ldt .case-card__btn:hover {
  background: #0e2b4c;
  color: #fff;
}
#ldt .case-card__btn--site {
  background: #0e2b4c;
  color: #fff;
}
#ldt .case-card__btn--site:hover {
  background: #fff;
  color: #0e2b4c;
}
