/* EARS 試験対策 — exam portal / quiz / mypage (v2.0.0)
   Palette aligned with EARS: navy #0B1F3A, blue #00509e, gold #C9A96E */
:root {
  --ex-navy: #0B1F3A;
  --ex-blue: #00509e;
  --ex-gold: #C9A96E;
  --ex-bg: #f8faff;
  --ex-line: #e0e8f0;
  --ex-ok: #2e7d32;
  --ex-ng: #c0392b;
}

/* ---- buttons ---- */
.exam-btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-size: .95rem; font-weight: 700; line-height: 1; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; transition: all .2s;
  font-family: inherit;
}
.exam-btn-primary { background: var(--ex-blue); color: #fff; }
.exam-btn-primary:hover { background: #003e7c; color: #fff; }
.exam-btn-ghost { background: #fff; color: var(--ex-blue); border-color: var(--ex-line); }
.exam-btn-ghost:hover { background: var(--ex-bg); }
.exam-btn-ai { background: linear-gradient(120deg, var(--ex-navy), var(--ex-blue)); color: #fff; }
.exam-btn-ai:hover { filter: brightness(1.1); }
.exam-btn:disabled { opacity: .55; cursor: default; }

/* ---- account state banner ---- */
.exam-authbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; padding: 18px 24px;
  background: var(--ex-bg); border: 1px solid var(--ex-line); border-radius: 12px;
}
.exam-authbar-hi { color: var(--ex-navy); font-size: .95rem; }
.exam-authbar-actions { display: flex; gap: 10px; }

/* ---- portal grid ---- */
.exam-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.exam-card {
  position: relative; display: block; padding: 30px 26px 26px;
  background: #fff; border: 1px solid var(--ex-line); border-radius: 14px;
  text-decoration: none; color: inherit; transition: all .22s;
}
a.exam-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(11,31,58,.12); border-color: var(--ex-blue); }
.exam-card.is-soon { opacity: .65; }
.exam-card-badge {
  position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 100px;
  font-size: .7rem; font-weight: 700;
}
.exam-card-badge.is-ok { background: #e8f3ec; color: var(--ex-ok); }
.exam-card-badge.is-demo { background: #fdf3e3; color: #b8761a; }
.exam-card-badge.is-soon { background: #eef1f5; color: #7a8794; }
.exam-card-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ex-gold); font-weight: 700; }
.exam-card-title { font-size: 1.15rem; font-weight: 700; color: var(--ex-navy); margin: 8px 0 10px; line-height: 1.4; }
.exam-card-desc { font-size: .85rem; color: #5a6b7d; line-height: 1.7; }
.exam-card-go { display: inline-block; margin-top: 16px; color: var(--ex-blue); font-weight: 700; font-size: .9rem; }
.exam-privacy-note { margin-top: 36px; font-size: .8rem; color: #7a8794; line-height: 1.8; }
.exam-privacy-note a { color: var(--ex-blue); }

/* ---- gate ---- */
.exam-gate {
  text-align: center; padding: 56px 24px; background: var(--ex-bg);
  border: 1px solid var(--ex-line); border-radius: 14px;
}
.exam-gate h2 { color: var(--ex-navy); margin-bottom: 12px; }
.exam-gate p { color: #5a6b7d; margin-bottom: 24px; }

/* ---- quiz app ---- */
.exam-app { max-width: 720px; margin: 0 auto; }
.exam-startcard {
  text-align: center; padding: 48px 32px; background: #fff;
  border: 1px solid var(--ex-line); border-radius: 16px; box-shadow: 0 8px 30px rgba(11,31,58,.06);
}
.exam-startcard h2 { color: var(--ex-navy); margin-bottom: 12px; }
.exam-startcard p { color: #5a6b7d; margin-bottom: 28px; line-height: 1.8; }
.exam-demo-flag { background: #fdf3e3; color: #b8761a; padding: 10px 14px; border-radius: 8px; font-size: .82rem; margin-bottom: 20px; }

.exam-qbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.exam-qcount { font-weight: 700; color: var(--ex-navy); }
.exam-qtimer { font-variant-numeric: tabular-nums; color: var(--ex-blue); font-weight: 700; }
.exam-qprog { height: 6px; background: var(--ex-line); border-radius: 100px; overflow: hidden; margin-bottom: 28px; }
.exam-qprog span { display: block; height: 100%; background: var(--ex-blue); width: 0; transition: width .3s; }
.exam-qcat { font-size: .75rem; color: var(--ex-gold); font-weight: 700; letter-spacing: .05em; }
.exam-qtext { font-size: 1.3rem; line-height: 1.65; color: var(--ex-navy); margin: 8px 0 28px; }

.exam-choices { display: flex; flex-direction: column; gap: 12px; }
.exam-choice {
  text-align: left; padding: 16px 20px; border: 2px solid var(--ex-line); border-radius: 10px;
  background: #fff; font-size: 1rem; color: var(--ex-navy); cursor: pointer; transition: all .15s; font-family: inherit;
}
.exam-choice:hover { border-color: var(--ex-blue); background: var(--ex-bg); }
.exam-choice.is-sel { border-color: var(--ex-blue); background: #e8f0fe; font-weight: 700; }

.exam-qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

/* ---- result ---- */
.exam-resulthead { text-align: center; padding: 36px 24px; background: var(--ex-bg); border-radius: 16px; }
.exam-result-label { font-size: .75rem; letter-spacing: .12em; color: var(--ex-gold); font-weight: 700; }
.exam-score { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin: 8px 0; }
.exam-score-num { font-size: 3.4rem; font-weight: 800; color: var(--ex-blue); line-height: 1; }
.exam-score-sep, .exam-score-total { font-size: 1.6rem; color: #7a8794; }
.exam-score-pct { color: var(--ex-navy); font-weight: 600; }
.exam-saved-note { font-size: .8rem; color: #7a8794; margin-top: 8px; }

.exam-airow { text-align: center; margin: 32px 0 0; }
.exam-ai-hint { font-size: .82rem; color: #7a8794; margin-top: 12px; line-height: 1.7; }

.exam-report {
  margin: 24px 0 0; padding: 24px 26px; background: #fff;
  border: 1px solid var(--ex-line); border-left: 4px solid var(--ex-blue); border-radius: 10px;
}
.exam-report h4 { color: var(--ex-navy); margin: 18px 0 8px; font-size: 1rem; }
.exam-report h4:first-child { margin-top: 0; }
.exam-report p { color: #3f4f60; line-height: 1.85; margin: 6px 0; font-size: .92rem; }
.exam-report ul { margin: 6px 0 6px 1.2em; }
.exam-report li { color: #3f4f60; line-height: 1.8; font-size: .92rem; }

.exam-review-title { margin: 40px 0 16px; color: var(--ex-navy); font-size: 1.1rem; }
.exam-review { display: flex; flex-direction: column; gap: 12px; }
.exam-review-item { padding: 16px 18px; border-radius: 10px; border: 1px solid var(--ex-line); background: #fff; }
.exam-review-item.is-ok { border-left: 4px solid var(--ex-ok); }
.exam-review-item.is-ng { border-left: 4px solid var(--ex-ng); }
.exam-review-q { font-weight: 700; color: var(--ex-navy); margin-bottom: 6px; line-height: 1.6; }
.exam-review-a { font-size: .86rem; color: #5a6b7d; margin-bottom: 4px; }
.exam-review-exp { font-size: .84rem; color: #7a8794; line-height: 1.7; }

/* ---- account / mypage ---- */
.exam-account { max-width: 860px; }
.exam-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 28px; font-size: .9rem; }
.exam-notice.is-ok { background: #e8f3ec; color: var(--ex-ok); }
.exam-notice.is-err { background: #fdeceb; color: var(--ex-ng); }

.exam-auth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.exam-auth-card { padding: 32px 28px; background: #fff; border: 1px solid var(--ex-line); border-radius: 14px; }
.exam-auth-card h2 { color: var(--ex-navy); margin-bottom: 20px; font-size: 1.2rem; }
.exam-auth-card label { display: block; font-size: .85rem; color: var(--ex-navy); font-weight: 600; margin-bottom: 14px; }
.exam-auth-card input[type="email"],
.exam-auth-card input[type="password"],
.exam-auth-card input[type="text"] {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font-size: .95rem;
  border: 1px solid var(--ex-line); border-radius: 8px; font-family: inherit;
}
.exam-auth-card input:focus { outline: none; border-color: var(--ex-blue); }
.exam-auth-card .exam-btn { width: 100%; margin-top: 8px; }

.exam-consent { margin: 18px 0; }
.exam-consent-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.exam-consent-check input { margin-top: 3px; }
.exam-consent-box { margin-top: 12px; padding: 14px 16px; background: var(--ex-bg); border: 1px solid var(--ex-line); border-radius: 8px; }
.exam-consent-box strong { display: block; color: var(--ex-navy); font-size: .85rem; margin-bottom: 8px; }
.exam-consent-box ul { margin: 0 0 0 1.1em; }
.exam-consent-box li { font-size: .8rem; color: #5a6b7d; line-height: 1.7; }

.exam-profile { display: flex; justify-content: space-between; align-items: center; padding: 24px 26px; background: var(--ex-bg); border-radius: 12px; margin-bottom: 36px; }
.exam-profile-name { font-weight: 700; color: var(--ex-navy); font-size: 1.05rem; }
.exam-profile-mail { font-size: .85rem; color: #7a8794; }
.exam-section-h { color: var(--ex-navy); font-size: 1.2rem; margin-bottom: 18px; }
.exam-empty { color: #5a6b7d; }
.exam-empty a { color: var(--ex-blue); }

.exam-attempt { border: 1px solid var(--ex-line); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.exam-attempt-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: #fff; }
.exam-attempt-title { font-weight: 700; color: var(--ex-navy); }
.exam-attempt-date { font-size: .8rem; color: #7a8794; }
.exam-attempt-score { text-align: right; }
.exam-attempt-num { font-size: 1.3rem; font-weight: 800; color: var(--ex-blue); }
.exam-attempt-pct { display: block; font-size: .78rem; color: #7a8794; }
.exam-attempt-body { padding: 0 22px 22px; }
.exam-review-details { margin-top: 16px; }
.exam-review-details summary { cursor: pointer; color: var(--ex-blue); font-weight: 600; font-size: .9rem; padding: 6px 0; }
.exam-review-details .exam-review { margin-top: 14px; }

/* ---- learning dashboard ---- */
.exam-dash {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px;
}
.exam-stat {
  background: #fff; border: 1px solid var(--ex-line); border-radius: 12px;
  padding: 20px 16px; text-align: center;
}
.exam-stat-num { display: block; font-size: 1.9rem; font-weight: 800; color: var(--ex-navy); line-height: 1.1; }
.exam-stat-num small { font-size: .9rem; font-weight: 600; color: #7a8794; }
.exam-stat-lbl { display: block; margin-top: 6px; font-size: .76rem; color: #7a8794; }
.exam-stat.is-ng .exam-stat-num { color: var(--ex-ng); }
.exam-stat.is-ok .exam-stat-num { color: var(--ex-ok); }

.exam-recent { margin-top: 22px; padding: 20px 24px; background: var(--ex-bg); border-radius: 12px; }
.exam-recent-h { font-size: .82rem; color: #7a8794; font-weight: 700; margin-bottom: 14px; }
.exam-recent-row { display: flex; gap: 18px; align-items: flex-end; }
.exam-spark { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.exam-spark-bar { width: 26px; height: 70px; background: #e4ebf3; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.exam-spark-bar span { display: block; width: 100%; background: linear-gradient(180deg, var(--ex-blue), #2b7fd6); border-radius: 6px 6px 0 0; }
.exam-spark-pct { font-size: .78rem; font-weight: 700; color: var(--ex-navy); }
.exam-spark-lbl { font-size: .66rem; color: #7a8794; }

/* ---- 間違いノート ---- */
.exam-nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.exam-nb-card {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 20px 22px; background: #fff; border: 1px solid var(--ex-line);
  border-left: 4px solid var(--ex-ng); border-radius: 12px;
}
.exam-nb-title { font-weight: 700; color: var(--ex-navy); }
.exam-nb-count { font-size: .85rem; color: #5a6b7d; margin-top: 4px; }
.exam-nb-count strong { color: var(--ex-ng); font-size: 1.1rem; }

/* review-mode start flags */
.exam-review-flag { background: #e8f0fe; color: var(--ex-blue); padding: 12px 16px; border-radius: 8px; font-size: .85rem; margin-bottom: 18px; line-height: 1.7; }
.exam-empty-review { margin-top: 18px; color: var(--ex-ok); font-weight: 700; }

@media (max-width: 720px) {
  .exam-auth-cols { grid-template-columns: 1fr; }
  .exam-qtext { font-size: 1.15rem; }
  .exam-authbar { flex-direction: column; align-items: flex-start; }
  .exam-nb-card { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ============================================================
   Exam standalone layout (v2.6.0) — lightweight learning space.
   Used by header-exam.php / footer-exam.php on /exam/, /exam/driving/,
   /exam/boki/, /exam/account/. White brand bar + slim navy footer;
   none of the main site's prefooter / SNS / multi-column footer.
   ============================================================ */
/* the exam header is sticky in normal flow → cancel the global 80px
   fixed-header offset applied to non-home pages */
body.ears-exam-layout { padding-top: 0 !important; }

/* ---- header ---- */
.exam-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e6e9ef;
  box-shadow: 0 1px 0 rgba(10, 52, 114, 0.02);
}
.exam-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.exam-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.exam-brand-logo { height: 30px; width: auto; display: block; } /* navy logo on white — no filter */
.exam-brand-divider { width: 1px; height: 22px; background: #d5dae3; }
.exam-brand-label {
  color: #0A3472;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.exam-nav { display: flex; align-items: center; gap: 6px; }
.exam-nav-link {
  color: #3a4761;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.exam-nav-link:hover { background: #eef2f8; color: #0A3472; }
.exam-nav-link--cta { background: #0A3472; color: #fff; }
.exam-nav-link--cta:hover { background: #072B61; color: #fff; }
.exam-back-short { display: none; }

/* ---- slim footer (brand navy) ---- */
.exam-footer {
  background: #0A3472;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 64px;
}
.exam-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.exam-footer-copy { margin: 0; font-size: 0.85rem; letter-spacing: 0.03em; }
.exam-footer-links { display: flex; gap: 22px; }
.exam-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
}
.exam-footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---- mobile ---- */
@media (max-width: 600px) {
  .exam-header-inner { height: 56px; padding: 0 14px; gap: 8px; }
  .exam-brand-logo { height: 26px; }
  .exam-brand-label { font-size: 0.96rem; }
  .exam-nav { gap: 2px; }
  .exam-nav-link { padding: 7px 9px; font-size: 0.82rem; }
  .exam-back-full { display: none; }
  .exam-back-short { display: inline; }
  .exam-footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* ============================================================
   /exam/ learning-platform dashboard (v2.7.0)
   Modern EdTech feel: soft bg, rounded cards, themed exam tiles,
   value hero, stat strip, learning-flow stepper.
   ============================================================ */
.exam-dashboard {
  background: #f4f7fc;
  color: #1d2944;
  font-feature-settings: "palt";
}
.dash-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.dash-eyebrow {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2f6cc0;
}

/* ---------- buttons ---------- */
.dash-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1.5px solid transparent;
}
.dash-btn-primary { background: #0A3472; color: #fff; box-shadow: 0 6px 18px rgba(10,52,114,.22); }
.dash-btn-primary:hover { background: #072B61; color: #fff; transform: translateY(-2px); }
.dash-btn-ghost { background: #fff; color: #0A3472; border-color: #d3ddec; }
.dash-btn-ghost:hover { border-color: #0A3472; transform: translateY(-2px); }
.dash-btn-cta { background: #0A3472; color: #fff; width: 100%; box-shadow: 0 8px 20px rgba(10,52,114,.22); }
.dash-btn-cta:hover { background: #072B61; color: #fff; transform: translateY(-2px); }

/* ---------- hero ---------- */
.dash-hero { padding: 56px 0 36px; }
.dash-hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: center; }
.dash-hero-title { margin: 0 0 16px; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.28; color: #0c1f44; letter-spacing: .01em; }
.dash-hero-lead { margin: 0 0 28px; font-size: 1rem; line-height: 1.95; color: #475067; max-width: 30em; }
.dash-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* value card */
.dash-value {
  position: relative;
  background: #fff; border-radius: 22px; padding: 28px 26px 26px;
  border: 1px solid #e9eef6; box-shadow: 0 16px 40px rgba(13,40,80,.10);
}
.dash-value-mascot {
  position: absolute; top: -34px; right: 20px;
  width: 76px; height: 76px; border-radius: 50%;
  background: #eef4ff; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(13,40,80,.14);
  display: grid; place-items: center; overflow: hidden;
}
.dash-value-mascot img { width: 86%; height: 86%; object-fit: contain; }
.dash-value-kicker { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: #2f6cc0; text-transform: uppercase; }
.dash-value-title { margin: 0 0 18px; font-size: 1.35rem; font-weight: 800; color: #0c1f44; }
.dash-value-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.dash-value-list li { position: relative; padding-left: 32px; font-size: .98rem; font-weight: 600; color: #2b3650; }
.dash-value-list li::before {
  content: "✓"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: #16a34a; color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- stat strip ---------- */
.dash-stats { padding: 14px 0 8px; }
.dash-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-stat {
  background: #fff; border-radius: 16px; padding: 22px 20px; text-align: center;
  border: 1px solid #e9eef6; box-shadow: 0 6px 20px rgba(13,40,80,.05);
}
.dash-stat-ico { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.dash-stat-num { display: block; font-size: 2.1rem; font-weight: 800; color: #0A3472; line-height: 1.1; }
.dash-stat-label { display: block; margin-top: 4px; font-size: .85rem; color: #5b6781; }

/* ---------- section heads ---------- */
.dash-sec-head { text-align: center; margin: 44px 0 26px; }
.dash-sec-title { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: #0c1f44; }
.dash-sec-sub { margin: 0; color: #5b6781; font-size: .96rem; }

/* ---------- exam cards ---------- */
.dash-exams { padding: 8px 0 12px; }
.dash-exam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dash-exam-card {
  --c: #2f6cc0; --c-tint: #eef4ff; --c-deep: #1f4f9e;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; padding: 24px 22px 22px;
  border: 1px solid #e9eef6; box-shadow: 0 8px 24px rgba(13,40,80,.06);
  text-decoration: none; color: inherit;
  border-top: 4px solid var(--c);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
a.dash-exam-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(13,40,80,.13); }
.dash-exam-card.theme-green  { --c: #16a34a; --c-tint: #e9f9ef; --c-deep: #15803d; }
.dash-exam-card.theme-orange { --c: #f97316; --c-tint: #fff1e6; --c-deep: #ea580c; }
.dash-exam-card.theme-slate  { --c: #64748b; --c-tint: #eef1f6; --c-deep: #475569; }
.dash-exam-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-exam-icon {
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--c-tint); display: grid; place-items: center; font-size: 1.7rem;
}
.dash-exam-badge {
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--c-tint); color: var(--c-deep);
}
.dash-exam-badge.is-demo { background: #fff4e0; color: #b4690e; }
.dash-exam-badge.is-soon { background: #eef1f6; color: #64748b; }
.dash-exam-name { margin: 0 0 4px; font-size: 1.18rem; font-weight: 800; color: #0c1f44; line-height: 1.4; }
.dash-exam-label { margin: 0 0 16px; font-size: .8rem; letter-spacing: .04em; color: #8a93a6; }
.dash-exam-meta { list-style: none; margin: 0 0 18px; padding: 14px 0 4px; border-top: 1px dashed #e6eaf1; display: grid; gap: 10px; }
.dash-exam-meta li { display: flex; align-items: baseline; justify-content: space-between; font-size: .9rem; }
.dash-exam-meta li span { color: #6b7488; }
.dash-exam-meta li strong { color: #1d2944; font-weight: 700; }
.dash-exam-go { margin-top: auto; font-weight: 800; font-size: .95rem; color: var(--c-deep); }
.dash-exam-go.is-soon { color: #9aa3b5; }
.dash-exam-card.is-soon { opacity: .92; }

/* ---------- learning flow ---------- */
.dash-flow { padding: 12px 0 56px; }
.dash-flow-steps {
  list-style: none; margin: 0; padding: 26px 22px; display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  background: #fff; border-radius: 22px; border: 1px solid #e9eef6; box-shadow: 0 8px 24px rgba(13,40,80,.06);
}
.dash-step { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 120px; position: relative; }
.dash-step-no {
  position: absolute; top: -4px; right: 26px;
  width: 22px; height: 22px; border-radius: 50%; background: #0A3472; color: #fff;
  font-size: .74rem; font-weight: 800; display: grid; place-items: center; z-index: 2;
}
.dash-step-ico {
  width: 64px; height: 64px; border-radius: 18px; background: #eef4ff;
  display: grid; place-items: center; font-size: 1.7rem; box-shadow: inset 0 0 0 1px #e1e9f6;
}
.dash-step-label { font-size: .9rem; font-weight: 700; color: #28324a; text-align: center; }
.dash-flow-arrow { color: #b9c3d6; font-size: 1.3rem; font-weight: 700; }
.dash-flow-note { margin: 20px 4px 0; font-size: .82rem; color: #79839a; line-height: 1.8; text-align: center; }
.dash-flow-note a { color: #2f6cc0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .dash-hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .dash-exam-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .dash-hero { padding: 36px 0 24px; }
  .dash-stats-grid { grid-template-columns: 1fr; }
  .dash-exam-grid { grid-template-columns: 1fr; }
  .dash-flow-steps { flex-direction: column; }
  .dash-flow-arrow { transform: rotate(90deg); }
  .dash-step { width: 100%; flex-direction: row; justify-content: flex-start; gap: 14px; }
  .dash-step-no { position: static; }
  .dash-step-label { text-align: left; }
}

/* =====================================================================
   v2.9.0 — Kawaii EdTech 学習スペース (いちごちゃん)
   /exam/ ランディング・マイページ・結果画面の共通デザインシステム。
   ===================================================================== */
.exam-kawaii, .exam-kawaii * { box-sizing: border-box; }
.exam-kawaii {
  --k-card:#ffffff; --k-ink:#1F2A44; --k-soft:#667085; --k-line:rgba(120,185,230,.34);
  --k-pink:#2F80D8; --k-pink-deep:#1E66BE; --k-pink-soft:#DCEEFF;
  --k-mint:#8BCFA8; --k-sky:#7BC6E8; --k-amber:#F6C85F; --k-grape:#b79be6;
  --k-shadow:0 18px 45px rgba(47,128,216,.10);
  --k-shadow-sm:0 8px 22px rgba(47,128,216,.08);
  position: relative;
  padding: 14px 20px 70px;
  background:
    radial-gradient(circle at 12% 0%, rgba(220,238,255,.85) 0%, rgba(220,238,255,0) 34%),
    radial-gradient(circle at 90% 4%, rgba(225,242,255,.7) 0%, rgba(225,242,255,0) 30%),
    linear-gradient(180deg, #F6FBFF 0%, #FFFFFF 100%);
  font-family: "Noto Sans JP", sans-serif;
  color: var(--k-ink);
  overflow: hidden;
}
.exam-kawaii::before, .exam-kawaii::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
}
.exam-kawaii::before { width: 320px; height: 320px; top: -60px; left: -80px; }
.exam-kawaii::after  { width: 260px; height: 260px; bottom: 40px; right: -70px; }
.kwrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.ksparkle { position: absolute; z-index: 1; color: #ffd36b; font-size: 18px; opacity: .85; pointer-events: none; animation: ktwinkle 3.2s ease-in-out infinite; }
@keyframes ktwinkle { 0%,100%{ transform: scale(1); opacity:.5 } 50%{ transform: scale(1.25); opacity:1 } }

.keyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--k-pink-deep); text-transform: uppercase; margin: 0 0 6px; }
.ksec-h { text-align: center; font-size: clamp(22px,3vw,30px); font-weight: 900; margin: 0 0 4px; }
.ksec-sub { text-align: center; color: var(--k-soft); font-size: 14px; margin: 0 auto 22px; max-width: 620px; }

.kbtn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  font-weight: 800; font-size: 15px; border-radius: 999px; padding: 13px 26px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; font-family: inherit; }
.kbtn-primary { background: #2F80D8; color: #fff; box-shadow: 0 8px 18px rgba(47,128,216,.26); }
.kbtn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(47,128,216,.34); background: #1E66BE; color:#fff; }
.kbtn-ghost { background: #fff; color: var(--k-pink-deep); box-shadow: inset 0 0 0 2px var(--k-pink-soft); }
.kbtn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--k-pink); color: var(--k-pink-deep); }

.kcard { background: var(--k-card); border-radius: 26px; box-shadow: var(--k-shadow); border: 1px solid var(--k-line); }

/* HERO — welcome card: left copy/CTA, right mascot + floating mini-cards */
.khero { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 30px; align-items: center;
  background:
    radial-gradient(120% 120% at 100% 0%, #EAF4FF 0%, rgba(234,244,255,0) 55%),
    linear-gradient(160deg, #FFFFFF 0%, #F3FAFF 100%);
  border: 1px solid var(--k-line); border-radius: 30px; padding: 42px 50px;
  box-shadow: var(--k-shadow); margin-bottom: 24px; overflow: hidden; }
.khero-text { position: relative; z-index: 3; }
.khero-title { font-size: clamp(27px,3.4vw,40px); font-weight: 900; line-height: 1.24; margin: 6px 0 14px; letter-spacing: .01em; }
.khero-title .pink { color: var(--k-pink); }
.khero-lead { color: var(--k-soft); font-size: 15px; line-height: 1.9; margin: 0 0 24px; max-width: 460px; }
.khero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.khero-art { position: relative; align-self: stretch; min-height: 320px; display: grid; place-items: center; }
.khero-halo { position: absolute; z-index: 0; width: min(330px,80%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #DCEEFF 0%, rgba(220,238,255,.45) 45%, rgba(220,238,255,0) 72%); }
.khero-art img { position: relative; z-index: 1; width: clamp(210px,23vw,270px); height: auto;
  filter: drop-shadow(0 16px 24px rgba(47,128,216,.20)); animation: kfloat 5s ease-in-out infinite; }
@keyframes kfloat { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-10px) } }
.khero-mini { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--k-line); border-radius: 14px; padding: 9px 13px 9px 10px;
  box-shadow: 0 10px 24px rgba(47,128,216,.14); animation: kfloat 5s ease-in-out infinite; }
.khero-mini .kicon { width: 32px; height: 32px; border-radius: 9px; margin: 0; }
.khero-mini .kicon svg { width: 18px; height: 18px; }
.khero-mini b { display: block; font-size: 12.5px; font-weight: 800; color: var(--k-ink); line-height: 1.2; }
.khero-mini span { font-size: 10.5px; color: var(--k-soft); }
.khero-mini.m1 { top: 6%; left: -2%; animation-delay: .2s; }
.khero-mini.m2 { top: 42%; right: -4%; animation-delay: 1.1s; }
.khero-mini.m3 { bottom: 6%; left: 4%; animation-delay: .7s; }

/* feature cards */
.kfeat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 34px; }
.kfeat { background: #fff; border-radius: 22px; padding: 20px 18px; box-shadow: var(--k-shadow-sm); border: 1px solid var(--k-line); transition: transform .15s ease; }
.kfeat:hover { transform: translateY(-4px); }
.kfeat-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; margin-bottom: 12px; background: var(--k-pink-soft); }
.kfeat.c-pink .kfeat-ico { background:#ece7fb } .kfeat.c-sky .kfeat-ico { background:#e6f1fe }
.kfeat.c-mint .kfeat-ico { background:#e2f6ec } .kfeat.c-amber .kfeat-ico { background:#fff0db }
.kfeat-t { font-weight: 800; font-size: 15px; margin: 0 0 5px; }
.kfeat-d { color: var(--k-soft); font-size: 12.5px; line-height: 1.6; margin: 0; }

/* stat pills */
.kstats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 36px; }
.kstat { background: #fff; border-radius: 22px; padding: 20px; text-align: center; box-shadow: var(--k-shadow-sm); border: 1px solid var(--k-line); }
.kstat-ico { font-size: 24px; } .kstat-num { display: block; font-size: 30px; font-weight: 900; color: var(--k-pink-deep); line-height: 1.1; }
.kstat-lbl { color: var(--k-soft); font-size: 12.5px; font-weight: 700; }

/* exam choice cards */
.kexam-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 38px; }
.kexam { --c: var(--k-pink); position: relative; display: block; text-decoration: none; color: var(--k-ink);
  background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--k-shadow-sm); border: 1px solid var(--k-line);
  border-top: 5px solid var(--c); transition: transform .15s ease, box-shadow .15s ease; }
.kexam:hover { transform: translateY(-5px); box-shadow: var(--k-shadow); color: var(--k-ink); }
.kexam.t-green { --c: var(--k-mint) } .kexam.t-orange { --c: var(--k-amber) } .kexam.t-slate { --c: #9aa7b5 }
.kexam-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.kexam-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--c) 16%, #fff); }
.kexam-badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.kexam-badge.ok { background: var(--k-pink-soft); color: var(--k-pink-deep); }
.kexam-badge.demo, .kexam-badge.soon { background: #eef1f5; color: #8b97a5; }
.kexam-name { font-size: 18px; font-weight: 900; margin: 4px 0 2px; }
.kexam-label { color: var(--k-soft); font-size: 12px; margin: 0 0 14px; }
.kexam-meta { list-style: none; margin: 0 0 14px; padding: 14px 0 0; border-top: 1px dashed var(--k-line); display: grid; gap: 8px; }
.kexam-meta li { display: flex; justify-content: space-between; font-size: 13px; }
.kexam-meta span { color: var(--k-soft); } .kexam-meta strong { font-weight: 800; }
.kexam-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--c); }
.kexam.is-soon { opacity: .9; } .kexam.is-soon .kexam-go { color: #9aa7b5; }

/* flow stepper */
.kflow { display: flex; align-items: stretch; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.kstep { background: #fff; border-radius: 20px; padding: 16px 14px; text-align: center; box-shadow: var(--k-shadow-sm); border: 1px solid var(--k-line); width: 150px; }
.kstep-no { width: 26px; height: 26px; border-radius: 50%; background: var(--k-pink); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; margin: 0 auto 8px; }
.kstep-ico { font-size: 26px; display: block; margin-bottom: 4px; }
.kstep-t { font-weight: 800; font-size: 13px; }
.kflow-arrow { align-self: center; color: var(--k-pink); font-weight: 900; font-size: 20px; }
.kbar-cheer { margin: 34px auto 0; max-width: 760px; display: flex; align-items: center; gap: 12px; justify-content: center;
  background: linear-gradient(135deg,#F3FAFF,#E4F1FF); border: 1px solid var(--k-line); border-radius: 999px;
  padding: 14px 26px; font-weight: 800; color: var(--k-pink-deep); box-shadow: var(--k-shadow-sm); }

/* value / login card */
.kvalue { position: relative; background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--k-shadow); border: 1px solid var(--k-line); }
.kvalue-list { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 11px; }
.kvalue-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.kvalue-list li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--k-mint); color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center; flex: 0 0 auto; }

/* MYPAGE DASHBOARD */
.kdash-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-bottom: 18px; }
.kpad { padding: 22px 24px; }
.kcard-h { font-weight: 900; font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }

.klevel-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.klevel-badge { width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg,#ffd86b,#ffb259); color: #7a5326; box-shadow: 0 10px 20px rgba(255,178,89,.34); }
.klevel-badge b { display: block; font-size: 30px; font-weight: 900; line-height: 1; }
.klevel-badge span { font-size: 10px; font-weight: 800; }
.klevel-title { font-weight: 900; font-size: 18px; margin: 0 0 2px; }
.klevel-sub { color: var(--k-soft); font-size: 12.5px; margin: 0 0 10px; }
.kxp { height: 12px; border-radius: 999px; background: #E6EEF8; overflow: hidden; }
.kxp > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#7FB4ED,#1E66BE); }
.kxp-lbl { font-size: 11px; color: var(--k-soft); margin-top: 5px; font-weight: 700; }

.kstreak-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.kstreak-num { font-size: 34px; font-weight: 900; color: var(--k-amber); line-height: 1; }
.kstreak-week { display: flex; justify-content: space-between; gap: 6px; }
.kday { flex: 1; text-align: center; }
.kday-dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 5px; display: grid; place-items: center; font-size: 14px; background: #E6EEF8; color: #c7b3ba; }
.kday.on .kday-dot { background: linear-gradient(135deg,#ffd86b,#ff9b57); color: #fff; box-shadow: 0 6px 12px rgba(255,155,87,.4); }
.kday-wd { font-size: 10px; color: var(--k-soft); font-weight: 700; }

.kdonut-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.kdonut { --pct: 0; --c: var(--k-pink); position: relative; width: 124px; height: 124px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--c) calc(var(--pct)*1%), #E6EEF8 0); display: grid; place-items: center; }
.kdonut i { width: 92px; height: 92px; background: #fff; border-radius: 50%; display: grid; place-items: center; text-align: center; font-style: normal; box-shadow: inset 0 0 0 1px var(--k-line); }
.kdonut b { font-size: 28px; font-weight: 900; color: var(--k-ink); line-height: 1; } .kdonut small { display: block; font-size: 11px; color: var(--k-soft); font-weight: 700; }
.kmini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kmini div { background: #F5FAFF; border: 1px solid var(--k-line); border-radius: 16px; padding: 12px; text-align: center; }
.kmini b { display: block; font-size: 20px; font-weight: 900; color: var(--k-pink-deep); } .kmini span { font-size: 11px; color: var(--k-soft); font-weight: 700; }

.exam-trend-svg { width: 100%; height: auto; display: block; }
.trend-grid { stroke: #E6EEF8; stroke-width: 1; } .trend-axis { fill: #b9a6ae; font-size: 10px; }
.trend-line { stroke: #1E66BE; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend-fill-top { stop-color: #6BA9EC; stop-opacity: .28; } .trend-fill-bot { stop-color: #6BA9EC; stop-opacity: 0; }
.trend-dot { fill: #fff; stroke: #1E66BE; stroke-width: 2.4; } .trend-dot.is-last { fill: #1E66BE; }
.trend-last { fill: #1E66BE; font-size: 14px; font-weight: 800; }

.ksubj { display: grid; gap: 13px; }
.ksubj-row { display: grid; grid-template-columns: 88px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.ksubj-name { font-weight: 800; } .ksubj-track { height: 12px; border-radius: 999px; background: #E6EEF8; overflow: hidden; }
.ksubj-track > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#9be3c2,#8BCFA8); }
.ksubj.t-orange .ksubj-track > span { background: linear-gradient(90deg,#ffd29a,#F6C85F); }
.ksubj-val { text-align: right; font-weight: 900; color: var(--k-ink); }

.kbadges { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.kbadge { text-align: center; }
.kbadge-coin { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg,#fff0d6,#ffe1b0); box-shadow: 0 8px 16px rgba(255,178,89,.3); }
.kbadge.locked .kbadge-coin { background: #eef0f3; filter: grayscale(1); opacity: .5; box-shadow: none; }
.kbadge-l { font-size: 11.5px; font-weight: 800; } .kbadge-d { font-size: 10px; color: var(--k-soft); }
.kbadge.locked .kbadge-l { color: #b6b0b3; }

.knb { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; }
.knb-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background:#fff; border:1px solid var(--k-line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--k-shadow-sm); }
.knb-card b { font-size: 22px; color: var(--k-pink-deep); }

.kcoach { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: linear-gradient(135deg,#F3FAFF,#E4F1FF); border: 1px solid var(--k-line); border-radius: 24px; padding: 18px 22px; box-shadow: var(--k-shadow-sm); }
.kcoach img { width: 96px; height: auto; }
.kcoach-bubble { background: #fff; border-radius: 16px 16px 16px 4px; padding: 14px 16px; box-shadow: var(--k-shadow-sm); font-weight: 700; }

.knext { display: grid; gap: 10px; }
.knext-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--k-line); border-radius: 16px; padding: 13px 16px; box-shadow: var(--k-shadow-sm); text-decoration: none; color: var(--k-ink); transition: transform .15s ease; }
.knext-item:hover { transform: translateX(4px); color: var(--k-ink); }
.knext-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--k-pink-soft); flex: 0 0 auto; }
.knext-t { font-weight: 800; font-size: 14px; } .knext-d { font-size: 12px; color: var(--k-soft); }

/* token carrier for kawaii components used OUTSIDE .exam-kawaii (e.g. quiz result) */
.kscope {
  --k-card:#ffffff; --k-ink:#1F2A44; --k-soft:#667085; --k-line:#D8E8F7;
  --k-pink:#2F80D8; --k-pink-deep:#1E66BE; --k-pink-soft:#DCEEFF;
  --k-mint:#8BCFA8; --k-sky:#7BC6E8; --k-amber:#F6C85F; --k-grape:#b79be6;
  --k-shadow:0 16px 38px rgba(47,128,216,.13); --k-shadow-sm:0 8px 20px rgba(47,128,216,.10);
  color: var(--k-ink);
}
.kresult { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.kresult-art img { width: clamp(180px,20vw,240px); height: auto; }
.kresult-score { font-size: 56px; font-weight: 900; color: var(--k-pink-deep); line-height: 1; }

.kauth { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.kauth-card { background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--k-shadow); border: 1px solid var(--k-line); }
.kauth-card h2 { font-size: 20px; font-weight: 900; margin: 0 0 16px; }
.kauth-card label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.kauth-card input[type=email], .kauth-card input[type=password], .kauth-card input[type=text] {
  width: 100%; margin-top: 5px; padding: 11px 14px; border: 1.5px solid var(--k-line); border-radius: 12px; font-size: 14px; font-family: inherit; }
.kauth-card input:focus { outline: none; border-color: var(--k-pink); }
.kauth-card .kbtn { width: 100%; justify-content: center; margin-top: 6px; }

.kmb { margin-bottom: 36px; }
.ksec-head { text-align: center; margin-bottom: 22px; }

/* section header with a themed いちごちゃん illustration beside it */
.ksec-head-art { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 24px; flex-wrap: wrap; }
.ksec-head-art .ksec-head { margin-bottom: 0; text-align: left; }
.ksec-mascot { width: clamp(86px,11vw,126px); height: auto; flex: 0 0 auto; filter: drop-shadow(0 10px 16px rgba(47,128,216,.18)); }
.ksec-mascot.flip { transform: scaleX(-1); }
@media (max-width: 560px) {
  .ksec-head-art { flex-direction: column; gap: 10px; }
  .ksec-head-art .ksec-head { text-align: center; }
}

@media (max-width: 900px) {
  .khero { grid-template-columns: 1fr; text-align: center; padding: 40px 30px 34px; gap: 16px; }
  .khero-text { order: 1; } .khero-art { order: 2; min-height: 250px; }
  .khero-cta { justify-content: center; } .khero-lead { margin-inline: auto; }
  .khero-tags { justify-content: center; }
  .khero-mini { display: none; }            /* avoid overlap on small screens */
  .kfeat-grid { grid-template-columns: repeat(2,1fr); }
  .kexam-grid { grid-template-columns: repeat(2,1fr); }
  .kdash-grid { grid-template-columns: 1fr; }
  .kbadges { grid-template-columns: repeat(3,1fr); }
  .kflow-arrow { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .kfeat-grid, .kexam-grid, .kstats { grid-template-columns: 1fr; }
  .kauth { grid-template-columns: 1fr; }
  .klevel-card, .kdonut-card, .kresult, .kcoach { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .kbadges { grid-template-columns: repeat(2,1fr); }
}

/* =====================================================================
   v2.9.5 — ログインページ & 結果ページを首页 v2.9.4 の視覚言語に統一
   ===================================================================== */
/* ---- Login / auth : welcome split card ---- */
.kauth-split { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; padding: 0; }
.kauth-welcome { position: relative; padding: 44px 42px;
  background:
    radial-gradient(120% 120% at 0% 0%, #EAF4FF 0%, rgba(234,244,255,0) 56%),
    linear-gradient(160deg, #F3FAFF 0%, #FFFFFF 100%);
  border-right: 1px solid var(--k-line); }
.kauth-welcome h1 { font-size: clamp(22px,2.6vw,30px); font-weight: 900; line-height: 1.38; margin: 6px 0 12px; }
.kauth-welcome .lead { color: var(--k-soft); font-size: 14px; line-height: 1.9; margin: 0 0 20px; }
.kauth-mascot { width: clamp(120px,14vw,158px); height: auto; display: block; margin: 0 0 18px;
  filter: drop-shadow(0 12px 18px rgba(47,128,216,.18)); }
.kauth-feats { display: grid; gap: 10px; }
.kauth-feat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--k-line);
  border-radius: 14px; padding: 11px 14px; box-shadow: var(--k-shadow-sm); }
.kauth-feat .kicon { width: 38px; height: 38px; margin: 0; border-radius: 11px; flex: 0 0 auto; }
.kauth-feat .kicon svg { width: 20px; height: 20px; }
.kauth-feat b { display: block; font-size: 13px; font-weight: 800; }
.kauth-feat span { font-size: 11.5px; color: var(--k-soft); }
.kauth-formwrap { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
.kauth-formwrap h2 { font-size: 21px; font-weight: 900; margin: 0 0 18px; }
.kauth-formwrap label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 14px; color: var(--k-ink); }
.kauth-formwrap input[type=email], .kauth-formwrap input[type=password], .kauth-formwrap input[type=text] {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--k-line); border-radius: 12px;
  font-size: 14px; font-family: inherit; background: #FbFdFF; transition: border-color .15s ease, box-shadow .15s ease; }
.kauth-formwrap input:focus { outline: none; border-color: var(--k-pink); box-shadow: 0 0 0 3px rgba(47,128,216,.14); }
.kauth-formwrap .kbtn { width: 100%; justify-content: center; margin-top: 6px; }
.kauth-reg-cta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--k-line); text-align: center;
  font-size: 13px; color: var(--k-soft); }
.kauth-reg-cta a { color: var(--k-pink); font-weight: 800; }
.kreg-card { max-width: 560px; margin: 18px auto 0; }
.kreg-card .exam-consent-box { background: #F5FAFF; border: 1px solid var(--k-line); border-radius: 12px;
  padding: 12px 14px; margin-top: 10px; font-size: 12px; color: var(--k-soft); line-height: 1.7; }
.kreg-card .exam-consent-box ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 820px) {
  .kauth-split { grid-template-columns: 1fr; }
  .kauth-welcome { border-right: none; border-bottom: 1px solid var(--k-line); text-align: center; }
  .kauth-mascot { margin-inline: auto; }
  .kauth-feats { text-align: left; }
}

/* ---- Result page : report-dashboard ---- */
.kresult-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; align-items: center;
  background:
    radial-gradient(120% 120% at 100% 0%, #EAF4FF 0%, rgba(234,244,255,0) 55%),
    linear-gradient(160deg, #FFFFFF 0%, #F3FAFF 100%);
  border: 1px solid var(--k-line); border-radius: 26px; padding: 34px 40px; box-shadow: var(--k-shadow); margin-bottom: 18px; }
.kresult-hero h2 { font-size: clamp(20px,2.4vw,27px); font-weight: 900; margin: 6px 0 8px; line-height: 1.34; }
.kresult-hero .lead { color: var(--k-soft); font-size: 14px; line-height: 1.85; margin: 0; max-width: 420px; }
.kresult-exam { display: inline-block; margin-top: 14px; background: var(--k-pink-soft); color: var(--k-pink-deep);
  font-weight: 800; font-size: 13px; border-radius: 999px; padding: 6px 14px; }
.kresult-scorebox { display: flex; align-items: center; gap: 16px; justify-content: center; }
.kresult-art2 img { width: clamp(96px,11vw,128px); height: auto; filter: drop-shadow(0 10px 16px rgba(47,128,216,.16)); }
.ksum { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.ksum-card { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; padding: 18px;
  text-align: center; box-shadow: var(--k-shadow-sm); }
.ksum-card .kicon { margin: 0 auto 8px; width: 40px; height: 40px; }
.ksum-num { font-size: 26px; font-weight: 900; color: var(--k-ink); line-height: 1; }
.ksum-num.is-ng { color: #E8893A; } .ksum-num.is-ok { color: #4E9E73; }
.ksum-num small { font-size: 13px; color: var(--k-soft); font-weight: 700; }
.ksum-lbl { font-size: 12px; color: var(--k-soft); font-weight: 700; margin-top: 6px; }
.kresult-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 4px 0 6px; }
.knext-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--k-pink-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) { .kresult-hero { grid-template-columns: 1fr; text-align: center; } .kresult-hero .lead { margin-inline: auto; } }
@media (max-width: 680px) { .ksum { grid-template-columns: repeat(2,1fr); } }

/* =====================================================================
   v2.9.3 — 教育トーンの調整: 線アイコン / Heroタグ / 学習データ / Bottom CTA
   ===================================================================== */
/* line icons (no emoji / no robot) — soft tinted chip + stroke icon */
.kicon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--k-pink-soft); color: var(--k-pink-deep); margin-bottom: 14px; }
.kicon svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kicon.c-blue  { background:#DCEEFF; color:#1E66BE; }
.kicon.c-cyan  { background:#DFF3FB; color:#2E8CB0; }
.kicon.c-green { background:#E4F4EB; color:#4E9E73; }
.kicon.c-amber { background:#FCF1D8; color:#B9882B; }
.kexam-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kexam.is-soon .kexam-ico svg { stroke: #94a3b5; }

/* hero feature tags (small, calm) */
.khero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.khero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--k-pink-deep); background: var(--k-pink-soft); border-radius: 999px; padding: 6px 13px; }
.khero-tag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* learning-data preview cards */
.kdata { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.kdata-card { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; padding: 22px;
  box-shadow: var(--k-shadow-sm); display: flex; align-items: center; gap: 14px; }
.kdata-card .kicon { margin-bottom: 0; }
.kdata-num { font-size: 26px; font-weight: 900; color: var(--k-pink-deep); line-height: 1.1; }
.kdata-num small { font-size: 13px; color: var(--k-soft); font-weight: 700; margin-left: 2px; }
.kdata-lbl { font-size: 13px; color: var(--k-soft); font-weight: 700; }
.kdata-hint { text-align: center; color: var(--k-soft); font-size: 13px; margin-top: 16px; }
.kdata-hint a { color: var(--k-pink-deep); font-weight: 700; }

/* bottom CTA band */
.kcta { margin-top: 12px; text-align: center; border-radius: 28px; padding: 46px 30px;
  background: linear-gradient(135deg, #EAF4FF 0%, #DCEEFF 100%); border: 1px solid var(--k-line); }
.kcta h2 { font-size: clamp(20px,2.6vw,26px); font-weight: 900; color: var(--k-ink); margin: 0 0 10px; }
.kcta p { color: #44597a; font-size: 14px; line-height: 1.8; margin: 0 auto 22px; max-width: 520px; }
.kcta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* step icons in flow */
.kstep .kicon { margin: 0 auto 8px; width: 44px; height: 44px; }

@media (max-width: 900px) { .kdata { grid-template-columns: 1fr; } }

/* =====================================================================
   v2.9.6 — Welcome Board (参考画像2): 左上=歓迎カード / 左下=2×2機能 /
   右=大いちごちゃん / 下=横長スローガンバー
   ===================================================================== */
.exam-welcome-board {
  display: grid;
  grid-template-columns: minmax(0,1.42fr) minmax(0,1fr);
  grid-template-areas: "left mascot" "bar bar";
  gap: 18px; align-items: stretch; margin-bottom: 30px;
}
.welcome-left { grid-area: left; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.welcome-card {
  background:
    radial-gradient(120% 130% at 0% 0%, #EAF4FF 0%, rgba(234,244,255,0) 58%),
    linear-gradient(160deg, #FFFFFF 0%, #F3FAFF 100%);
  border: 1px solid var(--k-line); border-radius: 26px; padding: 32px 34px; box-shadow: var(--k-shadow); }
.welcome-card h1 { font-size: clamp(23px,2.9vw,33px); font-weight: 900; line-height: 1.3; margin: 4px 0 12px; }
.welcome-card h1 .pink { color: var(--k-pink); }
.welcome-card .lead { color: var(--k-soft); font-size: 14.5px; line-height: 1.85; margin: 0 0 22px; }
.welcome-card .welcome-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.welcome-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wfeat { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--k-line);
  border-radius: 20px; padding: 17px 18px; box-shadow: var(--k-shadow-sm); text-decoration: none; color: var(--k-ink);
  transition: transform .15s ease, box-shadow .15s ease; }
.wfeat:hover { transform: translateY(-3px); box-shadow: var(--k-shadow); color: var(--k-ink); }
.wfeat .kicon { width: 46px; height: 46px; margin: 0; flex: 0 0 auto; }
.wfeat b { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 3px; }
.wfeat span { font-size: 11.8px; color: var(--k-soft); line-height: 1.55; display: block; }

.welcome-mascot { grid-area: mascot; position: relative; display: grid; place-items: center; min-height: 100%; }
.welcome-mascot .halo { position: absolute; z-index: 0; width: min(430px,94%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #DCEEFF 0%, rgba(220,238,255,.42) 48%, rgba(220,238,255,0) 72%); }
.welcome-mascot img { position: relative; z-index: 1; width: clamp(280px,32vw,470px); height: auto;
  filter: drop-shadow(0 20px 30px rgba(47,128,216,.20)); pointer-events: none; animation: kfloat 5.5s ease-in-out infinite; }
.welcome-mascot .deco { position: absolute; z-index: 1; pointer-events: none; color: #F6C85F; font-size: 20px; opacity: .9; animation: ktwinkle 3.4s ease-in-out infinite; }
.welcome-mascot .deco.d1 { top: 12%; right: 16%; } .welcome-mascot .deco.d2 { bottom: 20%; left: 10%; font-size: 15px; animation-delay: 1s; }
.welcome-mascot .deco.leaf { color: #9ED9B6; }

.welcome-bottom-bar { grid-area: bar; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(120deg,#FFFFFF,#F5FAFF); border: 1px solid var(--k-line); border-radius: 22px;
  padding: 15px 28px; box-shadow: var(--k-shadow-sm); flex-wrap: wrap; }
.welcome-bottom-bar .slogan { font-weight: 800; color: var(--k-pink-deep); font-size: 15px; }
.wbar-icons { display: flex; gap: 20px; flex-wrap: wrap; }
.wbar-ic { display: flex; align-items: center; gap: 8px; color: var(--k-soft); font-size: 12.5px; font-weight: 700; }
.wbar-ic .kicon { width: 32px; height: 32px; margin: 0; border-radius: 10px; }
.wbar-ic .kicon svg { width: 17px; height: 17px; }

@media (max-width: 920px) {
  .exam-welcome-board { grid-template-columns: 1fr; grid-template-areas: "left" "mascot" "bar"; }
  .welcome-mascot { min-height: auto; order: 0; }
  .welcome-mascot img { width: clamp(230px,55vw,330px); }
  .welcome-card { text-align: center; } .welcome-card .welcome-cta { justify-content: center; }
  .welcome-bottom-bar { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .welcome-feats { grid-template-columns: 1fr; }
  .wfeat { text-align: left; }
}

/* =====================================================================
   v2.9.7 — Welcome Board 精修: アイコン統一 + マスコット周辺の装飾
   ===================================================================== */
/* unified feature/bottom-bar icon chips (centered, generous padding) */
.wfeat .kicon { width: 56px; height: 56px; min-width: 56px; border-radius: 16px; margin: 0; line-height: 0; }
.wfeat .kicon svg { width: 22px; height: 22px; }
.wbar-ic .kicon { width: 34px; height: 34px; border-radius: 11px; line-height: 0; }
.wbar-ic .kicon svg { width: 18px; height: 18px; }
/* exact per-feature tints */
.kicon.f-support { background: #FFF4D8; color: #C48A1A; }
.kicon.f-mock    { background: #DCEEFF; color: #2F80D8; }
.kicon.f-note    { background: #DDF6FF; color: #2699C7; }
.kicon.f-report  { background: #E4F7EA; color: #44A36F; }

/* ---- mascot area: glow + ground shadow + restrained decorations ---- */
.welcome-mascot-area { position: relative; }
.welcome-mascot .mascot-glow { position: absolute; z-index: 0; width: min(470px,100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #DCEEFF 0%, rgba(220,238,255,.42) 46%, rgba(220,238,255,0) 72%); }
.welcome-mascot img { position: relative; z-index: 1; }
.mascot-ground-shadow { position: absolute; z-index: 0; bottom: 7%; left: 50%; transform: translateX(-50%);
  width: 52%; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(47,128,216,.16) 0%, rgba(47,128,216,0) 70%); }
.welcome-decor { position: absolute; z-index: 2; pointer-events: none; line-height: 0; }
.welcome-decor svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.decor-star, .decor-sparkle { color: #F6C85F; animation: ktwinkle 3.6s ease-in-out infinite; }
.decor-star-1   { width: 24px; height: 24px; top: 5%;  left: 9%; }
.decor-star-2   { width: 15px; height: 15px; top: 15%; right: 13%; animation-delay: 1.1s; }
.decor-sparkle-1{ width: 18px; height: 18px; top: 27%; left: 3%;  animation-delay: .6s; }
.decor-leaf     { color: #9ED9B6; }
.decor-leaf-1   { width: 22px; height: 22px; top: 9%;  right: 26%; transform: rotate(16deg); }
.decor-leaf-2   { width: 18px; height: 18px; bottom: 28%; left: 5%; transform: scaleX(-1) rotate(10deg); }
.decor-dot      { border-radius: 50%; background: #BFE4FF; }
.decor-dot-1    { width: 10px; height: 10px; bottom: 19%; left: 15%; }
.decor-dot-2    { width: 7px;  height: 7px;  bottom: 12%; left: 23%; background: #DCEEFF; }
.decor-dot-3    { width: 8px;  height: 8px;  top: 42%;   right: 7%; }
.decor-heart    { color: #FFD6E2; }
.decor-heart-1  { width: 16px; height: 16px; bottom: 25%; right: 13%; animation: kfloat 4.2s ease-in-out infinite; }
.decor-trail    { z-index: 0; width: 132px; height: 112px; bottom: 9%; left: -1%; color: #BFE4FF; opacity: .55; }
.decor-trail svg { fill: none; }
.decor-trail path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-dasharray: 1 9; stroke-linecap: round; }

@media (max-width: 920px) {
  /* tablet: keep ~5-6 decorations, drop the busiest */
  .decor-trail, .decor-star-2, .decor-dot-2 { display: none; }
}
@media (max-width: 560px) {
  /* mobile: keep ~3 decorations only, never overflow */
  .decor-sparkle-1, .decor-dot-3, .decor-heart-1, .decor-leaf-2 { display: none; }
  .decor-star-1 { top: 2%; }
}

/* =====================================================================
   v2.9.9 — Welcome Board アイコンを「色ブロックの視覚中心」へ確実に配置
   (base .kicon の display:grid が .wfeat/.wbar-ic に効いていなかったため、
    高い詳細度で flex 中央寄せを強制 + サイズを 26/20px に)
   ===================================================================== */
.welcome-feats .wfeat .kicon,
.welcome-bottom-bar .wbar-ic .kicon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  box-sizing: border-box;
  overflow: visible;
}
.welcome-feats .wfeat .kicon {
  width: 56px; height: 56px; min-width: 56px; min-height: 56px; border-radius: 16px;
}
.welcome-feats .wfeat .kicon svg {
  width: 26px; height: 26px; display: block; flex: 0 0 auto; margin: 0; padding: 0; position: static;
}
.welcome-bottom-bar .wbar-ic .kicon {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 11px;
}
.welcome-bottom-bar .wbar-ic .kicon svg {
  width: 20px; height: 20px; display: block; flex: 0 0 auto; margin: 0; padding: 0; position: static;
}

/* =====================================================================
   v2.10.0 — 首屏下方(学習の流れ / 受験する試験 / 学習状況)を
   Welcome Board と同じ淡ブルー教育トーンへ統一
   ===================================================================== */
/* robust centered icon chip (new class — avoids the .kicon display:block bug) */
.eicon { display: flex !important; align-items: center; justify-content: center; flex: 0 0 auto;
  line-height: 0; box-sizing: border-box; border-radius: 14px; }
.eicon svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eicon.e-blue  { background: #DCEEFF; color: #2F80D8; }
.eicon.e-cyan  { background: #DDF6FF; color: #2699C7; }
.eicon.e-green { background: #E4F7EA; color: #44A36F; }
.eicon.e-amber { background: #FFF4D8; color: #C48A1A; }
.eicon.e-slate { background: #EBF1F7; color: #6E84A0; }

/* shared section heading */
.exam-soft-section { position: relative; margin-bottom: 30px; }
.exam-sec-head { text-align: center; margin-bottom: 22px; }
.exam-kicker { display: inline-block; background: var(--k-pink-soft); color: var(--k-pink-deep);
  font-weight: 800; font-size: 11.5px; letter-spacing: .04em; border-radius: 999px; padding: 5px 14px; margin-bottom: 10px; }
.exam-sec-title { font-size: clamp(20px,2.6vw,27px); font-weight: 900; color: var(--k-ink); margin: 0 0 6px; }
.exam-sec-sub { color: var(--k-soft); font-size: 14px; margin: 0 auto; max-width: 620px; line-height: 1.7; }

/* ---- 学習の流れ : soft panel + dotted timeline ---- */
.flow-panel { position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 0% 0%, #EAF4FF 0%, rgba(234,244,255,0) 55%), linear-gradient(160deg, #FFFFFF, #F6FBFF);
  border: 1px solid var(--k-line); border-radius: 26px; padding: 30px 30px; box-shadow: var(--k-shadow); }
.flow-panel .sec-decor { position: absolute; pointer-events: none; color: #F6C85F; opacity: .8; z-index: 0; }
.flow-panel .sec-decor.d1 { top: 16px; right: 22px; width: 14px; height: 14px; }
.flow-panel .sec-decor svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; position: relative; z-index: 1; }
.flow-step { flex: 0 0 22%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px;
  padding: 10px 8px 12px; border-radius: 18px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.flow-step:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--k-shadow-sm); }
.flow-step-ico { position: relative; }
.flow-step-ico .eicon { width: 50px; height: 50px; border-radius: 15px; }
.flow-step-ico .eicon svg { width: 25px; height: 25px; }
.flow-step-no { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--k-pink); color: #fff; font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(47,128,216,.35); }
.flow-step-t { font-weight: 800; font-size: 14px; color: var(--k-ink); }
.flow-step-d { font-size: 11.8px; color: var(--k-soft); line-height: 1.6; max-width: 150px; }
.flow-conn { flex: 1 1 auto; align-self: flex-start; height: 0; margin-top: 35px; border-top: 2px dotted #A8CEF0; min-width: 24px; }

/* ---- 受験する試験 : refined choice cards (no thick top bar) ---- */
.exam-choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.exam-choice-card { position: relative; display: flex; flex-direction: column; gap: 15px; background: #fff;
  border: 1px solid var(--k-line); border-radius: 22px; padding: 22px 22px 20px 24px; box-shadow: var(--k-shadow-sm);
  text-decoration: none; color: var(--k-ink); transition: transform .15s ease, box-shadow .15s ease; }
.exam-choice-card:hover { transform: translateY(-4px); box-shadow: var(--k-shadow); color: var(--k-ink); }
.exam-choice-card::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--accent, #cfe0f2); }
.exam-choice-card.t-green { --accent: #9ED9B6; } .exam-choice-card.t-amber { --accent: #F6CE7A; } .exam-choice-card.t-slate { --accent: #BCC9D8; }
.exam-choice-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.exam-choice-icon { width: 46px; height: 46px; }
.exam-choice-icon svg { width: 23px; height: 23px; }
.exam-choice-titles h3 { font-size: 15.5px; font-weight: 900; margin: 0 0 4px; line-height: 1.3; }
.exam-choice-titles p { font-size: 12px; color: var(--k-soft); margin: 0; line-height: 1.6; }
.exam-choice-badge { align-self: start; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.exam-choice-badge.s-green { background: #E4F7EA; color: #3C8F62; }
.exam-choice-badge.s-amber { background: #FFF4D8; color: #B0830F; }
.exam-choice-badge.s-slate { background: #EBF1F7; color: #6E84A0; }
.exam-choice-meta { display: flex; gap: 8px; background: #F6FBFF; border: 1px solid var(--k-line); border-radius: 14px; padding: 12px 8px; }
.exam-choice-meta > div { flex: 1; text-align: center; min-width: 0; }
.exam-choice-meta span { display: block; font-size: 11px; color: var(--k-soft); font-weight: 700; margin-bottom: 3px; }
.exam-choice-meta strong { font-size: 14px; font-weight: 900; color: var(--k-ink); }
.exam-choice-action { margin-top: auto; font-weight: 800; font-size: 14px; color: var(--k-pink); display: inline-flex; align-items: center; gap: 6px; }
.exam-choice-card.is-soon { opacity: .94; }
.exam-choice-card.is-soon .exam-choice-action { color: var(--k-soft); }

/* ---- 学習状況 : data icons use the centered .eicon ---- */
.kdata-card .eicon { width: 46px; height: 46px; }
.kdata-card .eicon svg { width: 23px; height: 23px; }

@media (max-width: 900px) {
  .exam-choice-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  /* flow → vertical timeline */
  .flow-steps { flex-direction: column; align-items: stretch; gap: 0; }
  .flow-step { flex: none; flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 12px 8px; }
  .flow-step-d { max-width: none; }
  .flow-conn { flex: none; width: 0; height: 18px; margin: 0 0 0 33px; border-top: none; border-left: 2px dotted #A8CEF0; }
}
@media (max-width: 620px) {
  .exam-choice-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   v2.10.1 — 試験ページ上部の濃紺バナーを淡ブルーの軽量タイトルへ
   (.page-hero は本サイト共用のため触らず、専用 .exam-page-title を新設)
   ===================================================================== */
.exam-page-title {
  width: min(1120px, calc(100% - 32px)); margin: 22px auto 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, #F6FBFF 0%, #FFFFFF 100%);
  border: 1px solid rgba(120,185,230,.35); border-radius: 24px;
  padding: 26px 30px; box-shadow: 0 14px 36px rgba(47,128,216,.08);
  font-family: "Noto Sans JP", sans-serif;
}
.exam-page-title.is-hidden { display: none; }
.exam-page-title-main { min-width: 0; }
.exam-page-kicker { display: inline-block; background: #DCEEFF; color: #1E66BE; font-weight: 800;
  font-size: 11.5px; letter-spacing: .04em; border-radius: 999px; padding: 5px 13px; margin-bottom: 9px; }
.exam-page-title h1 { font-size: clamp(20px,2.6vw,28px); font-weight: 900; color: #1F2A44; margin: 0 0 7px; line-height: 1.3; }
.exam-page-title-main > p { color: #667085; font-size: 13.5px; margin: 0 0 10px; line-height: 1.7; }
.exam-page-crumb { font-size: 12px; color: #8a97a8; }
.exam-page-crumb a { color: #2F80D8; text-decoration: none; font-weight: 700; }
.exam-page-crumb a:hover { text-decoration: underline; }
.exam-page-crumb span { margin: 0 6px; color: #b9c4d2; }
.exam-page-title-meta { display: flex; gap: 24px; flex-shrink: 0; }
.exam-page-title-meta > div { text-align: center; }
.exam-page-title-meta span { display: block; font-size: 11px; color: #667085; font-weight: 700; margin-bottom: 3px; }
.exam-page-title-meta strong { font-size: 16px; font-weight: 900; color: #1F2A44; }
@media (max-width: 720px) {
  .exam-page-title { width: calc(100% - 28px); margin: 16px auto 0; padding: 20px 22px;
    flex-direction: column; align-items: flex-start; gap: 14px; }
  .exam-page-title-meta { gap: 20px; }
}

/* =====================================================================
   v2.11.1 — マイページ 学習サポートツール (stacked tool panel / Khanmigo風)
   ===================================================================== */
/* narrow, centered tool card (not a full-width dashboard block) */
.exam-tool-panel {
  max-width: 700px; margin: 0 auto 32px; box-sizing: border-box;
  background: #fff; border: 1px solid rgba(31,42,68,.14); border-radius: 22px;
  overflow: hidden; box-shadow: 0 18px 42px rgba(47,128,216,.10);
}
.exam-tool-panel-head {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 30px 34px; min-height: 112px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.75), transparent 30%),
    linear-gradient(135deg, #F7F2E8 0%, #F3FAFF 100%);
  border-bottom: 1px solid rgba(31,42,68,.14);
}
/* faint diagonal sheen (参考画像のヘッダー紋様), 文字には影響しない */
.exam-tool-panel-head::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  right: -30px; top: -70px; width: 180px; height: 190px; border-radius: 46px;
  background: rgba(255,255,255,.38); transform: rotate(24deg);
}
.exam-tool-panel-head > * { position: relative; z-index: 1; }
.exam-tool-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: #2F80D8; margin-bottom: 5px; }
.exam-tool-panel-head h2 { font-size: 30px; font-weight: 900; color: #1F2A44; margin: 0; line-height: 1.2; }
.exam-tool-mascot img { width: 44px; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(47,128,216,.18)); }

.exam-tool-item {
  display: flex; align-items: center; gap: 24px; padding: 26px 34px; min-height: 108px;
  text-decoration: none; color: #1F2A44; border-top: 1px solid rgba(31,42,68,.12);
  transition: background .15s ease; box-sizing: border-box;
}
.exam-tool-item:hover { background: #F6FBFF; color: #1F2A44; }
.exam-tool-icon {
  width: 58px; height: 58px; min-width: 58px; border-radius: 16px; flex: 0 0 58px;
  display: flex; align-items: center; justify-content: center; line-height: 0; box-sizing: border-box;
}
.exam-tool-icon svg { width: 27px; height: 27px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.exam-tool-icon.is-cyan   { background: #DDF6FF; color: #2699C7; }
.exam-tool-icon.is-purple { background: #E9DCFF; color: #7C5CCF; }
.exam-tool-icon.is-blue   { background: #DCEEFF; color: #2F80D8; }
.exam-tool-icon.is-green  { background: #E4F7EA; color: #44A36F; }
.exam-tool-icon.is-yellow { background: #FFF4D8; color: #C48A1A; }
.exam-tool-body { min-width: 0; }
.exam-tool-body h3 { font-size: 20px; font-weight: 800; margin: 0 0 5px; line-height: 1.35; }
.exam-tool-body p { font-size: 15px; color: #667085; margin: 0; line-height: 1.65; }

.exam-tool-panel-foot { border-top: 1px solid rgba(31,42,68,.10); }
.exam-tool-panel-foot a { display: block; text-align: center; padding: 22px 24px; font-size: 18px;
  font-weight: 700; color: #2F80D8; text-decoration: none; transition: background .15s ease; }
.exam-tool-panel-foot a:hover { background: #F6FBFF; }

@media (max-width: 560px) {
  .exam-tool-panel { max-width: none; margin: 0 auto 28px; }
  .exam-tool-panel-head { padding: 24px 22px; min-height: 0; }
  .exam-tool-panel-head h2 { font-size: 23px; }
  .exam-tool-item { gap: 16px; padding: 20px 18px; min-height: 0; }
  .exam-tool-body h3 { font-size: 17px; }
  .exam-tool-body p { font-size: 13.5px; }
  .exam-tool-mascot { display: none; }
  .exam-tool-panel-foot a { padding: 18px; font-size: 16px; }
}

/* =====================================================================
   v2.11.4 — マイページの dashboard カードをツールパネルと軽く統一
   (.exam-kawaii スコープ。結果ページは .kscope のため対象外、ランディングは
    .kcard 未使用なので無影響)
   ===================================================================== */
.exam-kawaii .kcard {
  border-radius: 24px;
  border-color: rgba(120,185,230,.35);
  box-shadow: 0 14px 36px rgba(47,128,216,.08);
}
/* ツールパネル → 下部 dashboard の間隔をやや広げて自然に */
.exam-tool-panel { margin-bottom: 36px; }

/* =====================================================================
   v2.12.0 — マイページ 2カラム dashboard top + 学習状況サマリー + カード質感
   ===================================================================== */

/* ---- 2カラム topgrid (左 概況 / 右 ツール) ---- */
.exam-dashboard-topgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .85fr);
  gap: 28px; align-items: start;
  margin: 30px 0 40px;
}
.exam-dashboard-topgrid .exam-tool-panel { max-width: none; width: 100%; margin: 0; }

/* ---- 学習状況サマリー ---- */
.exam-study-overview {
  background: #fff; border: 1px solid rgba(120,185,230,.35); border-radius: 24px;
  overflow: hidden; box-shadow: 0 14px 36px rgba(47,128,216,.08);
}
.study-overview-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 28px 20px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.72), transparent 32%),
    linear-gradient(135deg, #F7F2E8 0%, #F3FAFF 100%);
  border-bottom: 1px solid rgba(31,42,68,.10);
}
.study-kicker { display:inline-block; font-size:12px; font-weight:800; letter-spacing:.05em; color:#2F80D8; margin-bottom:5px; }
.study-overview-head h2 { font-size:22px; font-weight:900; color:#1F2A44; margin:0 0 6px; line-height:1.2; }
.study-overview-headtext p { font-size:13px; color:#667085; margin:0; line-height:1.6; }

.study-range-tabs { display:inline-flex; background:#E7F0FA; border-radius:999px; padding:4px; gap:2px; flex:0 0 auto; }
.study-range-tabs button { border:0; background:transparent; cursor:pointer; font-family:inherit; font-weight:800; font-size:13px;
  color:#5A6B86; padding:7px 17px; border-radius:999px; transition:all .15s ease; }
.study-range-tabs button.is-active { background:#fff; color:#2F80D8; box-shadow:0 2px 8px rgba(47,128,216,.16); }

.study-range-panel { display:none; padding:24px 28px 26px; }
.study-range-panel.is-active { display:block; }

.study-overview-main { display:flex; align-items:center; gap:26px; }
.study-score-ring { width:128px; height:128px; min-width:128px; border-radius:50%; position:relative;
  background: conic-gradient(#2F80D8 calc(var(--pct,0)*1%), #E4EEF8 0); }
.study-score-ring.is-empty { background:#E9F0F8; }
.study-score-ring::after { content:""; position:absolute; inset:13px; background:#fff; border-radius:50%; }
.study-score-ring i { position:absolute; inset:0; z-index:1; font-style:normal; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.study-score-ring b { font-size:30px; font-weight:900; color:#1F2A44; line-height:1; }
.study-score-ring b small { font-size:14px; font-weight:800; }
.study-score-ring .ring-dash { color:#AEBBCE; }
.study-score-ring span { font-size:11.5px; color:#7A89A0; font-weight:700; margin-top:5px; }

.study-metrics { flex:1; display:grid; grid-template-columns:1fr 1fr; gap:10px; min-width:0; }
.study-metric { display:flex; align-items:center; gap:10px; background:#F5FAFF; border:1px solid rgba(120,185,230,.28); border-radius:14px; padding:11px 12px; }
.study-metric > div { min-width:0; }
.sm-ic { width:32px; height:32px; min-width:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; }
.sm-ic svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.sm-ic.is-blue{background:#DCEEFF;color:#2F80D8} .sm-ic.is-green{background:#E4F7EA;color:#44A36F}
.sm-ic.is-cyan{background:#DDF6FF;color:#2699C7} .sm-ic.is-amber{background:#FFF1D6;color:#C48A1A}
.study-metric strong { display:block; font-size:18px; font-weight:900; color:#1F2A44; line-height:1.15; }
.study-metric em { font-size:11.5px; color:#7A89A0; font-style:normal; font-weight:700; }

.study-bars { display:flex; align-items:flex-end; gap:6px; height:54px; margin:20px 0 16px; padding:0 2px; }
.study-bar { flex:1; min-width:8px; max-width:32px; background:linear-gradient(180deg,#84B9F1,#2F80D8); border-radius:6px 6px 3px 3px; }
.study-bars-empty { color:#AEBBCE; font-size:13px; align-self:center; margin:0 auto; }

.study-insight { display:flex; align-items:flex-start; gap:10px; background:#F3F8FF; border:1px solid rgba(120,185,230,.3);
  border-radius:14px; padding:13px 15px; margin:0; font-size:13.5px; color:#3C4A63; line-height:1.65; }
.study-insight-ic { flex:0 0 auto; color:#2F80D8; }
.study-insight-ic svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; display:block; margin-top:1px; }

/* ---- カードタイトルの icon チップ(絵文字廃止) ---- */
.kcard-h-ic { display:flex; align-items:center; gap:10px; }
.kc-ic { width:34px; height:34px; min-width:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.kc-ic svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.kc-ic.is-amber{background:#FFF1D6;color:#C48A1A} .kc-ic.is-yellow{background:#FFF4D8;color:#D69A12}
.kc-ic.is-blue{background:#DCEEFF;color:#2F80D8} .kc-ic.is-green{background:#E4F7EA;color:#44A36F} .kc-ic.is-purple{background:#E9DCFF;color:#7C5CCF}

/* ---- バッジ(ラインアイコン化) ---- */
.kbadge-coin { display:flex !important; align-items:center; justify-content:center; }
.kbadge-coin svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.kbadge.earned .kbadge-coin { color:#BC8412; }
.kbadge.locked .kbadge-coin { background:#EEF2F7; filter:none; opacity:1; box-shadow:none; color:#AEBBCE; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .exam-dashboard-topgrid { grid-template-columns: 1fr; gap: 22px; margin: 24px 0 32px; }
}
@media (max-width: 560px) {
  .study-overview-head { flex-direction: column; padding: 22px 20px 18px; }
  .study-range-tabs { align-self: flex-start; }
  .study-range-panel { padding: 20px; }
  .study-overview-main { flex-direction: column; align-items: stretch; gap: 18px; }
  .study-score-ring { align-self: center; }
}

/* =====================================================================
   v2.12.1 — 概況に「今週の目標」追加 + 受験履歴の学習レポートを折りたたみ
   ===================================================================== */
/* 左概況: 今週の目標(高さ合わせ) */
.study-goal { display:flex; gap:12px; align-items:flex-start; margin:0 28px 26px; padding:15px 17px;
  background:#FBF7EC; border:1px solid rgba(120,185,230,.28); border-radius:16px; }
.study-goal-ic { flex:0 0 auto; width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:#FFF1D6; color:#C48A1A; }
.study-goal-ic svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.study-goal-h { font-size:13px; font-weight:800; color:#1F2A44; margin:0 0 6px; }
.study-goal-list { margin:0; padding-left:18px; }
.study-goal-list li { font-size:13px; color:#3C4A63; line-height:1.75; }

/* 受験履歴: レポート要約 + details 折りたたみ */
.exam-report-card { margin-top: 4px; }
.exam-report-summary { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  font-size:13.5px; color:#3C4A63; line-height:1.7; margin:0 0 10px;
  background:#F3F8FF; border:1px solid rgba(120,185,230,.3); border-radius:12px; padding:12px 14px; }
.exam-report-details { border:1px solid rgba(120,185,230,.35); border-radius:12px; background:#F8FBFF; overflow:hidden; }
.exam-report-details > summary { cursor:pointer; list-style:none; padding:11px 16px; font-weight:800; font-size:13.5px; color:#2F80D8; display:flex; align-items:center; gap:9px; }
.exam-report-details > summary::-webkit-details-marker { display:none; }
.exam-report-details > summary::before { content:""; width:7px; height:7px; border-right:2px solid #2F80D8; border-bottom:2px solid #2F80D8; transform:rotate(-45deg); transition:transform .2s ease; }
.exam-report-details[open] > summary { border-bottom:1px solid rgba(120,185,230,.3); }
.exam-report-details[open] > summary::before { transform:rotate(45deg); }
.exam-report-details .exam-report { padding:8px 16px 14px; }

/* =====================================================================
   v2.12.2 — ログイン / 新規登録 モーダル(EARS淡青・いちごちゃん)
   ===================================================================== */
body.exam-auth-lock { overflow: hidden; }

.exam-auth-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(15,35,60,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.exam-auth-overlay.is-open { display: flex; }
.exam-auth-modal {
  position: relative; display: grid; grid-template-columns: 45% 55%;
  width: 100%; max-width: 980px; max-height: calc(100vh - 40px);
  background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 90px rgba(15,35,60,.30);
}
.exam-auth-x {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 38px; height: 38px;
  border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.85); color: #5A6B86;
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(15,35,60,.12);
}
.exam-auth-x:hover { background: #fff; color: #1F2A44; }

/* 左ビジュアル */
.exam-auth-visual {
  position: relative; overflow: hidden; padding: 48px 40px; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.6), transparent 34%),
    linear-gradient(160deg, #EAF4FF 0%, #F3FAFF 45%, #FBF7EC 100%);
}
.exam-auth-deco { position: absolute; pointer-events: none; z-index: 0; }
.exam-auth-deco-1 { width: 150px; height: 150px; border-radius: 32px; background: rgba(120,185,230,.18); right: -40px; top: 40px; transform: rotate(24deg); }
.exam-auth-deco-2 { width: 92px; height: 92px; border-radius: 50%; background: rgba(255,206,120,.22); left: -24px; bottom: 56px; }
.exam-auth-visual > * { position: relative; z-index: 1; }
.exam-auth-welcome { font-size: 14px; font-weight: 800; color: #2F80D8; margin: 0 0 8px; letter-spacing: .04em; }
.exam-auth-vtitle { font-size: 26px; font-weight: 900; color: #1F2A44; line-height: 1.35; margin: 0 0 12px; }
.exam-auth-vlead { font-size: 13.5px; color: #5A6B86; line-height: 1.7; margin: 0; }
.exam-auth-mascot { width: 128px; height: auto; align-self: center; margin: 16px 0; filter: drop-shadow(0 10px 18px rgba(47,128,216,.18)); }
.exam-auth-points { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.exam-auth-points li { position: relative; padding-left: 26px; font-size: 13px; font-weight: 700; color: #3C4A63; }
.exam-auth-points li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 8px; height: 13px;
  border-right: 2.5px solid #2F80D8; border-bottom: 2.5px solid #2F80D8; transform: rotate(45deg); }

/* 右フォーム */
.exam-auth-form { padding: 46px 44px; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.exam-auth-panel { display: none; }
.exam-auth-overlay[data-view="login"]    [data-view-panel="login"]    { display: block; }
.exam-auth-overlay[data-view="register"] [data-view-panel="register"] { display: block; }
.exam-auth-form h3 { font-size: 24px; font-weight: 900; color: #1F2A44; margin: 0 0 6px; }
.exam-auth-sub { font-size: 13px; color: #667085; line-height: 1.65; margin: 0 0 20px; }
.exam-auth-back { background: none; border: 0; cursor: pointer; color: #2F80D8; font-weight: 800; font-size: 13.5px; padding: 0; margin: 0 0 14px; font-family: inherit; }
.exam-auth-back:hover { text-decoration: underline; }
.exam-auth-label { display: block; font-size: 12.5px; font-weight: 800; color: #3C4A63; margin-bottom: 14px; }
.exam-auth-label input { display: block; width: 100%; margin-top: 7px; box-sizing: border-box; padding: 13px 15px; font-size: 15px;
  border: 1.5px solid rgba(120,185,230,.4); border-radius: 14px; background: #fff; color: #1F2A44; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.exam-auth-label input:focus { outline: none; border-color: #2F80D8; box-shadow: 0 0 0 3px rgba(47,128,216,.14); }
.exam-auth-hp { position: absolute !important; left: -9999px !important; }
.exam-auth-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 11.5px; color: #5A6B86; line-height: 1.6; margin-bottom: 18px; }
.exam-auth-consent input { margin-top: 2px; flex: 0 0 auto; }
.exam-auth-submit { width: 100%; height: 52px; border: 0; border-radius: 16px; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #3D8BE0, #2F80D8); color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 10px 22px rgba(47,128,216,.28); transition: transform .12s, box-shadow .12s; }
.exam-auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(47,128,216,.34); }
.exam-auth-switchline { text-align: center; font-size: 13px; color: #667085; line-height: 1.7; margin: 18px 0 0; }
.exam-auth-switchline a { color: #2F80D8; font-weight: 800; text-decoration: none; }
.exam-auth-switchline a:hover { text-decoration: underline; }
.exam-auth-error { background: #FDECEC; border: 1px solid #F4B8B8; color: #B4232B; font-size: 13px; font-weight: 700;
  border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; line-height: 1.55; }

@media (max-width: 760px) {
  .exam-auth-overlay { padding: 12px; align-items: flex-start; }
  .exam-auth-modal { grid-template-columns: 1fr; max-width: 520px; margin: 8px auto; max-height: calc(100vh - 16px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .exam-auth-form { overflow: visible; }
  .exam-auth-visual { padding: 28px 24px 20px; }
  .exam-auth-vtitle { font-size: 21px; }
  .exam-auth-vlead { font-size: 13px; }
  .exam-auth-mascot { width: 88px; margin: 10px 0; }
  .exam-auth-points { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; }
  .exam-auth-form { padding: 26px 24px 30px; }
  .exam-auth-x { top: 12px; right: 12px; }
}

/* =====================================================================
   v2.12.3 — ベストスコアを donut から「達成カード」へ(正答率ring重複の解消)
   ===================================================================== */
.best-score { display: flex; flex-direction: column; gap: 15px; }
.best-score-label { display: inline-block; font-size: 12px; font-weight: 800; color: #C48A1A; letter-spacing: .03em; margin-bottom: 2px; }
.best-score-num { display: block; font-size: 46px; font-weight: 900; color: #1F2A44; line-height: 1; }
.best-score-num small { font-size: 22px; font-weight: 800; color: #5A6B86; margin-left: 2px; }
.best-score-main p { font-size: 12.5px; color: #7A89A0; margin: 5px 0 0; }
.best-score-empty { font-size: 13px; color: #667085; line-height: 1.7; margin: 0;
  background: #F5FAFF; border: 1px solid rgba(120,185,230,.28); border-radius: 14px; padding: 14px 16px; }
.best-score-goal { background: #F5FAFF; border: 1px solid rgba(120,185,230,.28); border-radius: 16px; padding: 14px 16px; }
.best-score-goal .goal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.best-score-goal .goal-head span { font-size: 12.5px; font-weight: 800; color: #3C4A63; }
.best-score-goal .goal-head strong { font-size: 18px; font-weight: 900; color: #2F80D8; }
.best-score-goal .goal-bar { height: 9px; border-radius: 999px; background: #E1ECF7; overflow: hidden; }
.best-score-goal .goal-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7FB6F0, #2F80D8); }
.best-score-goal p { font-size: 12px; color: #7A89A0; margin: 9px 0 0; line-height: 1.6; }
.best-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.best-score-grid div { background: #FBF7EC; border: 1px solid rgba(120,185,230,.24); border-radius: 13px; padding: 12px 8px; text-align: center; }
.best-score-grid strong { display: block; font-size: 18px; font-weight: 900; color: #1F2A44; line-height: 1.15; }
.best-score-grid span { font-size: 11px; color: #7A89A0; font-weight: 700; }

/* =====================================================================
   v2.12.4 — 受験履歴の収納(マイページ最新3件 + 全履歴ページ ?tab=history)
   ===================================================================== */
.history-seeall { display: block; text-align: center; margin: 4px 0 8px; padding: 14px;
  background: #F6FBFF; border: 1px solid rgba(120,185,230,.35); border-radius: 14px;
  color: #2F80D8; font-weight: 800; font-size: 14px; text-decoration: none; transition: background .15s ease; }
.history-seeall:hover { background: #EAF4FF; }

.history-head { text-align: center; position: relative; }
.history-back { display: inline-block; color: #2F80D8; font-weight: 800; font-size: 13px; text-decoration: none; margin-bottom: 10px; }
.history-back:hover { text-decoration: underline; }
.history-title { font-size: 26px; font-weight: 900; color: #1F2A44; margin: 0 0 6px; }
.history-sub { font-size: 13px; color: #667085; margin: 0 0 18px; }
.history-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.history-filter-btn { padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none;
  background: #EFF5FB; color: #5A6B86; border: 1px solid transparent; transition: all .15s ease; }
.history-filter-btn:hover { background: #E2EEF9; }
.history-filter-btn.is-active { background: #2F80D8; color: #fff; }

@media (max-width: 560px) {
  .history-title { font-size: 22px; }
  .history-filter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .history-filter-btn { flex: 0 0 auto; }
}

/* =====================================================================
   v2.12.5 — 認証モーダル拡張(目アイコン/確認パスワード/パスワード忘れ/ソーシャル)
   + /exam/account/ 旧ログインを launcher 化
   ===================================================================== */
/* パスワード入力 + 目アイコン */
.exam-auth-pw { position: relative; display: block; margin-top: 7px; }
.exam-auth-pw input { width: 100%; box-sizing: border-box; margin-top: 0; padding: 13px 46px 13px 15px; font-size: 15px;
  border: 1.5px solid rgba(120,185,230,.4); border-radius: 14px; background: #fff; color: #1F2A44; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.exam-auth-pw input:focus { outline: none; border-color: #2F80D8; box-shadow: 0 0 0 3px rgba(47,128,216,.14); }
.exam-auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0;
  border: 0; background: none; cursor: pointer; color: #9AAAC0; display: flex; align-items: center; justify-content: center; }
.exam-auth-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.exam-auth-eye:hover, .exam-auth-eye.is-on { color: #2F80D8; }
.exam-auth-pwerr { color: #B4232B; font-size: 12px; font-weight: 700; margin: -6px 0 12px; }

.exam-auth-forgot { text-align: right; margin: -6px 0 14px; }
.exam-auth-forgot a { font-size: 12px; color: #2F80D8; font-weight: 700; text-decoration: none; }
.exam-auth-forgot a:hover { text-decoration: underline; }

.exam-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #9AAAC0; font-size: 12px; font-weight: 700; }
.exam-auth-or::before, .exam-auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(31,42,68,.12); }
.exam-auth-socials { display: grid; gap: 10px; }
.exam-auth-social { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px;
  border: 1.5px solid rgba(120,185,230,.45); border-radius: 14px; background: #fff; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 800; color: #3C4A63; transition: background .15s, border-color .15s; }
.exam-auth-social:hover { background: #F6FBFF; border-color: #2F80D8; }
.exam-auth-social-ic { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.exam-auth-social-ic svg { width: 20px; height: 20px; }
.exam-auth-soon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800;
  color: #B0792A; background: #FFF1D6; border-radius: 999px; padding: 2px 8px; }
.exam-auth-soon-note { margin: 10px 0 0; font-size: 12px; color: #B0792A; background: #FFF8E8; border: 1px solid #F1DDB0; border-radius: 10px; padding: 9px 12px; line-height: 1.5; }

/* launcher (未ログインの /exam/account/) */
.kauth-launch { text-align: center; padding: 40px 32px; }
.kauth-launch .kauth-mascot { width: 110px; height: auto; display: block; margin: 0 auto 14px; position: static; }
.kauth-launch h1 { font-size: 24px; font-weight: 900; color: #1F2A44; margin: 6px 0 10px; line-height: 1.4; }
.kauth-launch .lead { font-size: 14px; color: #667085; margin: 0 auto 22px; max-width: 460px; line-height: 1.7; }
.kauth-launch-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.kauth-launch-btns .kbtn { min-width: 170px; }
.kauth-launch .kauth-feats { max-width: 560px; margin: 0 auto; text-align: left; }
@media (max-width: 560px) {
  .kauth-launch { padding: 30px 20px; }
  .kauth-launch-btns .kbtn { min-width: 0; flex: 1 1 100%; }
}

/* =====================================================================
   v2.12.7 — ソーシャルボタンをコンパクトな横並びに(参考画像の Or sign in with 風)
   ===================================================================== */
.exam-auth-socials { display: flex; gap: 10px; }
.exam-auth-social { flex: 1 1 0; min-width: 0; height: 46px; gap: 8px; font-size: 13.5px; padding: 0 10px; }
.exam-auth-social-ic { width: 20px; height: 20px; }
.exam-auth-social-ic svg { width: 18px; height: 18px; }
.exam-auth-soon-cap { text-align: center; font-size: 11.5px; color: #9AAAC0; margin: 9px 0 0; }

/* =====================================================================
   v2.13.0 — 答題進行中の主体を淡青教育トーンに統一(quiz-workspace)
   ===================================================================== */
.quiz-workspace { max-width: 880px; margin: 0 auto; }

/* 進捗カード */
.quiz-progress-card { background: #fff; border: 1px solid rgba(120,185,230,.35); border-radius: 20px;
  box-shadow: 0 10px 28px rgba(47,128,216,.07); padding: 16px 20px; margin-bottom: 18px; }
.quiz-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.quiz-progress-count { font-size: 14px; font-weight: 800; color: #1F2A44; }
.quiz-progress-count b { color: #2F80D8; }
.quiz-progress-right { display: flex; align-items: center; gap: 14px; }
.quiz-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13.5px; color: #667085; }
.quiz-progress-pct { font-weight: 800; font-size: 13.5px; color: #2F80D8; }
.quiz-progress-bar { height: 8px; background: #E1ECF7; border-radius: 999px; overflow: hidden; }
.quiz-progress-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7FB6F0, #2F80D8); transition: width .3s ease; }

/* 問題カード */
.quiz-question-card { background: #fff; border: 1px solid rgba(120,185,230,.35); border-radius: 24px;
  box-shadow: 0 14px 36px rgba(47,128,216,.08); padding: 30px 32px; margin-bottom: 22px; }
.quiz-question-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.quiz-question-badge { font-size: 12.5px; font-weight: 800; color: #2F80D8; background: #DCEEFF; border-radius: 999px; padding: 5px 14px; }
.quiz-question-cat { font-size: 12px; font-weight: 700; color: #7A89A0; }
.quiz-question-cat:empty { display: none; }
.quiz-question-text { font-size: 21px; line-height: 1.7; font-weight: 800; color: #1F2A44; margin: 0 0 24px; }

/* 選択肢(カードボタン) */
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font-family: inherit;
  background: #fff; border: 1.5px solid rgba(120,185,230,.4); border-radius: 16px; padding: 15px 18px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.quiz-option:hover { border-color: #2F80D8; background: #F6FBFF; }
.quiz-option-key { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #EFF5FB; color: #5A6B86; font-weight: 900; font-size: 15px; transition: background .15s, color .15s; }
.quiz-option-text { font-size: 15.5px; font-weight: 700; color: #1F2A44; line-height: 1.55; }
.quiz-option.is-sel { border-color: #2F80D8; background: #EAF4FF; box-shadow: 0 0 0 3px rgba(47,128,216,.12); }
.quiz-option.is-sel .quiz-option-key { background: #2F80D8; color: #fff; }

.quiz-hint { margin: 16px 0 0; font-size: 13px; font-weight: 700; color: #B0792A;
  background: #FFF8E8; border: 1px solid #F1DDB0; border-radius: 12px; padding: 11px 14px; }

/* 操作ボタン */
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-btn { min-width: 132px; height: 50px; padding: 0 22px; border-radius: 14px; border: 1.5px solid transparent;
  cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 800; transition: transform .12s, box-shadow .12s, background .15s; }
.quiz-btn-ghost { background: #fff; color: #2F80D8; border-color: rgba(120,185,230,.5); }
.quiz-btn-ghost:hover { background: #F6FBFF; }
.quiz-btn-ghost:disabled { opacity: .5; cursor: default; color: #9AAAC0; border-color: rgba(120,185,230,.3); }
.quiz-btn-primary { background: linear-gradient(135deg, #3D8BE0, #2F80D8); color: #fff; box-shadow: 0 10px 22px rgba(47,128,216,.26); }
.quiz-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(47,128,216,.32); }
.quiz-btn-finish { background: linear-gradient(135deg, #2F80D8, #1E66BE); }

@media (max-width: 560px) {
  .quiz-question-card { padding: 24px 20px; border-radius: 20px; }
  .quiz-question-text { font-size: 18px; }
  .quiz-options { gap: 10px; }
  .quiz-option { padding: 14px 15px; }
  .quiz-actions { flex-wrap: wrap; }
  .quiz-btn { flex: 1 1 100%; min-width: 0; }
  .quiz-btn-ghost { order: 2; }
}

/* =====================================================================
   v2.14.0 — LIFF 学习循环：今日下一步 + 手机安全布局
   ===================================================================== */
.ears-exam-layout,
.ears-exam-layout main,
.exam-wrap,
.exam-kawaii,
.exam-kawaii .kwrap {
  min-width: 0;
  max-width: 100%;
}

.exam-wrap {
  width: 100%;
  box-sizing: border-box;
}

.exam-header-inner,
.exam-brand,
.exam-nav,
.exam-choice-card,
.exam-choice-head,
.exam-choice-titles,
.welcome-card,
.wfeat > div {
  min-width: 0;
}

.today-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr);
  align-items: center;
  gap: 28px;
  margin: 2px 0 22px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid rgba(120,185,230,.38);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,255,255,.9), transparent 28%),
    linear-gradient(135deg, #F7F2E8 0%, #F3FAFF 58%, #EAF4FF 100%);
  box-shadow: 0 16px 40px rgba(47,128,216,.10);
}

.today-step::before {
  content: "";
  position: absolute;
  inset: auto -44px -74px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(127,182,240,.13);
  pointer-events: none;
}

.today-step-copy,
.today-step-mascot {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.today-step-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #fff;
  color: #1E66BE;
  box-shadow: 0 4px 12px rgba(47,128,216,.10);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.today-step h1 {
  margin: 0 0 9px;
  color: #1F2A44;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.today-step-copy > p {
  margin: 0;
  color: #5A6B86;
  font-size: 14px;
  line-height: 1.75;
}

.today-step-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.today-step-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid rgba(120,185,230,.28);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  color: #667085;
  font-size: 11.5px;
  font-weight: 700;
}

.today-step-stats strong {
  color: #1F2A44;
  font-size: 18px;
  font-weight: 900;
}

.today-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.today-step-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.today-step-mascot img {
  position: relative;
  z-index: 1;
  width: min(160px, 78%);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(47,128,216,.18));
}

.today-step-glow {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(220,238,255,.48) 48%, transparent 72%);
  transform: translate(-50%, -50%);
}

.today-step-mascot span {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: #52657A;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(47,128,216,.10);
}

.quiz-save-status {
  min-height: 1.5em;
  margin: 10px 2px 0;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}
.quiz-save-status.is-ok { color: #3C8F62; }
.quiz-save-status.is-error { color: #B4232B; }
.quiz-resume-note { margin-bottom: 16px; }
.quiz-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quiz-option { position: relative; }
.quiz-option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.quiz-option:has(.quiz-option-input:focus-visible) {
  outline: 3px solid rgba(47,128,216,.28);
  outline-offset: 2px;
}

/* v2.11 — 簿記3級 learning map + table practice */
.course-shell { width: min(1120px, calc(100% - 32px)); margin: 24px auto 76px; color: #1F2A44; }
.course-hero { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 34px; align-items: center;
  padding: 32px; border: 1px solid #D9E8F5; border-radius: 26px;
  background: radial-gradient(circle at 100% 0, #FFF2F6 0, transparent 42%), linear-gradient(135deg,#F5FAFF,#fff);
  box-shadow: 0 16px 44px rgba(46,84,124,.08); }
.course-eyebrow,.course-section-head > span { display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: #FDE7EE; color: #B83E68; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.course-hero h1 { margin: 10px 0 8px; font-size: clamp(24px,4vw,36px); line-height: 1.3; }
.course-hero p,.course-section-head p { margin: 0; color: #667085; line-height: 1.75; }
.course-progress { padding: 18px; border: 1px solid #DFEAF5; border-radius: 18px; background: rgba(255,255,255,.88); }
.course-progress strong { display: block; font-size: 32px; line-height: 1.1; color: #2F80D8; }
.course-progress span { display: block; margin: 5px 0 12px; color: #667085; font-size: 12px; }
.course-progress > div { height: 8px; overflow: hidden; border-radius: 999px; background: #EAF1F8; }
.course-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#79B8EE,#EC91AE); }
.course-section { margin-top: 34px; }
.course-section-head { margin-bottom: 17px; }
.course-section-head h2 { margin: 8px 0 4px; font-size: 24px; }
.practice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.practice-card { display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 12px;
  min-height: 104px; padding: 17px; border: 1px solid #DEEAF5; border-radius: 18px; background: #fff;
  color: inherit; text-decoration: none; box-shadow: 0 7px 22px rgba(46,84,124,.05); transition: .16s ease; }
a.practice-card:hover { transform: translateY(-2px); border-color: #AFCFEA; box-shadow: 0 12px 28px rgba(46,84,124,.10); }
.practice-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: #EEF7FF; font-size: 23px; }
.practice-card h3 { margin: 0 0 3px; font-size: 16px; }
.practice-card p { margin: 0; color: #748195; font-size: 12px; line-height: 1.55; }
.practice-card > strong { align-self: start; padding: 4px 9px; border-radius: 999px; background: #E8F5EC; color: #3F8D61; font-size: 10px; white-space: nowrap; }
.practice-card.is-disabled { background: #F4F6F8; color: #87919E; box-shadow: none; }
.practice-card.is-disabled .practice-icon { filter: grayscale(1); opacity: .62; }
.practice-card.is-disabled > strong { background: #E5E8EC; color: #727C89; }
.module-list { display: grid; gap: 11px; }
.module-card { overflow: hidden; border: 1px solid #DDE9F4; border-radius: 17px; background: #fff; }
.module-card summary { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 13px; align-items: center;
  padding: 17px 19px; cursor: pointer; list-style: none; }
.module-card summary::-webkit-details-marker { display: none; }
.module-number { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #EAF4FD; color: #327FBE; font-weight: 900; }
.module-card summary b { display: block; font-size: 16px; }
.module-card summary small { display: block; margin-top: 2px; color: #7C8798; font-size: 12px; }
.module-card summary em { font-style: normal; color: #678097; font-size: 12px; font-weight: 800; }
.topic-list { padding: 0 17px 15px 74px; }
.topic-row { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 10px; align-items: center;
  padding: 12px 10px; border-top: 1px solid #EDF2F7; color: inherit; text-decoration: none; }
.topic-row:hover { background: #F8FBFE; }
.topic-row.is-disabled { background: #F7F8FA; color: #8C96A3; }
.topic-state { padding: 3px 7px; border-radius: 999px; text-align: center; background: #EEF2F6; color: #697787; font-size: 10px; font-weight: 800; }
.topic-state.is-learning,.topic-state.is-basic { background: #EAF4FF; color: #2773B9; }
.topic-state.is-review { background: #FFF1DD; color: #A76B0B; }
.topic-state.is-mastered { background: #E8F6ED; color: #338253; }
.topic-state.is-disabled { background: #E5E8EC; color: #737D8A; }
.topic-title { font-weight: 700; }
.topic-title small { margin-left: 7px; color: #9AA5B3; font-size: 10px; font-weight: 600; }
.topic-score { color: #4D7EA8; font-size: 11px; font-weight: 800; white-space: nowrap; }
.topic-empty,.course-note { color: #7C8798; font-size: 12px; }
.course-note { margin-top: 24px; text-align: center; }
.quiz-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.quiz-heading h1 { margin: 0 0 6px; }
.quiz-heading p { margin: 0; color: #6F7B8B; }
.quiz-back { color: #2F80D8; font-size: 13px; font-weight: 700; text-decoration: none; }
.quiz-table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid #D9E7F3; border-radius: 14px; }
.quiz-table { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; font-size: 13px; }
.quiz-table caption { padding: 11px 13px; background: #EDF6FD; text-align: left; font-weight: 800; }
.quiz-table th,.quiz-table td { min-width: 100px; padding: 9px 10px; border: 1px solid #E3ECF4; text-align: right; white-space: nowrap; }
.quiz-table th:first-child,.quiz-table td:first-child { text-align: left; }
.quiz-table input { width: 100%; min-width: 82px; box-sizing: border-box; padding: 9px 8px; border: 1.5px solid #AFCFEA; border-radius: 9px; background: #FBFDFF; font: inherit; text-align: right; }
.quiz-table input:focus { outline: 3px solid rgba(47,128,216,.16); border-color: #4A90E2; }
.quiz-table .cell-ok { background: #EAF7EE; color: #1D6D3C; }
.quiz-table .cell-ng { background: #FFF0F0; color: #A3261F; }
.quiz-feedback { margin-top: 9px; color: #637083; font-size: 12px; }

@media (max-width: 840px) {
  .course-hero { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .course-shell { width: min(100% - 22px,1120px); margin-top: 12px; }
  .course-hero { padding: 23px 18px; gap: 20px; border-radius: 20px; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 92px; padding: 14px; }
  .module-card summary { padding: 14px 12px; grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; }
  .module-card summary small { display: none; }
  .topic-list { padding: 0 8px 10px; }
  .topic-row { grid-template-columns: 65px minmax(0,1fr); }
  .topic-score { grid-column: 2; }
  .quiz-heading { display: block; }
}

/* =====================================================================
   Exam portal v2.1 — mobile-first learning app navigation
   ===================================================================== */
:root {
  --study-ink: #102344;
  --study-muted: #697386;
  --study-line: #DCE3EC;
  --study-accent: #F05252;
  --study-accent-soft: #FFF1F1;
}
.exam-header { box-shadow: none; border-color: var(--study-line); }
.exam-header-inner { max-width: 1060px; height: 68px; }
.exam-brand-logo { height: 27px; }
.exam-brand-label { color: var(--study-ink); font-size: 15px; letter-spacing: .02em; }
.exam-nav { height: 100%; gap: 26px; }
.exam-nav-link { position: relative; display: grid; place-items: center; height: 100%; padding: 0 2px;
  border-radius: 0; color: var(--study-ink); font-size: 14px; font-weight: 700; }
.exam-nav-link:hover { background: transparent; color: var(--study-accent); }
.exam-nav-link.is-active { color: var(--study-accent); }
.exam-nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--study-accent); }
.exam-bottom-nav { display: none; }
.exam-footer { margin-top: 60px; border-top: 1px solid var(--study-line); background: #fff; color: var(--study-muted); }
.exam-footer-inner { max-width: 1060px; padding-block: 20px; }
.exam-footer-links a { color: var(--study-muted); }

.study-home,.study-page { width: min(860px,calc(100% - 40px)); margin: 0 auto; padding: 58px 0 34px; color: var(--study-ink); }
.study-home h1,.study-page h1 { margin: 0 0 26px; color: var(--study-ink); font-size: clamp(27px,3.2vw,36px); line-height: 1.25; }
.study-current { display: grid; grid-template-columns: 54px minmax(0,1fr) auto 20px; gap: 18px; align-items: center;
  min-height: 104px; padding: 20px 24px; border: 1px solid var(--study-line); color: inherit; text-decoration: none; }
a.study-current:hover { border-color: #BFC9D7; }
.study-current-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #F5A0A0; border-radius: 50%; color: var(--study-accent); }
.study-current-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.study-current-copy b,.study-row-copy b { display: block; font-size: 18px; line-height: 1.4; }
.study-current-copy small,.study-row-copy small { display: block; margin-top: 4px; color: var(--study-muted); font-size: 12px; line-height: 1.5; }
.study-current-action { padding: 10px 17px; border: 0; border-radius: 5px; background: var(--study-accent); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.study-chevron { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--study-ink); }
.study-summary { display: flex; gap: 0; margin-top: 14px; border-bottom: 1px solid var(--study-line); }
.study-summary span { flex: 1; padding: 13px 16px; color: var(--study-muted); font-size: 11px; text-align: center; }
.study-summary b { display: block; margin-bottom: 2px; color: var(--study-ink); font-size: 18px; }
.study-courses { margin-top: 58px; }
.study-section-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.study-section-heading h2,.record-list h2,.record-next h2 { margin: 0; color: var(--study-ink); font-size: 24px; }
.study-section-heading p { margin: 0; color: var(--study-muted); font-size: 12px; }
.study-list,.settings-list,.record-list { border-top: 1px solid var(--study-line); }
.study-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 20px; gap: 18px; align-items: center;
  min-height: 82px; padding: 12px 8px; border-bottom: 1px solid var(--study-line); color: inherit; text-decoration: none; }
a.study-row:hover { background: #FAFBFC; }
.study-row.is-disabled { color: #8C95A4; background: #F7F8FA; }
.study-row-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #AEB9C8; border-radius: 50%; font-size: 15px; font-weight: 800; }
.study-row-copy b { font-size: 16px; }
.study-record-link { display: inline-flex; gap: 8px; margin-top: 24px; color: var(--study-accent); font-size: 13px; font-weight: 800; text-decoration: none; }
.study-login-note { margin: 22px 0 0; color: var(--study-muted); font-size: 13px; }
.study-login-note a { color: var(--study-accent); font-weight: 700; }

.study-page { max-width: 860px; }
.study-page-heading { margin-bottom: 25px; }
.study-page-heading h1 { margin-bottom: 7px; }
.study-page-heading p { margin: 0; color: var(--study-muted); }
.record-summary { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--study-line); }
.record-summary span { padding: 19px 12px; color: var(--study-muted); font-size: 11px; text-align: center; }
.record-summary b { display: block; margin-bottom: 4px; color: var(--study-ink); font-size: 21px; }
.record-next { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 42px 0 45px; padding: 0 0 22px; border-bottom: 1px solid var(--study-line); }
.record-next p { max-width: 580px; margin: 7px 0 0; color: var(--study-muted); font-size: 13px; line-height: 1.7; }
.record-next > a { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--study-accent); border-radius: 4px; color: var(--study-accent); font-size: 12px; font-weight: 800; text-decoration: none; }
.record-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 70px; padding: 12px 6px; border-bottom: 1px solid var(--study-line); }
.record-row span b { display: block; font-size: 14px; }
.record-row span small { display: block; margin-top: 3px; color: var(--study-muted); font-size: 11px; }
.record-row > strong { font-size: 18px; }
.record-empty { padding: 24px 6px; color: var(--study-muted); }
.record-empty a { color: var(--study-accent); }

.study-account { max-width: 660px; }
.account-profile { display: flex; align-items: center; gap: 15px; padding: 4px 0 28px; }
.account-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--study-accent-soft); color: var(--study-accent); font-size: 20px; font-weight: 800; }
.account-profile b { display: block; font-size: 17px; }
.account-profile small { display: block; margin-top: 4px; color: var(--study-muted); font-size: 12px; }
.settings-list { margin-top: 8px; }
.settings-list a { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 17px 6px; border-bottom: 1px solid var(--study-line); color: inherit; text-decoration: none; }
.settings-list a span { font-weight: 700; }
.settings-list a small { grid-column: 1; margin-top: 4px; color: var(--study-muted); }
.settings-list a b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 25px; font-weight: 400; }
.account-logout { margin-top: 32px; padding: 10px 0; border: 0; background: transparent; color: #A33333; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* Course page: open list first, optional knowledge map second. */
.exam-course-page .course-shell { max-width: 860px; margin-top: 0; padding-top: 48px; }
.exam-course-page .course-hero { display: flex; justify-content: space-between; gap: 32px; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--study-line); border-radius: 0; background: #fff; box-shadow: none; }
.exam-course-page .course-hero h1 { margin: 0 0 7px; font-size: clamp(27px,3.2vw,36px); }
.exam-course-page .course-progress { width: 240px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.exam-course-page .course-progress strong { color: var(--study-accent); font-size: 24px; }
.exam-course-page .course-progress > div { height: 3px; background: #E8ECF1; }
.exam-course-page .course-progress i { background: var(--study-accent); }
.exam-course-page .course-section { margin-top: 36px; }
.exam-course-page .course-section-head { margin-bottom: 8px; }
.exam-course-page .course-section-head > span,.exam-course-page .course-eyebrow { display: none; }
.exam-course-page .course-section-head h2 { margin: 0; font-size: 24px; }
.exam-course-page .practice-grid { display: block; border-top: 1px solid var(--study-line); }
.exam-course-page .practice-card { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; min-height: 78px; padding: 11px 6px; border: 0; border-bottom: 1px solid var(--study-line); border-radius: 0; box-shadow: none; }
.exam-course-page a.practice-card:hover { transform: none; border-color: var(--study-line); background: #FAFBFC; box-shadow: none; }
.exam-course-page .practice-icon { width: 40px; height: 40px; border: 0; border-radius: 0; background: transparent; color: var(--study-ink); }
.exam-course-page .practice-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.exam-course-page .practice-card h3 { font-size: 16px; }
.exam-course-page .practice-card > strong { padding: 0; border-radius: 0; background: transparent; color: var(--study-muted); }
.exam-course-page .practice-card.is-disabled { background: #F7F8FA; }
.course-map-disclosure { margin-top: 34px; border-top: 1px solid var(--study-line); border-bottom: 1px solid var(--study-line); }
.course-map-disclosure > summary { display: grid; grid-template-columns: minmax(0,1fr) auto 22px; gap: 12px; align-items: center; padding: 18px 6px; cursor: pointer; list-style: none; }
.course-map-disclosure > summary::-webkit-details-marker { display: none; }
.course-map-disclosure > summary span { font-weight: 800; }
.course-map-disclosure > summary small { color: var(--study-muted); }
.course-map-disclosure > summary b { font-size: 20px; font-weight: 400; }
.course-map-disclosure[open] > summary b { transform: rotate(45deg); }
.course-map-disclosure .course-section { margin: 0; padding: 12px 0 20px; }
.exam-course-page .module-card { border-radius: 5px; box-shadow: none; }
.exam-course-page .course-note { margin-top: 20px; }

@media (max-width: 720px) {
  body.ears-exam-layout { padding-bottom: 76px !important; background: #fff; }
  .exam-header { position: static; }
  .exam-header-inner { height: 58px; padding: 0 18px; }
  .exam-brand { margin: 0 auto 0 0; }
  .exam-brand-logo { height: 24px; }
  .exam-brand-divider { height: 18px; }
  .exam-brand-label { font-size: 13px; }
  .exam-nav { display: none; }
  .exam-bottom-nav { position: fixed; z-index: 1400; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,1fr);
    min-height: 68px; padding: 5px max(5px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));
    border-top: 1px solid var(--study-line); background: rgba(255,255,255,.98); }
  .exam-bottom-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
    color: var(--study-ink); text-decoration: none; font-size: 10px; font-weight: 700; }
  .exam-bottom-link svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .exam-bottom-link.is-active { color: var(--study-accent); }
  .exam-footer { display: none; }
  .study-home,.study-page { width: calc(100% - 30px); padding: 34px 0 28px; }
  .study-home h1,.study-page h1 { margin-bottom: 21px; font-size: 28px; }
  .study-current { grid-template-columns: 44px minmax(0,1fr) 16px; gap: 12px; min-height: 94px; padding: 15px 5px; border-inline: 0; }
  .study-current-icon { width: 42px; height: 42px; }
  .study-current-icon svg { width: 23px; height: 23px; }
  .study-current-copy b { font-size: 16px; }
  .study-current-copy small { max-width: 220px; }
  .study-current-action { grid-column: 2; justify-self: start; padding: 0; border-radius: 0; background: transparent; color: var(--study-accent); font-size: 12px; }
  .study-current .study-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .study-summary span { padding-inline: 5px; }
  .study-courses { margin-top: 42px; }
  .study-section-heading { display: block; }
  .study-section-heading h2 { font-size: 22px; }
  .study-section-heading p { margin-top: 3px; }
  .study-row { padding-inline: 4px; }
  .study-row-copy b { font-size: 15px; }
  .record-summary { grid-template-columns: repeat(2,1fr); }
  .record-summary span { border-bottom: 1px solid var(--study-line); }
  .record-next { display: block; margin-block: 34px; }
  .record-next > a { display: inline-block; margin-top: 14px; }
  .exam-course-page .course-shell { width: calc(100% - 30px); padding-top: 32px; }
  .exam-course-page .course-hero { display: block; }
  .exam-course-page .course-progress { width: 100%; margin-top: 18px; }
  .exam-course-page .practice-card { grid-template-columns: 42px minmax(0,1fr) auto; }
  .exam-course-page .practice-card p { display: none; }
  .scat-fab { bottom: 84px; }
}

@media (max-width: 700px) {
  .today-step {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 14px;
    padding: 24px 22px;
  }
  .today-step-mascot img { width: 104px; }
  .today-step-mascot span { display: none; }
}

@media (max-width: 620px) {
  .exam-kawaii { padding: 12px 12px 56px; }
  .kwrap { width: 100%; }
  .exam-welcome-board.is-returning { display: none; }
  .welcome-card { padding: 24px 20px; }
  .welcome-card h1 { overflow-wrap: anywhere; }
  .welcome-bottom-bar { padding: 15px 16px; }
  .wbar-icons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; gap: 10px; }
  .wbar-ic { min-width: 0; }
  .flow-panel { padding: 22px 18px; }
  .exam-choice-card { padding: 20px 17px 18px 20px; }
  .exam-choice-head { grid-template-columns: auto minmax(0,1fr); gap: 10px; }
  .exam-choice-badge { grid-column: 2; justify-self: start; white-space: normal; }
  .exam-choice-titles h3,
  .exam-choice-titles p,
  .exam-choice-action { overflow-wrap: anywhere; }
  .exam-choice-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; }
  .exam-choice-meta span { font-size: 10px; }
  .exam-choice-meta strong { font-size: 12.5px; overflow-wrap: anywhere; }
  .kdata-card { min-width: 0; padding: 18px; }
}

@media (max-width: 480px) {
  .exam-header-inner { padding: 0 10px; }
  .exam-brand { gap: 7px; }
  .exam-brand-divider,
  .exam-brand-label { display: none; }
  .exam-brand-logo { max-width: 112px; height: 24px; object-fit: contain; }
  .exam-nav-link { padding: 7px 7px; font-size: 12px; }
  .ears-liff-context .exam-nav-back { display: none; }
  .exam-wrap { padding: 24px 14px 72px; }
  .today-step {
    grid-template-columns: minmax(0,1fr);
    padding: 22px 18px;
    border-radius: 22px;
  }
  .today-step-mascot { display: none; }
  .today-step h1 { font-size: 24px; }
  .today-step-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .today-step-stats span { display: flex; flex-direction: column; gap: 1px; padding: 8px 6px; text-align: center; }
  .today-step-stats strong { font-size: 17px; }
  .today-step-actions { display: grid; grid-template-columns: 1fr; }
  .today-step-actions .kbtn { width: 100%; justify-content: center; text-align: center; padding-inline: 16px; }
  .quiz-progress-card { padding: 14px; }
  .quiz-progress-head { align-items: flex-start; }
  .quiz-progress-right { flex-direction: column; align-items: flex-end; gap: 2px; }
  .quiz-option { align-items: flex-start; gap: 10px; padding: 13px 12px; }
  .quiz-option-key { width: 30px; height: 30px; }
  .quiz-option-text { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
  .quiz-empty-actions { display: grid; grid-template-columns: 1fr; }
  .quiz-empty-actions .kbtn2 { text-align: center; }
}

/* =====================================================================
   Exam Portal v2.2 — multi-exam catalog
   ===================================================================== */
body.ears-exam-layout.exam-home-page,
body.ears-exam-layout.exam-catalog-page,
body.ears-exam-layout.exam-history-page,
body.ears-exam-layout.exam-account-page,
body.ears-exam-layout.exam-course-page { background: #fff; }

.study-recent { margin-top: 52px; }
.study-category-section .study-record-link { margin-top: 17px; }
.category-preview-list .study-row.is-disabled { background: #fff; }
.category-preview-list .study-row.is-disabled .study-row-mark { border-color: #D6DCE5; color: #9AA3B1; }

.study-catalog { max-width: 860px; }
.catalog-index { display: flex; gap: 30px; padding: 0 0 17px; border-bottom: 1px solid var(--study-line); }
.catalog-index a { color: var(--study-ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.catalog-index a:hover { color: var(--study-accent); }
.catalog-index a[aria-disabled="true"] { color: #9AA3B1; cursor: default; }
.catalog-groups { margin-top: 12px; }
.catalog-group { scroll-margin-top: 88px; padding: 34px 0 12px; border-bottom: 1px solid var(--study-line); }
.catalog-group-heading { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 16px; align-items: center; }
.catalog-group-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #AEB9C8; border-radius: 50%; font-size: 14px; font-weight: 800; }
.catalog-group-heading h2 { margin: 0; color: var(--study-ink); font-size: 21px; }
.catalog-group-heading small { display: block; margin-top: 3px; color: var(--study-muted); font-size: 12px; }
.catalog-group-heading > strong { color: #8C95A4; font-size: 12px; }
.catalog-exam-list { margin: 20px 0 0 60px; border-top: 1px solid var(--study-line); }
.catalog-exam-row { display: grid; grid-template-columns: 45px minmax(0,1fr) auto 18px; gap: 16px; align-items: center; min-height: 82px;
  padding: 12px 5px; border-bottom: 1px solid var(--study-line); color: inherit; text-decoration: none; }
.catalog-exam-row:hover { background: #FAFBFC; }
.catalog-level { color: var(--study-accent); font-size: 13px; font-weight: 800; }
.catalog-exam-copy b { display: block; font-size: 15px; }
.catalog-exam-copy small { display: block; margin-top: 4px; color: var(--study-muted); font-size: 12px; line-height: 1.5; }
.catalog-exam-meta { color: var(--study-muted); font-size: 12px; white-space: nowrap; }
.catalog-group.is-disabled { color: #8993A2; }
.catalog-group.is-disabled .catalog-group-mark { border-color: #D6DCE5; }
.catalog-empty { margin: 17px 0 5px 60px; color: var(--study-muted); font-size: 12px; }

@media (max-width: 720px) {
  .exam-bottom-link span { max-width: 64px; line-height: 1.15; text-align: center; }
  .study-recent { margin-top: 42px; }
  .catalog-index { gap: 20px; overflow-x: auto; white-space: nowrap; }
  .catalog-group { padding-top: 29px; }
  .catalog-group-heading { grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; }
  .catalog-group-mark { width: 36px; height: 36px; }
  .catalog-group-heading h2 { font-size: 19px; }
  .catalog-exam-list { margin-left: 0; }
  .catalog-exam-row { grid-template-columns: 38px minmax(0,1fr) auto 16px; gap: 10px; min-height: 76px; padding-inline: 3px; }
  .catalog-exam-copy small { display: none; }
  .catalog-empty { margin-left: 0; }
}

@media (max-width: 480px) {
  .exam-brand-divider { display: block; }
  .exam-brand-label { display: inline; }
}

/* =====================================================================
   Exam Portal v2.3 — finalized いちごちゃん + AI learning loop
   ===================================================================== */
.study-ai-highlight {
  min-height: 264px;
  margin-top: 42px;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #F1DCD7;
  border-radius: 8px;
  background: #FFF9F7 url("../img/exam/ichigo-learning-advice-v1.21c8b913dfe9.jpg") center / cover no-repeat;
}
.study-ai-copy { width: 53%; }
.study-ai-label,.record-ai-copy > span {
  display: block;
  margin-bottom: 9px;
  color: #A96F18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}
.study-ai-copy h2,.record-ai-copy h2 {
  margin: 0;
  color: var(--study-ink);
  font-size: clamp(21px,2.6vw,27px);
  line-height: 1.42;
}
.study-ai-copy p,.record-ai-copy p {
  margin: 11px 0 17px;
  color: #59677B;
  font-size: 13px;
  line-height: 1.75;
}
.study-ai-copy > a,.record-ai-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--study-accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.study-ai-copy > a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.study-ai-copy > a:hover,.record-ai-actions a:hover { text-decoration: underline; }

.record-ai {
  min-height: 298px;
  margin-bottom: 25px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #EADFCB;
  border-radius: 8px;
  background: #FFFCF8 url("../img/exam/ichigo-ai-analysis-v1.40cdfe355df5.jpg") center / cover no-repeat;
}
.record-ai-copy { width: 52%; }
.record-ai-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.record-ai-actions a {
  padding: 9px 13px;
  border: 1px solid var(--study-accent);
  border-radius: 4px;
  background: rgba(255,255,255,.88);
  text-decoration: none;
}
.record-ai-actions a:hover { background: #fff; text-decoration: none; }
.study-history .record-list { margin-top: 44px; }

.quiz-result-shell { overflow: hidden; }
.quiz-result-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) 148px;
  gap: 24px;
  align-items: center;
  margin: -24px -24px 10px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid #F1DCD7;
  background: #FFF9F7;
}
.quiz-result-copy > span {
  color: #A96F18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}
.quiz-result-copy h2 { margin: 7px 0 8px; color: var(--study-ink); font-size: 24px; line-height: 1.4; }
.quiz-result-copy p { margin: 0; color: var(--study-muted); font-size: 13px; line-height: 1.7; }
.quiz-result-hero img { display: block; width: 100%; height: 166px; border-radius: 74px 74px 20px 20px; object-fit: cover; object-position: 50% 36%; }

@media (max-width: 720px) {
  .study-ai-highlight { min-height: 248px; margin-top: 34px; padding: 25px 20px; background-position: 59% center; }
  .study-ai-copy { width: 59%; }
  .study-ai-copy h2,.record-ai-copy h2 { font-size: 20px; }
  .study-ai-copy p,.record-ai-copy p { font-size: 12px; }
  .record-ai { min-height: 300px; padding: 28px 22px; background-position: 45% center; }
  .record-ai-copy { width: 58%; }
}

@media (max-width: 480px) {
  .study-ai-highlight { min-height: 238px; padding: 20px 16px; background-position: 61% center; }
  .study-ai-copy { width: 61%; }
  .study-ai-label,.record-ai-copy > span { margin-bottom: 6px; font-size: 10px; }
  .study-ai-copy h2,.record-ai-copy h2 { font-size: 18px; }
  .study-ai-copy p,.record-ai-copy p { margin-block: 8px 12px; line-height: 1.6; }
  .record-ai { min-height: 292px; padding: 22px 16px; background-position: 43% center; }
  .record-ai-copy { width: 61%; }
  .record-ai-actions a { padding: 7px 9px; font-size: 11px; }
  .quiz-result-hero { grid-template-columns: minmax(0,1fr) 106px; gap: 14px; padding: 22px 18px 18px; }
  .quiz-result-copy h2 { font-size: 19px; }
  .quiz-result-copy p { font-size: 12px; }
  .quiz-result-hero img { height: 132px; }
}

/* =====================================================================
   Exam Portal v2.4 — Navy Horizon + Mist Blue
   The dark navigation links LINE to the learning space; the main canvas
   stays light and quiet so exercises remain comfortable on mobile.
   ===================================================================== */
:root {
  --study-bg: #EEF4FA;
  --study-surface: #F8FBFE;
  --study-surface-strong: #FFFFFF;
  --study-ink: #0B1F3A;
  --study-muted: #5E6F86;
  --study-line: #C9D8E7;
  --study-gold: #C8A45B;
  --study-navy: #082B61;
}

body.ears-exam-layout,
body.ears-exam-layout.exam-home-page,
body.ears-exam-layout.exam-catalog-page,
body.ears-exam-layout.exam-course-page,
body.ears-exam-layout.exam-history-page,
body.ears-exam-layout.exam-account-page {
  background: var(--study-bg);
  color: var(--study-ink);
}

.exam-header {
  border-bottom-color: rgba(200,164,91,.48);
  background: var(--study-navy) url("../img/exam/exam-header-wave-v1.9b1757b21f16.jpg") center 54% / cover no-repeat;
}
.exam-brand-logo { filter: brightness(0) invert(1); }
.exam-brand-divider { background: rgba(255,255,255,.34); }
.exam-brand-label { color: #fff; }
.exam-nav-link { color: rgba(255,255,255,.84); }
.exam-nav-link:hover,.exam-nav-link.is-active { color: #fff; }
.exam-nav-link.is-active::after { background: var(--study-gold); }

.study-home,.study-page { color: var(--study-ink); }
.study-current {
  border-color: var(--study-line);
  background: rgba(248,251,254,.78);
}
a.study-current:hover { border-color: var(--study-gold); background: var(--study-surface-strong); }
.study-current-icon {
  border-color: var(--study-gold);
  color: var(--study-ink);
}
.study-current-action { background: var(--study-gold); color: var(--study-navy); }
.study-row-mark { border-color: var(--study-gold); color: var(--study-ink); }
a.study-row:hover,.exam-course-page a.practice-card:hover { background: rgba(255,255,255,.64); }
.study-row.is-disabled,.exam-course-page .practice-card.is-disabled { background: rgba(216,226,237,.52); }
.study-record-link,.study-login-note a,.record-empty a { color: #9A6E17; }

.exam-course-page .course-hero { background: transparent; }
.exam-course-page .course-progress strong { color: #9A6E17; }
.exam-course-page .course-progress i { background: var(--study-gold); }
.exam-course-page .module-card,
.quiz-question-card,
.quiz-result-shell {
  border-color: var(--study-line);
  background: var(--study-surface-strong);
  box-shadow: none;
}

.exam-footer {
  border-top-color: var(--study-line);
  background: var(--study-surface);
}

@media (max-width: 720px) {
  body.ears-exam-layout { background: var(--study-bg); }
  .exam-header-inner { min-height: 60px; }
  .exam-bottom-nav {
    border-top-color: rgba(200,164,91,.68);
    background: rgba(8,43,97,.985);
    box-shadow: 0 -8px 24px rgba(8,43,97,.14);
  }
  .exam-bottom-link { color: rgba(255,255,255,.82); }
  .exam-bottom-link:hover { color: #fff; }
  .exam-bottom-link.is-active { color: #F2C978; }
  .study-current-action { background: transparent; color: #9A6E17; }
}

@media (max-width: 480px) {
  .exam-brand-logo { filter: brightness(0) invert(1); }
  .exam-brand-divider { display: block; }
  .exam-brand-label { display: inline; color: #fff; font-size: 12px; }
}

/* =====================================================================
   Exam Portal v2.5 — AI learning analysis and seven-day plan
   ===================================================================== */
.learning-plan-page { max-width: 900px; }
.learning-plan-heading { margin-bottom: 28px; }
.learning-plan-heading p { max-width: 620px; line-height: 1.75; }

.learning-plan-hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #E7D8BC;
  border-radius: 12px;
  background: #FFF9F1;
}
.learning-plan-hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.learning-plan-hero-copy {
  position: relative;
  z-index: 1;
  width: 48%;
  padding: 58px 0 40px 42px;
}
.learning-plan-hero-copy h2 {
  margin: 0 0 18px;
  color: var(--study-ink);
  font-size: 25px;
  line-height: 1.5;
}
.learning-plan-hero-copy h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 17px;
  background: var(--study-gold);
}
.learning-plan-hero-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--study-muted);
  font-size: 13px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.learning-assessment {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  gap: 20px;
  align-items: start;
  margin-top: 26px;
  padding: 24px 28px;
  border: 1px solid var(--study-line);
  border-radius: 10px;
  background: rgba(255,255,255,.48);
}
.learning-assessment-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--study-gold);
  border-radius: 50%;
  color: #A47720;
}
.learning-assessment-icon svg,
.learning-topic-list svg,
.weekly-plan svg,
.learning-plan-primary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.learning-assessment-icon svg { width: 30px; height: 30px; }
.learning-assessment h2 { margin: 0; color: var(--study-ink); font-size: 19px; }
.learning-assessment > div > p { margin: 5px 0 0; color: var(--study-muted); font-size: 13px; }
.learning-assessment-metrics {
  display: flex;
  gap: 24px;
  margin: 14px 0 0;
}
.learning-assessment-metrics div { display: flex; gap: 6px; align-items: baseline; }
.learning-assessment-metrics dt { color: var(--study-muted); font-size: 11px; }
.learning-assessment-metrics dd { margin: 0; color: var(--study-ink); font-size: 15px; font-weight: 800; }

.learning-analysis-columns { margin-top: 42px; }
.learning-topic-section { margin-top: 32px; }
.learning-topic-section h2,.weekly-plan h2 {
  margin: 0 0 11px;
  color: var(--study-ink);
  font-size: 23px;
}
.learning-topic-list { border-top: 1px solid var(--study-line); }
.learning-topic-list a {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 20px;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 12px 7px;
  border-bottom: 1px solid var(--study-line);
  color: inherit;
  text-decoration: none;
}
.learning-topic-list a:hover { background: rgba(255,255,255,.58); }
.learning-topic-list span b { display: block; font-size: 15px; }
.learning-topic-list span small { display: block; margin-top: 4px; color: var(--study-muted); font-size: 11px; }
.learning-topic-list strong { color: #9A6E17; font-size: 14px; }
.learning-topic-list svg,.weekly-plan svg { width: 19px; height: 19px; color: var(--study-ink); }
.learning-topic-empty {
  margin: 0;
  padding: 22px 7px;
  border-block: 1px solid var(--study-line);
  color: var(--study-muted);
  font-size: 13px;
  line-height: 1.7;
}

.weekly-plan { margin-top: 48px; }
.weekly-plan-heading { margin-bottom: 12px; }
.weekly-plan-heading p { margin: 0; color: var(--study-muted); font-size: 12px; }
.weekly-plan ol { position: relative; margin: 0; padding: 0; list-style: none; }
.weekly-plan ol::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 30px;
  bottom: 30px;
  left: 76px;
  width: 1px;
  background: var(--study-gold);
}
.weekly-plan li { position: relative; z-index: 1; }
.weekly-plan a {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr) 20px;
  gap: 17px;
  align-items: center;
  min-height: 68px;
  padding: 8px 7px;
  border-bottom: 1px solid var(--study-line);
  color: inherit;
  text-decoration: none;
}
.weekly-plan a:hover { background: rgba(255,255,255,.58); }
.weekly-plan-day { position: relative; color: #A47720; font-size: 13px; font-weight: 800; }
.weekly-plan-day::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--study-gold);
  border-radius: 50%;
  background: var(--study-bg);
  transform: translateY(-50%);
}
.weekly-plan-copy b { display: block; color: var(--study-ink); font-size: 15px; }
.weekly-plan-copy small { display: block; margin-top: 3px; color: var(--study-muted); font-size: 11px; }

.learning-plan-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 30px;
  border-radius: 8px;
  background: var(--study-gold);
  color: var(--study-navy);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.learning-plan-primary:hover { background: #D4B168; color: var(--study-navy); }
.learning-plan-primary svg { width: 25px; height: 25px; }

@media (max-width: 720px) {
  .learning-plan-page { padding-top: 31px; }
  .learning-plan-heading { margin-bottom: 22px; }
  .learning-plan-heading h1 { font-size: 27px; }
  .learning-plan-heading p { font-size: 12px; }
  .learning-plan-hero { min-height: 250px; }
  .learning-plan-hero-copy { width: 51%; padding: 31px 0 24px 18px; }
  .learning-plan-hero-copy h2 { margin-bottom: 10px; font-size: 17px; line-height: 1.55; }
  .learning-plan-hero-copy h2::after { width: 30px; margin-top: 10px; }
  .learning-plan-hero-copy p { font-size: 10px; line-height: 1.65; -webkit-line-clamp: 5; }
  .learning-assessment { grid-template-columns: 48px minmax(0,1fr); gap: 14px; padding: 20px 15px; }
  .learning-assessment-icon { width: 46px; height: 46px; }
  .learning-assessment-icon svg { width: 25px; height: 25px; }
  .learning-assessment h2 { font-size: 17px; }
  .learning-assessment > div > p { font-size: 12px; }
  .learning-assessment-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .learning-assessment-metrics div { display: block; }
  .learning-assessment-metrics dt { display: block; }
  .learning-assessment-metrics dd { margin-top: 2px; }
  .learning-analysis-columns { margin-top: 35px; }
  .learning-topic-section h2,.weekly-plan h2 { font-size: 21px; }
  .learning-topic-list a { min-height: 72px; gap: 10px; }
  .weekly-plan { margin-top: 40px; }
  .weekly-plan a { grid-template-columns: 69px minmax(0,1fr) 18px; gap: 13px; }
  .weekly-plan ol::before { left: 61px; }
  .weekly-plan-day::after { right: -7px; }
  .learning-plan-primary { position: sticky; z-index: 20; bottom: 76px; margin-inline: -2px; }
}

/* ===== 用語集 /exam/terms/ ===== */
.study-terms .terms-search{display:flex;gap:.5rem;align-items:center;margin:0 0 1rem;flex-wrap:wrap}
.study-terms .terms-search input[type=search]{flex:1 1 16rem;min-width:0;padding:.55rem .8rem;
  border:1px solid #d8d2ca;border-radius:8px;font-size:1rem}
.study-terms .terms-search button{padding:.55rem 1.2rem;border:0;border-radius:8px;
  background:#b3373f;color:#fff;font-weight:600;cursor:pointer}
.study-terms .terms-clear{font-size:.9rem;color:#777}
.study-terms .terms-count{color:#777;font-size:.9rem;margin:0 0 1.5rem}
.study-terms .terms-empty{padding:2rem;text-align:center;color:#888}
.study-terms .terms-module{margin:0 0 2.5rem}
.study-terms .terms-module>h2{font-size:1.15rem;border-bottom:2px solid #e6ded4;
  padding-bottom:.4rem;margin:0 0 1rem}
.study-terms .terms-module-count{font-size:.8rem;color:#999;font-weight:400;margin-left:.5rem}
.study-terms .terms-topic{font-size:1rem;color:#8a6d3b;margin:1.2rem 0 .5rem}
/* 表は横に溢れさせず、その場でスクロールさせる（スマホで本文が崩れるため） */
.study-terms .terms-table-wrap{overflow-x:auto}
.study-terms .terms-table{width:100%;border-collapse:collapse;font-size:.95rem}
.study-terms .terms-table th,.study-terms .terms-table td{
  border-bottom:1px solid #eee;padding:.55rem .7rem;text-align:left;vertical-align:top}
.study-terms .terms-table thead th{background:#faf7f3;font-size:.85rem;color:#777;font-weight:600;
  white-space:nowrap}
.study-terms .terms-table tbody th{font-weight:600;white-space:nowrap}
.study-terms .term-yomi{color:#8a8178;white-space:nowrap;font-size:.9rem}
.study-terms .term-zh{color:#333}
.study-terms .term-note p{margin:0 0 .3rem}
.study-terms .term-desc{color:#777;font-size:.88rem}
.study-terms .term-pitfall{color:#8a3b3b;font-size:.9rem}
.study-terms tr.has-pitfall{background:#fffaf7}
.term-warn,.term-warn-inline{display:inline-block;background:#b3373f;color:#fff;font-size:.72rem;
  font-weight:700;border-radius:4px;padding:.05rem .4rem;margin-right:.4rem;vertical-align:1px}
.study-terms .terms-foot{margin-top:2rem;color:#999;font-size:.82rem;border-top:1px solid #eee;
  padding-top:1rem}

/* ===== 採点結果の用語チップ ===== */
.quiz-terms{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}
.quiz-term{display:inline-flex;align-items:baseline;gap:.3rem;background:#f5f1ec;
  border-radius:6px;padding:.15rem .5rem;font-size:.8rem;line-height:1.5}
.quiz-term b{font-weight:600}
.quiz-term i{font-style:normal;color:#8a8178;font-size:.72rem}
.quiz-term span{color:#555}
.quiz-term.has-pitfall{background:#fdeeee;cursor:help}
.quiz-term.has-pitfall b{color:#8a3b3b}

/* 入口カード（用語集）— study-row のマーク色だけ差し替える */
.study-terms-entry .study-row-mark{background:#F3E9D2;color:#8a6d3b}
