テンプレート:検索結果カード/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: #1a73e8;
text-decoration: none;
transition: color 0.2s;
}
.card-title a:hover {
color: #1557b0;
text-decoration: underline;
}
.card-title a:visited {
color: #681da8;
}
.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;
}
}
/* ========================================
ダークモード対応
======================================== */
html.skin-theme-clientpref-night .search-card {
background: #1e1e1e;
border-color: #3a3a3a;
}
html.skin-theme-clientpref-night .card-title a {
color: #8ab4f8;
}
html.skin-theme-clientpref-night .card-title a:hover {
color: #aecbfa;
}
html.skin-theme-clientpref-night .card-title a:visited {
color: #c58af9;
}
html.skin-theme-clientpref-night .card-genre {
color: #9aa0a6;
}
html.skin-theme-clientpref-night .card-cost {
color: #ffa726;
}
html.skin-theme-clientpref-night .card-address {
color: #9aa0a6;
}
/* 自動モード(ダーク時) */
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .search-card {
background: #1e1e1e;
border-color: #3a3a3a;
}
html.skin-theme-clientpref-os .card-title a {
color: #8ab4f8;
}
html.skin-theme-clientpref-os .card-title a:hover {
color: #aecbfa;
}
html.skin-theme-clientpref-os .card-title a:visited {
color: #c58af9;
}
html.skin-theme-clientpref-os .card-genre {
color: #9aa0a6;
}
html.skin-theme-clientpref-os .card-cost {
color: #ffa726;
}
html.skin-theme-clientpref-os .card-address {
color: #9aa0a6;
}
}