/* ====================================
   不動産サイト 閲覧者向けページスタイル
==================================== */


/* 基本設定 */
.property-top-container,
.property-search-results,
.property-detail-container,
.property-inquiry-container,
.property-favorites-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ====================================
   ヒーローセクション
==================================== */
.property-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin-bottom: 40px;
}

.property-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.property-hero p {
    font-size: 18px;
    color: #6b7280;
}

/* ====================================
   検索フォーム
==================================== */
.property-search-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    border: 1px solid #e0e0e0;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}



.search-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.2s;
}

.search-field select:focus {
    outline: none;
    border-color: #2563eb;
}

.search-btn {
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #1d4ed8;
}

/* 常に2列固定レイアウトにする */
.hero-search-form .search-row{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2列固定 */
  gap: 10px 16px;
  align-items: end;
}

/* 各フィールドはグリッド幅いっぱいに */
.hero-search-form .search-field,
.hero-search-form .search-field select,
.hero-search-form .search-field input{
  width: 100%;
}

/* 送信ボタンは2列ぶち抜き（中央寄せ・横いっぱいにしたい場合） */
.hero-search-form .search-submit{
  grid-column: 1 / -1;
}



/* ====================================
   検索結果情報
==================================== */
.search-filter-info {
    margin-bottom: 30px;
}

.search-filter-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    margin-top: 5px;
}

.search-filter-info p {
    color: #6b7280;
    font-size: 16px;
}

.active-filters {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
	color:#333;
}

.filter-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #e5e7eb;
    color: #374151;
    border-radius: 6px;
    font-size: 13px;
}

/* ====================================
   物件一覧セクション
==================================== */
.property-list-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

/* ====================================
   物件グリッド
==================================== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.property-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
    transform: translateY(-4px);
}

.property-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: none;
    overflow: hidden;
}

.property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius:15px;
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 14px;
}

.property-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* お気に入りボタン */
.favorite-btn {
  background: none;
  box-shadow: none;
  border: none;
  color: #e53e3e;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

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

.favorite-btn.favorited {
    color: #ef4444;
}

/* 物件情報 */
.property-info {
    padding: 13px;
}

.property-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2; /* この行を追加 */
    overflow: hidden;
}

.catch-copy {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2; /* この行を追加 */
    overflow: hidden;
}

.property-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
}

.location {
    font-size: 13px;
    color: #6b7280;
}

.rooms {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* ====================================
   物件詳細ページ
==================================== */
.property-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background: #ffffff00;
    overflow: hidden;
    margin-bottom: 16px;
	border-radius:15px;
}

.gallery-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
	
}

.favorite-btn-large {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


.favorite-btn-large:hover {
    background: white;
    transform: scale(1.05);
}

.favorite-btn-large.favorited {
    color: #ef4444;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 5px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #2563eb;
}

.no-image-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 18px;
}

/* 物件メイン情報 */
.property-main-info {
    margin-bottom: 30px;
}

.property-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}
.related-properties-title{
	font-size: 28px;
}

.property-catch {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.property-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 20px;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 30px;
}

.price-label {
    font-size: 14px;
    color: #991b1b;
    font-weight: 500;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #ef4444;
}

.property-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.property-info-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.property-info-table th {
    text-align: left;
    padding: 14px;
    font-weight: 600;
    color: #374151;
    width: 140px;
    font-size: 14px;
}

.property-info-table td {
    padding: 8px 5px;
    color: #1f2937;
    font-size: 14px;
}

.property-description {
    margin-top: 30px;
}

.property-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.property-description p {
    line-height: 1.8;
    color: #374151;
	font-size:14px;
}

/* 会社情報ボックス */
.company-info-box {
    background: #f3f4f5;
    padding: 30px;
    margin-bottom: 30px;
}

.company-info-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.company-info-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.company-info-table th {
    text-align: left;
    padding: 12px 20px 12px 0;
    font-weight: 600;
    color: #374151;
    width: 120px;
    font-size: 14px;
}

.company-info-table td {
    padding: 8px 5px;
    color: #1f2937;
    font-size: 14px;
}

.website-disabled {
    color: #9ca3af;
    text-decoration: line-through;
}

.company-comment {
    padding: 13px;

}

.company-comment p {
    color: #374151;
    line-height: 1.7;
	font-size:16.4px;
}

/* 見学申込ボタン */
.inquiry-button-area {
    text-align: center;
    padding: 40px 0;
}

.btn-inquiry {
    display: inline-block;
    padding: 18px 48px;
    background: #2563eb;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-inquiry:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ====================================
   見学申込フォーム
==================================== */
.inquiry-header {
    text-align: center;
    margin-bottom: 40px;
}

.inquiry-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.inquiry-property-info {
    padding: 10px;
}
.inquiry-prop__name{
	color: #ff0000;
    font-size: 21px;
}


.inquiry-property-info p {
    margin: 8px 0;
    color: #374151;
}

.inquiry-form {
    background: white;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input,
.form-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background-color: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.btn-submit {
    padding: 16px 60px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
	color:#fff;
}

.inquiry-success {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.inquiry-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 20px;
}

.inquiry-success p {
    font-size: 16px;
    color: #374151;
    margin-bottom: 30px;
    line-height: 1.8;
}

.inquiry-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #fca5a5;
}

/* ====================================
   お気に入り一覧
==================================== */
.property-favorites-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    margin-top: 5px;
}

.favorites-note {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 30px;
}

/* ====================================
   空の状態
==================================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.no-results p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ====================================
   お気に入りカウント（ヘッダー用）
==================================== */
#favorite-count {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

