/* ==================================================
   価格帯別ページ
================================================== */

.page-content{
    max-width:1200px;
    margin:0 auto;
    padding:24px;
}


/* ==================================================
   パンくず
================================================== */

.breadcrumb{
    margin-bottom:24px;
    font-size:14px;
}

.breadcrumb-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    list-style:none;
    margin:0;
    padding:0;
}

.breadcrumb-item{
    display:flex;
    gap:8px;
    align-items:center;
}

.breadcrumb-item a{
    color:#1976d2;
    text-decoration:none;
}

.breadcrumb-item a:hover{
    text-decoration:underline;
}


/* ==================================================
   ヘッダー
================================================== */

.ranking-header{
    margin-bottom:40px;
}

.ranking-header-label{
    color:#777;
    font-size:14px;
    margin:0 0 8px;
}

.ranking-title{
    margin:0 0 12px;
    font-size:34px;
    line-height:1.4;
}

.ranking-description{
    margin:0 0 16px;
    line-height:1.8;
}

.ranking-count,
.ranking-updated-at{
    margin:6px 0 0;
    color:#666;
    font-size:14px;
}


/* ==================================================
   一覧
================================================== */

.ranking-list{
    list-style:none;
    margin:0;
    padding:0;
}

.ranking-item{
    margin-bottom:20px;
}


/* ==================================================
   カード全体
================================================== */

.ranking-machine-link{
    display:flex;
    gap:24px;

    padding:20px;

    background:#fff;

    border:1px solid #ddd;
    border-radius:10px;

    color:inherit;
    text-decoration:none;

    transition:
        border-color .2s,
        box-shadow .2s,
        transform .2s;
}

.ranking-machine-link:hover{
    border-color:#1976d2;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
    transform:translateY(-2px);
}


/* ==================================================
   画像
================================================== */

.ranking-image-area{
    width:180px;
    flex-shrink:0;
}

.ranking-image{
    display:block;
    width:100%;
    height:180px;

    object-fit:contain;

    background:#f7f7f7;
    border-radius:8px;
}

.ranking-image-placeholder{
    display:flex;
    justify-content:center;
    align-items:center;

    width:100%;
    height:180px;

    background:#eee;
    border-radius:8px;

    color:#888;
    font-size:13px;
}


/* ==================================================
   コンテンツ
================================================== */

.ranking-content{
    flex:1;
    min-width:0;
}

.ranking-maker{
    margin:0 0 6px;
    color:#777;
    font-size:14px;
}

.ranking-machine-name{
    margin:0 0 18px;

    font-size:24px;
    line-height:1.5;

    overflow-wrap:anywhere;
}


/* ==================================================
   価格一覧
================================================== */

.ranking-price-list{
    margin:0 0 20px;
}

.ranking-price-row{
    display:flex;
    justify-content:space-between;
    gap:20px;

    padding:8px 0;

    border-bottom:1px solid #eee;
}

.ranking-price-row dt{
    color:#666;
    font-weight:normal;
}

.ranking-price-row dd{
    margin:0;
    font-weight:bold;
    text-align:right;
}

.ranking-price-row-primary{
    padding:12px 0;
}

.ranking-price-row-primary dt{
    display:flex;
    align-items:center;
    font-weight:bold;
}

.ranking-price-row-primary dd{
    color:#d32f2f;
    font-size:26px;
    line-height:1.3;
}


/* ==================================================
   商品数・販売店数
================================================== */

.ranking-meta{
    display:flex;
    flex-wrap:wrap;
    gap:24px;

    margin-bottom:18px;
}

.ranking-meta-item{
    margin:0;
}

.ranking-meta-label{
    margin-right:6px;
    color:#666;
}

.ranking-meta-value{
    font-size:18px;
}


/* ==================================================
   最安ショップ
================================================== */

.ranking-lowest-shop{
    margin:0 0 18px;
    color:#555;
}


/* ==================================================
   詳細ボタン
================================================== */

.ranking-detail-button{
    display:inline-block;

    padding:10px 20px;

    border-radius:6px;

    background:#1976d2;
    color:#fff;

    font-weight:bold;

    transition:
        background-color .2s,
        transform .2s;
}

.ranking-machine-link:hover .ranking-detail-button{
    background:#125ca5;
}


/* ==================================================
   表示件数注記
================================================== */

.price-range-limit-note{
    margin:28px 0 0;
    padding:16px 20px;

    background:#f5f7fa;
    border-radius:8px;

    color:#555;
    font-size:14px;
    line-height:1.7;
    text-align:center;
}


/* ==================================================
   データなし
================================================== */

.ranking-empty{
    padding:80px 20px;

    border:1px solid #ddd;
    border-radius:10px;

    text-align:center;
}

.ranking-empty-title{
    margin:0 0 16px;
}

.ranking-empty-description{
    margin:0 0 24px;
}


/* ==================================================
   下部ナビ
================================================== */

.ranking-bottom-navigation{
    display:flex;
    justify-content:center;
    gap:20px;

    margin-top:50px;
}

.ranking-bottom-navigation a{
    text-decoration:none;
}


/* ==================================================
   共通ボタン
================================================== */

.button{
    display:inline-block;

    padding:12px 24px;

    border-radius:6px;

    text-decoration:none;
    font-weight:bold;
}

.button-primary{
    background:#1976d2;
    color:#fff;
}

.button-secondary{
    background:#f3f3f3;
    color:#333;
}


/* ==================================================
   visually-hidden
================================================== */

.visually-hidden{
    position:absolute;

    width:1px;
    height:1px;

    margin:-1px;
    padding:0;

    overflow:hidden;

    clip:rect(0,0,0,0);
    white-space:nowrap;

    border:0;
}


/* ==================================================
   タブレット
================================================== */

@media (max-width:900px){

    .ranking-machine-link{
        gap:20px;
    }

    .ranking-image-area{
        width:150px;
    }

    .ranking-image,
    .ranking-image-placeholder{
        height:150px;
    }

    .ranking-machine-name{
        font-size:21px;
    }

}


/* ==================================================
   スマートフォン
================================================== */

@media (max-width:640px){

    .page-content{
        padding:16px;
    }

    .ranking-header{
        margin-bottom:28px;
    }

    .ranking-title{
        font-size:26px;
    }

    .ranking-machine-link{
        flex-direction:column;
        gap:16px;

        padding:16px;
    }

    .ranking-image-area{
        width:100%;
    }

    .ranking-image{
        width:100%;
        max-width:280px;
        height:240px;
        margin:0 auto;
    }

    .ranking-image-placeholder{
        max-width:280px;
        height:240px;
        margin:0 auto;
    }

    .ranking-machine-name{
        margin-bottom:14px;
        font-size:20px;
    }

    .ranking-price-row{
        gap:12px;
    }

    .ranking-price-row-primary dd{
        font-size:23px;
    }

    .ranking-meta{
        flex-direction:column;
        gap:8px;
    }

    .ranking-detail-button{
        display:block;
        text-align:center;
    }

    .ranking-bottom-navigation{
        flex-direction:column;
    }

    .ranking-bottom-navigation .button{
        text-align:center;
    }

}