@charset "UTF-8";

/* ==========================================================================
   投資用・事業用物件検索ページ用 CSS (inv_style.css)
   ナイス様グリーン アクセント版
   ========================================================================== */

/* --- ベーススタイル --- */
body#topPage {
  overflow-x: clip !important;
}

.main._investment {
  background-color: #f2f2f2; 
  padding-bottom: 120px;
  overflow: visible !important;
}
/* --- メインビジュアルスライダー --- */
#js-hero-slider {
  position: relative; /* ★追加: 注記テキストを絶対配置（枠を基準）にするために必要 */
  margin-bottom: 20px;
}

#js-hero-slider .splide__slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ★ここから追加: 注記テキストのスタイル */
.slider-note {
  position: absolute;
  right: 15px;       /* 右端からの距離 */
  bottom: 15px;      /* 下端からの距離 */
  z-index: 10;       /* 画像よりも手前に表示する */
  margin: 0;
  color: #fff;       /* 文字色は白 */
  font-size: 0.8em;  /* 文字を少し小さく */
  background-color: rgba(0, 0, 0, 0.5); /* 写真に紛れないよう、半透明の黒背景を敷く */
  padding: 4px 8px;  /* 上下左右の余白 */
  border-radius: 2px;
  pointer-events: none; /* マウスのクリックなどを透過させ、スライダーの邪魔をしない設定 */
}
/* --- 投資用不動産とは（テキストエリア） --- */
.investment-about {
  padding: 40px 20px 10px;
}

.investment-about-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #333;
}

/* 画像のデザインを再現した見出し */
.about-heading {
  font-size: 1.8em;
  font-weight: normal;
  letter-spacing: 0.3em; /* 文字の間隔を広げる */
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333; /* 上の細い黒線 */
  position: relative;
  display: inline-block;
}

/* 下の太いグレーの線 */
.about-heading::after {
  content: "";
  position: absolute;
  bottom: -6px; /* 細い線からの距離 */
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
}

/* 本文 */
.about-text {
  font-size: 1em;
  line-height: 2;
  margin-bottom: 30px;
}

/* 注記 */
.about-note {
  font-size: 0.85em;
  line-height: 1.8;
  color: #666;
}

/* スマホ表示時は、PC用の改行を無効にして自然に折り返させる */
@media screen and (max-width: 767px) {
  .investment-about {
    padding: 30px 15px 0;
  }
  .about-heading {
    font-size: 1.4em;
    margin-bottom: 30px;
  }
  .pc-only {
    display: none;
  }
  .about-text {
    text-align: left; /* スマホでは左揃えの方が読みやすい場合があります。中央揃えが良い場合は center にしてください */
  }
  .about-note {
    text-align: left;
  }
}

/* レスポンシブ（スマホ表示時） */
@media screen and (max-width: 767px) {
  #js-hero-slider .splide__slide img {
    height: 250px;
  }
  /* スマホでは注記をさらに少しコンパクトにする */
  .slider-note {
    right: 10px;
    bottom: 10px;
    font-size: 0.7em;
    padding: 3px 6px;
  }
}



.pageHead_heading._investment {
  text-align: center;
  padding: 50px 0;
  color: #222;
}

.pageHead_heading._investment .heading_jp {
  display: block;
  font-size: 1.8em;
  font-weight: bold;
}

.pageHead_heading._investment .heading_en {
  display: block;
  font-size: 0.8em;
  color: #005a30; /* ナイスグリーンに変更 */
  letter-spacing: 0.2em;
  margin-top: 5px;
}
/* --- 上部 絞り込みトリガーボタン --- */
.top-search-trigger-area {
  background-color: #222; /* 帯の背景色（黒に近い色） */
  padding: 15px 0;
  margin-bottom: 40px; /* 下の物件リストとの余白 */
}

.top-search-trigger-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px; /* スマホで端にくっつかないための余白 */
}

.top-search-trigger-btn {
  display: block;
  width: 100%;
  background-color: #555; /* ボタンの背景色（グレー） */
  color: #fff;
  border: none;
  padding: 18px 20px;
  font-size: 1.05em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: opacity 0.3s;
  border-radius: 3px;
}

.top-search-trigger-btn:hover {
  opacity: 0.8;
}

.top-search-trigger-btn .icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

/* スマホ表示時の微調整 */
@media screen and (max-width: 767px) {
  .top-search-trigger-btn {
    font-size: 0.9em;
    padding: 15px;
  }
  .top-search-trigger-btn .icon {
    right: 15px;
  }
}
/* --- 検索モーダル --- */
.search-modal {
  display: none; 
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 800px;
  max-height: 85vh;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 15px 50px rgba(0,0,0,0.4);
  border-radius: 4px;
  overflow: hidden;
  flex-direction: column;
  overscroll-behavior-y: contain;
}

.search-modal-header {
  background: #005a30; /* ナイスグリーンに変更 */
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.search-modal-title {
  margin: 0;
  font-weight: bold;
  font-size: 1.1em;
}

.search-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
}

.search-modal-content {
  padding: 20px 30px;
  overflow-y: auto;
  background: #fff;
}

.search-row {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  padding: 15px 0;
}

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

.search-label {
  width: 180px;
  font-weight: bold;
  color: #333;
  flex-shrink: 0;
  font-size: 0.95em;
}

.search-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0; /* 横の隙間はwidthで制御するので0にします */
  flex-grow: 1; /* 右側のエリアをしっかり広げる */
}

.search-inputs label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
    width: 170px;
}

.search-action {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
}

