/* 生徒マイページ用スタイル (common.css の変数を利用 / スマホ優先) */
.mp-body { background: var(--color-bg); }
.mp-top { background: var(--color-primary); color: #fff; padding: 14px var(--space-2); display: flex; justify-content: space-between; align-items: center; }
.mp-top__brand { font-weight: 700; font-size: 16px; }
.mp-top__user { font-size: 13px; color: rgba(255,255,255,.85); display: flex; gap: 12px; align-items: center; }
.mp-stars { display: inline-flex; align-items: center; gap: 4px; }
.mp-stars img { width: 24px; height: 24px; }
.mp-stars b { color: #fff; font-size: 16px; margin-right: 6px; min-width: 1ch; }
.mp-star { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
.mp-top__user a { color: #fff; font-size: 12px; }
.mp-nav { background: var(--color-surface); border-bottom: 1px solid var(--color-border-light); display: flex; justify-content: center; gap: var(--space-3); padding: 0 var(--space-2); overflow-x: auto; }
.mp-nav a { padding: 12px 2px; font-size: 14px; font-weight: 600; color: var(--color-text-muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.mp-nav a.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.mp-main { max-width: 720px; margin: 0 auto; padding: var(--space-3) var(--space-2) var(--space-4); }
.mp-main h1 { font-size: 20px; }
.mp-center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.mp-center .mp-top { width: 100%; justify-content: center; padding: var(--space-3) var(--space-2) 56px; }
.mp-card { width: calc(100% - 32px); max-width: 400px; margin-top: -36px; background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius); padding: var(--space-3); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.mp-card h1 { font-size: 18px; text-align: center; margin-bottom: var(--space-2); }
.mp-card .btn { width: 100%; }
.mp-note { font-size: 12px; color: var(--color-text-muted); text-align: center; margin-top: var(--space-2); }
.mp-alert { border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin-bottom: var(--space-2); }
.mp-alert--danger { background: rgba(179,38,30,.08); border: 1px solid rgba(179,38,30,.3); color: var(--color-danger); }
.mp-alert--success { background: rgba(30,123,77,.08); border: 1px solid rgba(30,123,77,.3); color: var(--color-success); }
.mp-list { list-style: none; margin: 0; padding: 0; }
.mp-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border-light); }
.mp-list li:last-child { border-bottom: none; }
.mp-list__sub { font-size: 12px; color: var(--color-text-muted); }
.ph { display: inline-block; }
.mp-next { border-left: 4px solid var(--color-accent); }
a.btn { text-decoration: none; }
.mp-list li { padding: 0; }
.mp-list__link { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 0; color: inherit; text-decoration: none; }
.mp-list__link:hover .mp-list__more { text-decoration: underline; }
.mp-list__end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mp-list__more { font-size: 12px; color: var(--color-primary); font-weight: 600; }
.mp-dl { display: grid; grid-template-columns: 6em 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.mp-dl dt { color: var(--color-text-muted); }
.mp-dl dd { margin: 0; }
.mp-back { display: inline-block; margin-bottom: var(--space-2); font-size: 13px; color: var(--color-primary); text-decoration: none; }
.mp-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mp-photo-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: #edeff2; padding: 0; border: none; cursor: zoom-in; }
.mp-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-lightbox { display: none; position: fixed; inset: 0; background: rgba(26,26,26,0.85); align-items: center; justify-content: center; z-index: 70; cursor: zoom-out; }
.mp-lightbox.is-open { display: flex; }
.mp-lightbox img { max-width: 94vw; max-height: 92vh; }
.mp-sub { font-size: 12px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 6px; }
.mp-check__section { background: #f7f8fa; font-weight: 700; font-size: 13px; padding: 8px 6px; margin-top: 8px; border-bottom: 1px solid var(--color-border-light); }
.mp-check__time { font-weight: 600; font-size: 13px; color: var(--color-text-muted); padding: 8px 6px; border-bottom: 1px solid var(--color-border-light); }
.mp-check__item { padding: 9px 6px; border-bottom: 1px solid var(--color-border-light); }
.mp-check__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mp-check__label { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.mp-check__row .badge, .mp-check__row .text-muted { flex-shrink: 0; }
.mp-check__note { margin-top: 4px; font-size: 12px; color: var(--color-text-muted); line-height: 1.6; }
.mp-main { text-wrap: pretty; }

/* 評価の講師/自己 横並び */
.mp-check__head, .mp-check__row--two { display: grid; grid-template-columns: 1fr 52px 150px; gap: 10px; align-items: center; }
.mp-check__head { font-size: 12px; font-weight: 600; color: var(--color-text-muted); padding: 6px; border-bottom: 1px solid var(--color-border); }
.mp-check__head span:nth-child(2) { text-align: center; }
.mp-check__teacher { text-align: center; }
.mp-self { display: flex; gap: 4px; justify-content: flex-end; }
.mp-self label { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; padding: 4px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; background: #fff; }
.mp-self input { width: auto; margin: 0; }
.mp-self label:has(input:checked) { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.mp-self__note { width: 100%; margin-top: 6px; font-size: 13px; padding: 6px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.mp-self-comment { width: 100%; min-height: 9em; resize: vertical; line-height: 1.6; box-sizing: border-box; font-size: 14px; padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
@media (max-width: 520px) {
  .mp-check__head, .mp-check__row--two { grid-template-columns: 1fr 40px 132px; gap: 6px; }
  .mp-self label { padding: 4px 6px; }
}
