@charset "utf-8";

/* ------------------------------------------
   index.php, category.php, page.php, aside.php 共通スタイル
------------------------------------------ */

/* --- index.php / category.php --- */

.property-list {
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
    /* 各物件間のスペース */
}

.property-card {
    border: 2px solid #aeccff;  /* 水色,枠線 */
    overflow: hidden;
    background-color: #fff;
    border-radius: 8px;
}

.property-card-header {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
}

/* index.php用 */
.property-card-header.index-header {
    background-color: #e1ecff;  /* 薄い水色 */
}

/* category.php用 */
.property-card-header.category-header {
    background-color: #e1ecff;  /* 薄い水色 */
}

.property-card-header h2 {
    font-size: 1.3em;
    font-weight: 500;
    color: #005a9e;  /* 青、文字色 */
}

.property-card-body {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.property-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 240px;
    flex-shrink: 0;
}

.property-images .main-image img {
    width: 100%;
    height: 180px;
    border: 1px solid #eee;
    object-fit: cover;
    border-radius: 5px;
}

/* タブレット・スマホ表示 */
@media screen and (max-width: 840px) {
    .property-images {
        width: 180px;
    }
    .property-images .main-image img {
        height: 120px;
    }
}

.property-info {
    flex-grow: 1;
}

.price-section {
    margin-bottom: 1rem;
    text-align: right;
}

.price-section .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d00;
}

table.details-table {
    width: 100%;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-collapse: separate; /* border-radiusを有効にするために必要 */
    border-spacing: 0;
    overflow: hidden; /* 角丸からはみ出す部分を隠す */
}

.details-table th,
.details-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: left;
    vertical-align: top;
}

.details-table th {
    background-color: #f9f9f9;
    width: 80px;
    text-align: center;
    font-weight: normal;
}

.transport-info {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.onepoint {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #e1ecff;
    border: 1px solid #aeccff;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.property-card-footer {
    padding: 1rem;
    border-top: 1px solid #aeccff;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.details-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #4299e1;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.details-button:hover {
    background-color: #3182ce;
    color: white;
}

.contact-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #48bb78;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.contact-button:hover {
    background-color: #38a169; /* A slightly darker green */
    color: white;
}

.no-properties-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 630px;      /* mainの幅をキープした */
    min-height: 300px; /* 高さを確保してレイアウト崩れを防ぐ */
    border: 1px dashed #ccc;
    background-color: #f9f9f9;
}

.no-properties {
    font-size: 1.1rem;
    color: #555;
}
