/* Land Archive - 土地・建売一覧専用スタイル */

/* 閲覧履歴セクション */
.b_history {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}

.b_history .b_historyT {
  font-size: 14px;
  font-weight: bold;
  padding-left: 18px;
  padding-block: 7px;
  border-left: 3px solid #2f689d;
  margin-bottom: 15px;
}

.b_history .b_historyT p {
  color: #333;
}

.b_history .b_historyT a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.b_history .h_slide {
  padding-block: 12px;
  margin-bottom: 34px;
  gap: 12px;
  overflow-x: scroll;
  display: flex;
}

.b_history .slideBlock {
  padding: 8px;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  flex-shrink: 0;
  background: white;
}

.b_history .slideBlock img {
  width: 120px;
  height: auto;
  margin-bottom: 4px;
}

/* フッターテキストセクション */
.footer_txt {
  width: 100%;
  font-size: 12px;
  color: #696652;
  padding-left: 15px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.footer_txt ul {
  list-style: none;
  padding: 0;
}

.footer_txt ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .b_history {
    display: none;
  }

  .footer_txt {
    display: none;
  }
}

/* 地図関連 - アコーディオン対応 */
.map {
  width: 100%;
  margin-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease;
}

.map.map-show {
    display: block;
}

/* マーカーアイコン */
.marker {
    width: 12px;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* セレクトフォーム */
.select-form {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
    font-size: 13px;
}

/* カスタムセレクトボックス - モデルハウスと同じスタイル */
.custom-select-wrapper {
    width: 200px;
    position: relative;
    font-family: sans-serif;
}

.custom-select {
    border: 1px solid #ccc;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select .arrow {
    font-size: 12px;
    color: #888;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    border-top: none;
    background: white;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.custom-options.show {
    display: block;
}

.custom-options li {
    padding: 10px;
    cursor: pointer;
    border-top: 1px solid #eee;
}

.custom-options li:hover {
    background-color: #f0f0f0;
}

/* カード内のテキストスタイル */
.bTxt_content p.item-label {
    font-weight: bold;
    display: flex;
    align-items: flex-start;
}

.bTxt_content p.item-label .item-value {
    font-weight: normal;
    margin-left: 0;
}

/* PC時の土地面積・建物面積の2列表示 */
@media (min-width: 769px) {
    .bTxt_content.area-row {
        display: flex;
        gap: 2em;
    }

    .bTxt_content.area-row p {
        flex: 1;
    }
}

/* モバイル時は縦並び */
@media (max-width: 768px) {
    .bTxt_content.area-row {
        display: block;
    }

    .bTxt_content.area-row p:not(:last-child) {
        margin-bottom: 5px;
    }
}

/* バブルコンテナ（上部配置） - 会社一覧と同じスタイル */
.bubble-container-top {
    display: none;
}

@media (max-width: 768px) {
    .bubble-container-top {
        display: block;
        position: relative;
        background: #6782AE;
        color: #FFFFFF;
        padding: 12px 16px;
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        margin: 0;
        border: none;
        box-shadow: none;
    }
}

/* バブルコンテナ（通常） */
.bubble-container {
    display: none !important;
    position: relative;
    background-color: #5a7ba5;
    color: white;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: bold;
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .bubble-container {
        display: flex !important;
    }
}

/* 固定資料請求ボタン - 会社一覧と同じスタイル */
.fixed-request-button {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .fixed-request-button {
        width: 100%;
        left: 0;
        padding: 0 12.5px;
    }
}

.fixed-button-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: #FF7C00;
    padding: 15px 30px;
    border-radius: 4px;
    width: 100%;
    max-width: 600px;
}

.selected-count {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.free-label {
    background: #FCF7DB;
    color: #E94B08;
    padding: 0px 4px;
    height: 15px;
    border-radius: 2.63px;
    font-size: 14px;
    font-weight: bold;
}

/* タイトル内のステータス表示 */
.card-contentT .status {
    display: inline-block;
    background: #6782AE;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
    margin-left: 0.5em; /* 半角スペース相当の間隔 */
}

.card-contentT .status::before {
    content: " "; /* 半角スペースを追加 */
}

/* PC用ボタン間のスペース */
@media (min-width: 769px) {
    .sBtn-group .searchBtn:not(:last-child) {
        margin-right: 1em; /* 1文字分のスペース */
    }
}

/* スマホ用地図から探すボタンのスタイル */
@media (max-width: 768px) {
    .searchBtn.mobile-only p {
        margin: 0;
        font-size: 12px;
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    .searchBtn.mobile-only .marker {
        width: 12px;
        height: auto;
    }
}

/* ローディングインジケーター */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6782AE;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ページネーションリンク */
.pagination-links {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
}

.pagination-links a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-links a:hover {
    background: #f5f5f5;
    color: #333;
}

.pagination-links a.active {
    background: #6782AE;
    color: white;
    border-color: #6782AE;
}

/* 並び替えモーダル */
.sortModal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sortModal-overlay.show {
    display: block;
}

.sortModal-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 15px 15px 0 0;
    padding: 20px;
}

.sortModal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.sortModal-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sortModal-item:hover {
    background: #f5f5f5;
}

.sortModal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* メイン画面スタイル */
.filterArea {
  width: 100%;
  height: 100vh;
  display: none;
  background-color: rgba(0, 0, 0, 0.5) !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.filterArea.displayFlex {
  display: flex !important;
}

.filterArea .container {
  background-color: #ffffff !important;
  max-width: 90%;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  margin: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.filter-arear-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 1001;
}

.searchT {
  text-align: center;
  padding: 30px 20px 20px;
  background-color: #fff;
}

.searchT p:first-child {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.searchT p:last-child {
  font-size: 14px;
  color: #666;
}

/* スライダー専用スタイル - Figmaデザイン準拠 */
.rangeBar {
  display: block !important;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.rangeBar .sectionT {
  width: 100%;
  margin-bottom: 30px;
  padding: 12px 15px;
  background-color: #f5f5f5;
  border-left: 3px solid #4a6bb6;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.range-wrapper {
  position: relative;
  height: 60px;
  width: 100%;
  margin: 20px 0;
}

.range-track {
  position: absolute;
  top: 50%;
  height: 6px;
  background: #e0e0e0;
  width: 100%;
  transform: translateY(-50%);
  border-radius: 3px;
  z-index: 1;
}

.range-active {
  position: absolute;
  top: 50%;
  height: 6px;
  background: #4a6bb6;
  z-index: 2;
  transform: translateY(-50%);
  border-radius: 3px;
}

input[type="range"] {
  position: absolute;
  width: 100%;
  height: 40px;
  cursor: pointer;
  pointer-events: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  z-index: 3;
}

input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4a6bb6;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4a6bb6;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.value-label {
  position: absolute;
  top: -35px;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
  z-index: 4;
}

.value-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

/* 検索ボタンスタイル */
.search-results-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4a6bb6;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 107, 182, 0.3);
  z-index: 1002;
  display: none;
  transition: all 0.3s ease;
}

/* PC絞り込みボタンスタイル調整 */
.searchBtn {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  padding: 0;
}

.searchBtn:hover {
  opacity: 0.8;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border: 1px solid #989483;
  border-radius: 16px;
  background: #FFFFFF;
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #333333;
  width: 105px;
  height: 32px;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  line-height: 1.42;
  border-style: solid;
  outline: none;
}

.filter-button:hover {
  background: #F8F8F8;
  border-color: #6782AE;
  transition: all 0.2s ease;
}

.filter-button:active {
  background: #F0F0F0;
  transform: translateY(1px);
}

.filter-button img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.search-results-button.show {
  display: block;
}

.search-results-button:hover {
  background: #3d5a9a;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 107, 182, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .filterArea .container {
    max-width: 95%;
    margin: 2% auto;
    border-radius: 12px;
  }

  .rangeBar .sectionT {
    font-size: 15px;
    padding: 10px 12px;
  }

  .value-label {
  font-size: 12px;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .filterArea .container {
    max-width: 98%;
    margin: 1% auto;
  }

  .searchT {
    padding: 20px 15px 15px;
  }

  .searchT p:first-child {
  font-size: 16px;
  }

  .range-wrapper {
    margin: 15px 0;
  }

  .search-results-button {
    bottom: 15px;
    padding: 12px 25px;
  font-size: 15px;
  }
}

/* Company Archive - Mobile Bottom Sheet Modal Styles */

/* スマホ版ボトムシートモーダル */
.filterArea {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background: none !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 0 !important;
}

/* スマホでのオーバーライド */
@media (max-width: 768px) {
  .filterArea.displayBlock {
    display: flex !important;
  }
}

.bottom-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.bottom-sheet {
  position: relative;
  background: white;
  border-radius: 20px 20px 0 0;
  max-height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
  transform: translateY(100%);
}
  to {
  transform: translateY(0);
}
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #E0E0E0;
  position: relative;
}

.bottom-sheet-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* filter-close-btnは1183行目で定義 */

.keyword-search {
  padding: 16px 24px;
  border-bottom: 1px solid #E0E0E0;
}

.keyword-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #DDD;
  border-radius: 8px;
  font-size: 16px;
  background: #F8F8F8;
  box-sizing: border-box;
}

.keyword-input::placeholder {
  color: #999;
}

.filter-tabs {
  display: flex;
  border-bottom: 1px solid #E0E0E0;
  background: white;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-button {
  flex: 1;
  min-width: 80px;
  padding: 16px 12px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab-button.active {
  color: #FF7C00;
  border-bottom-color: #FF7C00;
  font-weight: 600;
}

.filter-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.tab-content {
  display: none;
  padding: 20px 24px;
}

.tab-content.active {
  display: block;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  padding: 8px 0;
  position: relative;
}

.checkbox-item input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #DDD;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
  background: #FF7C00;
  border-color: #FF7C00;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.budget-section {
  padding: 0;
}

.budget-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  padding-top: 20px;
}

.budget-section h3:first-child {
  padding-top: 0;
}

.range-slider-container {
  margin-bottom: 30px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

/* デュアルレンジスライダー（モバイル版調整） */
.dual-range-slider {
  position: relative;
  width: 85%;
  height: 20px;
}

.dual-range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  appearance: none;
  pointer-events: none;
  outline: none;
  top: 7px;
}

.dual-range-slider input[type="range"]::-webkit-slider-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: 3px;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #6782AE;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  pointer-events: all;
  position: relative;
  z-index: 2;
  margin-top: -7px;
}

