.search-page {
  flex: 1;
  width: min(100%, 57rem);
  padding-top: 1rem;
}

.search-status {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  justify-content: flex-start;
}

.search-title {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.search-count {
  flex: none;
  font-size: 1rem;
}

.search-empty {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
}

.search-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.875rem;
}

.result-list {
  display: flex;
  flex-direction: column;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.result-list > li + li {
  border-top: 1px solid #e7dfd3;
}

.result-card {
  display: flex;
  gap: 1.125rem;
  padding: 1rem 0;
}

.result-image-frame {
  flex: none;
  width: 6.25rem;
  height: 6.25rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f7f4ee;
}

.result-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.result-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.result-word {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.result-pronunciation {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.result-tag {
  padding: 0.0625rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.result-tag-part {
  font-size: 0.6875rem;
  background: #facd65;
}

.result-tag-level {
  color: #fff;
  background: #7ba0b7;
}

.result-meaning {
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ページネーション */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.page-number,
.page-control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.page-control {
  color: rgb(0 0 0 / 70%);
}

.page-number:hover,
.page-control:hover {
  background: rgb(0 0 0 / 5%);
}

.page-current {
  background: #e6dfd4;
}

.page-disabled {
  color: rgb(0 0 0 / 25%);
  pointer-events: none;
}

@media (max-width: 40rem) {
  .search-page {
    padding-top: 0.5rem;
  }

  .search-status {
    justify-content: space-between;
  }

  .pagination {
    margin-top: 2rem;
  }

  .pagination .pc-only {
    display: none;
  }

  .result-card {
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .result-image-frame {
    width: 5.625rem;
    height: 5.625rem;
  }

  .result-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }

  .result-body {
    gap: 0.375rem;
  }
}
