/* =========================================
   MUUM TOP PAGE LAYOUT
   front-layout.css 完全版

   ・新着レビュー
   ・リアルビューランキング
   ・デイリービューランキング
========================================= */


/* =========================================
   トップページ全体
========================================= */

.muum-home {
  width: 100%;
  max-width: 1400px;

  margin-left: auto;
  margin-right: auto;

  padding-left: 24px;
  padding-right: 24px;

  box-sizing: border-box;
}


/* =========================================
   PC基本レイアウト
   左：メイン
   右：リアルビューランキング
========================================= */

.muum-home-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) 300px;

  gap: 28px;

  align-items: start;
}

.muum-home-main {
  min-width: 0;
}

.muum-home-sidebar {
  min-width: 0;
  width: 100%;
}


/* =========================================
   新着レビュー見出し
========================================= */

h1.muum-home__title {
  display: flex;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  margin: 0 0 16px;
  padding: 0 0 10px;

  border-bottom:
    3px solid #e9472f;

  color: #e9472f !important;
  -webkit-text-fill-color: #e9472f;

  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;

  opacity: 1;
  visibility: visible;

  text-indent: 0;

  position: relative;
  z-index: 1;
}


/* =========================================
   新着レビュー画像
========================================= */

.muum-home-main
.muum-work-card__image {
  aspect-ratio: 16 / 9;
}


/* =========================================
   PC
   1101px以上

   新着レビュー：
   6列
========================================= */

@media screen and (min-width: 1101px) {

  .muum-home-main
  .muum-work-grid {
    grid-template-columns:
      repeat(6, minmax(0, 1fr));
  }

}


/* =========================================
   タブレット
   768〜1100px
========================================= */

@media screen and (max-width: 1100px)
and (min-width: 768px) {

  .muum-home-layout {
    grid-template-columns:
      minmax(0, 1fr) 260px;

    gap: 20px;
  }

  .muum-home-main
  .muum-work-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

}


/* =========================================
   スマホ
   767px以下
========================================= */

@media screen and (max-width: 767px) {

  .muum-home {
    padding-left: 12px;
    padding-right: 12px;
  }


  /* ---------- 1カラム化 ---------- */

  .muum-home-layout {
    display: block;
  }


  /* ---------- 新着レビュー全体 ---------- */

  .muum-home-main {
    width: auto;

    margin-left: 12px;
    margin-right: 12px;
  }

  .muum-home-section {
    padding: 12px;

    box-sizing: border-box;

    border:
      2px solid #e9472f;

    border-radius: 12px;

    background: #fff;
  }


  /* ---------- 新着レビュー見出し ---------- */

  h1.muum-home__title {
    margin: 0 0 14px;

    padding: 0 0 8px;

    border-bottom:
      2px solid #e9472f;

    color: #e9472f !important;
    -webkit-text-fill-color: #e9472f;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
  }


  /* ---------- 新着レビュー3列 ---------- */

  .muum-home-main
  .muum-work-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }


  /* ---------- 13件目以降非表示 ---------- */

  .muum-home-main
  .muum-work-card:nth-child(n+13) {
    display: none;
  }


  /* ---------- サイドバー ---------- */

  .muum-home-sidebar {
    width: auto;

    margin:
      32px 12px 0;
  }

}


/* =========================================
   リアルビューランキング見出し
========================================= */

.muum-realtime-ranking__heading {
  display: flex;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  margin: 0 0 16px;
  padding: 0 0 10px;

  border-bottom:
    3px solid #e9472f;

  color: #e9472f !important;
  -webkit-text-fill-color: #e9472f;

  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;

  opacity: 1;
  visibility: visible;

  text-indent: 0;

  position: relative;
  z-index: 1;
}


/* =========================================
   デイリービューランキング
========================================= */

.muum-daily-ranking {
  width: 100%;

  margin-top: 36px;
}


/* =========================================
   デイリー見出し
========================================= */

.muum-daily-ranking__heading {
  display: flex;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  margin: 0 0 16px;
  padding: 0 0 10px;

  border-bottom:
    3px solid #e9472f;

  color: #e9472f !important;
  -webkit-text-fill-color: #e9472f;

  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;

  opacity: 1;
  visibility: visible;
}


/* =========================================
   デイリーランキング一覧
   PC：4列
========================================= */

