.k6-sidebar-item-link{
  display:flex;
  align-items:flex-start;
  width:100%;
  gap:12px;
  color:inherit;
  text-decoration:none;
}
.k6-sidebar-item-link:hover{
  color:inherit;
}
.k6-sidebar-pv,
.k6-sidebar-type{
  display:block;
  margin-top:3px;
}
.k6-sidebar-empty{
  margin:0;
  padding:12px;
}
.mm-sidebar .mm-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio:1/1;
}
.mm-sidebar .mm-sidecard__head{
  margin:0;
}

/* ==========================================================
   人気機種ランキングの筐体画像
   PC・スマホ共通で全体を収める
========================================================== */

.mm-sidebar .k6-sidebar-item-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
}

.mm-sidebar .mm-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 84px;
  min-width: 64px;

  overflow: visible;
  background: transparent;
}

.mm-sidebar .mm-thumb img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: 64px;
  max-height: 84px;

  object-fit: contain;
  object-position: center;

  margin: 0;
  border-radius: 0;
}

.mm-sidebar .mm-rank__txt {
  min-width: 0;
  padding-top: 1px;
}

.mm-sidebar .mm-rank__title {
  margin: 0 0 5px;
  line-height: 1.45;
}

.mm-sidebar .k6-sidebar-pv {
  display: block;
  margin-top: 5px;
}

/* 順位バッジ */
.mm-sidebar .mm-badge-rank {
  position: absolute;
  top: -4px;
  left: -8px;
  z-index: 2;
}

/* ==========================================================
   PC
========================================================== */

@media (min-width: 961px) {
  .mm-sidebar .k6-sidebar-item-link {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
    padding: 11px 13px;
  }

  .mm-sidebar .mm-thumb {
    width: 58px;
    height: 78px;
    min-width: 58px;
  }

  .mm-sidebar .mm-thumb img {
    width: 58px;
    height: 78px;
    max-width: 58px;
    max-height: 78px;
  }
}

/* ==========================================================
   スマホ・タブレット
========================================================== */

@media (max-width: 960px) {
  .mm-sidebar .k6-sidebar-item-link {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .mm-sidebar .mm-thumb {
    width: 64px;
    height: 84px;
    min-width: 64px;
  }

  .mm-sidebar .mm-thumb img {
    width: 64px;
    height: 84px;
    max-width: 64px;
    max-height: 84px;
  }
}

/* ==========================================================
   スマホの人気機種ランキング画像
   画像まわりの枠・背景・余白を完全に消す
========================================================== */

@media (max-width: 960px) {
  .mm-sidebar .mm-thumb {
    width: 64px;
    height: 84px;
    min-width: 64px;

    padding: 0 !important;
    margin: 0;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;

    overflow: visible;
  }

  .mm-sidebar .mm-thumb::before,
  .mm-sidebar .mm-thumb::after {
    display: none !important;
    content: none !important;
  }

  .mm-sidebar .mm-thumb img {
    display: block;

    width: 64px;
    height: 84px;
    max-width: 64px;
    max-height: 84px;

    padding: 0;
    margin: 0;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;

    object-fit: contain;
    object-position: center;
  }
}

/* 新台導入カレンダーの日付切れ修正 */
.mm-cal__date {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.4;
}

.mm-cal {
  min-width: 0;
  overflow: visible;
}

.mm-sidecard {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .mm-cal__date {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}