/* ひとつぶの瓶のカード（庭の画面）と、つぶの棚 */

.jar-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 18px 12px 12px;
  border: none;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--soft);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.jar-card__jar {
  flex: none;
  width: 92px;
  height: 115px;
}

.jar-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.jar-card__title {
  font-family: var(--title);
  font-weight: var(--title-w);
  font-size: 1.125rem;
}

.jar-card__note {
  font-size: .78125rem;
  line-height: 1.6;
  color: var(--sub);
}

.jar-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: .78125rem;
  font-weight: 700;
  color: var(--sub);
}

.jar-card__more {
  color: var(--accent);

  &::after {
    content: ' ›';
  }
}

/* 棚：いまの瓶を大きく */
.shelf__current {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.shelf__current-jar {
  width: 180px;
  height: 225px;
}

.shelf__current-label {
  margin: 2px 0 0;
  font-family: var(--title);
  font-weight: var(--title-w);
  font-size: .9375rem;
  color: var(--sub);
}

.shelf__note {
  margin: 12px 0 6px;
  font-size: .78125rem;
  color: var(--sub);
  text-align: center;
}

/* 棚の板と、いっぱいになった瓶 */
.shelf__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  padding: 12px 10px 4px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, transparent calc(100% - 10px), var(--shelf) calc(100% - 10px));
}

.shelf__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding-bottom: 2px;
  border-bottom: 8px solid var(--shelf);
}

.shelf__jar {
  width: 64px;
  height: 80px;
}

.shelf__num {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--sub);
}

.shelf__empty {
  grid-column: 1 / -1;
  margin: 6px 0 10px;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--sub);
  text-align: center;
}