.muum-daily-ranking__list {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}


/* =========================================
   デイリーカード
========================================= */

.muum-daily-ranking
.muum-realtime-ranking__item {
  width: 100%;

  min-width: 0;

  margin: 0;
}


/* =========================================
   デイリー画像
   2:1
========================================= */

.muum-daily-ranking
.muum-realtime-ranking__thumbnail {
  position: relative;

  width: 100% !important;
  height: auto !important;

  min-width: 0 !important;

  margin: 0 !important;

  aspect-ratio: 2 / 1 !important;

  overflow: hidden;

  background: #f2f2f2;
}


/* =========================================
   デイリー画像本体
========================================= */

.muum-daily-ranking
.muum-realtime-ranking__image {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover !important;
}


/* =========================================
   スマホ
   デイリービューランキング
========================================= */

@media screen and (max-width: 767px) {

  .muum-daily-ranking {
    width: 100%;

    margin-top: 32px;

    padding: 12px;

    box-sizing: border-box;

    border:
      2px solid #e9472f;

    border-radius: 12px;

    background: #fff;
  }


  /* ---------- デイリー見出し ---------- */

  .muum-daily-ranking__heading {
    margin: 0 0 12px;

    padding: 0 0 8px;

    border-bottom:
      2px solid #e9472f;

    color: #e9472f !important;
    -webkit-text-fill-color: #e9472f;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
  }


  /* ---------- 2列 ---------- */

  .muum-daily-ranking__list {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }


  /* ---------- デイリーカード ---------- */

  .muum-daily-ranking
  .muum-realtime-ranking__item {
    width: 100%;

    min-width: 0;

    margin: 0;

    border-radius: 9px;
  }


  /* ---------- デイリー画像 ---------- */

  .muum-daily-ranking
  .muum-realtime-ranking__thumbnail {
    width: 100% !important;
    height: auto !important;

    min-width: 0 !important;

    margin: 0 !important;

    aspect-ratio: 2 / 1 !important;
  }

  .muum-daily-ranking
  .muum-realtime-ranking__image {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
  }


  /* ---------- 順位バッジ ---------- */

  .muum-daily-ranking
  .muum-realtime-ranking__rank {
    top: 6px !important;
    left: 6px !important;

    width: 30px !important;
    height: 30px !important;

    box-sizing: border-box;

    border:
      2px solid #fff !important;

    border-radius:
      50% !important;

    background: #ff4f8b;

    color: #fff !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }


  /* ---------- タイトル ---------- */

  .muum-daily-ranking
  .muum-realtime-ranking__content {
    padding:
      7px 8px 8px !important;
  }

  .muum-daily-ranking
  .muum-realtime-ranking__title {
    font-size:
      12px !important;

    line-height:
      1.4 !important;

    -webkit-line-clamp: 2;
  }

}


/* =========================================
   見出しアイコン共通
========================================= */

.muum-heading-icon {
  display: inline-flex !important;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  margin-right: 7px;

  vertical-align: 2px;

  font-weight: 800;
  line-height: 1;

  opacity: 1;
  visibility: visible;
}


/* =========================================
   NEW
========================================= */

.muum-heading-icon--new {
  padding: 4px 6px;

  border-radius: 5px;

  background: #ff4f8b;

  color: #fff !important;
  -webkit-text-fill-color: #fff;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.04em;
}


/* =========================================
   デイリー
========================================= */

.muum-heading-icon--daily {
  font-size: 19px;
}


/* =========================================
   リアルビュー
========================================= */

.muum-heading-icon--live {
  font-size: 19px;
}


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

@media screen and (max-width: 1100px) {

  .muum-heading-icon {
    margin-right: 6px;
  }

  .muum-heading-icon--new {
    padding: 3px 5px;

    font-size: 9px;
  }

  .muum-heading-icon--daily,
  .muum-heading-icon--live {
    font-size: 17px;
  }

}

.muum-home-main .muum-work-card__image {
  position: relative;
}


.muum-home-main .muum-work-card__rating-badge {

  position: absolute;

  right: 6px;
  bottom: 6px;

  z-index: 3;

  padding: 3px 6px;

  border-radius: 5px;

  background: rgba(255,255,255,0.9);

  color: #333;

  font-size: 12px;
  font-weight: 700;

}