/*　h2　*/
.rels-demo-hero-text h1 {
  position: relative;
  display: block;
  width: 100%;
  margin: 48px 0 18px;
  padding: 16px 0 14px;
  font-size: clamp(25px, 3vw, 32px) !important;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a2f4d;
  border-bottom: 1px solid #d7e1ef;
  box-sizing: border-box;
}

.rels-demo-hero-text h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: #2f73c9;
}
.rels-demo-hero-text h1:first-of-type {
  margin-top: 36px;
}

@media (max-width: 640px) {
  .rels-demo-hero-text h1 {
    margin: 40px 0 18px;
    padding-bottom: 12px;
    font-size: 20px;
  }
}


.rels-search-page {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 24px 70px;
  box-sizing: border-box;
}

.rels-search-form {
  background: #f7f9fc;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  padding: 22px;
  margin: 0 0 28px;
}

.rels-search-block {
  margin-bottom: 22px;
}

.rels-search-block h3 {
  font-size: 18px;
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 5px solid #2f7ecb;
}

.rels-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rels-check-list label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  font-size: 14px;
}

.rels-count {
  color: #6b7280;
  font-size: 12px;
}

.rels-search-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.rels-search-actions button,
.rels-detail-button,
.rels-inquiry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #2f7ecb;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.rels-search-actions button:hover,
.rels-detail-button:hover,
.rels-inquiry-button:hover {
  background: #1f66a8;
  color: #fff;
}

.rels-result-head {
  margin-bottom: 14px;
}

.rels-result-count {
  font-weight: 700;
  margin: 0;
}

.rels-search-submit,
.rels-search-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rels-search-submit {
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
  cursor: pointer;
}

.rels-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.rels-search-reset {
  border: 1px solid #bfd5f3;
  background: #fff;
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.rels-search-reset:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .rels-search-actions {
    gap: 10px;
  }

  .rels-search-submit,
  .rels-search-reset {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
  }
}

.rels-property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.rels-property-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rels-property-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
  color: inherit;
  text-decoration: none;
}

.rels-property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rels-no-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
}

.rels-status {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #16a34a;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.rels-property-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rels-property-title {
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.rels-property-title a {
  color: #111827;
  text-decoration: none;
}

.rels-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.rels-price span {
  font-size: 13px;
  color: #6b7280;
}

.rels-price strong {
  color: #dc2626;
  font-size: 22px;
}

.rels-small,
.rels-info {
  font-size: 14px;
  margin: 6px 0;
  color: #374151;
}

.rels-property-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  margin: 12px 0;
}

.rels-property-spec div {
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
}

.rels-property-spec dt {
  font-size: 12px;
  color: #6b7280;
}

.rels-property-spec dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.rels-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.rels-feature-badges span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9d8f4;
  background: #eef7ff;
  color: #1f66a8;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.rels-detail-button {
  width: 100%;
  margin-top: auto;
}

.rels-empty {
  background: #fff8e6;
  border: 1px solid #f5d68a;
  border-radius: 12px;
  padding: 18px;
}

.rels-pagination {
  margin-top: 28px;
}

.rels-pagination ul {
  display: flex;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rels-pagination a,
.rels-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
}

.rels-pagination .current {
  background: #2f7ecb;
  color: #fff;
  border-color: #2f7ecb;
}


/* 物件詳細ページ：タイトル周り */
body.single-rels_property .entry-header {
  max-width: 1110px;
  margin: 0 auto;
  padding: 46px 24px 20px;
  box-sizing: border-box;
}

body.single-rels_property .entry-title {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 18px;
  font-family: "Meiryo", "メイリオ", "Yu Gothic", "YuGothic", sans-serif;
  font-size: clamp(24px, 3.2vw, 35px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  color: #10233f;
}

body.single-rels_property .entry-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f7ecb, #8cc7ff);
}

body.single-rels_property .entry-body > p:first-of-type {
  max-width: 900px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: #f8fbff;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

@media (max-width: 640px) {
  body.single-rels_property .entry-header {
    padding: 32px 18px 14px;
  }

  body.single-rels_property .entry-title {
    font-size: 26px;
  }

  body.single-rels_property .entry-body > p:first-of-type {
    padding: 15px 16px;
    font-size: 15px;
  }
}

.rels-single-main-image {
  margin: 0 0 24px;
}

.rels-single-main-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.rels-section-title {
  font-size: 22px;
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 5px solid #2f7ecb;
}

.rels-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  background: #fff;
}