.dual-range-slider input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: 3px;
  border: none;
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #6782AE;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  pointer-events: all;
}

/* スライダーベーストラック */
.dual-range-slider::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 6px;
  background: #E0E0E0;
  border-radius: 3px;
  z-index: 1;
}

/* スライダーの選択範囲 */
.dual-range-slider .slider-track {
  position: absolute;
  height: 6px;
  background: #6782AE;
  border-radius: 3px;
  top: 7px;
  pointer-events: none;
  z-index: 1;
}

/* エリア・所在地オプション */
.area-options,
.location-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px;
}

/* フィルターオプションの改良 */
.filter-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

/* カスタムチェックボックスの調整 */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0px;
  cursor: pointer;
  padding: 8px 0;
  margin: 0;
  font-family: 'Hiragino Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #333333;
  line-height: 1.4;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 14px;
  height: 14px;
  border: 1px solid #808080;
  border-radius: 2px;
  background: white;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #6782AE;
  border-color: #6782AE;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* レスポンシブ調整 */
@media (max-width: 390px) {
  .filter-header {
    padding: 12px;
  }

  .filter-tab-menu {
    padding: 4px 12px;
  }

  .current-filters {
    padding: 8px 12px;
  }

  .filter-section {
    padding: 8px;
  }

  .filter-bottom-btn {
    padding: 12px 40px;
  }

  .filter-option-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .housing-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* 大きい画面では非表示 */
@media (min-width: 769px) {
  .filter-fullpage-modal {
    display: none;
  }
}

/* 現在の選択条件表示 */
.current-filters {
  background: white;
  padding: 12px 16px;
    display: flex;
  gap: 8px;
    flex-wrap: wrap;
  min-height: 0;
}

/* --- 現在選択条件を初期状態で隠す --- */
.filter-header + .current-filters:empty {
  display: none;
}

/* 現在の選択条件にアイテムがある場合のみ表示 */
.current-filters:not(:empty) {
    display: flex;
  border-bottom: 1px solid #E8E8E8;
}

.current-filter-item {
  background: #424031;
  border-radius: 16px;
  padding: 4px 8px;
    display: flex;
    align-items: center;
  gap: 3px;
  height: 28px;
}

.filter-text {
  font-family: 'Hiragino Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
}

.remove-filter {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
    display: flex;
  align-items: center;
  justify-content: center;
}

/* タブコンテンツラッパー */
.filter-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 80px 16px;
  background: white;
}

