.topics-page {
  background: #f7f7f7;
  --search-w: 340px;
  --layout-gap: 70px;
}

.list-wrap,
.topics-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}

.topics-page {
  --card-w: 300px;
  --card-gap: 32px;
}

.list-header {
  padding: 60px 0 30px;
}

.topics-page .list-header {
  background: #f7f7f7 !important;
}

.list-header .list-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.breadcrumb {
  font-size: 16px;
  color: #777;
}

.pager {
  margin: 40px auto 0;
  width: calc(100% - (var(--search-w) + var(--layout-gap)));
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
}

.pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  text-decoration: none;
  color: #222;
}

.pager__item.is-active {
  background: #7d1b1b;
  color: #fff;
}

.pager__dots {
  color: #777;
}

.breadcrumb a {
  text-decoration: none;
  color: #7d1b1b;
  transition: opacity 0.2s;
}

.breadcrumb a:hover {
  opacity: 0.6;
}

.topics-page .topics-body {
  padding: 40px 0 70px;
}

.topics-page .topics-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--layout-gap);
  align-items: start;
}

.topics-page .topics-search {
  position: sticky;
  top: 110px;
  align-self: start;
  width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.topics-page .topics-search__title {
  margin: 0 0 18px;
  font-size: 16px;
  color: #222;
  text-align: center;
}

.topics-page .topics-search__group {
  margin: 0 0 14px;
}

.topics-page .topics-search__label {
  margin: 0 0 6px;
  font-size: 12px;
  color: #555;
}

.topics-page .topics-search__select {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
}

.topics-page .topics-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.topics-page .topics-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  font-size: 12px;
  color: #333;
  user-select: none;
}

.topics-page .topics-chip input {
  width: 14px;
  height: 14px;
}

.topics-page .topics-search__btn {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #7d1b1b;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.topics-page .topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--card-w));
  gap: var(--card-gap);
  justify-content: start;
}

.topics-page .prop-card {
  width: var(--card-w);
  height: 440px;
}

.topics-page .prop-card__link {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 10px;
}

.topics-page .prop-card__thumb {
  width: calc(var(--card-w) - 20px);
  height: 180px;
  margin: 0 auto 10px;
  overflow: hidden;
  border-radius: 4px;
  background: #e9e9e9;
}

.topics-page .prop-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topics-page .prop-card__body {
  padding: 0 6px 8px;
}

.topics-page .prop-card__title {
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.topics-page .prop-card__tags {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}

.topics-page .prop-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: #7d1b1b;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.topics-page .prop-card__prices {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
}

.topics-page .prop-card__prices .row {
  display: grid;
  grid-template-columns: 75px 1fr;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.topics-page .prop-card__prices dt {
  color: #444;
  font-size: 14px;
  white-space: nowrap;
}

.topics-page .prop-card__prices dd {
  margin: 0;
  color: #7d1b1b;
  font-weight: 700;
  text-align: right;
}

.topics-page .prop-card__prices strong {
  font-size: 18px;
  letter-spacing: 0.02em;
  display: inline-block;
}

.topics-page .prop-card__prices .prop-text {
  display: inline-block;
  text-align: right;
}

.topics-page .prop-card__prices span {
  font-size: 13px;
  margin-left: 2px;
  color: #7d1b1b;
}

.topics-page .prop-card__meta {
  margin: 0;
  font-size: 15px;
  color: #333;
}

.topics-page .prop-card__addr {
  margin: 4px 0 0;
  font-size: 15px;
  color: #333;
}

.topics-page .topics-more {
  margin-top: 40px;
  padding-left: calc(var(--search-w) + var(--layout-gap));
  display: flex;
  justify-content: center;
}

.topics-page .topics-more__btn {
  width: min(760px, 100%);
  height: 56px;
  border-radius: 999px;
  background: #777;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.topics-search-trigger {
  display: none;
  border: 0;
}

.topics-search--pc {
  display: block;
}

.topics-search-modal {
  display: none;
}

.topics-grid-area {
  flex: 1;
  min-width: 0;
}

.topics-sortbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 24px;
}

.topics-sortbar__form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topics-sortbar__label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  white-space: nowrap;
}