.rels-detail-table th,
.rels-detail-table td {
  border-bottom: 1px solid #e5edf5;
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.rels-detail-table tr:last-child th,
.rels-detail-table tr:last-child td {
  border-bottom: none;
}

.rels-detail-table th {
  width: 28%;
  background: #f5f9fd;
  color: #1f3b57;
  font-weight: 800;
  white-space: nowrap;
}

.rels-detail-table td {
  color: #111827;
  background: #fff;
}

.rels-feature-badges-large span {
  font-size: 14px;
  padding: 7px 12px;
}

.rels-remarks {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.rels-inquiry-box {
  margin-top: 36px;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 60%, #f8fbff 100%);
  border: 1px solid #cfe6fb;
  text-align: center;
  box-shadow: 0 12px 30px rgba(47, 126, 203, 0.08);
}

.rels-inquiry-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #dff0ff;
  color: #2f7ecb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rels-inquiry-box h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.4;
  color: #111827;
}

.rels-inquiry-property {
  margin: 0 0 10px;
  color: #374151;
  font-size: 15px;
}

.rels-inquiry-property strong {
  color: #111827;
}

.rels-inquiry-text {
  margin: 0 auto 22px;
  max-width: 680px;
  color: #4b5563;
  line-height: 1.8;
}

.rels-inquiry-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rels-inquiry-button {
  min-width: 240px;
  min-height: 50px;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(47, 126, 203, 0.22);
}

@media (max-width: 900px) {
  .rels-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rels-search-form {
    padding: 16px;
  }

  .rels-check-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rels-check-list label {
    border-radius: 10px;
    justify-content: flex-start;
  }

  .rels-property-grid {
    grid-template-columns: 1fr;
  }

  .rels-detail-table th,
  .rels-detail-table td {
    display: block;
    width: 100%;
  }

  .rels-detail-table th {
    border-bottom: none;
  }

	.rels-detail-table {
	  border-radius: 14px;
	}
	
	.rels-detail-table th,
	.rels-detail-table td {
	  display: block;
	  width: 100%;
	  padding: 12px 14px;
	}
	
	.rels-detail-table th {
	  border-bottom: none;
	  background: #f5f9fd;
	}
	
	.rels-detail-table td {
	  border-bottom: 1px solid #e5edf5;
	}
	
	.rels-inquiry-box {
	  padding: 22px 16px;
	  border-radius: 16px;
	}
	
	.rels-inquiry-box h2 {
	  font-size: 22px;
	}
	
	.rels-inquiry-button {
	  width: 100%;
	  min-width: 0;
	}
}

/* 詳細ページ：写真ギャラリー */
.rels-photo-gallery {
  max-width: 960px;
  margin: 24px auto 36px;
}

.rels-photo-main {
  margin: 0 0 16px;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.rels-photo-main img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #f8fafc;
}

.rels-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.rels-photo-thumb {
  display: block;
  width: 100%;
  padding: 3px;
  border: 2px solid #d7e1ec;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.rels-photo-thumb img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
}

.rels-photo-thumb:hover,
.rels-photo-thumb.is-active {
  border-color: #2f7ecb;
}

@media (max-width: 900px) {
  .rels-photo-gallery {
    max-width: 100%;
  }

  .rels-photo-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rels-photo-main img {
    max-height: 320px;
  }

  .rels-photo-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .rels-photo-thumb img {
    height: 72px;
  }
}

/* 物件詳細ページから来た時だけ、お問い合わせフォーム上に対象物件名を表示 */

.rels-contact-property-box {
  margin: 0 0 24px;
  padding: 20px 22px;
  border: 1px solid #cfe6fb;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 100%);
}

.rels-contact-property-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dff0ff;
  color: #2f7ecb;
  font-size: 13px;
  font-weight: 800;
}

.rels-contact-property-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 18px;
}

.rels-contact-property-main strong {
  color: #111827;
}

.rels-contact-property-main a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #2f7ecb;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.rels-contact-property-main a:hover {
  background: #1f66a8;
  color: #fff;
}

.rels-contact-property-note {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 14px;
}

@media (max-width: 640px) {
  .rels-contact-property-box {
    padding: 16px;
  }

  .rels-contact-property-main {
    font-size: 16px;
  }
}


