.case .mv {
  background-position: right;
}

.case_section {
  margin: 64px auto;
  max-width: 1024px;

}

.case_section>p {
  text-align: center;
  margin: 24px;
}


.case_index_clm {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto;
  list-style: none;
  width: 100%;
}

@media (width < 1024px) {
  .case_index_clm {
    grid-template-columns: auto auto;
    grid-template-rows: auto;
  }
}

@media (width < 768px) {
  .case_index_clm {
    grid-template-columns: auto;
    grid-template-rows: auto;
  }
}

.case_index_clm img {
  height: 180px;
  width: auto;
  aspect-ratio: 16 / 10;
  margin: 8px auto;
}

.case_index_clm li {
  display: grid;
  place-content: center;
  padding: 8px 0;
}

.case_index_clm li a {
  text-decoration: none;
  color: var(--color)
}

.case_index_clm li h3 {
  font-size: 16px;
  text-align: center;
}

.index_title {
  font-size: 28px;
  border-bottom: 1px solid #2d5469;
  color: #2d5469;
  margin-bottom: 24px;
  margin-top: 64px;
  font-family: var(--serif);
  text-align: center;
  padding: 8px 0;
}

.scroll_frame {
  overflow: auto;
  padding: 24px;
}

.case_card {
  margin: var(--clamp64) auto;
}

.case_card_inner {
  padding: var(--clamp48) var(--clamp32);
  max-width: 1024px;
  margin: auto;
}

.case_category {
  background-color: #2d5469;
  color: white;
  width: fit-content;
  padding: 8px 24px;
  margin: auto;
  font-size: 15px;
}

.case_img_bg {
  background-color: rgba(45, 84, 105, 0.166);
  padding: var(--clamp48) var(--clamp32);
  margin: auto;

}

.case_title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 160%;
  text-align: center;
  color: #2d5469;
  margin-top: 24px;
}

.case_sub_title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 160%;
  text-align: center;
  color: #2d5469;
  margin-top: 24px;
  margin-bottom: 24px;
}

.case_flex {
  list-style: none;
  gap: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: clamp(--clamp32);
  max-width: 960px;
  margin: auto;

}

.case_flex > li{
  display: flex;
  flex-direction: column;
  justify-content:stretch;
  align-items: stretch;
  background-color: #fff;
}

.case_flex p {
  text-align: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
}

.case_flex img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case_data {
  color: #2d5469;
  font-family: var(--serif);
  margin: 0 auto 24px auto;
  font-size: 20px;
  line-height: 160%;
  text-align: center;
  font-size: 32px;
  padding: 16px 24px;
}

.case_item {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  margin: 0 auto 24px auto;
  font-size: 20px;
  line-height: 160%;
  justify-content: flex-start;
  width: 100%;
  align-items: stretch;

}

.case_item>span {
  background-color: #2d5469;
  color: white;
  padding: 16px 24px;
  flex-basis: 140px;
  flex-shrink: 0;
  flex-grow: 0;
  font-size: 20px;
}

.case_item>div {
  background-color: #eee;
  color: var(--color);
  padding: 16px 24px;
  font-size: 20px;
  flex-basis: auto;
  flex-grow: 1;
  flex-shrink: 1;
  display: grid;
  place-content: center left;
}

.case_item a,
.case_item a:visited {
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}


.related_posts {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 32px auto 64px auto;
  max-width: 1200px;

}

.related_posts>* {
  flex-basis: 33%;
}

.related_posts img {}

.related_posts>* figure:empty {
  background-color: white;
  color: #ddd;
  display: grid;
  place-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}


.related_posts>* figure:empty::before {
  content: 'No Image';
}

.related_posts img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.related_posts p {
  text-align: center;
  padding: 8px;
}

.related_posts a {
  color: var(--color);
  text-decoration: none;
}

.case_related_bg {
  background-color: rgba(45, 84, 105, 0.166);
  padding: 32px 48px;
}