/* ---- 今日のおススメ（/today） ---- */
.today-body { background: linear-gradient(180deg, #fff5fa 0%, #fff 340px); }
.today-main { max-width: 760px; }
.today-intro { text-align: center; margin: 8px 0 18px; }
.today-date { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--color-primary-dark); }
.today-intro .page-title { margin: 0; }

/* 先生と吹き出し */
.today-teacher { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 18px; }
.today-teacher-photo {
  flex: 0 0 112px; width: 112px; height: 140px; border-radius: 22px; object-fit: cover; object-position: 50% 0%;
  border: 3px solid #ffd0e6; box-shadow: 0 8px 20px rgba(255, 93, 162, .22); background: #fff;
}
.today-teacher-side { flex: 1; min-width: 0; }
.today-teacher-name { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 800; font-size: 17px; color: var(--color-ink); }
.today-teacher-tag { font-size: 11px; font-weight: 700; color: var(--color-ink-soft); border: 1px solid var(--color-border); border-radius: 999px; padding: 1px 8px; background: #fff; }
.today-duty-badge { font-size: 11px; font-weight: 800; color: #fff; background: var(--gradient-primary); border-radius: 999px; padding: 2px 10px; }
.today-bubble {
  position: relative; background: #fff; border: 2px solid #ffd0e6; border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 6px 16px rgba(255, 93, 162, .14);
}
.today-bubble::before {
  content: ""; position: absolute; left: -9px; top: 22px; width: 14px; height: 14px; background: #fff;
  border-left: 2px solid #ffd0e6; border-bottom: 2px solid #ffd0e6; transform: rotate(45deg);
}
.today-bubble-main { margin: 0; font-size: 20px; font-weight: 900; color: var(--color-primary-dark); line-height: 1.4; }
.today-bubble-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--color-ink); }
.today-not-duty { margin: 10px 0 0; font-size: 12px; color: var(--color-ink-soft); }
.today-not-duty a { color: var(--color-primary-dark); font-weight: 700; margin-left: 6px; }

/* 先生を変える・年代 */
.today-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 0 0 14px; }
.today-change-btn { white-space: nowrap; }
.today-ages { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.today-ages-label { font-size: 12px; font-weight: 700; color: var(--color-ink-soft); margin-right: 2px; }
.today-age {
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--color-border);
  color: var(--color-ink); background: #fff; text-decoration: none;
}
.today-age.is-selected { background: var(--gradient-primary); color: #fff; border-color: transparent; }
.today-picker { margin: 0 0 20px; padding: 14px; background: #fff; border: 1.5px dashed #ffb3d6; border-radius: 18px; }
.today-picker[hidden] { display: none; }
.today-picker-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--color-ink); }
.today-picker-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.today-picker-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 10px;
  border: 2px solid transparent; border-radius: 14px; text-decoration: none; color: var(--color-ink); background: #fff7fb;
}
.today-picker-item img { width: 64px; height: 80px; object-fit: cover; object-position: 50% 0%; border-radius: 12px; }
.today-picker-item.is-selected { border-color: var(--color-primary); background: #fff0f6; }
.today-picker-name { font-size: 12px; font-weight: 700; text-align: center; }
.today-picker-duty { position: absolute; top: 4px; right: 4px; font-size: 10px; font-weight: 800; color: #fff; background: var(--color-primary); border-radius: 999px; padding: 1px 7px; }

/* 状態 */
.today-status { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 28px 0; font-size: 14px; color: var(--color-ink-soft); text-align: center; }
.today-status-error { color: #b3261e; }
.today-spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #ffd0e6; border-top-color: var(--color-primary); animation: todaySpin .9s linear infinite; flex: none; }
@keyframes todaySpin { to { transform: rotate(360deg); } }

/* ランキング */
.today-rank-heading { margin: 8px 0 14px; font-size: 17px; font-weight: 800; text-align: center; color: var(--color-ink); }
.today-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.today-rank-item { display: flex; gap: 12px; align-items: flex-start; }
.today-rank-no {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 20px; font-weight: 800; color: #fff; background: #c9bfc5; margin-top: 4px;
}
.rank-1 .today-rank-no { background: linear-gradient(135deg, #ffd34d, #f2a900); }
.rank-2 .today-rank-no { background: linear-gradient(135deg, #d9dde3, #9aa3ad); }
.rank-3 .today-rank-no { background: linear-gradient(135deg, #e8b58a, #b9733a); }
.today-rank-body { flex: 1; min-width: 0; }
.today-rank-comment { margin: 0 0 8px; font-size: 14px; line-height: 1.8; color: var(--color-ink); }
.today-product {
  display: flex; gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1.5px solid var(--color-border);
  border-radius: 16px; text-decoration: none; color: var(--color-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}
.rank-1 .today-product { border-color: #ffd34d; box-shadow: 0 6px 16px rgba(242, 169, 0, .18); }
.today-product-img { flex: 0 0 84px; width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: #f5f5f5; }
.today-product-info { flex: 1; min-width: 0; }
.today-product-name {
  margin: 0 0 4px; font-size: 13px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.today-product-price { margin: 0; font-size: 16px; font-weight: 800; color: var(--color-primary-dark); }
.today-product-shop { margin: 2px 0 0; font-size: 11px; color: var(--color-ink-soft); }
.today-product-arrow { font-size: 24px; color: var(--color-primary); }
.today-note { margin: 28px 0 8px; font-size: 11px; line-height: 1.7; color: var(--color-ink-soft); }

@media (max-width: 560px) {
  .today-teacher-photo { flex-basis: 88px; width: 88px; height: 110px; }
  .today-bubble-main { font-size: 17px; }
  .today-picker-list { grid-template-columns: repeat(2, 1fr); }
}