/*お問い合わせフォーム*/
/* Contact Form 7：不動産サイト用フォームデザイン */
.rels-contact-form {
  margin: 0 0 28px;
  padding: 28px;
  border: 1px solid #dbe7f3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.rels-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.rels-form-field {
  display: flex;
  flex-direction: column;
}

.rels-form-field-full {
  grid-column: 1 / -1;
}

.rels-form-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
}

.rels-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.rels-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.rels-input,
.rels-select,
.rels-textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rels-contact-form input.rels-input,
.rels-contact-form select.rels-select,
.rels-contact-form textarea.rels-textarea {
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
  line-height: 50px;
  border-radius: 4px;
  box-sizing: border-box;
}

/* select だけ少し右余白を広めに */
.rels-contact-form select.rels-select {
  padding-right: 36px;

}
.rels-textarea {
  min-height: 180px;
  resize: vertical;
}

.rels-input:focus,
.rels-select:focus,
.rels-textarea:focus {
  outline: none;
  border-color: #2f7ecb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 126, 203, 0.12);
}

.rels-input::placeholder,
.rels-textarea::placeholder {
  color: #94a3b8;
}

.rels-input-example {
  margin-top: 6px !important;
  color: #334155;
  font-size: 13px;
  line-height: 1.7;
}

.rels-input-example-label {
  color: #2271b1 !important;
  font-weight: 700;
}

.rels-form-consent {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e7edf4;
}

.rels-form-consent .wpcf7-form-control-wrap,
.rels-form-consent .wpcf7-form-control,
.rels-form-consent .wpcf7-list-item {
  display: block;
  margin: 0;
}

.rels-form-consent .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  line-height: 1.7;
  color: #374151;
}

.rels-form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.rels-form-consent .wpcf7-list-item-label {
  display: inline-block;
}

.rels-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #374151;
  line-height: 1.7;
  cursor: pointer;
}

.rels-checkbox input[type="checkbox"] {
  margin-top: 3px;
}

.rels-form-submit {
  margin-top: 24px;
  text-align: center;
}

.rels-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 54px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7ecb 0%, #3b8de0 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(47, 126, 203, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.rels-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(47, 126, 203, 0.28);
  opacity: 0.96;
}

.rels-submit:active {
  transform: translateY(0);
}

.rels-contact-form .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

.rels-contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
}

.rels-contact-form .wpcf7 form.invalid .wpcf7-response-output,
.rels-contact-form .wpcf7 form.unaccepted .wpcf7-response-output,
.rels-contact-form .wpcf7 form.sent .wpcf7-response-output,
.rels-contact-form .wpcf7 form.failed .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .rels-contact-form {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .rels-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rels-submit {
    width: 100%;
    min-width: 0;
  }
}


/* 物件アーカイブ：パンくず */
.rels-archive-breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.rels-archive-breadcrumb {
  max-width: 1110px;
  margin: 0 auto;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  box-sizing: border-box;
}

.rels-archive-breadcrumb a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rels-archive-breadcrumb a:hover {
  color: #2f7ecb;
}

.rels-archive-breadcrumb span {
  margin: 0 4px;
  color: #333;
}

.rels-archive-breadcrumb span:last-child {
  margin-right: 0;
  color: #333;
  text-decoration: none;
}

.rels-breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rels-breadcrumb-home i {
  color: #777;
  font-size: 12px;
  line-height: 1;
}

/* HOMEアイコンとHOME文字の間隔調整 */
.rels-archive-breadcrumb .rels-breadcrumb-home {
  gap: 2px;
}

.rels-archive-breadcrumb .rels-breadcrumb-home span {
  margin: 0;
}

@media (max-width: 640px) {
  .rels-archive-breadcrumb {
    padding: 8px 15px;
    font-size: 11px;
  }
}


/* =========================
   物件アーカイブ / 検索結果
========================= */

.rels-archive-page {
  padding-bottom: 56px;
}

.rels-archive-hero {
  margin: 0 0 28px;
  padding: 36px 20px 32px;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
  border-top: 1px solid #dce8f6;
  border-bottom: 1px solid #dce8f6;
}

.rels-archive-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.rels-archive-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dcebff;
  color: #2f79c8;
  font-size: 12px;
  font-weight: 700;
}

.rels-archive-title {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.25;
  color: #1f2d3d;
}

.rels-archive-lead {
  margin: 0;
  color: #5b6777;
  font-size: 15px;
}

.rels-archive-summary {
  margin-top: 16px;
  font-size: 16px;
  color: #25364a;
}

