/* れんしゅうノート（生徒・保護者の画面）だけの見た目 2026-10-11 */
body.has-tabbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* 下のタブ（5 つ）。今の画面は上に真鍮の線 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--ebony); padding: 0 4px env(safe-area-inset-bottom);
  border-top: 2px solid var(--brass);
  box-shadow: 0 -4px 16px rgba(21, 18, 15, .18);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; color: #cfc5b3; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
}
.tabbar a i { display: block; width: 22px; height: 4px; border-radius: 2px; background: transparent; }
.tabbar a[aria-current="page"] { color: var(--ivory-hi); }
.tabbar a[aria-current="page"] i { background: var(--brass); }
@media (min-width: 760px) {
  .tabbar { left: 50%; right: auto; width: 720px; transform: translateX(-50%); border-radius: 16px 16px 0 0; }
}

/* 今週の課題 */
.note-date { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.note-date .d { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.song-note { padding: 12px 0; border-top: 1px solid var(--line); }
.song-note:first-of-type { border-top: 0; padding-top: 4px; }
.song-note h3 { font-size: 17px; }
.song-note dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 15px; }
.song-note dt { font-size: 12px; color: var(--sub); padding-top: 3px; white-space: nowrap; }
.song-note dd { margin: 0; }
.song-note dd.next { font-weight: 700; }
.comment {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--brass-soft);
  border-left: 4px solid var(--brass); font-size: 15px;
}
.comment .c-who { display: block; font-size: 12px; color: var(--brass-ink); font-weight: 700; margin-bottom: 2px; }
.next-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.next-line b { font-family: var(--serif); font-size: 18px; }

/* 練習の記録 */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.stat { background: var(--ivory-hi); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.stat .s-l { font-size: 13px; color: var(--sub); }
.stat .s-n { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .s-n small { font-family: var(--sans); font-size: 15px; font-weight: 500; margin-left: 2px; color: var(--sub); }
.form-step { margin: 0 0 14px; }
.form-step .st-t { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.form-step .st-t .opt { font-weight: 400; color: var(--sub); font-size: 12px; margin-left: 4px; }
.saved-msg { text-align: center; font-weight: 700; color: var(--brass-ink); margin: 4px 0 0; min-height: 1.6em; }

.cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal th { font-size: 12px; color: var(--sub); font-weight: 500; padding: 2px 0; }
.cal th:first-child { color: var(--ng); }
.cal td { height: 48px; vertical-align: top; text-align: center; border-radius: 8px; background: var(--ivory); font-size: 13px; padding: 3px 0 0; position: relative; }
.cal td.empty { background: transparent; }
.cal td.future { color: #b9b0a3; }
.cal td.done { background: var(--brass-soft); }
.cal td.done::after {
  content: attr(data-min); position: absolute; left: 0; right: 0; bottom: 4px;
  font-size: 10px; font-weight: 700; color: var(--brass-ink);
}
.cal td.today { box-shadow: inset 0 0 0 2px var(--ebony); font-weight: 700; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; }
.cal-head b { font-family: var(--serif); font-size: 18px; }
.loglist { list-style: none; margin: 0; padding: 0; }
.loglist li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.loglist li:first-child { border-top: 0; }
.loglist .l-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.loglist .l-d { font-weight: 700; }

/* 曲の進み具合 */
.song-card h3 { font-size: 17px; }
.song-card .now { font-size: 13px; color: var(--sub); margin: 0 0 4px; }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.stack li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 4px 4px 10px 10px;
  background: linear-gradient(to bottom, var(--ivory-hi) 0%, var(--ivory-hi) 70%, var(--ivory-lo) 100%);
  border: 1px solid #cfc5b3; border-left: 5px solid var(--brass);
  font-size: 15px;
}
.stack li .p-d { font-size: 12px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stack li.new { border-left-color: var(--ebony); }
.count-badge { font-family: var(--serif); font-size: 15px; color: var(--brass-ink); margin-left: 6px; }

/* お知らせ */
.notice .n-date { font-size: 12px; color: var(--sub); }
.info { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 8px 0 0; font-size: 15px; }
.info dt { color: var(--sub); font-size: 13px; padding-top: 2px; white-space: nowrap; }
.info dd { margin: 0; }
