/* =========================================================
   Site Content Toolkit v0.3.0
   Related card styles
========================================================= */

.sct-related,
.sct-related * ,
.yp-related-cards,
.yp-related-cards *,
.yp-report-shortcode,
.yp-report-shortcode * {
  box-sizing: border-box;
}

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

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

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

.sct-related__label,
.sct-related__type,
.sct-related__more {
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
}

.sct-related__label {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #8a7458;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  background: none !important;
  box-shadow: none !important;
}

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

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

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

.sct-related__card {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(38, 52, 61, 0.1);
}

.sct-related__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
}

.sct-related__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  overflow: hidden;
  background: #f7f4ee;
}

.sct-related__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  vertical-align: top !important;
  transition: transform 420ms ease;
}

.sct-related__noimage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fbfaf8 0%, #f6f3ed 100%);
}

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

.sct-related__body {
  padding: 22px 22px 24px;
  background: #ffffff;
  text-align: left;
}

.sct-related__type {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #8a7458;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  background: none !important;
  box-shadow: none !important;
}

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

.sct-related__excerpt {
  margin: 0 !important;
  padding: 0 !important;
  color: #5d6971;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  background: none !important;
  box-shadow: none !important;
}

.sct-related__more {
  display: inline-block;
  margin-top: 18px;
  color: #8a7458;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.yp-related-cards,
.yp-report-shortcode {
  width: 100%;
  margin: 38px 0;
}

.yp-related-cards__grid,
.yp-report-shortcode__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.yp-related-cards__card,
.yp-report-shortcode__card {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff;
  overflow: hidden;
}

.yp-related-cards__link,
.yp-report-shortcode__link {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
}

.yp-related-cards__thumb,
.yp-report-shortcode__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  overflow: hidden;
  background: #f7f4ee;
}

.yp-related-cards__image,
.yp-report-shortcode__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.yp-related-cards__body,
.yp-report-shortcode__body {
  padding: 14px 0 0;
  text-align: center;
}

.yp-related-cards__title,
.yp-related-cards__card-title,
.yp-report-shortcode__title {
  margin: 0 !important;
  padding: 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.yp-report-shortcode__date {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #9a8c7b;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.08em;
  text-align: center;
  background: none !important;
  box-shadow: none !important;
}

.yp-related-cards__excerpt {
  margin: 8px 0 0 !important;
  color: #5d6971;
  font-size: 13px;
  line-height: 1.8;
}

@media (hover: hover) and (pointer: fine) {
  .sct-related__card,
  .yp-related-cards__card,
  .yp-report-shortcode__card {
    transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease, opacity 280ms ease;
  }

  .sct-related__card:hover,
  .yp-related-cards__card:hover,
  .yp-report-shortcode__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(38, 52, 61, 0.08);
  }

  .sct-related__card:hover .sct-related__image,
  .yp-related-cards__card:hover .yp-related-cards__image,
  .yp-report-shortcode__card:hover .yp-report-shortcode__image {
    transform: scale(1.035);
  }
}

@media screen and (max-width: 1024px) {
  .sct-related__grid,
  .yp-related-cards__grid,
  .yp-report-shortcode__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

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

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

  .sct-related__head {
    margin-bottom: 22px;
  }

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

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

  .sct-related__card-title {
    font-size: 18px;
    line-height: 1.55;
  }

  .sct-related__excerpt {
    font-size: 13px;
    line-height: 1.85;
  }

  .yp-related-cards__grid,
  .yp-report-shortcode__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
