/* ===== Property Listing Page ===== */

/* ===== Property Type Tabs ===== */
.property-type-tabs {
  padding: 40px 0 0;
}
.property-type-tabs-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.property-type-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: #fff;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
  line-height: 1.4;
}
.property-type-tab:hover {
  background: rgba(199, 186, 140, 0.1);
  opacity: 1;
}
.property-type-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.property-type-tab.is-active:hover {
  background: var(--accent);
}

/* ===== Property List Section ===== */
.property-list {
  padding: 60px 0 80px;
}
.property-list-header {
  margin-bottom: 40px;
}
.property-list-count {
  font-size: 15px;
  color: var(--text-muted);
}
.property-list-count strong {
  font-size: 20px;
  color: var(--text-main);
  font-weight: 700;
}

/* ===== Property Grid (1-column) ===== */
.property-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}
.property-grid.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* ===== Property Card (Horizontal) ===== */
.property-card {
  display: flex;
  height: 200px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  opacity: 1;
}
.property-card-img {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 100%;
  overflow: hidden;
  background: #eee;
}
.property-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s ease;
  z-index: 1;
}
.property-card:hover .property-card-img::after {
  background: rgba(255, 255, 255, 0.15);
}
.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.property-card:hover .property-card-img img {
  transform: scale(1.08);
}

/* ===== Property Type Badge ===== */
.property-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  letter-spacing: 0.05em;
  z-index: 1;
}

/* ===== Property Card Body ===== */
.property-card-body {
  flex: 1;
  min-width: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.property-card-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px;
  line-height: 1.5;
}
.property-card-address {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  padding-left: 18px;
  position: relative;
}
.property-card-address::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.property-card-price {
  margin: 0;
  color: var(--accent-cta);
  font-weight: 700;
  line-height: 1.2;
}
.price-num {
  font-size: 26px;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}
.price-unit {
  font-size: 13px;
  font-weight: 600;
  margin: 0 1px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
}
.pagination-current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--text-main);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.pagination-link:hover {
  background: #f5f5f5;
  border-color: #bbb;
  opacity: 1;
}
.pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 2px;
}
.pagination-prev,
.pagination-next {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: var(--text-main);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.pagination-prev:hover,
.pagination-next:hover {
  background: #f5f5f5;
  border-color: #bbb;
  opacity: 1;
}

.pagination-prev .-pc,
.pagination-next .-pc {
  display: inline-block;
}

/* ===== Related Content Section ===== */
.related-content {
  padding: 80px 0;
  background: #f5f4f0;
}
.related-content .section-head {
  margin-bottom: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  opacity: 1;
}
.related-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.related-card-body {
  flex: 1;
  min-width: 0;
}
.related-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
  line-height: 1.4;
}
.related-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== Subsidy Card (No Image) ===== */
.subsidy-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--accent);
}
.subsidy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  opacity: 1;
}
.subsidy-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.subsidy-category {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.subsidy-card-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.5;
}
.subsidy-card-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 12px;
  color: var(--accent-cta);
  font-weight: 700;
  line-height: 1.2;
}
.subsidy-amount-label {
  font-size: 12px;
  font-weight: 600;
}
.subsidy-amount-value {
  font-size: 22px;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}
.subsidy-amount-unit {
  font-size: 13px;
  font-weight: 600;
}
.subsidy-card-bottom {
  display: flex;
  gap: 24px;
  align-items: flex-end;
}
.subsidy-card-desc {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}
.subsidy-card-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ===== Post Detail Page ===== */
.post-detail {
  padding: 60px 0 80px;
}
.post-detail-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* ===== Post Meta ===== */
.post-meta {
  margin-bottom: 32px;
}
.post-meta-category {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 4px;
  color: #fff;
  background: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.post-detail-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 16px;
  line-height: 1.5;
}
.post-detail-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 12px 20px;
  background: #fdf5ee;
  border-radius: 6px;
  color: var(--accent-cta);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.post-detail-amount .subsidy-amount-value {
  font-size: 28px;
}
.post-detail-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
  padding-bottom: 32px;
  border-bottom: 1px solid #e8e6e1;
}