/* 検索実行ボタン */
.btn-search {
  background: #005a30; /* ナイスグリーンに変更 */
  color: #fff;
  padding: 15px 60px;
  border: none;
  border-radius: 3px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-search:hover {
  opacity: 0.8;
}

.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 999;
}

/* --- 下部固定バー --- */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  padding: 15px 0;
  z-index: 500;
  backdrop-filter: blur(5px);
}

.action-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0 15px;
}

.action-bar-btn {
  flex: 1;
  max-width: 350px;
  padding: 12px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  font-size: 0.95em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.action-bar-btn i {
  font-size: 1.1em;
}

/* 絞り込みボタン（ダークグレー×ナイスグリーン枠） */
.action-bar-btn._search {
  background: #333;
  color: #fff;
  border: 1px solid #005a30; /* ナイスグリーンに変更 */
  cursor: pointer;
}

/* お問い合わせボタン（ナイスグリーン） */
.action-bar-btn._contact {
  background: #005a30; /* ナイスグリーンに変更 */
  color: #fff;
}

.action-bar-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* --- 物件カード --- */
.property-list-wrapper { max-width: 1000px; margin: 0 auto; }
.area-group { margin-bottom: 50px; }

/* エリア見出し */
.area-heading {
  font-size: 1.4em;
  font-weight: bold;
  border-bottom: 2px solid #005a30; /* ナイスグリーンに変更 */
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;  
}
.area-heading::before {
  content: "";
  width: 8px;
  height: 1.2em;
  background: #005a30; /* ナイスグリーンに変更 */
  margin-right: 12px;
}
/* --- インライン絞り込みボタン群 --- */
.inline-filter {
  background: #fff;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 25px; /* 物件リストとの余白 */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inline-filter-title {
  margin: 0;
  font-weight: bold;
  font-size: 0.95em;
  color: #333;
}

.inline-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* 全選択・解除ボタン */
.filter-action-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  color: #555;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 0.85em;
  cursor: pointer;
  transition: 0.2s;
}
.filter-action-btn:hover {
  background: #e0e0e0;
}

/* 各種別のボタン（チェックボックスを隠してラベルをボタン風にする） */
.filter-btn-label {
  cursor: pointer;
}
.filter-btn-label input[type="checkbox"] {
  display: none; /* 元のチェックボックスは非表示 */
}
.filter-btn-text {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #005a30; /* ナイスグリーン */
  color: #005a30;
  border-radius: 3px;
  font-size: 0.85em;
  transition: 0.2s;
}
/* チェックされている時のスタイル */
.filter-btn-label input[type="checkbox"]:checked + .filter-btn-text {
  background: #005a30;
  color: #fff;
}
.filter-btn-label:hover .filter-btn-text {
  opacity: 0.8;
}
.property-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.property-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-images {
  display: flex;
  justify-content: center; /* 左右中央揃え */
  align-items: center; /* ★追加: 上下中央揃え */
  height: 200px; /* 高さ固定 */
  background-color: #f7f7f7;
  border-bottom: 1px solid #eee;
  position: relative;
}

.card-images img:not(.card-badge) {
  flex: 1 1 0%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-width: 0;
}
.card-images .card-badge {
  position: absolute;
  top: 10px;       /* 上からの位置 */
  left: 10px;      /* 左からの位置 */
  width: 70px !important;  /* バッジの大きさ（お好みで調整してください） */
  max-width: none !important; /* 既存の max-width: 50% を打ち消す */
  height: auto !important;
  z-index: 10;     /* 物件画像より手前に表示する */
  margin: 0 !important;
}
.card-header { padding: 15px 15px 10px; border-bottom: 1px solid #eee; }

/* 種別ラベル */
.type-label {
  display: inline-block;
  background: #005a30; /* ナイスグリーンに変更 */
  color: #fff;
  font-size: 0.75em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.card-price {
  color: #a8002d;
  font-size: 1.3em;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.card-title {
  font-size: 1.05em;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  color: #222;
}

/* 利回り */
.card-yield {
  font-size: 1.05em;
  font-weight: bold;
  margin: 2px 0 0;
  color: #222;
}

.card-body { padding: 12px 15px 15px; flex-grow: 1; display: flex; flex-direction: column; }

.card-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  font-size: 0.9em;
  color: #333;
}
.card-info-list li { margin-bottom: 5px; line-height: 1.4; }

/* PRエリア（もし再度使用する場合に備えて色だけ変更しておきます） */
.card-pr {
  background: #f8f9fa;
  padding: 8px 10px;
  border-radius: 2px;
  font-size: 0.85em;
  line-height: 1.4;
  color: #444;
  border-left: 4px solid #005a30; /* ナイスグリーンに変更 */
  margin-bottom: 15px;
}

/* 詳細ボタン */
.card-btn {
  margin-top: auto;
  display: block;
  padding: 10px;
  background: #005a30; /* ナイスグリーンに変更 */
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 0.95em;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.property-card:hover .card-btn {
  background: #004324; /* ホバー時は少し濃い緑に */
}

/* --- レスポンシブ --- */
@media screen and (max-width: 767px) {
  .search-row { flex-direction: column; }
  .search-label { width: 100%; margin-bottom: 8px; }
  .action-bar-inner { flex-direction: column; gap: 8px; }
  .action-bar-btn { width: 100%; max-width: none; }
  .search-inputs label {
    width: 48%; /* 画面幅の約半分にして2列表示 */
  }
  .search-modal-content{
    max-height: 70vh; /* モーダルの最大高さを少し小さくして、スマホでの表示を改善 */
  }
}