*{
box-sizing:border-box;
}

body{
margin:0;
font-family:'Noto Sans JP',sans-serif;
background:#f5f5f5;
color:#333;
line-height:1.6;
}

a{
text-decoration:none;
color:inherit;
}

/* ヘッダー */

header{
background:linear-gradient(135deg,#7f1d1d,#b91c1c);
color:white;
padding:28px 20px;
text-align:center;
}

header h1{
margin:0;
font-size:26px;
font-weight:700;
}

header p{
margin-top:6px;
font-size:14px;
opacity:0.9;
}

.breadcrumb{
max-width:1200px;
margin:20px auto 0;
padding:0 20px;
font-size:13px;
color:#666;
}

/* レイアウト */

.container{
max-width:1200px;
margin:auto;
padding:30px 20px;
}

.grid{
display:flex;
flex-wrap:wrap;
gap:20px;
}

/* 売約済 */

.sold{
order:9999;
opacity:0.6;
position:relative;
}

.sold::after{
content:"売約済";
position:absolute;
top:16px;
left:16px;
background:#6b7280;
color:white;
padding:6px 12px;
font-size:12px;
font-weight:bold;
border-radius:6px;
}

/* カード */

.card{
background:white;
border-radius:18px;
padding:18px;
box-shadow:0 12px 30px rgba(185,28,28,0.08);
transition:0.3s ease;
display:flex;
flex-direction:column;
position:relative;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 18px 40px rgba(185,28,28,0.15);
}

.card img{
width:100%;
aspect-ratio:4/3;
object-fit:cover;
border-radius:14px;
margin-bottom:12px;
}

/* メーカー */

.badge{
display:inline-block;
background:#f3f4f6;
color:#000;
border:2px solid #000;
padding:6px 14px;
border-radius:20px;
font-size:12px;
margin-bottom:10px;
font-weight:600;
}

/* 価格 */

.price{
font-size:22px;
font-weight:800;
color:#dc2626;
margin:10px 0;
}

/* 仕様 */

.spec{
font-size:14px;
color:#555;
}

/* ボタン */

.btn{
margin-top:auto;
display:block;
text-align:center;
background:#b91c1c;
color:white;
padding:12px;
border-radius:30px;
font-weight:600;
transition:0.3s;
}

.btn:hover{
background:#dc2626;
}

/* フッター */

footer{
text-align:center;
padding:20px;
background:#7f1d1d;
color:#eee;
font-size:13px;
}

/* トップボタン */

.home-btn{
display:inline-block;
margin:30px auto;
padding:14px 26px;
background:#b91c1c;
color:#fff;
border-radius:30px;
font-weight:600;
text-align:center;
}

.home-btn:hover{
background:#dc2626;
}

/* PC */

@media (min-width:1025px){

.card{
width:calc(25% - 15px);
}

}

/* タブレット */

@media (min-width:769px) and (max-width:1024px){

.card{
width:calc(50% - 10px);
}

}

/* スマホ */

@media (max-width:768px){

body{
background:#fff;
}

.container{
padding:0;
}

.grid{
flex-direction:column;
gap:14px;
}

.card{
width:100%;
border-radius:0;
padding:16px;
box-shadow:none;
border-bottom:8px solid #f3f4f6;
}

.price{
font-size:26px;
}

.btn{
font-size:16px;
padding:16px;
border-radius:12px;
}

}