テンプレート:検索結果カード/styles.css
提供: 川西図鑑
その他の操作
.search-card {
border: 1px solid #e0e0e0;
border-radius: 12px;
padding: 0;
margin-bottom: 16px;
max-width: 800px;
background: #fff;
overflow: hidden;
transition: all 0.3s;
box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.search-card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
transform: translateY(-2px);
}
.card-layout {
display: flex;
flex-direction: column;
gap: 0;
}
/* 画像エリア */
.card-image-area {
flex-shrink: 0;
width: 100%;
height: 200px;
}
.img-crop {
width: 100%;
height: 100%;
overflow-x: auto;
overflow-y: hidden;
}
.image-scroll-container {
display: flex;
height: 100%;
gap: 4px;
}
.image-item {
flex-shrink: 0;
width: 200px;
height: 200px;
}
.streetview-api-placeholder {
width: 100%;
height: 100%;
}
.crop-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* コンテンツエリア */
.card-content {
flex: 1;
padding: 16px;
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 0;
}
.card-header {
margin-bottom: 12px;
}
.card-title {
margin: 0 0 6px 0;
font-size: 1.1rem;
font-weight: 600;
line-height: 1.4;
word-wrap: break-word;
overflow-wrap: break-word;
}
.card-title a {
color: #333;
text-decoration: none;
transition: color 0.2s;
}
.card-title a:hover {
color: #f59e0b;
}
.card-genre {
margin: 0;
font-size: 0.85rem;
color: #666;
word-wrap: break-word;
overflow-wrap: break-word;
}
.card-info {
display: flex;
flex-direction: column;
gap: 6px;
}
.card-cost {
margin: 0;
font-size: 0.9rem;
color: #f59e0b;
font-weight: 600;
word-wrap: break-word;
overflow-wrap: break-word;
}
.card-address {
margin: 0;
font-size: 0.85rem;
color: #777;
word-wrap: break-word;
overflow-wrap: break-word;
}
/* スマホ対応 */
@media (max-width: 768px) {
.card-image-area {
height: 180px;
}
.image-item {
width: 180px;
height: 180px;
}
.card-title {
font-size: 1rem;
}
.image-scroll-container {
gap: 2px;
}
}