/* 土地探し一覧：都道府県タブと白背景の区画図を見分けやすくする枠 */
body.page-id-28 .real-estate-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 42rem);
  margin: 0 auto 2.5rem;
  border: 1px solid #014099;
  border-radius: .35rem;
  overflow: hidden;
}

body.page-id-28 .real-estate-filter__button {
  min-height: 3.25rem;
  margin: 0;
  padding: .7rem 1rem;
  border: 0;
  border-right: 1px solid #014099;
  border-radius: 0;
  background: #fff;
  color: #014099;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

body.page-id-28 .real-estate-filter__button:last-child {
  border-right: 0;
}

body.page-id-28 .real-estate-filter__button[aria-selected="true"] {
  background: #014099;
  color: #fff;
}

body.page-id-28 .real-estate-filter__button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #f39800;
  outline-offset: -3px;
}

body.page-id-28 .real-estate_wrap[hidden] {
  display: none !important;
}

/*
 * Keep each card border at the full row height without relying on matchHeight.
 * matchHeight cannot measure cards hidden by the prefecture filter and may
 * otherwise leave height: 0px on the visible card bodies.
 */
body.page-id-28 .real-estate_wrap .my2-card {
  display: flex;
  flex-direction: column;
}

body.page-id-28 .real-estate_wrap .my2-card > .my2-card-body {
  flex: 1 1 auto;
  height: auto !important;
}

body.page-id-28 .real-estate_wrap .my2-card > a:first-child {
  display: block;
  overflow: hidden;
  border: 1px solid #d5dce5;
  background: #f7f8fa;
}

body.page-id-28 .real-estate_wrap .my2-card > a:first-child img {
  display: block;
  width: 100%;
}

@media (max-width: 575.98px) {
  body.page-id-28 .real-estate-filter {
    margin-bottom: 1.75rem;
  }

  body.page-id-28 .real-estate-filter__button {
    min-height: 3rem;
    padding: .65rem .35rem;
    font-size: .95rem;
  }
}
