/* 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; }
}
