/* =========================================================
   Site Content Toolkit
   Related cards / report shortcode base styles
========================================================= */

.sct-related,
.sct-related * {
  box-sizing: border-box;
}

.sct-related {
  width: 100%;
  margin: 72px 0 0;
  padding: 64px 0;
  background: #fbfaf8;
  color: #2f2a24;
}

.sct-related__inner {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

.sct-related__head {
  margin: 0 0 32px;
  text-align: center;
}

.sct-related__label,
.sct-related__title,
.sct-related__card-title,
.sct-related__excerpt,
.sct-related__type,
.sct-related__more {
  background: none !important;
  box-shadow: none !important;
}

.sct-related__label::before,
.sct-related__label::after,
.sct-related__title::before,
.sct-related__title::after,
.sct-related__card-title::before,
.sct-related__card-title::after,
.sct-related__excerpt::before,
.sct-related__excerpt::after,
.sct-related__type::before,
.sct-related__type::after,
.sct-related__more::before,
.sct-related__more::after {
  display: none !important;
  content: none !important;
}

.sct-related__label {
  margin: 0 0 10px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.sct-related__title {
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.45;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.sct-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sct-related__card {
  position: relative;
  min-width: 0;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: #26343d;
}

.sct-related__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  color: #ffffff !important;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
  overflow: hidden;
}

.sct-related__link::before,
.sct-related__link::after {
  display: none !important;
  content: none !important;
}

.sct-related__thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f7f4ee;
}

.sct-related__image {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  transition: transform 420ms ease;
}

.sct-related__noimage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      rgba(251, 250, 248, 1) 0%,
      rgba(246, 243, 237, 1) 100%
    );
}

.sct-related__noimage span {
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.sct-related__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 92px 22px 24px;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.78) 100%
    );
}

.sct-related__type {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
}

.sct-related__card-title {
  margin: 0 0 12px;
  padding: 0 !important;
  border: 0 !important;
  color: #ffffff;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.sct-related__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

.sct-related__more {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
}

@media (hover: hover) and (pointer: fine) {
  .sct-related__link:hover .sct-related__image {
    transform: scale(1.045);
  }
}

@media screen and (max-width: 767px) {
  .sct-related {
    margin-top: 54px;
    padding: 52px 0;
  }

  .sct-related__inner {
    width: calc(100% - 24px);
  }

  .sct-related__head {
    margin-bottom: 24px;
    text-align: left;
  }

  .sct-related__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sct-related__card,
  .sct-related__link {
    min-height: 300px;
  }

  .sct-related__body {
    padding: 76px 18px 20px;
  }

  .sct-related__card-title {
    font-size: 19px;
  }

  .sct-related__excerpt {
    font-size: 12.5px;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sct-related__image {
    transition: none !important;
  }
}
