/* 色は内部生向けLP（exam-prep-lp-2026 の global.css）に合わせる */
:root {
  --main: #207b97;
  --sub: #33a6c4;
  --light: #b7dded;
  --band: #eef7fb;
  --dark: #104854;
  --cta: #f3a12c;
  --bg: #f0f7fa;
  --base: #ffffff;
  --text: #1f2d33;
  --text-2: #3a4a50;
  --text-3: #4e5f66;
  --line-soft: #d5ecf5;
  --error: #b3261e;
  --error-bg: #fdecea;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}

.header {
  background: var(--dark);
  color: #fff;
  padding: 14px 16px;
}
.header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--light);
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--base);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--dark);
}
.q {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.q:last-child {
  margin-bottom: 0;
}
.q legend,
.q > label.lbl {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  padding: 0;
}
.no {
  display: inline-block;
  min-width: 2.2em;
  color: var(--main);
}
.hint {
  font-size: 13px;
  color: var(--text-3);
  margin: -4px 0 8px;
}

input[type='text'] {
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid var(--light);
  border-radius: 8px;
  background: #fff;
}
input[type='text']:focus {
  outline: 2px solid var(--sub);
  border-color: var(--sub);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips label {
  position: relative;
}
.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chips span {
  display: inline-block;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--light);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.chips input:checked + span {
  background: var(--main);
  border-color: var(--main);
  color: #fff;
  font-weight: 700;
}
.chips input:focus-visible + span {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}
.sub-q {
  margin-top: 10px;
}
.sub-q .sub-lbl {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.btn-cta {
  background: var(--cta);
  color: #fff;
}
.btn-main {
  background: var(--main);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--main);
  border: 1px solid var(--main);
  font-size: 15px;
  min-height: 44px;
}
.btn + .btn {
  margin-top: 10px;
}

.errors {
  background: var(--error-bg);
  color: var(--error);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}
.errors ul {
  margin: 0;
  padding-left: 1.2em;
}

/* 結果 */
.outcome {
  background: var(--dark);
  color: #fff;
  border: 0;
}
.outcome h2 {
  color: #fff;
  font-size: 18px;
}
.outcome p {
  margin: 0;
  color: var(--light);
  font-size: 14px;
}
.group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  margin: 14px 0 6px;
}
.group-title:first-child {
  margin-top: 0;
}
.course {
  border-left: 4px solid var(--light);
  padding: 6px 0 6px 12px;
  margin-bottom: 8px;
}
.course .name {
  font-weight: 700;
}
.course .tag {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 2px;
  background: var(--band);
  color: var(--dark);
}
.course .reason {
  font-size: 14px;
  color: var(--text-2);
}
.course.recommend {
  border-left-color: var(--cta);
}
.course.consult,
.course.confirm,
.course.self_check {
  border-left-color: var(--sub);
}
.note {
  font-size: 14px;
  color: var(--text-2);
  background: var(--band);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
}
.script {
  background: var(--band);
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  margin-bottom: 10px;
}

.save {
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: var(--band);
}
.save.error {
  background: var(--error-bg);
  color: var(--error);
}
.save .btn {
  margin-top: 8px;
}

.btn-line {
  background: #06c755;
  color: #fff;
  text-align: center;
  text-decoration: none;
  line-height: 52px;
  margin-bottom: 10px;
}
.today {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--dark);
  font-weight: 700;
}

/* ---- 生徒・保護者用 ---- */
body.student {
  padding-bottom: 150px; /* 下部固定ボタンの分 */
}
.hero h2 {
  font-size: 20px;
  line-height: 1.5;
}
.hero p {
  margin-bottom: 10px;
}
.points {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  color: var(--text-2);
}
.last p {
  margin: 0 0 8px;
}
.para {
  margin-bottom: 8px;
}

.progress {
  height: 6px;
  background: var(--light);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--main);
  transition: width 0.25s;
}
.progress-text {
  margin: 4px 0 10px;
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}
.q-title {
  font-size: 18px !important;
  line-height: 1.5;
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  text-align: left;
  border: 1px solid var(--light);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.choice[aria-pressed='true'] {
  background: var(--main);
  border-color: var(--main);
  color: #fff;
  font-weight: 700;
}
.btn-text {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  color: var(--main);
  cursor: pointer;
  padding: 8px;
}
input[type='email'] {
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid var(--light);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
}
a.btn {
  text-align: center;
  text-decoration: none;
  line-height: 52px;
}
a.btn-ghost {
  line-height: 44px;
}

.issue {
  border-left: 4px solid var(--cta);
  padding: 4px 0 4px 12px;
  margin-bottom: 12px;
}
.issue-title {
  font-weight: 700;
  line-height: 1.5;
}
.issue-cause {
  font-size: 14px;
  color: var(--text-2);
  margin: 4px 0;
}
.issue-change {
  font-size: 14px;
  color: var(--dark);
  font-weight: 700;
}
.textbook {
  background: var(--band);
}

.plan {
  border: 2px solid var(--main);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.plan-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--main);
  border-radius: 999px;
  padding: 1px 10px;
}
.plan-name {
  font-weight: 700;
  font-size: 17px;
  margin-top: 6px;
}
.plan-items {
  margin: 4px 0 6px;
  padding-left: 1.2em;
  font-size: 14px;
  color: var(--text-2);
}
.plan-price .big {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
}
.plan-early {
  font-size: 14px;
  font-weight: 700;
  color: #b86e00;
}
.plan-meta {
  font-size: 13px;
  color: var(--text-2);
}
.pace-ok {
  margin-top: 6px;
  font-weight: 700;
  color: var(--main);
}
.pace-ng {
  margin-top: 6px;
  font-weight: 700;
  color: var(--error);
}

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line-soft);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 10;
}
.action-bar > * {
  max-width: 608px;
  margin-left: auto;
  margin-right: auto;
}
.action-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.action-row .btn {
  flex: 1;
  margin-top: 0 !important;
}
.action-bar .btn-line,
.action-bar .btn-cta {
  margin-bottom: 0;
}

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(16, 72, 84, 0.45);
  display: flex;
  align-items: flex-end;
  z-index: 20;
}
.sheet-body {
  background: #fff;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
}
.sheet-body h2 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--dark);
}

.notice {
  margin: 0 0 14px;
  border: 1px solid var(--light);
}

.consult-text {
  width: 100%;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 12px;
  border: 1px solid var(--light);
  border-radius: 8px;
  margin-bottom: 10px;
  resize: vertical;
}

.plan-lead {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

/* 12月版：見る順番 */
.order-title {
  margin: 18px 0 8px;
  font-size: 16px;
}
.order-list {
  margin: 0;
  padding-left: 1.6em;
  display: grid;
  gap: 8px;
}
.order-list li {
  line-height: 1.6;
}
.order-name {
  font-weight: 700;
  margin-right: 8px;
}
.order-when {
  font-size: 14px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.order-late .order-name,
.order-late .order-when {
  color: #7a8a90;
}
.order-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
  border-radius: 99px;
  background: var(--band);
  color: var(--text-3);
}
.order-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}

/* 12月版：開始画面のお知らせ */
.update-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--band);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
