@layer property {
  .building-archive-wrap {
    margin: 0 auto;
    padding: 4rem var(--content-spacing);
  }

  .building-archive-search {
    padding-block: 0 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  .building-archive-search-input-container {
    position: relative;
    justify-self: flex-end;
    display: flex;
  }
  .building-archive-search-input-container::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 9.65px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
    font-size: 13px;
    z-index: 1;
    pointer-events: none;
  }
  .building-archive-search-input {
    padding-block: 0.5rem;
    padding-inline: calc(1rem + 1em) 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
  }
  .building-archive-search-button {
    background-color: var(--main-color);
    border: none;
    border-radius: 9999px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1em;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    gap: 8px;
    padding: 0.5rem 1rem;
    width: 100%;
  }

  .building-archive-list {
    display: grid;
    gap: 2rem 0;
  }

  .building-archive-list .item {
    display: grid;
    grid-column: span 2;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "image header" "image body";
    gap: 1rem;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 0.25rem;
  }

  .building-archive-list .item.has-properties {
    grid-template-areas: "image header" "image body" "properties properties";
  }

  @media (max-width: 768px) {
    .building-archive-list .item {
      grid-template-columns: 100px 1fr;
      grid-template-areas: "image header" "body body";
    }

    .building-archive-list .item.has-properties {
      grid-template-areas: "image header" "body body" "properties properties";
      padding: 0.5rem;
    }
  }

  .matched-image {
    grid-area: image;
  }

  .matched-header {
    grid-area: header;
  }
  @media (max-width: 768px) {
    .matched-header {
    }
  }

  .matched-body {
    grid-area: body;
  }

  .matched-header .div {
    display: inline-flex;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    border: 1px solid #d3d3d3;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .matched-header .title {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.2;
  }

  .matched-body .address,
  .matched-body .traffic,
  .matched-body .floors {
    gap: 0.25rem;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 1.5em;
    display: grid;
    grid-template-columns: 1em 1fr;
    align-items: baseline;
  }
  .matched-body .address::before,
  .matched-body .traffic::before,
  .matched-body .floors::before {
    content: "";
    width: 1em;
    height: 1.5em;
    text-align: center;
    display: inline-block;
    align-items: center;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome";
    font-weight: bold;
    font-size: 1rem;
  }
  .matched-body .address::before {
    content: "\f3c5";
  }
  .matched-body .traffic::before {
    content: "\f238";
  }
  .matched-body .floors::before {
    content: "\f1ad";
  }

  .properties-title {
    margin-block: 0.5rem;
  }

  .matched-single-separator {
    height: 1px;
    background-color: #d3d3d3;
    margin: 0.5rem 0;
  }
  .matched-singles {
    border-top: 1px solid var(--border-color);
  }
  .matched-singles .link {
    text-decoration: none;
    color: var(--color-text);
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-template-areas: "image body";
    column-gap: 1rem;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
    position: relative;
  }
  @media (max-width: 768px) {
    .matched-singles .link {
      grid-template-columns: 80px 1fr;
      padding-inline: 0;
    }
  }
  .matched-singles .link::after {
    content: "";
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") no-repeat center center / contain;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    line-height: 1;
    color: var(--main-color);
  }
  .matched-singles .link:hover {
    background: rgb(from var(--main-color) r g b / 0.1);
  }
  .matched-singles .image {
    grid-area: image;
  }
  .matched-singles .body {
    grid-area: body;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  .matched-singles .title {
    margin-bottom: 0.2rem;
  }
  .matched-singles .price-value {
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 1.2em;
    color: var(--price-color);
  }
  .matched-singles .price-management-fee .price-value {
    font-size: 0.875rem;
  }
  .matched-singles .body {
    padding-right: 1.5rem;
  }
  .matched-singles .matched-single-body-price-fees {
    flex-wrap: wrap;
  }
  .matched-singles .matched-single-body-price-fees .price-value {
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: normal;
  }
  .matched-singles .matched-single-body-price-fees .labeled-value {
    align-items: baseline;
  }

  .matched-singles .property-info-label {
    font-size: 0.75rem;
    line-height: 1.2em;
    color: #666666;
    margin-right: 0.1rem;
  }
  .matched-singles .property-info-label {
    font-size: 0.75rem;
    line-height: 1.2em;
    color: #666666;
  }
  .matched-singles .property-info-value {
    font-size: 0.875rem;
    line-height: 1.2em;
  }

  .matched-header .title {
  }

  .matched-header .title .link {
    color: var(--main-color);
    line-height: 1.4;
  }
  .matched-header .title .link:hover {
    color: var(--text-point-color);
  }

  .building-archive-list .item.has-properties .properties {
    grid-area: properties;
  }

  .building-archive-list .item.has-properties .properties .matched-single-separator:last-child {
    display: none;
  }

  .pagination {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .pagination-big-next {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ccc;
    font-size: 1.25rem;
    padding: 0.5rem 2rem;
    color: inherit;
    text-decoration: none;
  }

  .pagination-big-next:hover {
    background-color: rgb(from var(--main-color) r g b / 0.1);
  }

  .pagination-control {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
  }

  .pagination-control-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    background-color: var(--text-contrast-color);
    cursor: pointer;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: none;
  }

  .pagination-control-button:hover {
    background-color: rgb(from var(--main-color) r g b / 0.1);
  }

  .pagination-control-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    background-color: var(--text-contrast-color);
    cursor: pointer;
    font-size: 0.875rem;
  }
}