.filter-tab-content {
    display: none;
  }

.filter-tab-content.active {
    display: block;
  }

/* 固定ボトムボタン（Figmaデザイン準拠） */
.filter-bottom-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
    width: 100%;
  height: 78px;
  background: rgba(0, 0, 0, 0.2); /* #000000の20%透過 */
  z-index: 20;
  display: none; /* 初期状態では非表示 */
  transition: all 0.3s ease;
  align-items: center;
    justify-content: center;
  padding: 0;
}

/* チェック時の表示状態 */
.filter-bottom-btn.show {
  display: flex;
}

.search-execute-btn {
  height: 51px;
  background: #FF7C00;
  border: none;
  border-radius: 4px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  padding: 0 20px;
  letter-spacing: 0.02em;
  width: 365px; /* Figmaの幅365px */
  max-width: calc(100% - 40px); /* 左右20pxずつマージン確保 */
}

/* スライダーラベル（モバイル版調整） */
.slider-labels {
  position: relative;
  width: 85%;
  height: 40px;
  margin-bottom: 10px;
}

.slider-label {
  position: absolute;
  background-color: #333333;
  color: #FFFFFF;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  transform: translateX(-50%);
  top: 10px;
  z-index: 15;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* デフォルトラベル位置 */
#mobile-budget-min,
#mobile-price-min {
  left: 3%;
}

