/* 栄養チェックの行。スキャン画面とマイページで共通。
   量のある項目は、判定の下に棒と数字を敷く */
/* 「目安」が何を指しているかの説明。行ごとに繰り返さず、ここで一度だけ */
.checks-note {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
  margin-bottom: 6px;
}

.check-row {
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid #f4dee7;
}
.check-row:last-child { border-bottom: none; }
.check-row.has-bar { padding: 9px 0 11px; }

.check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.check-row .name { display: flex; align-items: center; gap: 8px; color: var(--sub); }
.check-row .mark {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold; color: #fff; flex-shrink: 0; line-height: 1;
}
.check-row .mark.good { background: var(--good); }
.check-row .mark.mid  { background: #e08a1e; }
.check-row .mark.bad  { background: #d9394c; }
.check-row .state { font-family: var(--pop); font-weight: 800; font-size: 13px; }
.check-row .state.good { color: var(--good); }
.check-row .state.mid  { color: #e08a1e; }
.check-row .state.bad  { color: #d9394c; }

.check-bar {
  height: 8px;
  border-radius: 999px;
  background: #f4dee7;
  overflow: hidden;
  margin-top: 7px;
}
.check-bar .fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.check-bar .fill.good { background: var(--good); }
.check-bar .fill.mid  { background: #e08a1e; }
.check-bar .fill.bad  { background: #d9394c; }

.check-nums {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  text-align: right;
}
.check-nums.over { color: #d9394c; }

/* 塩分が1日の目安を超えた日だけ出す */
.salt-alert {
  background: #fff8e1;
  border: 1.5px solid var(--yellow);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.salt-alert .head {
  font-family: var(--pop);
  font-weight: 800;
  color: #a97a00;
  margin-bottom: 4px;
}
