.contents {
  width: 100%;
  max-width: 1000px;
}

.case-filter__link:hover {
  opacity: 0.7;
  color: #00113f;
}

.case-filter__link:visited,
.case-filter__link:active {
  color: #00113f;
}

.category_heading img {
  height: 100%;
}


@media screen and (max-width: 1000px) {
  .pad-x {
    padding-right: 20px;
    padding-left: 20px;
  }
}

.case-text-title {
  color: #202020;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
}

.hentry {
  margin-top: 0;
  margin-bottom: 0;
}

.case-wrapper {
  background-color: #fff;
}

.case-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  max-width: 1000px;
  margin-bottom: 35px;
  padding-bottom: 40px;
  border-bottom: 1px dotted #dfdfdf;
}

.case-filter__link {
  border: 1px solid #00113f;
  color: #00113f;
  display: inline-block;
  padding: 4px 4px;
  text-decoration: none;
  border-radius: 100px;
  min-width: 135px;
  text-align: center;
}

.case-filter__link.is-active {
  background-color: #00113f;
  color: #fff;
}

.case-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1000px;
}


.case-card {
  background-color: #e6e6e6;
  position: relative;
  transition: opacity 0.2s ease;
  overflow: hidden;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(/img/bk_gray.jpg);
  background-repeat: repeat;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.case-card>* {
  position: relative;
  z-index: 1;
}

.case-card:hover {
  opacity: 0.88;
}

.case-card__link {
  inset: 0;
  position: absolute;
  z-index: 3;
}

.case-card__image {
  /* aspect-ratio: 4 / 3; */
  background-color: #f1f1f1;
  display: block;
  overflow: hidden;
  margin: 20px 20px 0;
  height: 100%;
  max-height: 180px;
}

.case-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.case-card__image-placeholder {
  align-items: center;
  color: #666;
  display: flex;
  height: 100%;
  justify-content: center;
}

.case-card__body {
  padding: 12px 20px 40px;
  position: relative;
  z-index: 1;
}

.case-card__terms,
.case-detail__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.case-card__term,
.case-detail__term {
  background-color: #00113f;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  padding: 1px 11px 1px 9px;
}

.case-card__title {
  display: -webkit-box;
  font-size: 2.0rem;
  line-height: 1.1;
  margin-bottom: 16px;
  min-height: calc(1.2em * 2);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: bold;
  border-bottom: 1px dotted #868686;
  padding-bottom: 10px;
  color: #000;
}

.case-card__meta-row {
  display: flex;
  font-size: 14px;
  gap: 12px;
}

.case-card__meta-row dt {
  font-weight: bold;
  width: 72px;
}

.case-card__meta-row dd {
  margin: 0;
  width: calc(100% - 84px);
}

.case-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.case-card__button {
  border: 1px solid var(--color-accent);
  background-color: var(--color-accent);
  color: #fff;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  padding: 8px 28px 8px 19px;
  border-radius: 100px;
  position: relative;
}

.case-card__button::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.case-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 65px;
  align-items: center;
}

.case-pagination a,
.case-pagination span {
  color: #00113f;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.case-pagination .current {
  background-color: #00113f;
  color: #fff;
  font-size: 1.5rem;
  padding: 5px 7px 4px;
  line-height: 1;
}

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

.intro_text {
  font-size: 1.8rem;
  line-height: 1.7;
  margin-bottom: 73px;
  text-align: center;
}

.category_heading {
  margin-bottom: 15px;
}

section.top-recruit {
  padding-top: 43px !important;
}

@media screen and (max-width: 960px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1000px;
  }
}

@media screen and (max-width: 640px) {
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .case-card__meta-row {
    display: block;
  }

  .case-card__meta-row dt,
  .case-card__meta-row dd {
    width: auto;
  }

  .case-card__footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 25px;

  }

  .case-card__button {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .case-card__body {
    padding: 12px 20px 30px;
  }

  .intro_text {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: left;
  }

  .padrf {
    padding-top: 80px;
  }

  .intro_text br {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .intro_text {
    font-size: 1.3rem;
  }

  .case-filter__link {
    border: 1px solid #00113f;
    color: #00113f;
    display: inline-block;
    padding: 4px 4px;
    text-decoration: none;
    border-radius: 100px;
    min-width: 100px;
    text-align: center;
    font-size: 1.3rem;
  }

  .case-filter {
    margin-bottom: 25px;
    padding-bottom: 25px;
  }

  .case-card__image {
    height: 180px;
    max-height: none;
  }
}

*,
*:before,
*:after {
  box-sizing: initial !important;
}