/* ============================================================
   楽天モバイルランキング クリーンCSS (CWV最適化版)
   ============================================================ */

.rmr-wrap {
    max-width: 900px;
    margin: 2em auto;
}

.rmr-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #5473b7;
}

.rmr-tab-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-bottom: none;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

.rmr-tab-btn.active {
    background: #5473b7;
    color: #fff;
    border-color: #5473b7;
}

.rmr-device-block {
    margin-bottom: 60px;
}

.rmr-h3 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px 0;
}

.rmr-rank {
    background: #5473b7;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.rmr-date {
    color: #888;
}

.rmr-feature-header {
    display: block;
    margin: 0 0 10px 0;
    color: #555;
}
.rmr-feature-header::before {
    content: "POINT";
    font-size: 0.7em;
    background: #5473b7;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.rmr-feature-list {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.rmr-label-price,
.rmr-spec-title {
    display: block;
    margin: 30px 0 15px 0;
    padding: 8px 12px;
    background: #f4f4f4;
    border-left: 5px solid #5473b7;
}

.rmr-body {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.rmr-img-box {
    flex: 0 0 140px;
    text-align: center;
}

/* CLS防止と画像の比率維持 */
.rmr-img-box img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    max-width: 100%;
}

.rmr-info {
    flex: 1;
}

.rmr-price-wrap {
    margin-bottom: 20px;
}

.rmr-price {
    background: #f0f3f9;
    padding: 20px;
    border-radius: 5px;
}

.rmr-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rmr-net-row {
    margin-top: 12px;
    border-top: 1px dashed #5473b7;
    padding-top: 12px;
}

.rmr-net {
    color: #5473b7;
}

.rmr-notes-container {
    margin-top: 15px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.rmr-notes-summary {
    cursor: pointer;
    font-size: 0.85em;
    color: #666;
    display: flex;
    align-items: center;
    list-style: none;
}

.rmr-notes-summary::-webkit-details-marker {
    display: none;
}

.rmr-notes-summary::before {
    content: "ⓘ";
    margin-right: 6px;
}

.rmr-notes-summary:hover {
    text-decoration: underline;
}

.rmr-notes-content {
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.8em;
    line-height: 1.6;
    color: #555;
}

.rmr-notes-content strong {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
}

.rmr-notes-content strong:first-child {
    margin-top: 0;
}

.rmr-notes-content p {
    margin: 0;
}

.rmr-btn-wrap {
    margin: 20px 0;
    text-align: center;
}

.rmr-apply-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #FF008C;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.rmr-apply-btn:hover {
    opacity: 0.9;
}

.rmr-spec-table-wrap {
    overflow-x: auto;
}

.rmr-spec-table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 650px) {
    .rmr-body {
        flex-direction: column;
        align-items: center;
    }
    .rmr-img-box {
        margin-bottom: 15px;
    }
}