@charset "utf-8";

/* -------------------------------------------------- page.php */

body#page {
    background-color: #fff;
    margin: 0;
    padding: 0;
}
.property-header {
    background-color: #e1ecff;
    padding: 1.5rem;
    border: 1px solid #aeccff;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.property-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.property-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #005a9e;
    margin-bottom: 0.5rem;
}

.property-header .price {
    font-size: 2em;
    font-weight: 500;
    color: #d00;
    text-align: right;
    white-space: nowrap;
}

.onepoint-message {
    background-color: #fff;
    border: 1px solid #aeccff;
    border-left: 5px solid #005a9e;
    border-radius: 0 5px 5px 0;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
    flex-grow: 1;
}
.price-wrapper {
    margin-left: auto; /* onepoint-messageが無い場合に価格を右に寄せる */
    flex-shrink: 0; /* 価格が縮まないようにする */
}


/* タブレット・スマホ表示 */
@media screen and (max-width: 840px) {
.property-header .price {
    font-size: 1.5rem;
}
}
.property-section {
    background-color: #fff;
    border: 1px solid #aeccff;
    margin-bottom: 1.5rem;
}

section {
    border-radius: 5px;
}

.section-header {
    padding: 0.75rem 1rem;
    background-color: #e1ecff;
    border-bottom: 1px solid #aeccff;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #005a9e;
}

.section-body {
    padding: 0;
}

table.details-table {
    width: 100%;
    border-spacing: 0;
}

.details-table th,
.details-table td {
    border: 1px solid #aeccff;
    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;
}

.main-image-container img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border: 1px solid #eee;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.gallery-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 1px solid #eee;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-grid img:hover {
    opacity: 0.8;
}

.remarks-content {
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 5px 10px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.no-property {
    text-align: center;
    color: #e53e3e;
    font-size: 1.5rem;
    padding: 3rem;
}

.gallery-thumbnail {
    width: 100%;
    height: 120px;
    /* サムネイルの高さ */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* details-table は home_category.css と共通だが page.php でも使うのでここに含める */
.details-table th {
    width: 140px;
    text-align: left;
}