/* Kazahi Property Archives */

.kpa-page {
  padding: 32px 0;
}

.kpa-page,
.kpa-container {
  width: 100%;
  max-width: none;
}

.kpa-page-header {
  margin-bottom: 24px;
}

.kpa-page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  line-height: 1.35;
}

.kpa-page-title__main {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
}

.kpa-page-title__sub {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.kpa-breadcrumb-like {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.kpa-term-description {
  padding: 18px 20px;
  margin: 0 0 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.kpa-section {
  margin: 28px 0;
}

.kpa-section-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
}

.kpa-city-filter,
.cfl-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.kpa-city-filter__item,
.cfl-term-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 96px;
  padding: 10px 14px;
  border: 1px solid #d7dce2;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-align: center;
  line-height: 1.35;
  text-decoration: none;
}

.kpa-city-filter__name {
  font-weight: 700;
}

.kpa-city-filter__slug {
  color: #666;
  font-size: 0.78rem;
}

.kpa-map {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.kpa-map iframe {
  display: block;
  width: 100%;
  height: 560px;
}

/* サイドバーは残したまま、左メインを広げる */
body.kpa-property-page .l-content {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  column-gap: 40px !important;
}

body.kpa-property-page .l-mainContent,
body.kpa-property-page .l-mainContent__inner,
body.kpa-property-page .post_content,
body.kpa-property-page .p-article,
body.kpa-property-page .p-article__body,
body.kpa-property-page .c-entry__content,
body.kpa-property-page .kpa-page,
body.kpa-property-page .kpa-container {
  width: 100% !important;
  max-width: none !important;
}

body.kpa-property-page .l-sidebar {
  display: block !important;
}

body.kpa-property-page .kpa-map,
body.kpa-property-page .kpa-map iframe {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 960px) {
  body.kpa-property-page .l-content {
    display: block !important;
  }
}

@media (max-width: 720px) {
  .kpa-page {
    padding: 24px 0;
  }

  .kpa-city-filter__item,
  .cfl-term-btn {
    min-width: calc(50% - 8px);
    border-radius: 14px;
  }

  .kpa-map iframe {
    height: 420px;
  }
}

/* 市町村ボタン：hoverを紫に */
.kpa-city-filter__item:hover,
.cfl-term-btn:hover {
  background: #5146e5 !important;
  border-color: #5146e5 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(81, 70, 229, .25) !important;
  transform: translateY(-1px);
}

.kpa-city-filter__item:hover .kpa-city-filter__slug,
.cfl-term-btn:hover small {
  color: #fff !important;
}

/* cityアーカイブで現在の市町村ボタンを紫にしたい時用 */
.kpa-city-filter__item.is-current,
.cfl-term-btn.is-current {
  background: #5146e5 !important;
  border-color: #5146e5 !important;
  color: #fff !important;
}

.kpa-city-filter__item.is-current .kpa-city-filter__slug,
.cfl-term-btn.is-current small {
  color: #fff !important;
}

/* ===== KPA FINAL: city記事一覧をカード型にする ===== */

body.kpa-property-page .kpa-post-list,
body.kpa-property-page #blog_list {
  display: grid !important;
  gap: 22px !important;
  margin-top: 28px !important;
}

/* プラグイン側のカード */
body.kpa-property-page .kpa-card,
/* 古いテンプレート風 article にも効かせる */
body.kpa-property-page #blog_list article {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
  padding: 18px !important;
  margin: 0 0 20px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.04) !important;
}

/* 画像エリア */
body.kpa-property-page .kpa-card__thumb,
body.kpa-property-page #blog_list article .image {
  width: 260px !important;
  margin: 0 !important;
}

/* 画像 */
body.kpa-property-page .kpa-card__thumb img,
body.kpa-property-page #blog_list article .image img,
body.kpa-property-page #blog_list article > img {
  width: 260px !important;
  height: 170px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
}

/* 本文側 */
body.kpa-property-page .kpa-card__body {
  min-width: 0 !important;
}

/* タイトル */
body.kpa-property-page .kpa-card__title,
body.kpa-property-page #blog_list article h2 {
  margin: 0 0 10px !important;
  font-size: 1.25rem !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

body.kpa-property-page .kpa-card__title a,
body.kpa-property-page #blog_list article h2 a {
  color: #005bac !important;
  text-decoration: none !important;
}

body.kpa-property-page .kpa-card__title a:hover,
body.kpa-property-page #blog_list article h2 a:hover {
  text-decoration: underline !important;
}

/* 抜粋 */
body.kpa-property-page .kpa-card__excerpt,
body.kpa-property-page #blog_list article .honbun {
  margin: 0 0 10px !important;
  color: #333 !important;
  font-size: 0.98rem !important;
  line-height: 1.8 !important;
}

/* 日付・カテゴリ */
body.kpa-property-page .kpa-card__meta,
body.kpa-property-page #blog_list article .day {
  margin-top: 8px !important;
  color: #666 !important;
  font-size: 0.9rem !important;
}

/* 続きを見る */
body.kpa-property-page .kpa-card__more,
body.kpa-property-page #blog_list article .continue {
  margin: 12px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.kpa-property-page .kpa-card__more a,
body.kpa-property-page #blog_list article .continue a {
  display: inline-block !important;
  padding: 7px 14px !important;
  border: 1px solid #d7dce2 !important;
  border-radius: 999px !important;
  color: #005bac !important;
  text-decoration: none !important;
  background: #fff !important;
}

body.kpa-property-page .kpa-card__more a:hover,
body.kpa-property-page #blog_list article .continue a:hover {
  background: #5146e5 !important;
  border-color: #5146e5 !important;
  color: #fff !important;
}

/* スマホは縦並び */
@media (max-width: 720px) {
  body.kpa-property-page .kpa-card,
  body.kpa-property-page #blog_list article {
    grid-template-columns: 1fr !important;
  }

  body.kpa-property-page .kpa-card__thumb,
  body.kpa-property-page #blog_list article .image {
    width: 100% !important;
  }

  body.kpa-property-page .kpa-card__thumb img,
  body.kpa-property-page #blog_list article .image img,
  body.kpa-property-page #blog_list article > img {
    width: 100% !important;
    height: auto !important;
  }
}

/* cityページの下部 1 / 11 を非表示 */
body.kpa-property-page .kpa-pagination,
body.kpa-property-page .wp-pagenavi,
body.kpa-property-page .pagination,
body.kpa-property-page .page-numbers {
  display: none !important;
}