/* ====================================
   レスポンシブ対応
==================================== */
@media (max-width: 768px) {
    .property-hero h1 {
        font-size: 28px;
    }
    
    .property-hero p {
        font-size: 16px;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    

    
    .property-search-form {
        padding: 20px;
    }
    
    .property-main-info,
    .company-info-box,
    .inquiry-form {
        padding: 10px;
    }
    
    .property-title {
        font-size: 22px;
    }
    .related-properties-title{
	font-size: 22px;
	}
    .price-value {
        font-size: 26px;
    }
    
    .property-info-table th,
    .company-info-table th {
        width: 100px;
        font-size: 13px;
		padding: 5px 10px 5px 5px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .btn-inquiry {
        padding: 14px 32px;
        font-size: 16px;
    }
	
	.favorite-btn-large {
    padding: 8px 14px;
    font-size: 13px;
	}
	
	.property-detail-container{
		padding:10px;
	}
}


/* 電話・ホームページ行の中に a が混入してもクリック無効化 */
.property-info-table .td-phone a[href^="tel"],
.property-info-table .td-website a[href]{
  pointer-events: none;
  color: inherit;
  text-decoration: none;
  cursor: default;
}

/* 共通の“ハートボタン”基礎デザイン */
.btn-heart{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px; height:36px;
  border-radius:9999px;
  background:rgba(255,255,255,.95);
  border:1.5px solid #e5e7eb;   /* #e0e0e0 でも可 */
  color:#e11d48;                /* ハート色 */
  font-size:18px;
  line-height:1;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  cursor:pointer;
  transition:transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn-heart:hover{ box-shadow:0 3px 12px rgba(0,0,0,.12); }
.btn-heart:active{ transform:scale(.96); }

/* いいね状態（JSで .is-active / .active / .liked のどれかを付与） */
.btn-heart.is-active .fav-icon,
.btn-heart.active .fav-icon,
.btn-heart.liked .fav-icon{
  content:"♥";
  font-weight:700;
}

/* 配置：カードの画像角（既存の absolute 指定があるならそれ優先に） */
.property-image .btn-heart{
  position:absolute;
  top:12px; right:12px;
}

/* 配置：タイトル横（8:2 の右エリアに収まるように） */
.property-title-area{
  display:grid;
  grid-template-columns: 8fr 2fr;  /* 8:2 */
  align-items:center;
  column-gap:12px;
  margin-bottom:20px;
}
.property-title-area .favorite-btn-title{ justify-self:end; }

/* 必要ならモバイル微調整 */
@media (max-width: 768px){
  .btn-heart{ width:34px; height:34px; font-size:17px; }
}



.property-title {
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* タイトル横のお気に入りボタン（.favorite-btn-largeと同じデザイン） */
.favorite-btn-title {
    flex-shrink: 0;
    white-space: nowrap;
    position: static !important;
    padding: 10px 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 25px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px !important;
    display: flex !important;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    color: inherit !important;
}

.favorite-btn-title:hover {
    background: #fff !important;
    border-color: #ff4081 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.favorite-btn-title.favorited {
    background: #ffe0ec !important;
    border-color: #ff4081 !important;
    color: #ff4081 !important;
}

.favorite-btn-title .fav-icon {
    font-size: 18px;
    line-height: 1;
    color: inherit;
}

.favorite-btn-title .fav-text {
    font-weight: 500;
    color: inherit;
}

/* 画像上のお気に入りボタン（既存スタイルそのまま） */
.favorite-btn-large {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorite-btn-large:hover {
    background: #fff !important;
    border-color: #ff4081 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.favorite-btn-large.favorited {
    background: #ffe0ec !important;
    border-color: #ff4081 !important;
    color: #ff4081;
}

.favorite-btn-large .fav-icon {
    font-size: 18px;
    line-height: 1;
}

.favorite-btn-large .fav-text {
    font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

    .property-title {
        width: 100%;
    }
    
    .favorite-btn-title {
        justify-content: center;
        padding: 10px 16px !important;
    }
    
    .favorite-btn-large {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 13px;
    }
}


@media (max-width: 600px) {
    .favorite-btn-large {
        top: 20px;
        right: 10px;
        padding: 5px 8px;
        font-size: 8px;
    }
}

/* お気に入りボタンのアニメーション */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
}

.favorite-btn.favorited,
.favorite-btn-large.favorited,
.favorite-btn-title.favorited {
    animation: heartBeat 0.3s ease-in-out;
}


/* 位置（カードの画像角に置く例。タイトル横は不要） */
.property-image .btn-heart{
  position:absolute; top:12px; right:12px;
}

/* 共通：ボタンリセット */
.btn-heart{
  -webkit-appearance:none; appearance:none;
  border:0; background:transparent; padding:0;
  cursor:pointer;
}

/* 未お気に入り（③枚目）：赤いハートだけ */
.btn-heart .fav-icon::before{
  content:"♡";          /* ここで描く */
  display:inline-block;
  font-size:22px;
  line-height:1;
  color:#e53e3e;        /* 赤 */
}

/* お気に入り（①枚目）：白い丸＋ピンク枠＋ピンクハート */
.btn-heart.is-active{
  width:44px; height:44px; border-radius:9999px;
  background:rgba(255,255,255,.98);
  border:2px solid #ff4b77;           /* ピンク枠 */
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  display:inline-flex; align-items:center; justify-content:center;
}
.btn-heart.is-active .fav-icon::before{
  content:"♥";          /* 塗りハート */
  font-weight:700;
  color:#ff4b77;        /* ピンク */
  font-size:20px;
}

/* ちょいアニメ */
.btn-heart{ transition:transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn-heart:active{ transform:scale(.96); }

/* モバイル微調整（任意） */
@media (max-width: 768px){
  .btn-heart.is-active{ width:40px; height:40px; }
  .btn-heart .fav-icon::before{ font-size:21px; }
}