.topics-sortbar__select {
  min-width: 180px;
  height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #111;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #111 50%),
    linear-gradient(135deg, #111 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.topics-sortbar__select:focus {
  outline: none;
  border-color: #8b1e1e;
}

@media (max-width: 767px) {
  body.topics-page section.contact.section {
    display: none !important;
  }

  .topics-page {
    --sp-pad: 18px;
    --card-gap: 12px;
    --card-w: 100%;
  }

  .topics-page .list-wrap,
  .topics-page .topics-wrap {
    padding: 0 var(--sp-pad);
  }

  .topics-page .list-header {
    margin-top: 12px;
    padding: 14px 0;
  }

  .topics-page .list-header .list-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .breadcrumb {
    display: none;
  }

  .topics-page .pager {
    width: auto !important;
    margin-left: 0 !important;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .topics-page .pager__item {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }

  .topics-page .pager__item.is-active {
    background: #7d1b1b;
    color: #fff;
    box-shadow: none;
  }

  .topics-page .pager__dots {
    display: none;
  }

  .topics-page .pager__item:last-child {
    width: auto;
    padding: 0 14px;
    border-radius: 999px;
  }

  .topics-page .topics-body {
    padding: 10px 0 10px;
  }

  .topics-page .topics-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topics-search--pc {
    display: none !important;
  }

  .topics-search-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(520px, 100%);
    height: 54px;
    margin: 10px auto 2px;
    border: 0;
    border-radius: 999px;
    background: #7d1b1b;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }

  .topics-search-trigger__icon {
    font-size: 18px;
    line-height: 1;
  }

  .topics-grid-area {
    width: 100%;
    min-width: 0;
  }

  .topics-sortbar {
    justify-content: flex-start;
    margin: 0 0 14px;
  }

  .topics-sortbar__form {
    width: 100%;
    gap: 10px;
  }

  .topics-sortbar__label {
    font-size: 12px;
  }

  .topics-sortbar__select {
    flex: 1;
    min-width: 0;
    height: 40px;
    font-size: 12px;
    border-radius: 8px;
  }

  .topics-page .topics-grid {
    grid-template-columns: 1fr;
    gap: var(--card-gap);
    justify-content: center;
  }

  .topics-page .prop-card {
    width: min(100%, 320px);
    margin: 0 auto;
    height: auto;
  }

  .topics-page .prop-card__link {
    display: block;
    height: 100%;
    padding: 8px;
    border-radius: 10px;
  }

  .topics-page .prop-card__thumb {
    width: 100%;
    height: 150px;
    margin: 0 auto 8px;
    border-radius: 6px;
  }

  .topics-page .prop-card__body {
    padding: 0 4px 4px;
  }

  .topics-page .prop-card__title {
    margin: 4px 0 8px;
    font-size: 16px;
    line-height: 1.4;
    min-height: auto;
  }

  .topics-page .prop-card__tags {
    gap: 6px;
    margin: 0 0 8px;
    flex-wrap: wrap;
  }

  .topics-page .prop-tag {
    height: 18px;
    padding: 0 10px;
    font-size: 11px;
  }

  .topics-page .prop-card__prices {
    margin: 0 0 6px;
  }

  .topics-page .prop-card__prices .row {
    gap: 6px;
    margin: 1px 0;
  }

  .topics-page .prop-card__prices dt {
    width: 28px;
    font-size: 11px;
  }

  .topics-page .prop-card__prices strong {
    font-size: 16px;
  }

  .topics-page .prop-card__prices span {
    font-size: 10px;
  }

  .topics-page .prop-card__meta,
  .topics-page .prop-card__addr {
    font-size: 11px;
    line-height: 1.5;
  }

  .topics-page .topics-more {
    padding-left: 0;
    margin-top: 24px;
    padding-right: 0;
    justify-content: center;
  }

  .topics-page .topics-more__btn {
    width: 180px;
    height: 40px;
  }

  .topics-search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .topics-search-modal.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topics-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
  }

  .topics-search-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% - 32px);
    max-width: 560px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    padding: 14px;
  }

  .topics-search-modal__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0 10px;
    background: #fff;
  }

  .topics-search-modal__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #222;
  }

  .topics-search-modal__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
  }

  .topics-search--modal {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .topics-page {
    --sp-pad: 24px;
    --card-gap: 20px;
    --card-w: 100%;
  }

  .topics-page .list-wrap,
  .topics-page .topics-wrap {
    padding: 0 var(--sp-pad);
  }

  .topics-page .topics-body {
    padding: 20px 0 40px;
  }

  .topics-page .topics-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .topics-search--pc {
    display: none !important;
  }

  .topics-search-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(520px, 100%);
    height: 54px;
    margin: 0 auto 6px;
    border: 0;
    border-radius: 999px;
    background: #7d1b1b;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }

  .topics-search-trigger__icon {
    font-size: 18px;
    line-height: 1;
  }

  .topics-grid-area {
    width: 100%;
    min-width: 0;
  }

  .topics-sortbar {
    justify-content: flex-end;
    margin: 0 0 16px;
  }

  .topics-sortbar__form {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .topics-sortbar__label {
    font-size: 13px;
  }

  .topics-sortbar__select {
    min-width: 170px;
    height: 42px;
    font-size: 13px;
    border-radius: 10px;
  }

  .topics-page .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--card-gap);
    justify-content: center;
  }

  .topics-page .prop-card {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
  }

  .topics-page .prop-card__link {
    padding: 10px;
    border-radius: 8px;
  }

  .topics-page .prop-card__thumb {
    width: 100%;
    height: 190px;
  }

  .topics-page .topics-more {
    padding-left: 0;
    justify-content: center;
    margin-top: 28px;
  }

  .topics-page .pager {
    width: auto !important;
    margin: 36px auto 0;
    justify-content: center;
  }

  .topics-search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .topics-search-modal.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topics-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
  }

  .topics-search-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(680px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    padding: 18px 18px 20px;
  }

  .topics-search-modal__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0 12px;
    background: #fff;
  }

  .topics-search-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
  }

  .topics-search-modal__close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
  }

  .topics-search--modal {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
