/* CSS Document */

#page-header img {
	min-width: 100%;
	height: auto;

}

.page_title {
	text-align: center;
	margin-bottom: 40px;
	margin-top: 40px;
}

.page_title h2 {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.6;
    color: #333;
}


.property_card {
    max-width: 960px; /* サイト幅に合わせる */
    margin: 0 auto 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* clearfix (float解除) */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.property_card .property_image {
    float: left;
    width: 40%;
}
.property_card .property_image img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

.property_card .property_details {
    float: right;
    width: 58%; /* 画像との隙間を 2% に設定 */
}

.property_card h4 {
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid #8ec11f; /* サイトのテーマカラー(緑)と仮定 */
    padding-bottom: 10px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.property_card dl {
    width: 100%;
    margin-bottom: 15px;

    /* ▼▼▼ CSS Grid に変更 ▼▼▼ */
    display: grid;
    grid-template-columns: 90px auto; /* 90pxのラベル列 と 残りのデータ列 */
    border-top: 1px solid #ddd; /* 罫線を margin から border に変更 */
}

.property_card dt {
    
    padding: 8px 0;
    font-weight: bold;
    background: #eee;
    text-align: center;
    font-size: 13px;
    box-sizing: border-box;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;

    
    display: flex;
    justify-content: center;
    align-items: center;
}

.property_card dd {
    
    padding: 8px 10px;
    background: #fff;
    box-sizing: border-box;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    
    display: flex;
    align-items: center;
}

/* Sales Price (dd span) */
.property_card dd span {
    font-size: 26px;
    font-weight: bold;
    color: #d90000;
    margin-right: 5px;
}


.property_card dt:first-of-type + dd {
    align-items: baseline;
}


.property_card dt:nth-of-type(2) + dd {
    align-items: flex-start;
}


.property_card dt:nth-of-type(4) + dd {
    align-items: flex-start;
}


.property_card .details_button {
    display: inline-block; /* ボタンとして表示 */
    background-color: #8ec11f; /* ボタンの背景色（緑色） */
    color: #fff; /* 文字色 */
    font-weight: bold;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px; 
    text-decoration: none; 
    text-align: center;
    margin-top: 15px;
    transition: background-color 0.3s ease; 
}

.property_card .details_button:hover {
    background-color: #7ab314; /* ホバー時の背景色を少し濃くする */
}
