/* メインコンテンツ */
.page-header {
    background: linear-gradient(135deg, #fff9f0 0%, #ffe8d0 100%);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237, 141, 48, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 3rem;
    color: #c05f1a;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
    position: relative;
    z-index: 2;
}

/* 検索フォーム */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 1px solid #f0f0f0;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #c05f1a;
    font-size: 0.9rem;
}

.form-group select {
    padding: 0.8rem 1rem;
    border: 2px solid #ffe8d0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    min-width: 150px;
}

.form-group select:focus {
    outline: none;
    border-color: #c05f1a;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
    height: fit-content;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(230, 126, 34, 0.4);
}

/* 物件一覧 */
.properties-section {
    margin-bottom: 3rem;
    padding: 60px 0;    /* セクション上下の余白を確保 */
    min-height: 360px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.property-card {
    display: block; /* リンク要素をブロック要素にして高さを確保 */
    height: 100%; /* グリッド内で高さ全体を使う */
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

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

.property-image {
    height: 200px;
    background: linear-gradient(135deg, #fff9f0 0%, #ffe8d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.property-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(237, 141, 48, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.property-info {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.3rem;
    color: #c05f1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.property-price {
    font-size: 1.5rem;
    color: #e67e22;
    font-weight: bold;
    margin-bottom: 1rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.property-badge {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-area-badge {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.properties-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.property-list {
    display: grid;
    /* ★デスクトップでは3列、カードの最小幅は300pxを確保するように変更★ */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; /* カード間のスペース */
    margin-top: 30px;
}

.card-image {
    position: relative;
    overflow: hidden;
    /* 画像の高さを固定（例：200px）*/
    height: 200px; 
}

.card-image img {
    width: 100%;
    height: 100%;
    /* 画像がコンテナ全体を覆うようにする */
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.card-content {
    padding: 15px;
    display: flex; 
    flex-direction: column;
    /* 画像（200px）以外の残りの高さを確保 */
    height: calc(100% - 200px); 
}

/* 価格表示 */
.card-price {
    font-size: 1.5rem;
    color: #c05f1a;
    font-weight: bold;
    margin: 5px 0 10px;
}

/* 詳細リスト */
.card-details {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: #666;
    /* ★カード下部を底上げし、情報を押し広げる★ */
    flex-grow: 1; 
}

/* 結果表示 */
.results-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff9f0 0%, #ffe8d0 100%);
    border-radius: 12px;
    color: #c05f1a;
    font-weight: 600;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .page-title {
        font-size: 2rem;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        margin-top: 1rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.6s ease forwards;
}

.property-card:nth-child(1) {
    animation-delay: 0.1s;
}

.property-card:nth-child(2) {
    animation-delay: 0.2s;
}

.property-card:nth-child(3) {
    animation-delay: 0.3s;
}

.property-card:nth-child(4) {
    animation-delay: 0.4s;
}

.property-card:nth-child(5) {
    animation-delay: 0.5s;
}

.property-card:nth-child(6) {
    animation-delay: 0.6s;
}

.property-card.hidden {
    display: none;
}


/* =========================================
   詳細ページ (Single Property) 用スタイル - オレンジVer.
   ========================================= */
.property-single-container {
    padding-top: 150px;
    padding-bottom: 80px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}
.breadcrumb a {
    color: #c05f1a;
    text-decoration: none;
}

/* ヘッダー周り */
.property-header {
    border-bottom: 2px solid #e67e22; /* オレンジの線 */
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.property-status-badge {
    background: linear-gradient(135deg, #e67e22, #f39c12); /* グラデーションボタン */
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: bold;
}
.property-header h1 {
    font-size: 1.6rem;
    color: #333;
    margin: 0;
}
.property-id {
    margin-left: auto;
    font-size: 0.9rem;
    color: #888;
}

/* メインコンテンツ（画像と概要） */
.property-main-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}
.property-gallery {
    flex: 1;
    max-width: 50%;
}
.main-image-frame {
    border: 1px solid #ffe8d0;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
}
.property-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.property-gallery .caption {
    text-align: center;
    font-size: 0.9rem;
    color: #c05f1a;
    margin-top: 8px;
    font-weight: 600;
}

.property-summary {
    flex: 1;
}

/* 価格ボックス */
.price-box {
    background: #fff9f0; /* 薄いオレンジ背景 */
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #ffe8d0;
    text-align: center;
}
.price-box .label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #c05f1a;
    margin-bottom: 5px;
}
.price-box .price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #e67e22; /* アクセントのオレンジ */
    letter-spacing: -1px;
}

/* 概要テーブル */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 0.95rem;
}
.summary-table th {
    width: 30%;
    color: #888;
    font-weight: normal;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.summary-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
}

/* 問い合わせボタンエリア */
.contact-btn-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btn-contact {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    padding: 16px;
    border-radius: 50px; /* 丸みのあるボタン */
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
}
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}
.btn-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #c05f1a;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid #ffe8d0;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-tel:hover {
    background: #fff9f0;
}

/* =========================================
   ATBB風 詳細スペックテーブル (オレンジVer)
   ========================================= */
.property-details-section {
    margin-top: 40px;
}

/* セクション見出し */
.property-details-section h2 {
    background: #fff9f0; /* 薄いクリーム色 */
    padding: 12px 20px;
    border-left: 6px solid #c05f1a; /* 濃いオレンジ */
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #333;
    border-radius: 0 8px 8px 0;
}

.detail-group {
    margin-bottom: 40px;
}

/* 小見出し */
.detail-group h3 {
    font-size: 1.1rem;
    color: #c05f1a;
    margin-bottom: 15px;
    border-bottom: 1px solid #ffe8d0;
    padding-bottom: 8px;
    display: inline-block;
}

/* テーブルデザイン */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ffe8d0; /* 枠線も薄いオレンジ */
    font-size: 0.9rem;
}
.detail-table th {
    background: #ffe8d0; /* ヘッダー背景：オレンジ系クリーム */
    color: #8a4b2a; /* テキスト：茶色系 */
    padding: 12px;
    border: 1px solid #f3dcb8;
    width: 15%;
    font-weight: 600;
    vertical-align: middle;
}
.detail-table td {
    padding: 12px;
    border: 1px solid #f3dcb8;
    background: #fff;
    width: 35%;
    color: #333;
    vertical-align: middle;
}

/* 備考などの長文エリア */
.detail-table td[colspan="3"] {
    width: auto;
    line-height: 1.8;
}

.back-link {
    text-align: center;
    margin-top: 60px;
}
.back-link a {
    color: #c05f1a;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #c05f1a;
    padding-bottom: 2px;
}

/* ==================================== */
/* ★ 物件詳細ページ - ギャラリースライドショー CSS */
/* ==================================== */

.property-header {
    margin-bottom: 40px;
    position: relative; /* スライダーボタンの基準点とする */
}

.property-gallery-slider {
    position: relative;
    max-width: 1000px; /* 必要に応じてサイズを調整 */
    margin: 0 auto;
    overflow: hidden; /* スライドのアウトラインを隠す */
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slides-container {
    /* スライドがフェードイン/アウトするときに干渉しないように */
    position: relative; 
    width: 100%;
    height: auto;
}

.gallery-item {
    display: none; /* デフォルトで非表示 */
    animation: fade 0.8s; /* フェードアニメーションを適用 */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* 画像の高さを制限する場合 */
}

/* フェードアニメーション */
@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* ★ 矢印（前/次）のスタイル */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* ★ ドットナビゲーションのスタイル */
.dots-container {
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 10px; /* スライダー画像の上に重ねる */
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* スライダーを横に並べるための設定 */
.property-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #f0f0f0;
}
.main-slider {
    display: flex; /* 横一列に並べる */
    transition: transform 0.5s ease-in-out; /* 動くスピード */
}
.slide {
    min-width: 100%; /* 1枚が横幅いっぱい */
}
.slide img {
    width: 100%;
    height: 450px;
    object-fit: contain; /* 写真が切れないように表示 */
}
/* 枚数カウンター */
.slider-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 2px 10px;
    border-radius: 15px;
}

@media (max-width: 900px) {
    .property-list {
        /* ★900px以下では2列表示にする★ */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .property-main-content {
        flex-direction: column;
        gap: 30px;
    }
    .property-gallery {
        max-width: 100%;
    }
    .detail-table th, .detail-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .detail-table th {
        background: #fff9f0;
        border-bottom: none;
    }
}