/*
 * 学生画面(スマホ前提)。Tabler を土台に、モックの見た目のうちブランドと枠組みだけを足す
 */
:root {
  --tblr-primary: #2a4690;
  --tblr-primary-rgb: 42, 70, 144;
  --asu-deep: #17336f;
  --asu-pale: #eef3fb;
}
[x-cloak] { display: none !important; }
/* Tabler 1.4 の .alert はアイコン用の flex のため、見出しと本文が横に割れる。アイコンは使わないのでブロックに戻す */
.alert { display: block; }

body.student {
  background: radial-gradient(circle at 12% 4%, rgba(42, 70, 144, .06), transparent 28rem), #f7f9fc;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
}
.container-narrow { width: min(100% - 32px, 680px); margin: 0 auto; }

.site-header { background: #fff; border-bottom: 1px solid var(--tblr-border-color); min-height: 68px; display: flex; align-items: center; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text span { color: var(--tblr-primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.brand-text strong { font-size: 14px; }

.page { padding: 32px 0 72px; min-height: calc(100vh - 150px); }
.progress-wrap { margin-top: 24px; margin-bottom: -8px; }
.site-footer { padding: 24px 16px; color: #6b7688; text-align: center; border-top: 1px solid var(--tblr-border-color); background: #fff; font-size: 11.5px; }
.site-footer strong { display: block; margin-bottom: 4px; color: #59667c; }

.eyebrow { margin: 0 0 6px; color: var(--tblr-primary); font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.page-heading { font-size: clamp(24px, 6vw, 32px); line-height: 1.4; margin: 0 0 10px; }
.step-title { margin-bottom: 24px; }
.card { border-radius: 16px; }
.card-title { font-size: 17px; font-weight: 700; }
.form-label.required::after { content: "必須"; margin-left: 8px; padding: 2px 6px; color: #b42b3a; background: #fff0f1; border-radius: 4px; font-size: 10.5px; }
.form-hint { display: block; color: #5a6678; }

.auth-card { max-width: 470px; border-radius: 24px; box-shadow: 0 24px 80px rgba(27, 54, 112, .12); }
.auth-mark { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 22px; background: #f1f4fa; }
.auth-mark img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }

.period-card { display: flex; gap: 16px; padding: 18px 20px; color: #fff; border-radius: 16px; background: linear-gradient(135deg, var(--tblr-primary), var(--asu-deep)); }
.period-card .period-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; color: var(--tblr-primary); border-radius: 12px; background: #fff; font-size: 18px; font-weight: 900; }
.period-card div { display: flex; flex-direction: column; gap: 4px; }
.period-card small { opacity: .8; }
.period-card strong { font-size: 15px; line-height: 1.6; }

.doc-list > div { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #edf0f5; }
.doc-list > div:first-child { border-top: 0; }
.doc-list p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.doc-list small { color: #5a6678; }
.doc-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--tblr-primary); background: var(--asu-pale); border-radius: 12px; font-weight: 900; }

.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; line-height: 1.7; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 3px; display: grid; place-items: center; width: 18px; height: 18px; color: var(--tblr-primary); background: var(--asu-pale); border-radius: 50%; font-size: 10px; font-weight: 900; }

/* 申請前の中断不可の注意。開始ボタンの直前に置き、見出し → 本文の順に読ませる */
.interrupt-notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; color: #80383d; border: 1px solid #efcdcc; border-left: 4px solid #b42b3a; border-radius: 10px; background: #fff5f5; }
.interrupt-notice .interrupt-icon { display: grid; place-items: center; flex: 0 0 24px; height: 24px; color: #fff; border-radius: 50%; background: #b42b3a; font-size: 14px; font-weight: 900; }
.interrupt-notice strong { display: block; margin-bottom: 4px; color: #9b3139; font-size: 15px; }
.interrupt-notice p { margin: 0; font-size: 13.5px; line-height: 1.7; }

.step-nav { display: grid; grid-template-columns: 1fr 1.7fr; gap: 12px; margin-top: 24px; }

.input-amount input { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
fieldset.is-blocked { opacity: .45; }

.upload-slot { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px; border: 1px dashed #aebbd1; border-radius: 13px; background: #f9fbff; cursor: pointer; }
.upload-slot:focus-within { outline: 3px solid var(--tblr-primary); outline-offset: 2px; }
.upload-slot.is-selected { border-style: solid; border-color: #70b898; background: #f3fbf7; }
.upload-slot.is-invalid { border-color: #d63939; background: #fff5f5; }
.upload-thumb { display: grid; place-items: center; flex: 0 0 56px; height: 56px; overflow: hidden; border-radius: 10px; background: var(--asu-pale); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-plus { color: var(--tblr-primary); font-size: 24px; }
.upload-text { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.upload-text small { color: #5a6678; }
.extra-kept { margin-top: 4px; }
.add-slot { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 12px; padding: 14px 16px; color: var(--tblr-primary); text-align: left; border: 1px dashed #aebbd1; border-radius: 13px; background: #fff; font-weight: 700; }
.add-slot small { color: #647087; font-weight: 400; }
.tip { padding: 12px 14px; color: #41505f; border-radius: 10px; background: #f8f6f2; font-size: 13px; line-height: 1.7; }

.choice-list { display: grid; gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--tblr-border-color); border-radius: 12px; cursor: pointer; }
.choice.active { border-color: var(--tblr-primary); background: #f7f9fe; box-shadow: inset 0 0 0 1px var(--tblr-primary); }
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--tblr-primary); }
.choice span { display: flex; flex-direction: column; gap: 4px; }
.choice small { color: #647087; }

.review-list { margin: 0; padding: 0 20px 8px; }
.review-list > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.review-list > div:last-child { border-bottom: 0; }
.review-list dt { color: #5a6678; font-weight: 400; font-size: 13px; }
.review-list dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.review-thumbs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.review-thumbs figure { margin: 0; width: 72px; text-align: center; }
.review-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--tblr-border-color); }
.review-thumbs figcaption { font-size: 11px; font-weight: 400; color: #5a6678; }
.final-notice { padding: 16px; text-align: center; border: 1px solid #efcdcc; border-radius: 13px; background: #fff8f7; }
.final-notice strong { color: #9b3139; }

.complete-icon { display: grid; place-items: center; width: 76px; height: 76px; color: #fff; border-radius: 50%; background: linear-gradient(145deg, #3ba47a, #247657); font-size: 32px; }
.receipt-box { display: flex; flex-direction: column; gap: 6px; padding: 22px; color: #fff; border-radius: 16px; background: var(--asu-deep); }
.receipt-box strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 21px; letter-spacing: .06em; }

@media (max-width: 480px) {
  .step-nav { grid-template-columns: 1fr; }
  .step-nav .btn-primary { order: -1; }
  .review-list > div { grid-template-columns: 1fr; gap: 4px; }
  .review-list dd { text-align: left; }
  .review-thumbs { justify-content: flex-start; }
}

/* エラー画面 */
.error-page { padding: 24px 0; }
.error-code { color: var(--tblr-primary); font-size: 48px; font-weight: 800; letter-spacing: .08em; opacity: .25; line-height: 1; }
.error-title { margin: 12px 0 10px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.error-body { color: #5a6678; line-height: 1.8; }
.error-actions { margin-top: 24px; }
.error-contact { margin-top: 28px; color: #6b7688; font-size: 12.5px; }
