/* =====================================================================
   人気ランキング — 商品カード
   ===================================================================== */

.rankcard {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  overflow: hidden;
}

.rankcard--1 {
  border: 2px solid var(--gold-1);
  box-shadow: 0 8px 24px rgba(241, 183, 64, .28);
}

.rankcard__hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 10px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--gold), rgba(200, 164, 60, 0)) 1;
}

.rankbadge {
  flex: 0 0 auto;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 3px 8px rgba(20, 40, 24, .2);
}

.rankbadge.r1 { background: linear-gradient(160deg, #f7cd5a, #d99e23); }
.rankbadge.r2 { background: linear-gradient(160deg, #c4ccd6, #97a2b1); }
.rankbadge.r3 { background: linear-gradient(160deg, #dca877, #b9763f); }
.rankbadge.rn { background: linear-gradient(160deg, #5b8fd6, var(--blue-deep)); }

.rankbadge__crown {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
}

.rankcard__hname {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.rankcard__body { padding: 12px 14px 14px; }

.rankcard__banner {
  display: block;
  max-width: 300px;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.rankcard__banner picture {
  display: block;
  width: 100%;
}

.rankcard__banner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.spectable {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.spectable__row {
  display: flex;
  border-bottom: 1px solid var(--line-2);
}

.spectable__row:last-child { border-bottom: 0; }

.spectable__k {
  flex: 0 0 92px;
  background: var(--gold-1);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  line-height: 1.25;
}

.spectable__v {
  flex: 1;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.spectable__v--hl {
  color: var(--cta);
  font-size: 17px;
  font-weight: 900;
}

.spectable__v--hl .big {
  color: var(--cta);
  font-size: 17px;
  font-weight: 900;
}

.feat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.feat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef2ec;
  color: var(--ink-2);
}

.feat.on {
  background: #e6f5ea;
  color: var(--ok);
}

.cmtbox {
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}

.cmtbox__label {
  font-size: 9px;
  font-weight: 800;
  color: var(--gold-1);
  letter-spacing: .14em;
}

.cmtbox__bubble {
  background: #fff;
  border: 1.5px solid var(--navy);
  border-radius: 10px;
  padding: 8px 11px;
  margin: 4px 0 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--cta);
  line-height: 1.45;
  position: relative;
}

.cmtbox__bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg);
}

.cmtbox__pt { margin: 8px 0 0; }

.cmtbox__pt h5 {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--cta);
  display: flex;
  gap: 6px;
  align-items: baseline;
  line-height: 1.4;
}

.cmtbox__pt h5::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
  transform: translateY(1px);
}

.cmtbox__pt p {
  margin: 0 0 0 14px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.6;
}

.rankcard__note {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.6;
  padding: 6px 0 2px;
  margin: 0;
}

.rankcard__note--always {
  border-top: 1px dashed var(--line);
  margin-top: 10px;
  padding-top: 10px;
}