.rels-archive-summary strong {
  color: #2f79c8;
  font-size: 26px;
}

.rels-archive-main {
  width: 100%;
}

.rels-archive-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rels-archive-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 18px;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 51, 92, 0.06);
}

.rels-archive-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f7fb;
}

.rels-archive-thumb img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.rels-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  color: #7b8794;
  font-weight: 700;
}

.rels-card-status,
.rels-card-type {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  z-index: 2;
}

.rels-card-status {
  left: 12px;
  background: #19b45b;
  color: #fff;
}

.rels-card-type {
  right: 12px;
  background: rgba(37, 54, 74, 0.88);
  color: #fff;
}

.rels-archive-content {
  display: flex;
  flex-direction: column;
}

.rels-archive-card-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.4;
}

.rels-archive-card-title a {
  color: #1e2c3c;
  text-decoration: none;
}

.rels-archive-card-title a:hover {
  color: #2f79c8;
}

.rels-archive-price-row {
  margin-bottom: 16px;
}

.rels-archive-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.rels-price-label {
  color: #6b7787;
  font-size: 14px;
  font-weight: 700;
}

.rels-archive-price strong {
  color: #e5532c;
  font-size: 34px;
  line-height: 1.2;
}

.rels-archive-subprice {
  color: #576273;
  font-size: 14px;
}

.rels-archive-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.rels-archive-specs span {
  min-width: 120px;
  padding: 12px 14px;
  border: 1px solid #dfe7f0;
  border-radius: 10px;
  background: #f8fbff;
  font-weight: 700;
  color: #223246;
}

.rels-archive-specs small {
  display: block;
  margin-bottom: 4px;
  color: #7a8594;
  font-size: 11px;
  font-weight: 700;
}

.rels-archive-meta {
  margin: 0 0 8px;
  color: #4b5665;
  font-size: 14px;
  line-height: 1.8;
}

.rels-archive-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.rels-feature-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #bfd9f7;
  color: #2f79c8;
  font-size: 12px;
  font-weight: 700;
}

.rels-archive-excerpt {
  margin-top: 4px;
  color: #5a6778;
  font-size: 14px;
  line-height: 1.9;
}

.rels-archive-actions {
  margin-top: auto;
  padding-top: 18px;
}

.rels-archive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f79c8 0%, #4a95df 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(47, 121, 200, 0.22);
}

.rels-archive-btn:hover {
  color: #fff;
  opacity: 0.92;
}

.rels-archive-pagination {
  margin-top: 32px;
}

.rels-archive-empty {
  padding: 28px;
  border: 1px solid #e1e8ef;
  border-radius: 14px;
  background: #fffdfa;
  color: #5f6670;
}

@media (max-width: 991px) {
  .rels-archive-card {
    grid-template-columns: 1fr;
  }

  .rels-archive-thumb img,
  .rels-no-image {
    height: 220px;
  }

  .rels-archive-card-title {
    font-size: 24px;
  }

  .rels-archive-price strong {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .rels-archive-hero {
    padding: 28px 16px 24px;
  }

  .rels-archive-title {
    font-size: 28px;
  }

  .rels-archive-card {
    padding: 14px;
    gap: 16px;
    border-radius: 14px;
  }

  .rels-archive-thumb img,
  .rels-no-image {
    height: 200px;
  }

  .rels-archive-card-title {
    font-size: 22px;
  }

  .rels-archive-price strong {
    font-size: 24px;
  }

  .rels-archive-specs {
    gap: 8px;
  }

  .rels-archive-specs span {
    min-width: calc(50% - 4px);
    padding: 10px 12px;
  }

  .rels-archive-btn {
    width: 100%;
  }
}

/* 検索フォーム：賃料・価格・間取り */
.rels-search-number-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.rels-search-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #1f2937;
}

/* 検索フォーム：金額入力欄 */
.rels-search-form .rels-money-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid #cfdced;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.rels-search-form .rels-money-input input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0 12px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  outline: none;
  font-size: 14px;
  line-height: 46px;
  box-sizing: border-box;
}

.rels-search-form .rels-money-input input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.rels-search-form .rels-money-input span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 12px;
  border-left: 1px solid #e5edf5;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: #f8fbff;
}

.rels-search-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.rels-sold-box {
  margin-top: 36px;
  padding: 30px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  text-align: center;
}

.rels-sold-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px !important;
  padding: 5px 13px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.rels-sold-box h2 {
  margin: 0 0 10px;
  color: #111827;
}

