
#contents{
    background-color: #eeeeee;
}
#property-detail-container {
    /* サイト全体の幅に合わせて調整してください (例: 960px) */
    margin: 0px auto; /* 中央揃え */
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, Osaka, "MS PGothic", sans-serif;
}

.property-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0px;
    color: #333;
    padding-top: 30px;
}

.property-badges {
    text-align: center;
    margin-bottom: 25px;
}

.property-badges .badge {
    display: inline-block;
    background-color: #006837; /* 画像の緑色 */
    color: #FFFF00;
    padding: 10px 35px;
    border-radius: 40px; /* 角を丸くする */
    font-size: 35px;
    font-weight: bold;
    margin: 3px 1px;

}

.property-description {
    margin-left: 130px;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: left;
    max-width: 980px;
    background-color: #ffffff; /* 背景を白に */
    padding: 25px;             /* 内側に余白を追加 (調整可能) */
    border-radius: 8px;        /* 少し角を丸くする (調整可能) */
}

.property-gallery-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

/* 1. 一番上: メインスライドショー */
.main-slideshow-area {
    position: relative; 
    width: 100%;
    max-width: 800px; 
    margin: 0 auto 20px auto; 
    overflow: hidden; /* ▼ 追加: はみ出た画像を隠す (重要) */
}

.slideshow-image-wrapper {
    display: flex; /* 中の画像を横並びにする */
    width: 100%;
    /* ▼ 追加: スライドのアニメーション設定 (0.5秒) */
    transition: transform 0.5s ease-in-out; 
}

.slide-image {
    width: 100%; /* コンテナ幅いっぱいに */
    height: auto;
    flex-shrink: 0; /* 画像が縮まないようにする (重要) */
    display: block;
    border: 1px solid #ccc; /* 枠線 */
    box-sizing: border-box; /* 枠線を含めて幅100%にする */
}


.gallery-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.gallery-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.prev-button {
    left: 10px;
}
.next-button {
    right: 10px;
}

/* 2. 下のエリア (左右分割) */
.bottom-content-area {
    display: flex; /* ← これが左右を分割します */
    justify-content: space-between; 
}

/* 2-1. 左下: 固定画像 */
.bottom-left-image {
    width: 35%; /* ← これで左側の幅を決めます */
    margin-left: 10px;
}

/* 2-2. 右下: サムネイルギャラリー */
.thumbnail-gallery-area {
    width: 65%; /* ← これで右側の幅を決めます */
}

/* サムネイルギャラリー内部 (4列表示) */
.thumbnail-images {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* ← ここを 4 に変更します */
    gap: 3px; /* 画像間の隙間 (調整可能) */

    width: 100%;
    max-height: 400px; 
    overflow-y: auto; 
    border: 1px solid #eee;
    box-sizing: border-box; 
}

.thumbnail-images img {
    width: 90%;
    height: auto;
    cursor: pointer; 
}

.thumbnail-images img:hover {
    border-color: #999; 
}

.thumbnail-images img.active {
    border-color: #006837; 
}


@media (max-width: 768px) {
    .bottom-content-area {
        flex-direction: column; /* 縦並びに変更 */
    }

    .bottom-left-image,
    .thumbnail-gallery-area {
        width: 100%; /* 全幅にする */
        margin-bottom: 20px; /* 下に隙間 */
    }

    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr); /* スマホでも4列 (調整可能) */
        max-height: 250px; /* スマホでの高さを調整 */
    }
}


/* --- 物件概要テーブル --- */
.property-specs {
    width: 100%;
    border-collapse: collapse; /* 枠線を重ねる */
    border-top: 2px solid #555;
    border-bottom: 2px solid #555;
    font-size: 14px;
}

.property-specs th,
.property-specs td {
    border-bottom: 1px solid #ccc;
    padding: 14px 10px;
    vertical-align: top; 
    text-align: left; /* 左揃え */
}

.property-specs th {
    background-color: #f7f7f7; /* ヘッダーセル(th)の背景色 (薄いグレー) */
    font-weight: bold;
    width: 15%; /* ヘッダーセルの幅 */
}

.property-specs td {
    background-color: #ffffff; /* データセル(td)の背景色 (白) */
    width: 18.333%; /* データセルの幅 */
}

/* 2列目と3列目(のthとtd)にだけ、左側の縦線を追加 */
.property-specs tr th:nth-child(n+2),
.property-specs tr td:nth-child(n+2) {
    border-left: 1px solid #ccc;
}

/* --- 設備・特徴 タグリストのスタイル (これは前回のまま) --- */
.property-specs td.features-cell {
    background-color: #f7f7f7; 
    vertical-align: top;
}
.features-list {
    display: flex;       
    flex-wrap: wrap;     
    gap: 8px;            
}
.features-list span {
    display: inline-block;
    padding: 6px 10px;        
    font-size: 8px;          
    color: #333;              
    background-color: #ffffff; 
    border: 1px solid #ccc;  
    border-radius: 4px;       
    line-height: 1.4;         
}

/* 各行(tr)の最後のセル(td)だけ、右側の線を削除 */
.property-specs tr td:last-child {
    border-right: none;
}

/* --- 設備・特徴 タグリストのスタイル (ここから追記) --- */

/* 「設備・特徴」のセル(td)だけ、他のtdとスタイルを変更 */
.property-specs td.features-cell {
    background-color: #f7f7f7; /* セルの背景を薄いグレーに (th と同じ色) */
    vertical-align: top;
}

/* タグ全体を囲むラッパー */
.features-list {
    display: flex;       /* タグを横並びにする (Flexbox) */
    flex-wrap: wrap;     /* セルの幅で自動的に折り返す */
    gap: 5px;            /* タグ間の隙間 (上下 8px, 左右 8px) */
}

/* 各タグ(span)のスタイル */
.features-list span {
    display: inline-block;
    padding: 4px 10px;        /* タグの内側の余白 */
    font-size: 12px;          /* 文字サイズ (調整可能) */
    color: #333;              /* 文字色 */
    background-color: #ffffff; /* タグの背景色 (白) */
    border: 1px solid #ccc;  /* タグの枠線 (グレー) */
    border-radius: 4px;       /* 角を少し丸くする */
    line-height: 1.4;         /* 文字の行間 */
}
/* --- (追記ここまで) --- */

.property-specs tr th:nth-child(n+2),
.property-specs tr td:nth-child(n+2) {
   border-left: 1px solid #ccc;
}