#mobile-budget-max,
#mobile-price-max {
  left: 96%;
}

.slider-label::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333333;
}

/* --- トップバー --- */
.filter-topbar {
  background: #424031;
  height: 48px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
}

/* 閉じるボタン */
/* filter-close-btnは1183行目で定義 */

/* 検索ラッパー */
.filter-search-wrapper {
  background: white;
  padding: 12px 24px 8px;
}

.filter-search-box {
  width: 100%;
  border: 1px solid #989483;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  position: relative;
  min-height: 44px;
}

.filter-keyword-input {
  flex: 1;
  border: none;
  outline: none;
  height: 28px;
  font-size: 14px;
  padding: 0;
  min-width: 80px;
  color: #333;
}

.filter-keyword-input::placeholder {
  color: #989483;
}

.search-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

/* タグリスト */
.search-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.search-tag {
  background: #424031;
  border-radius: 16px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  height: 24px;
}

.search-tag .filter-text {
  font-family: 'Hiragino Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: white;
  line-height: 1;
}

.search-tag .remove-filter {
  background: none;
  border: none;
  padding: 0;
  margin-left: 2px;
  cursor: pointer;
  color: white;
    font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove absolute positioning from search icon */
.filter-search-box .search-icon {
  position: static;
}

/* filter-close-btnは1183行目で定義 */

.filter-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
}

/* フルページモーダル */
.filter-fullpage-modal {
  width: 100%;
  height: 100vh;
  background: #F2F2F2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ヘッダー */
.filter-header {
  background: rgba(255, 255, 255, 0.95);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0px 1.5px 8.5px 0px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

/* タブメニューの改良 */
.filter-tab-menu {
  background: white;
  padding: 12px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E8E8E8;
  position: relative;
}

.tab-group {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.filter-tab-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  white-space: nowrap;
}

.filter-tab {
  background: none;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #424031;
  cursor: pointer;
  padding: 8px 0 12px;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}

.filter-tab.active {
  color: #424031;
  font-weight: 700;
}

/* アクティブタブの下線 */
.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #6782AE;
}

.filter-tab-special {
  font-weight: 700;
  font-size: 12px;
}

/* 絞り込みタブの特別なアクティブ状態 */
.filter-tab-with-icon .filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #6782AE;
}

.tab-divider {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #424031;
  line-height: 1;
  margin: 0 12px;
  display: inline-block;
}

.filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.filter-icon svg {
  width: 20px;
  height: 20px;
}

/* フィルターセクション（修正版） */
.filter-section {
  background: white;
  margin-bottom: 20px;
  padding: 0px;
}

/* セクションタイトルに縦線を追加 */
.filter-section-title {
  width: 100%;
  background-color: #F2F2F2;
  padding: 8px 16px 8px 16px;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
  position: relative;
  min-height: 32px;
}

/* 縦線の追加 */
.filter-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #6782AE;
}

.help-icon {
  width: 16px;
  height: 16px;
  background: #6782AE;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-left: 4px;
}

/* 取扱住宅のレイアウト */
.housing-type-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.housing-checkbox {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
}