.rels-sold-box p {
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .rels-search-number-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rels-search-number-grid {
    grid-template-columns: 1fr;
  }
}


/* 家賃　並び替え */
.rels-archive-sort-form {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.rels-archive-sort-form label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #1f2937;
}

.rels-archive-sort-form select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 36px;
  margin: 0;
  padding: 0 34px 0 16px;
  border: 1px solid #cfdced;
  border-radius: 999px;
  background-color: #f8fbff;
  background-image:
    linear-gradient(45deg, transparent 50%, #2563eb 50%),
    linear-gradient(135deg, #2563eb 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 15px,
    calc(100% - 13px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 36px;
  box-sizing: border-box;
}

.rels-archive-sort-form select:focus {
  outline: none;
  border-color: #2f7ecb;
  box-shadow: 0 0 0 3px rgba(47, 126, 203, 0.12);
}

@media (max-width: 640px) {
  .rels-archive-sort-form {
    max-width: 100%;
    align-items: center;
  }

  .rels-archive-sort-form select {
    width: 132px;
  }
}

.rels-search-type-note {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #eef7ff;
  color: #1f5f99;
  font-size: 13px;
  font-weight: 700;
}

.rels-search-field.is-hidden {
  display: none !important;
}

.rels-search-number-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.rels-sort-search-field select,
.rels-layout-search-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfdced;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

/* 物件一覧の列を見やすくする */
.post-type-rels_property .column-title {
  width: 18%;
}

.post-type-rels_property .column-rels_admin_price {
  width: 11%;
}

.post-type-rels_property .column-rels_admin_type {
  width: 11%;
}

.post-type-rels_property .column-rels_admin_city {
  width: 10%;
}

.post-type-rels_property .column-rels_admin_status {
  width: 9%;
}

.post-type-rels_property .column-rels_admin_feature {
  width: 24%;
}

.post-type-rels_property .column-date {
  width: 12%;
}

.rels-admin-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rels-admin-status.is-active {
  background: #e7f7ee;
  color: #15803d;
}

.rels-admin-status.is-pending {
  background: #fff7ed;
  color: #c2410c;
}

.rels-admin-status.is-sold {
  background: #f3f4f6;
  color: #4b5563;
}


/* =========================
   デモサイト HOME 営業向け
========================= */

.rels-demo-home {
  --rels-demo-blue: #2f7ecb;
  --rels-demo-blue-dark: #1f5f99;
  --rels-demo-blue-soft: #eef7ff;
  --rels-demo-border: #dbe7f3;
  --rels-demo-text: #111827;
  --rels-demo-muted: #4b5563;

  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  color: var(--rels-demo-text);
  box-sizing: border-box;
}

.rels-demo-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px !important;
  padding: 6px 13px;
  border-radius: 999px;
  background: #dff0ff;
  color: var(--rels-demo-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.rels-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  margin: 0 0 56px;
  padding: 42px;
  border: 1px solid var(--rels-demo-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(47, 126, 203, 0.16), transparent 34%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #eef7ff 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.rels-demo-hero h1 {
  margin: 0 0 18px;
  font-size: 2.5em;
  line-height: 1.22;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.rels-demo-lead {
  max-width: 720px;
  margin: 0;
  color: var(--rels-demo-muted);
  font-size: 17px;
  line-height: 2;
}

.rels-demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rels-demo-main-btn,
.rels-demo-sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rels-demo-main-btn {
  background: linear-gradient(135deg, var(--rels-demo-blue), #4a95df);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 126, 203, 0.24);
}

.rels-demo-main-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(47, 126, 203, 0.3);
}

.rels-demo-sub-btn {
  border: 1px solid #bcd8f3;
  background: #fff;
  color: var(--rels-demo-blue-dark);
}

.rels-demo-sub-btn:hover {
  background: var(--rels-demo-blue-soft);
  color: var(--rels-demo-blue-dark);
  transform: translateY(-1px);
}

.rels-demo-hero-panel {
  display: flex;
}

.rels-demo-panel-card {
  width: 100%;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rels-demo-border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rels-demo-panel-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 900;
}

.rels-demo-panel-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rels-demo-panel-card li {
  position: relative;
  padding-left: 22px;
  color: #243244;
  font-weight: 700;
}

.rels-demo-panel-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rels-demo-blue);
  transform: translateY(-50%);
}

.rels-demo-section {
  margin: 0 0 64px;
}

.rels-demo-section-head {
  margin: 0 0 24px;
}

.rels-demo-section-head h2 {
  margin: 0 0 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rels-demo-border);
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.rels-demo-section-head p {
  margin: 0;
  color: var(--rels-demo-muted);
  line-height: 1.9;
}

.rels-demo-section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.rels-demo-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--rels-demo-blue-soft);
  color: var(--rels-demo-blue-dark);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.rels-demo-text-link:hover {
  background: #dff0ff;
  color: var(--rels-demo-blue-dark);
}

.rels-demo-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rels-demo-feature-card {
  padding: 22px;
  border: 1px solid var(--rels-demo-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rels-demo-feature-card h3 {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 5px solid var(--rels-demo-blue);
  font-size: 18px;
  line-height: 1.5;
}

.rels-demo-feature-card p {
  margin: 0;
  color: var(--rels-demo-muted);
  line-height: 1.85;
  font-size: 14px;
}

.rels-demo-search-section {
  padding: 30px;
  border: 1px solid var(--rels-demo-border);
  border-radius: 24px;
  background: #f8fbff;
}

.rels-demo-search-section .rels-search-form {
  margin-bottom: 0;
}

.rels-demo-admin-section {
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid var(--rels-demo-border);
}

.rels-demo-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rels-demo-admin-grid > div {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--rels-demo-border);
}

.rels-demo-admin-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rels-demo-admin-grid p {
  margin: 0;
  color: var(--rels-demo-muted);
  line-height: 1.8;
}

.rels-demo-cta {
  margin: 70px 0 0;
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(47, 126, 203, 0.96), rgba(31, 95, 153, 0.96));
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(47, 126, 203, 0.22);
}

.rels-demo-cta .rels-demo-label {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.rels-demo-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.35;
}

.rels-demo-cta p {
  max-width: 760px;
  margin: 0 auto;
  line-height: 2;
  color: rgba(255, 255, 255, 0.92);
}

.rels-demo-cta .rels-demo-hero-actions {
  justify-content: center;
}

.rels-demo-cta .rels-demo-main-btn {
  background: #fff;
  color: var(--rels-demo-blue-dark);
  box-shadow: none;
}

.rels-demo-cta .rels-demo-main-btn:hover {
  color: var(--rels-demo-blue-dark);
}

.rels-demo-cta .rels-demo-sub-btn {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rels-demo-cta .rels-demo-sub-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@media (max-width: 991px) {
  .rels-demo-hero {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .rels-demo-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rels-demo-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rels-demo-home {
    padding: 32px 16px 56px;
  }

  .rels-demo-hero,
  .rels-demo-search-section,
  .rels-demo-admin-section,
  .rels-demo-cta {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .rels-demo-feature-grid {
    grid-template-columns: 1fr;
  }

  .rels-demo-section-head-row {
    display: block;
  }

  .rels-demo-text-link {
    margin-top: 14px;
  }

  .rels-demo-main-btn,
  .rels-demo-sub-btn {
    width: 100%;
  }
}


/* 物件詳細ページ下部にテーマが自動表示する分類情報を非表示 */
body.single-rels_property .entry-footer,
body.single-rels_property .entry-meta,
body.single-rels_property .entry-meta-data,
body.single-rels_property .post-taxonomies,
body.single-rels_property .taxonomy-links,
body.single-rels_property .vk_post_taxonomy,
body.single-rels_property .vk_post_taxonomies {
  display: none !important;
}

/* 物件詳細ページでは前後の記事ナビゲーションを非表示 */
body.single-rels_property .postNextPrev,
body.single-rels_property .post-navigation,
body.single-rels_property .navigation,
body.single-rels_property .nav-links,
body.single-rels_property .vk_posts,
body.single-rels_property .vk_post_nav {
  display: none !important;
}

/* 詳細検索：面積・徒歩・築年数 */
.rels-search-field.is-hidden {
  display: none !important;
}

.rels-unit-input span {
  min-width: 46px;
}

.rels-walk-search-field select,
.rels-new-used-search-field select,
.rels-age-search-field select,
.rels-published-search-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfdced;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.rels-search-number-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* 詳細ページ：物件条件サマリー */
.rels-detail-condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}

.rels-detail-condition-card {
  padding: 16px 18px;
  border: 1px solid #d8e6f5;
  border-radius: 14px;
  background: #f7fbff;
  box-shadow: 0 6px 18px rgba(47, 126, 203, 0.06);
}

.rels-detail-condition-card span {
  display: block;
  margin-bottom: 6px;
  color: #4b6380;
  font-size: 13px;
  font-weight: 700;
}

.rels-detail-condition-card strong {
  display: block;
  color: #10233f;
  font-size: 18px;
  line-height: 1.4;
}

/* スマホ：検索フォームのチェック項目を1列にする */
@media (max-width: 640px) {
  .rels-search-form label,
  .rels-search-sidebar label,
  .rels-search-filter label {
    display: flex;
    width: fit-content;
    max-width: 100%;
  }

  .rels-search-form .rels-check-list label,
  .rels-search-form .rels-checkbox-list label,
  .rels-search-form .rels-option-list label,
  .rels-search-sidebar .rels-check-list label,
  .rels-search-sidebar .rels-checkbox-list label,
  .rels-search-sidebar .rels-option-list label {
    flex-basis: 100%;
  }

  .rels-search-form .rels-check-list,
  .rels-search-form .rels-checkbox-list,
  .rels-search-form .rels-option-list,
  .rels-search-sidebar .rels-check-list,
  .rels-search-sidebar .rels-checkbox-list,
  .rels-search-sidebar .rels-option-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* スマホ：使い方カードの番号とタイトルを上下にする */
@media (max-width: 640px) {
  .rels-demo-flow-list li {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }

  .rels-demo-flow-list li > span {
    flex: none;
    margin: 0;
  }

  .rels-demo-flow-list li > div {
    width: 100%;
  }

  .rels-demo-flow-list li h3 {
    margin-top: 0;
  }
}

/* 会社概要 */
.rels-company-info {
  max-width: 960px;
  margin: 32px auto;
}

.rels-company-title {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  font-weight: 800;
  color: #10233f;
}

.rels-company-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f7ecb, #8cc7ff);
}

.rels-company-card {
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.rels-company-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid #e8eef6;
}

.rels-company-row:last-child {
  border-bottom: none;
}

.rels-company-label {
  padding: 16px 18px;
  background: #f4f8fd;
  color: #1f3b57;
  font-weight: 800;
}

.rels-company-value {
  padding: 16px 18px;
  color: #111827;
  line-height: 1.8;
}

.rels-company-value a {
  color: #2f7ecb;
  font-weight: 700;
  text-decoration: none;
}

.rels-company-value a:hover {
  text-decoration: underline;
}

.rels-company-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #f8fbff;
  color: #4b5563;
  line-height: 1.8;
}

.rels-company-note-small {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 640px) {
  .rels-company-info {
    margin: 24px auto;
  }

  .rels-company-row {
    display: block;
  }

  .rels-company-label {
    padding: 12px 14px 6px;
    background: #f8fbff;
    border-bottom: none;
  }

  .rels-company-value {
    padding: 4px 14px 14px;
  }
}

/* 物件詳細：自由追加項目 */
.rels-custom-fields {
  margin: 30px 0;
}

.rels-custom-fields-card {
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rels-custom-field-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid #e8eef6;
}

.rels-custom-field-row:last-child {
  border-bottom: none;
}

.rels-custom-field-label {
  padding: 15px 18px;
  background: #f4f8fd;
  color: #1f3b57;
  font-weight: 800;
}

.rels-custom-field-value {
  padding: 15px 18px;
  color: #111827;
  line-height: 1.8;
}

.rels-custom-field-value a {
  color: #2f7ecb;
  font-weight: 700;
  text-decoration: none;
}

.rels-custom-field-value a:hover {
  text-decoration: underline;
}

.rels-custom-field-note-small {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 640px) {
  .rels-custom-field-row {
    display: block;
  }

  .rels-custom-field-label {
    padding: 12px 14px 6px;
    background: #f8fbff;
  }

  .rels-custom-field-value {
    padding: 4px 14px 14px;
  }
}


/*写真ギャラリー注意書き*/
.rels-gallery-guide {
  margin: 12px 0 10px;
  line-height: 1.8;
  color: #1f2937;
  font-weight: 600;
}

.rels-gallery-count {
  margin: 8px 0 14px;
  color: #334155;
}

.rels-gallery-count strong {
  color: #1d4f91;
}

/* 会社概要：Googleマップ・SNS */
.rels-company-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.rels-company-sns-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.rels-company-sns-button:hover {
  color: #fff;
  opacity: 0.88;
  text-decoration: none;
}

.rels-company-sns-line {
  background: #06c755;
}

.rels-company-sns-x {
  background: #111827;
}

.rels-company-sns-facebook {
  background: #1877f2;
}

.rels-company-sns-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.rels-company-map {
  overflow: hidden;
  margin: 22px 0 0;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rels-company-map iframe {
  display: block;
  width: 100% !important;
  min-height: 360px;
  border: 0;
}

@media (max-width: 640px) {
  .rels-company-sns {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rels-company-sns-button {
    width: 100%;
    box-sizing: border-box;
  }

  .rels-company-map iframe {
    min-height: 260px;
  }
}

/* 詳細ページ：建物写真・室内写真グループ */
.rels-photo-thumb-groups {
  margin-top: 16px;
}

.rels-photo-thumb-group {
  margin: 18px 0 0;
}

.rels-photo-thumb-group-title {
  position: relative;
  margin: 0 0 10px;
  padding-left: 14px;
  color: #10233f;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
}

.rels-photo-thumb-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background: #2f7ecb;
}

@media (max-width: 640px) {
  .rels-photo-thumb-group {
    margin-top: 16px;
  }

  .rels-photo-thumb-group-title {
    font-size: 15px;
  }
}

/* 会社概要：事務所写真 管理画面 */
.rels-company-photo-wrap {
  max-width: 980px;
}

/* 会社概要：事務所写真 */
.rels-company-photo-section {
  width: 100%;
  max-width: none;
  margin: 36px 0 0;
  padding: 28px;
  border: 1px solid #dbe7f3;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.rels-company-photo-head {
  margin: 0 0 20px;
  text-align: center;
}

.rels-company-photo-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e7f1ff;
  color: #2f7ecb;
  font-size: 13px;
  font-weight: 800;
}

.rels-company-photo-title {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  color: #10233f;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 900;
}

.rels-company-photo-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #2f7ecb;
}

.rels-company-photo-lead {
  max-width: 620px;
  margin: 12px auto 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

.rels-company-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rels-company-photo-link {
  display: block;
  overflow: hidden;
  position: relative;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.rels-company-photo-link::before {
  content: "";
  display: block;
  padding-top: 72%;
}

.rels-company-photo-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.rels-company-photo-link:hover .rels-company-photo-img {
  transform: scale(1.04);
}

@media (max-width: 760px) {
  .rels-company-photo-section {
    margin-top: 28px;
    padding: 20px;
    border-radius: 18px;
  }

  .rels-company-photo-title {
    font-size: 22px;
  }

  .rels-company-photos {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .rels-company-photo-section {
    padding: 16px;
  }

  .rels-company-photos {
    grid-template-columns: 1fr;
  }
}

/*Googleマップ*/
/* 会社概要：アクセスマップ */
.rels-company-map-section {
  width: 100%;
  margin: 36px 0 0;
  box-sizing: border-box;
}

.rels-company-map-head {
  margin: 0 0 18px;
  text-align: center;
}

.rels-company-map-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e7f1ff;
  color: #2f7ecb;
  font-size: 13px;
  font-weight: 800;
}

.rels-company-map-title {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  color: #10233f;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 900;
}

.rels-company-map-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #2f7ecb;
}

.rels-company-map-lead {
  max-width: 620px;
  margin: 12px auto 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

.rels-company-map {
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.rels-company-map iframe {
  display: block;
  width: 100% !important;
  min-height: 360px;
  border: 0;
}

@media (max-width: 760px) {
  .rels-company-photo-section,
  .rels-company-map-section {
    margin-top: 28px;
  }

  .rels-company-photo-section {
    padding: 20px;
    border-radius: 18px;
  }

  .rels-company-map-title {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .rels-company-map iframe {
    min-height: 260px;
  }
}


.rels-search-keyword-block {
  margin-bottom: 22px;
}

.rels-search-keyword-row input[type="search"] {
  display: block;
  width: 100%;
  max-width: 620px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  background: #fff;
  padding: 10px 14px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.5;
}

.rels-search-keyword-row input[type="search"]::placeholder {
  color: #6b7280;
}

.rels-search-keyword-row input[type="search"]:focus {
  outline: none;
  border-color: #2f7fd0;
  box-shadow: 0 0 0 3px rgba(47, 127, 208, 0.14);
}

@media (max-width: 640px) {
  .rels-search-keyword-row input[type="search"] {
    max-width: 100%;
  }
}