/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap');

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', Meiryo, sans-serif;
    padding: 0;
    margin: 0;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* キーカラー */
:root {
    --key-red: #770707;
    --key-blue: #023e71;
    --key-green: #0d5608;
    --key-yellow: #b4ab15;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
.header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.building-name {
    font-size: 2em;
    color: var(--key-blue);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--key-blue);
}

.building-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.info-section h3 {
    color: var(--key-blue);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* タグ */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--key-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* 画像ギャラリー */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-category {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 8px;
    font-size: 0.75em;
    border-radius: 3px;
    z-index: 2;
    white-space: nowrap;
}

/* 物件一覧 */
.property-list {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.property-list h2 {
    color: var(--key-blue);
    margin-top: 0;
    margin-bottom: 20px;
}

.property-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 20px;
    background: #f8f9fa;
    align-items: center;
}

.property-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #eee;
}

.property-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-details {
    flex: 1;
}

.property-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
    align-items: center;
}

.property-line:last-child {
    margin-bottom: 0;
    justify-content: flex-end;
}

.room-no {
    font-weight: bold;
    color: var(--key-blue);
    margin-right: 10px;
}

.floor-plan {
    color: #666;
    margin-right: 10px;
}

.area {
    color: #666;
}

.property-price {
    color: var(--key-red);
    font-weight: bold;
    font-size: 1.1em;
}

.property-link {
    display: inline-block;
    background: var(--key-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.property-link:hover {
    background: #0355a0;
}

/* 戻るリンク */
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--key-blue);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--key-blue);
    border-radius: 4px;
    transition: all 0.3s;
}

.back-link:hover {
    background: var(--key-blue);
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .property-item {
        grid-template-columns: 1fr;
    }
    
    .property-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .property-link {
        width: 100%;
        text-align: center;
    }
    
    .building-info {
        grid-template-columns: 1fr;
    }
} 