@charset "UTF-8";
/* ==========================================
   popular.css - 人気ソフトTOP20 / 過去最安値ページ専用
   ========================================== */

/* ==========================================
   1. パンくずリスト
   ========================================== */
.breadcrumb {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 16px;
    font-size: 13px;
}
.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumb li {
    color: rgba(255,255,255,0.6);
}
.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: rgba(255,255,255,0.35);
}
.breadcrumb a {
    color: var(--ps-blue, #4fc3f7);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: rgba(255,255,255,0.85); font-weight: 600; }

/* ==========================================
   2. ページヘッダー
   ========================================== */
.popular-main, .lowprice-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}
.popular-header, .lowprice-header {
    text-align: center;
    padding: 18px 12px 24px;
}
.popular-header h1, .lowprice-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}
.popular-header p, .lowprice-header p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .popular-header h1, .lowprice-header h1 { font-size: 22px; }
    .popular-header p, .lowprice-header p   { font-size: 13px; }
}

/* ==========================================
   3. TOP3 大カード（豪華）
   ========================================== */
.top3-section { margin-bottom: 40px; }
.top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.top3-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(40,40,60,0.85) 0%, rgba(25,25,40,0.95) 100%);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}
.top3-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.5);
}
.top3-card--gold   { border-color: #ffd34e; }
.top3-card--silver { border-color: #c8c8d0; }
.top3-card--bronze { border-color: #d8854b; }

.top3-medal {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 26px;
    color: #fff;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.top3-medal--gold   { background: linear-gradient(135deg, #ffd34e 0%, #f59e0b 100%); }
.top3-medal--silver { background: linear-gradient(135deg, #e1e1e8 0%, #9da0ad 100%); }
.top3-medal--bronze { background: linear-gradient(135deg, #d8854b 0%, #8b5a2b 100%); }

.top3-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #1a1a2a;
    overflow: hidden;
}
.top3-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.top3-card:hover .top3-card-img img { transform: scale(1.04); }

.top3-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.top3-card-genre {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.top3-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.top3-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}
.top3-card-price s {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}
.top3-card-price strong {
    color: #ff7a59;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

@media (max-width: 900px) {
    .top3-grid { grid-template-columns: 1fr; gap: 14px; }
    .top3-card-img { aspect-ratio: 16 / 9; }
    .top3-medal { width: 48px; height: 48px; font-size: 22px; }
    .top3-card-title { font-size: 16px; }
    .top3-card-price strong { font-size: 20px; }
}

/* ==========================================
   4. TOP4-20 ランキングカード
   ========================================== */
.ranked-section { margin-bottom: 40px; }
.ranked-section-heading {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin: 0 0 14px;
    padding: 0 4px;
}
.ranked-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.ranked-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(30,30,46,0.7);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ranked-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.ranked-card-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.ranked-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1a1a2a;
    overflow: hidden;
}
.ranked-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ranked-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.ranked-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.ranked-card-price strong {
    color: #ff7a59;
    font-size: 15px;
    font-weight: 800;
}
.ranked-card-price s { color: rgba(255,255,255,0.4); font-size: 11px; }

@media (max-width: 1024px) { .ranked-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .ranked-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .ranked-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ==========================================
   5. lowprice 専用カード
   ========================================== */
.lowprice-section { margin-bottom: 24px; }
.lowprice-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.lowprice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(30,30,46,0.7);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid #ffc107;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lowprice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.lowprice-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1a1a2a;
    overflow: hidden;
}
.lowprice-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lowprice-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ffc107;
    color: #3a2d00;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 5px;
    z-index: 2;
}
.lowprice-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.lowprice-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.lowprice-card-meta { font-size: 10px; color: rgba(255,255,255,0.55); }
.lowprice-card-price strong { color: #d97706; font-size: 15px; font-weight: 800; }
.lowprice-card-current-label {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-right: 3px;
}
.lowprice-footnote {
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    margin: 14px 0 0;
}

@media (max-width: 1024px) { .lowprice-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .lowprice-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .lowprice-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ==========================================
   6. 空状態 / 共通ユーティリティ
   ========================================== */
.popular-empty, .lowprice-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.6);
}
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: var(--ps-blue, #0070d1);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 12px;
}
.btn-primary:hover { background: #0086f8; }