/* ===== Post Content (MD Body) ===== */
.post-content {
  padding-top: 40px;
}
.post-content h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  line-height: 1.5;
}
.post-content h2:first-child {
  margin-top: 0;
}
.post-content h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}
.post-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px;
  line-height: 1.5;
}
.post-content p {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.9;
  margin: 0 0 20px;
}
.post-content ul,
.post-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.post-content li {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 6px;
}
.post-content a {
  color: var(--accent-cta);
  text-decoration: underline;
}
.post-content a:hover {
  opacity: 0.8;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  font-size: 14px;
}
.post-content thead th {
  background: #f5f4f0;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid #ddd;
  color: var(--text-main);
}
.post-content tbody td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  color: var(--text-main);
  line-height: 1.6;
}
.post-content tbody tr:nth-child(even) {
  background: #fafaf8;
}
.post-content .note-box {
  background: #f5f4f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}
.post-content .note-box strong {
  color: var(--text-main);
}

/* ===== Privacy Notes Block ===== */
.post-content .privacy-notes {
  background: #f5f4f0;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 32px 32px 24px;
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.8;
}
.post-content .privacy-notes h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 24px;
}
.post-content .privacy-notes h3 {
  font-size: 15px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.post-content .privacy-notes p {
  font-size: 14px;
}
.post-content .privacy-notes ol {
  font-size: 14px;
}

/* ===== Source Link ===== */
.post-source {
  margin-top: 48px;
  padding: 20px 24px;
  background: #f5f4f0;
  border-radius: 8px;
}
.post-source-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 8px;
  letter-spacing: 0.05em;
}
.post-source a {
  font-size: 14px;
  color: var(--accent-cta);
  text-decoration: underline;
  word-break: break-all;
}
.post-source a:hover {
  opacity: 0.8;
}

/* ===== Prev / Next Navigation ===== */
.post-nav {
  display: flex;
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e8e6e1;
}
.post-nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.post-nav-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 1;
}
.post-nav-item.is-next {
  text-align: right;
}
.post-nav-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.post-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
}

/* ===== Related Subsidy Section ===== */
.related-subsidy {
  padding: 80px 0;
  background: #f5f4f0;
}
.related-subsidy .section-head {
  margin-bottom: 40px;
}
.related-subsidy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .property-card-img {
    width: 240px;
  }
  .property-card-body {
    padding: 20px 24px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Responsive: SP ===== */
@media (max-width: 768px) {
  .property-type-tabs {
    padding: 24px 0 0;
  }
  .property-type-tabs-inner {
    gap: 6px;
  }
  .property-type-tab {
    width: calc((100% - 6px) / 2);
    padding: 8px 0;
    font-size: 12px;
  }
  .property-list {
    padding: 40px 0 60px;
  }
  .property-grid {
    gap: 16px;
    margin-bottom: 40px;
  }
  .property-grid.grid-2col {
    grid-template-columns: 1fr;
  }
  .property-card {
    flex-direction: column;
    height: auto;
  }
  .property-card-img {
    width: 100%;
    height: 200px;
  }
  .property-card-body {
    padding: 16px;
  }
  .property-card-name {
    font-size: 15px;
  }
  .price-num {
    font-size: 22px;
  }
  .pagination {
    gap: 4px;
  }
  .pagination-current,
  .pagination-link,
  .pagination-dots {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .pagination-prev,
  .pagination-next {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  .pagination-prev .-pc,
  .pagination-next .-pc {
    display: none;
  }
  .subsidy-card {
    padding: 20px;
  }
  .subsidy-card-title {
    font-size: 15px;
  }
  .subsidy-amount-value {
    font-size: 18px;
  }
  .subsidy-card-desc {
    font-size: 13px;
  }
  .related-content {
    padding: 60px 0;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .post-detail {
    padding: 40px 0 60px;
  }
  .post-detail-title {
    font-size: 20px;
  }
  .post-detail-amount .subsidy-amount-value {
    font-size: 24px;
  }
  .post-content h2 {
    font-size: 18px;
    margin: 36px 0 16px;
  }
  .post-content h3 {
    font-size: 16px;
    margin: 28px 0 12px;
  }
  .post-content p,
  .post-content li {
    font-size: 14px;
  }
  .post-content table {
    font-size: 13px;
  }
  .post-content thead th,
  .post-content tbody td {
    padding: 10px 12px;
  }
  .post-content .privacy-notes {
    padding: 24px 20px 16px;
    margin-top: 36px;
  }
  .post-content .privacy-notes h2 {
    font-size: 16px;
  }
  .post-content .privacy-notes h3 {
    font-size: 14px;
  }
  .post-nav {
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
  }
  .post-nav-item.is-next {
    text-align: left;
  }
  .related-subsidy {
    padding: 60px 0;
  }
  .related-subsidy-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.page-template-page-privacy .post-content h4 {
  font-family: initial;
  font-size: 16px;
}