/* =========================================================================
   ⑰ マイページ（mypage/index）と ⑱ 受検の前に（exams/show）。
   UI案: docs/ui_proposal_20261030/project/MyPage.dc.html・MyPageExpired.dc.html・Explain.dc.html
   共通部品（ui.css の u-）に無いものだけをここに書く。mp- はマイページ、ex- は受検の前に。
   ========================================================================= */

/* 赤い注意（「有効期限が切れています。」・前回の受検が中断していたとき） */
.mp-alert { background: var(--u-danger-soft); border: 1px solid #E0B4B4; color: var(--u-danger); border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; line-height: 1.7; }

/* ---------- ⑰ マイページ ---------- */
.mp-layout { padding-top: 28px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.mp-main { flex: 999 1 600px; min-width: 0; }
.mp-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.mp-table { min-width: 640px; }
.mp-table td { line-height: 1.6; }
/* シリーズにない商品は灰色の線にする */
.mp-noseries { --s: var(--u-line-strong); }
.mp-name { display: flex; gap: 12px; align-items: center; }
.mp-bar { flex: 0 0 6px; align-self: stretch; min-height: 34px; border-radius: 3px; background: var(--s, var(--u-line-strong)); }
.mp-series { font-size: 12px; font-weight: 700; color: var(--s, var(--u-muted)); }
.mp-noseries .mp-series { color: var(--u-muted); }
.mp-series .u-tag { margin-left: 8px; }
.mp-series .u-tag:first-child { margin-left: 0; }
.mp-title { font-weight: 700; line-height: 1.5; }
.mp-expired-date { color: var(--u-warn); font-weight: 700; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.mp-actions .u-btn { white-space: nowrap; }
.mp-noseries .u-btn--series { --s: var(--u-accent); }
.u .mp-link { font-size: 13px; font-weight: 700; color: var(--s, var(--u-accent)); white-space: nowrap; }
.mp-noseries .mp-link, .u .mp-noseries .mp-link { color: var(--u-accent); }
.mp-off { font-size: 13px; color: var(--u-faint); white-space: nowrap; }
.mp-note { margin-top: 14px !important; font-size: 13px; color: var(--u-muted); }
.mp-empty { font-size: 14px; color: var(--u-muted); padding: 8px 0; }
.mp-news { display: flex; flex-direction: column; gap: 14px; }

.mp-card { border: 1px solid var(--u-line); border-radius: 12px; padding: 20px 22px; background: #fff; }
.mp-card--soft { background: var(--u-hero); }
.mp-card-title { font-weight: 700; margin-bottom: 10px; }
.mp-card--soft .mp-card-title { margin-bottom: 6px; }
.mp-card-text { font-size: 14px; line-height: 1.9; color: var(--u-muted); word-break: break-all; }
.mp-card-text--sub { line-height: 1.8; color: var(--u-sub); word-break: normal; }
.mp-card-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; font-size: 14px; }
.u .mp-card-btn { margin-top: 12px; font-size: 14px; padding: 10px 22px; border-radius: 8px; }

/* ---------- ⑱ 受検の前に ---------- */
.ex-head { padding-bottom: 30px; }
.ex-crumb { font-size: 13px; color: var(--u-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.u .ex-crumb a { color: var(--u-muted); }
.ex-course { font-size: 13px; font-weight: 700; color: var(--u-accent-hover); margin-top: 14px; }
.u .ex-head h1 { margin-top: 4px; }

.ex-body { max-width: 860px; margin: 0 auto; padding: 30px 24px 56px; box-sizing: border-box; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; margin-bottom: 22px; }
.ex-meta-label { color: var(--u-muted); }
.ex-caution { border: 1px solid var(--u-line); border-left: 4px solid var(--u-warn); border-radius: 8px; padding: 12px 16px; background: #fff; }
.ex-caution-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.ex-caution ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--u-sub); }
.ex-caution li { margin-bottom: 4px; }
.ex-env { margin-top: 12px !important; font-size: 13px; line-height: 1.7; color: var(--u-sub); }
.u .ex-h2 { margin: 28px 0 6px; font-size: 20px; }
.ex-lead { margin-bottom: 14px !important; font-size: 14px; color: var(--u-muted); line-height: 1.8; }

.ex-steps { display: flex; flex-direction: column; gap: 14px; }
.ex-step { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border: 1px solid var(--u-line); border-radius: 12px; padding: 16px 22px; background: var(--u-soft); }
.ex-step.is-next { background: #fff; }
.ex-step-main { display: flex; gap: 16px; align-items: center; flex: 1 1 380px; min-width: 0; }
.ex-step-no { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #E6EAE9; color: var(--u-faint); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.is-next .ex-step-no { background: var(--s-soft, var(--u-hero)); color: var(--s, var(--u-accent)); }
.ex-step-text { min-width: 0; }
.ex-step-name { font-weight: 700; font-size: 16px; color: var(--u-faint); }
.is-next .ex-step-name { color: var(--u-ink); }
.ex-step-time { font-size: 13px; font-weight: 500; color: var(--u-faint); margin-left: 10px; }
.ex-step-sub { font-size: 13px; color: var(--u-faint); margin-top: 4px; line-height: 1.7; }
.ex-step-state { font-size: 13px; color: var(--u-faint); white-space: nowrap; }
.ex-start-form { margin: 0; }
/* ui.css の body.site button.u-btn が .u-btn--series より強いので、button のときもシリーズ色にする */
body.site button.u-btn--series { background: var(--s, var(--u-accent)); border-color: var(--s, var(--u-accent)); }
body.site button.u-btn--series:hover { filter: brightness(.9); background: var(--s, var(--u-accent-hover)); border-color: var(--s, var(--u-accent-hover)); }
.u .ex-start, body.site button.ex-start { font-size: 14px; padding: 10px 26px; border-radius: 8px; white-space: nowrap; }
.ex-warn { margin-top: 14px; color: var(--u-warn); font-size: 13px; }
.ex-done { margin-top: 14px !important; font-size: 14px; font-weight: 700; color: var(--u-accent); }
.ex-back { margin-top: 22px; font-size: 14px; }
