/* parts/style.css */

/* 基本設定 */
body { 
    font-family: "Hiragino Sans", Meiryo, sans-serif; 
    background: var(--bg); 
    margin: 0; 
    color: #1a1a1a; 
}

.container { 
    max-width: 1150px; 
    margin: auto; 
    padding: 0 15px; 
}

/* ダッシュボード（黒帯） */
.dash { 
    background: #111; 
    color: white; 
    padding: 50px 0; 
    border-bottom: 8px solid var(--main); 
    text-align: center; 
}

.stat-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
    gap: 12px; 
    margin-bottom: 30px; 
}

/* 統計バッジ */
.badge { 
    background: #222; 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid #333; 
}

.badge b { 
    display: block; 
    font-size: 1.6em; 
    color: #ff4d4d; 
}

.n-rank { 
    background: var(--main); 
    color: white; 
    font-size: 0.7em; 
    padding: 2px 10px; 
    border-radius: 20px; 
    margin-top: 5px; 
    display: inline-block; 
    font-weight: bold; 
}

/* 宿カード */
.card { 
    background: white; 
    border-radius: 25px; 
    margin-bottom: 50px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.1); 
    overflow: hidden; 
}

.main-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
}

@media (min-width: 900px) { 
    .main-grid { grid-template-columns: 420px 1fr; } 
}

/* 画像ボックス */
.image-box { 
    position: relative; 
    height: 100%; 
    min-height: 380px; 
    overflow: hidden; 
}

.image-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.image-box:hover img { 
    transform: scale(1.1); 
}

/* コンテンツ */
.content-box { 
    padding: 35px; 
}

.hotel-name-link { 
    font-size: 1.8em; 
    font-weight: 900; 
    color: var(--blue); 
    text-decoration: none; 
    line-height: 1.2; 
    display: block; 
}

.review-special-link { 
    color: var(--gold); 
    text-decoration: underline; 
    font-weight: bold; 
    font-size: 0.95em; 
    display: block; 
    margin: 10px 0; 
}

/* スコア表 */
.score-matrix { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); 
    gap: 8px; 
    margin: 20px 0; 
}

.score-cell { 
    background: #f8f9fa; 
    padding: 10px; 
    border-radius: 10px; 
    text-align: center; 
    border-bottom: 4px solid #eee; 
    text-decoration: none; 
    color: inherit; 
}

.score-cell.hot { 
    border-color: var(--main); 
    background: #fff5f5; 
}

.score-cell b { 
    font-size: 1.2em; 
    display: block; 
}

.score-cell small { 
    font-size: 0.65em; 
    color: #888; 
    display: block; 
}

.rank-label { 
    font-size: 0.52em; 
    color: #999; 
    display: block; 
    margin-top: 3px; 
    line-height: 1.3; 
}

/* タグ・ボタン */
.tag { 
    background: #f0f4f8; 
    color: #555; 
    font-size: 0.75em; 
    padding: 4px 10px; 
    border-radius: 5px; 
    margin: 2px; 
    display: inline-block; 
}

.tag.special { 
    background: #fff5f5; 
    color: var(--main); 
    font-weight: bold; 
}

.btn { 
    padding: 18px 10px; 
    text-align: center; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 12px; 
    font-size: 1.1em; 
    transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    display: block; 
}

.btn-red { 
    background: linear-gradient(135deg, #bf0000 0%, #8b0000 100%); 
    color: white !important; 
}

.btn-red:hover { 
    background: linear-gradient(135deg, #e60000 0%, #bf0000 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(191,0,0,0.3); 
}

@media (max-width: 600px) {
    .score-matrix {
        grid-template-columns: 1fr 1fr; /* スマホでは2列ずつ並べる */
    }
}