.sub-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.checkmark-sub {
  width: 12px;
  height: 12px;
  border: 1px solid #808080;
  border-radius: 2px;
  background: white;
  position: relative;
  flex-shrink: 0;
  }

.housing-row {
  display: flex;
  gap: 0;
  width: 100%;
  }

.housing-row .housing-checkbox {
  flex: 1;
  }

/* フィルターオプション（デスクトップ版と同じ仕様） */
.filter-options {
  padding: 0 20px 16px 20px;
  }

/* 価格スライダーコンテナ（モバイル版調整） */
.price-slider-container {
  padding: 0;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
    position: relative;
  margin-bottom: 20px;
}

/* style-info内のspan要素のfont-weight */
.style-info span {
  font-weight: normal !important;
}

/* カードのタイトルリンクホバー時のスタイル */
main .cardG .card-content a.card-contentT {
  transition: all 0.3s ease;
}

main .cardG .card-content a.card-contentT:hover {
  color: #175FFF !important;
  text-decoration: underline !important;
  text-decoration-color: #175FFF !important;
}

/* PCの構造と間取りのテキストサイズ */
.style-info p {
  font-size: 14px !important;
}

/* 間取り図ありのスタイル（PC用） */
.status {
  background-color: #6782AE !important;
  color: #FFFFFF !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  text-align: center !important;
  width: auto !important;
  max-width: fit-content !important;
  margin-top: 8px !important;
}

/* スマホ時の構造と間取りの間隔調整 */
.style-info p:first-child {
  margin-right: 2em !important;
}

/* レスポンシブ表示制御 */
.pc-only {
  display: inline-block;
}

.mobile-only {
  display: none !important;
}

/* PC用お気に入りボタンのスタイル - 既存のmain .topRスタイルを上書き */
main .topR {
  width: auto !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

main .topR button.pc-only {
  width: 124px;
  height: 35px;
  background: #fff;
  border: 1px solid #989483;
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  transition: all 0.2s ease;
}

main .topR button.pc-only:hover {
  opacity: 0.8;
}

/* お気に入り済状態のスタイル */
main .topR button.pc-only.active {
  background: #6782AE;
  border-color: #6782AE;
  color: #fff;
}

@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  /* スマホ時の間取り図ありスタイル */
  .status {
    font-size: 10px !important;
    width: auto !important;
    max-width: fit-content !important;
    flex-shrink: 0 !important;
    margin-top: 0px !important;
  }

  /* スマホ時の構造と間取りのテキストサイズ */
  .style-info p {
    font-size: 10px !important;
  }

  /* スマホ時のカードタイトルスタイル */
  main .cardG .card-contentT {
    font-size: 14px;
    color: #333333;
    font-weight: 700;
    line-height: 1.36;
    margin-bottom: 4px;
  }
}

/* お気に入りボタンのスタイル（スマホ用） */
.favorite-btn {
  background: none !important;
  border: none !important;
  padding: 8px !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.favorite-icon {
  width: 17px;
  height: 20px;
  transition: all 0.2s ease;
}

.favorite-btn:hover .favorite-icon {
  transform: scale(1.1);
}

/* レスポンシブ対応（デスクトップ版と同じ仕様） */
@media (max-width: 768px) {
  .pagination-links {
    display: none !important;
  }

  .filterArea {
  display: none;
}

  .filterArea.displayBlock {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
  width: 100%;
    height: 100vh;
    z-index: 9999;
    background: #F2F2F2;
  }

  .dual-range-slider,
  .slider-labels {
    width: 85%;
  }

  /* モバイル版でスライダーラベル強制表示 */
  .filterArea .slider-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* スマホでタイトルテキストの折り返し対応 */
  main .cardG .card a {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    line-height: 1.4;
  }

  /* card-contentのgap調整 */
  main .cardG .card .card-content {
    gap: 0px !important;
  }

  /* style-info内のspan要素のfont-weight（スマホ用） */
  main .cardG .card-content .style-info span {
    font-weight: normal !important;
  }

  /* スマホ時の構造と間取りの間隔調整 */
  main .cardG .card-content .style-info p:first-child {
    margin-right: 2em !important;
  }

}

@media (max-width: 480px) {
  .dual-range-slider,
  .slider-labels {
    width: 85%;
  }
} @media (max-width: 768px) {
  .searchBtn.mobile-only p {
      margin: 0;
      font-size: 12px;
      font-weight: 600;
  }
}
