/* UI-believe (2026-11-06): 紺と白、角のない四角、細い線、広い余白の外観。
   見本はローカルデモ demos/believe-django-2026-11-06。app.css・hub.css の後に読み、
   色の変数・角・ヘッダー・カード・ボタンだけを上書きする。仕組み（URL・フォーム・PWA・
   data-testid）は変えない。外すときは templates/base.html の believe.css の link を消す。 */

/* ---- 色と角 ------------------------------------------------------------ */
:root {
  --bl-blue: #00468c;
  --bl-blue-dark: #00396f;
  --bl-ink: #172a3b;
  --bl-muted: #5b6b78;
  --bl-line: #dce3e9;
  --bl-pale: #f2f6f9;
  --bl-soft: #edf4fb;
  --bl-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI",
    "Yu Gothic", Meiryo, sans-serif;
  --bl-brand-font: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --hub-blue: var(--bl-blue);
  --hub-blue-solid: var(--bl-blue);
  --hub-blue-soft: var(--bl-soft);
  --hub-link: var(--bl-blue);
  --hub-line: var(--bl-line);
  --hub-bg: #fff;
  --hub-surface: #fff;
  --hub-chip-bg: var(--bl-pale);
  --hub-track: #e6ecf1;
  --hub-radius: 0;
  --hub-max: 1120px;
  --accent: var(--bl-blue);
  --border: var(--bl-line);
  --bg: #fff;
  --fg: var(--bl-ink);
  --muted: var(--bl-muted);
  --bs-link-color-rgb: 0, 70, 140;
  --bs-link-hover-color-rgb: 0, 57, 111;
  --bs-primary-rgb: 0, 70, 140;
}

/* ダーク: app.css・hub.css の暗色はそのまま使い、この層の変数だけ暗色にする。 */
:root[data-theme="dark"] {
  --bl-blue: #8ab4f8;
  --bl-blue-dark: #2f6fdc;
  --bl-ink: #e8eaed;
  --bl-muted: #9aa0a6;
  --bl-line: #2c313a;
  --bl-pale: #1f242b;
  --bl-soft: #1f2a3d;
  --bs-link-color-rgb: 138, 180, 248;
  --bs-link-hover-color-rgb: 174, 203, 250;
  --bs-primary-rgb: 47, 111, 220;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bl-blue: #8ab4f8;
    --bl-blue-dark: #2f6fdc;
    --bl-ink: #e8eaed;
    --bl-muted: #9aa0a6;
    --bl-line: #2c313a;
    --bl-pale: #1f242b;
    --bl-soft: #1f2a3d;
    --bs-link-color-rgb: 138, 180, 248;
    --bs-link-hover-color-rgb: 174, 203, 250;
    --bs-primary-rgb: 47, 111, 220;
  }
}

body.app-shell,
body.app-shell.is-hub {
  font-family: var(--bl-font);
}

/* 角を四角に。数の印（バッジ）と選択肢の丸印だけは丸のまま。 */
body.app-shell :is(.hub-btn, .hub-input, .hub-note, .hub-quiz__hint, .hub-gate, .hub-stat-box,
  .hub-quiz__tools-body, .hub-case, .hub-choice, .hub-result, .hub-mock-top, .hub-slot__field,
  .hub-slot__select, .hub-choice-ref, .hub-pick, .hub-scard, .hub-tile, .hub-exam-card, .hub-card,
  .hub-custom-section, .hub-sticky-bar, .hub-onboard, .hub-resume, .hub-mode, .hub-row-card,
  .hub-session-row, .hub-panel, .hub-custom-dlg, .me-section, .hub-exam-switch summary,
  .hub-exam-switch__menu, .hub-exam-switch__menu a, .hub-mock-nav button, .hub-quiz-back,
  .hub-topnav a, .hub-chip, .hub-empty, .hub-progress, .hub-progress > span, .hub-onboard__steps li,
  .choice-btn, .stat-block, .btn, .form-control, .form-select, .alert, .sheet) {
  border-radius: 0;
}
/* Bootstrap の .rounded は !important なので同じ強さで消す（問題の本文パネルなど）。 */
body.app-shell .rounded {
  border-radius: 0 !important;
}
.app-main form > p > :is(select, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"])),
.form-field > :is(select, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"])) {
  border-radius: 0;
}

/* Bootstrap の青も同じ紺に（ログイン・登録など古い画面）。 */
.btn-primary {
  --bs-btn-bg: var(--hub-blue-solid);
  --bs-btn-border-color: var(--hub-blue-solid);
  --bs-btn-hover-bg: var(--bl-blue-dark);
  --bs-btn-hover-border-color: var(--bl-blue-dark);
  --bs-btn-active-bg: var(--bl-blue-dark);
  --bs-btn-active-border-color: var(--bl-blue-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--hub-blue);
  --bs-btn-border-color: var(--hub-blue);
  --bs-btn-hover-bg: var(--hub-blue-solid);
  --bs-btn-hover-border-color: var(--hub-blue-solid);
  --bs-btn-active-bg: var(--hub-blue-solid);
}

/* ---- ログイン後のヘッダー（上段＋PC の下段ナビ） ------------------------- */
.hub-topbar {
  display: block;
  min-height: 0;
  padding: 0;
  gap: 0;
  background: var(--hub-surface);
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--hub-line);
}

.hub-topbar__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  min-height: 80px;
  padding: 0 0 0 40px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0.35rem 0;
  color: var(--hub-blue);
  text-decoration: none;
}
@media (hover: hover) {
  .hub-brand:hover {
    color: var(--hub-blue);
  }
}
.hub-brand__name {
  font-family: var(--bl-brand-font);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1;
}
.hub-brand__num {
  font-weight: 400;
}
.hub-brand__tag {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
}

.hub-exam-switch summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--hub-line);
  background: var(--bl-pale);
  font-size: 0.875rem;
}
.hub-exam-switch summary::after {
  content: "▾";
  margin-left: 0.5rem;
  color: var(--hub-blue);
  font-size: 0.75rem;
}

.hub-topbar__links {
  display: flex;
  align-self: stretch;
  margin-left: auto;
}
.hub-topbar__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 170px;
  padding: 0 26px;
  border-left: 1px solid var(--hub-line);
  color: var(--fg);
  font-size: 0.8125rem;
  text-decoration: none;
}
@media (hover: hover) {
  .hub-topbar__links a:hover {
    background: var(--bl-pale);
    color: var(--hub-blue);
  }
}

.hub-topbar > .hub-topnav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  height: 70px;
  margin: 0;
}
.hub-topbar > .hub-topnav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 0;
  height: 100%;
  padding: 0 0.5rem 4px;
  border-top: 4px solid transparent;
  background: transparent;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.hub-topbar > .hub-topnav a[aria-current="page"] {
  border-top-color: var(--hub-blue);
  background: var(--bl-pale);
  color: var(--hub-blue);
}
@media (hover: hover) {
  .hub-topbar > .hub-topnav a:hover {
    border-top-color: var(--hub-blue);
    background: var(--bl-pale);
    color: var(--hub-blue);
  }
}

/* ヘッダーの高さ（PC 2 段 151px・スマホ 67px・解答中 61px）。上に貼り付く部品と
   アンカーの止まる位置をこれに合わせる。hub.css は 56px・72px 前提だった。 */
:root {
  --bl-head: 67px;
}
@media (min-width: 992px) {
  :root {
    --bl-head: 151px;
  }
}
:root:has(body.is-quiz) {
  --bl-head: 61px;
}
.hub-custom-section,
.hub-chip-row,
.hub-session-parts {
  scroll-margin-top: calc(var(--bl-head) + 16px);
}
.hub-mock-top {
  top: var(--bl-head);
}
.hub-edit-preview {
  top: calc(var(--bl-head) + 16px);
}

/* 解いている間は 1 段だけ（ナビを出さない）。 */
body.is-quiz .hub-topbar__main {
  min-height: 60px;
  padding: 0.4rem 1.25rem;
}
body.is-quiz .hub-brand__name {
  font-size: 22px;
}
.hub-quiz-back {
  border: 1px solid var(--hub-line);
}

@media (max-width: 1199px) {
  .hub-topbar__links a {
    min-width: 0;
    padding: 0 18px;
  }
  .hub-topbar > .hub-topnav a {
    font-size: 0.8125rem;
  }
}

@media (max-width: 991px) {
  .hub-topbar__links {
    display: none;
  }
  .hub-topbar__main {
    min-height: 66px;
    padding: 0.45rem 16px;
    gap: 0.4rem 0.9rem;
  }
  .hub-brand {
    gap: 6px;
  }
  .hub-brand__name {
    font-size: 23px;
  }
  .hub-brand__tag {
    font-size: 8px;
  }
  .hub-exam-switch summary {
    min-height: 40px;
    font-size: 0.8125rem;
  }
}

/* ---- スマホの下タブ ---------------------------------------------------- */
.app-tabs {
  background: var(--hub-surface);
  border-top: 1px solid var(--hub-line);
}
.app-tabs a {
  border-top: 3px solid transparent;
  color: var(--muted);
}
.app-tabs a[aria-current="page"] {
  border-top-color: var(--hub-blue);
  background: var(--bl-pale);
  color: var(--hub-blue);
  font-weight: 700;
}

/* ---- 未ログインのヘッダー（ログイン・使い方・規約など） ------------------ */
@media (min-width: 992px) {
  /* 下タブ（PC の左帯）はログイン後だけなので、未ログインでは左の空きを作らない。 */
  body.app-shell:not(.is-hub) {
    padding-left: 0;
  }
}
body.app-shell:not(.is-hub) {
  padding-bottom: 0;
}

.app-header {
  min-height: 80px;
  gap: 1rem;
  padding: 0 0 0 40px;
  background: var(--hub-surface);
  border-bottom: 1px solid var(--hub-line);
}
.app-header > .app-header__back:empty {
  display: none;
}
.app-header__brand {
  flex: none;
}
.app-header__title {
  flex: 1;
  margin: 0;
  padding-left: 1.1rem;
  border-left: 1px solid var(--hub-line);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
}
.app-header__title:has(> .app-header__title-default) {
  border-left: 0;
}
.app-header__title-default {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.app-header__links {
  display: flex;
  align-self: stretch;
}
.app-header__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0 24px;
  border-left: 1px solid var(--hub-line);
  color: var(--fg);
  font-size: 0.8125rem;
  text-decoration: none;
}
@media (hover: hover) {
  .app-header__links a:hover {
    background: var(--bl-pale);
    color: var(--hub-blue);
  }
}
.app-header__action:has(> [hidden]:only-child) {
  display: none;
}

@media (max-width: 991px) {
  .app-header {
    min-height: 66px;
    padding: 0.4rem 16px;
    gap: 0.75rem;
  }
  .app-header__links {
    display: none;
  }
  .app-header__title {
    padding-left: 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ---- 入口のメイン写真（ログイン画面） ------------------------------------ */
.phrase {
  display: inline-block;
}

.brand-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 440px;
  height: min(560px, calc(100svh - 80px));
  color: #fff;
  background: linear-gradient(120deg, #00468c 0%, #0b5a86 55%, #2a6f84 100%);
  text-align: center;
}
.brand-hero__pictures {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
.brand-hero__pictures img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-hero--photos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 56, 78, 0.38);
}
.brand-hero__copy {
  position: relative;
  z-index: 1;
  padding: 40px 22px;
}
.brand-hero__kicker {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
}
.brand-hero__title {
  margin: 0;
  padding-left: 0.28em;
  font-size: clamp(32px, 3.4vw, 56px);
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.6;
  text-shadow: 0 2px 24px rgba(0, 57, 77, 0.2);
}
.brand-hero__lead {
  margin: 28px 0 0;
  font-size: 1rem;
  letter-spacing: 0.045em;
  line-height: 2.2;
}
.brand-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  min-height: 48px;
  margin-top: 26px;
  padding: 10px 25px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 0.8125rem;
  text-decoration: none;
}
@media (hover: hover) {
  .brand-hero__link:hover {
    background: #fff;
    color: #00468c;
  }
}

@media (max-width: 760px) {
  .brand-hero {
    min-height: 420px;
    height: auto;
  }
  .brand-hero__kicker {
    margin-bottom: 20px;
    font-size: 0.625rem;
    letter-spacing: 0.16em;
  }
  .brand-hero__title {
    font-size: 30px;
    letter-spacing: 0.12em;
    padding-left: 0.12em;
  }
  .brand-hero__lead {
    max-width: 320px;
    margin: 22px auto 0;
    font-size: 0.8125rem;
  }
  .brand-hero__link {
    gap: 24px;
    font-size: 0.75rem;
  }
}

.login-card {
  max-width: 480px;
  margin: 2.5rem auto 1rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--hub-line);
  background: var(--hub-surface);
  scroll-margin-top: 96px;
}
.login-card h1 {
  margin: 0 0 1.25rem;
  color: var(--hub-blue);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
@media (max-width: 520px) {
  .login-card {
    margin-top: 1.5rem;
    padding: 1.5rem 1.1rem;
    border-inline: 0;
  }
}

/* ---- ページの見出しと本文 ---------------------------------------------- */
body.app-shell.is-hub .hub-page {
  padding-top: 2.25rem;
  padding-bottom: 3.5rem;
}
.hub-crumb {
  color: var(--muted);
  font-size: 0.8125rem;
}
.hub-h1 {
  color: var(--hub-blue);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.hub-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hub-lead {
  color: var(--muted);
}

@media (max-width: 760px) {
  body.app-shell.is-hub .hub-page {
    padding-top: 1.4rem;
  }
  .hub-h1 {
    font-size: 1.45rem;
  }
  .hub-card__title {
    font-size: 1.15rem;
  }
}

/* ---- カード・ボタン・チップ -------------------------------------------- */
:is(.hub-exam-card, .hub-mode, .hub-row-card, .hub-scard, .hub-card, .hub-tile, .hub-panel, .hub-session-row) {
  border-color: var(--hub-line);
  box-shadow: none;
}
@media (hover: hover) {
  :is(a.hub-exam-card, a.hub-mode, button.hub-mode, a.hub-row-card, a.hub-scard, button.hub-scard):hover {
    border-color: var(--hub-blue);
    box-shadow: 0 7px 25px rgba(0, 70, 140, 0.06);
  }
}

.hub-exam-card {
  padding: 1.5rem 1.4rem;
}
.hub-exam-card__title {
  color: var(--hub-blue);
  font-weight: 700;
}
/* 「指定利用者のみ」などの印は名前の下に小さく。 */
.hub-exam-card__title .hub-chip {
  display: flex;
  width: fit-content;
  min-height: 0;
  margin: 0.45rem 0 0;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}
@media (min-width: 1001px) {
  .hub-exam-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
}

.hub-mode {
  position: relative;
}
:is(a, button).hub-mode::after {
  content: "→";
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--hub-blue);
  line-height: 1;
}
.hub-mode__t {
  color: var(--hub-blue);
  font-weight: 700;
}
.hub-mode__s {
  padding-right: 1.4rem;
}
@media (min-width: 761px) {
  .hub-mode {
    min-height: 150px;
    padding: 22px 22px 34px;
    gap: 6px;
  }
  .hub-mode__t {
    font-size: 1.15rem;
  }
  :is(a, button).hub-mode::after {
    right: 20px;
    bottom: 16px;
  }
}

.hub-btn {
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (hover: hover) {
  .hub-btn--primary:hover {
    background: var(--bl-blue-dark);
    color: #fff;
  }
}
.hub-btn--outline {
  border-color: var(--hub-line);
}
@media (hover: hover) {
  .hub-btn--outline:hover {
    border-color: var(--hub-blue);
  }
}

.hub-chip--check:has(input:checked),
.hub-chip.is-on,
.hub-chip--on {
  border-color: var(--hub-blue-solid);
}

.hub-resume {
  border-left: 3px solid var(--hub-blue-solid);
}

/* ---- 問題画面 ---------------------------------------------------------- */
@media (hover: hover) {
  .hub-choice:hover {
    border-color: var(--hub-blue);
  }
}

/* ---- フッター ---------------------------------------------------------- */
.app-footer {
  margin-top: 2rem;
  padding: 2.25rem 1rem 2.5rem !important;
  border-top: 1px solid var(--hub-line);
  background: var(--hub-surface);
  letter-spacing: 0.03em;
}
.app-footer::before {
  content: "kakomon100";
  display: block;
  margin-bottom: 0.75rem;
  color: var(--hub-blue);
  font-family: var(--bl-brand-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.055em;
}

/* ---- トップ（/）：紹介ページ（ログイン前）とホーム（ログイン後）、2026-11-08 ----
   見本は外観デモのトップ（写真 2 枚の大見出し・英字の小見出し・写真カード・締めの帯）。
   写真は static/brand/ に置いたものだけ（無いときは紺の面）。テンプレートは
   stats/landing.html・stats/home.html・partials/brand_hero.html。 */
.app-main.app-main--full {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
body:has(.bl-top) .app-footer {
  margin-top: 0;
}
.bl-top {
  color: var(--bl-ink);
  font-size: 0.9375rem;
  line-height: 1.9;
}
.bl-top :is(h1, h2, h3) {
  color: inherit;
}
.brand-hero__title {
  color: inherit;
}
.brand-hero--landing {
  min-height: 520px;
  height: min(725px, calc(100svh - 80px));
}
.brand-hero--home {
  min-height: 380px;
  height: min(480px, calc(100svh - var(--bl-head) - 140px));
}
.brand-hero__scroll {
  position: absolute;
  z-index: 1;
  left: 35px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}
.brand-hero__scroll i {
  width: 1px;
  height: 45px;
  background: #fff;
}

.bl-wrap {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}
.bl-section {
  padding-block: 100px;
}
.bl-section--tight {
  padding-block: 64px 72px;
}
.bl-section--pale {
  background: var(--bl-pale);
}
.bl-eyebrow {
  margin: 0;
  color: var(--hub-blue);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
}
.bl-heading {
  margin: 0 auto 64px;
  padding-inline: 20px;
  text-align: center;
}
.bl-heading h2 {
  margin: 14px 0 24px;
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.bl-heading > p:last-child {
  margin: 0;
  color: var(--bl-muted);
  line-height: 2.5;
}
.bl-sp {
  display: none;
}

/* ボタン：四角・紺・右に矢印 */
.bl-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  min-height: 54px;
  padding: 13px 28px;
  border: 1px solid var(--hub-blue-solid);
  border-radius: 0;
  background: var(--hub-blue-solid);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
}
@media (hover: hover) {
  .bl-button:hover {
    border-color: var(--bl-blue-dark);
    background: var(--bl-blue-dark);
    color: #fff;
  }
}
.bl-button--center {
  display: flex;
  width: 300px;
  max-width: calc(100% - 32px);
  margin: 45px auto 0;
}
.bl-button--small {
  gap: 24px;
  min-height: 44px;
  padding: 8px 20px;
}
.bl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--hub-blue);
  font-size: 0.875rem;
}
.bl-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--bl-line);
  background: var(--hub-surface);
  color: var(--bl-ink);
  font-size: 0.6875rem;
  line-height: 1.6;
  white-space: nowrap;
}

/* 学習スタイル：左に文、右に写真（無いときは紺の面に 4 つの学び方） */
.bl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1600px;
  margin: auto;
}
.bl-split__copy {
  padding: 45px clamp(30px, 5vw, 100px);
}
.bl-split__copy h3 {
  margin: 18px 0 24px;
  color: var(--hub-blue);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.8;
}
.bl-split__copy > p:not(.bl-eyebrow) {
  max-width: 510px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 2.4;
}
.bl-split__copy .bl-button {
  margin-top: 32px;
}
.bl-split__media {
  width: 100%;
  height: 450px;
  border-radius: 24px 0 0 24px;
  object-fit: cover;
}
.bl-styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 16px;
  margin: 0;
  padding: 48px clamp(28px, 4vw, 64px);
  list-style: none;
  background: linear-gradient(120deg, #00468c 0%, #0b5a86 55%, #2a6f84 100%);
  color: #fff;
}
.bl-styles li {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.bl-styles svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}
.bl-styles strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.bl-styles span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
}

/* 写真カード（試験・学校）。写真が無いときは種類ごとの紺のグラデーション。
   PC は 3 枚まで 1 列に並べ、割り切れない残りも中央に（grid だと 3 枚目が左に寄った）。 */
.bl-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.bl-card {
  position: relative;
  flex: 1 1 280px;
  max-width: 360px;
  display: flex;
  align-items: flex-end;
  min-height: 370px;
  overflow: hidden;
  background: linear-gradient(160deg, #0b5a86 0%, #00468c 55%, #00315f 100%);
  color: #fff;
  text-decoration: none;
}
.bl-card--medical {
  background: linear-gradient(160deg, #2a6f84 0%, #0b5a86 50%, #00396f 100%);
}
.bl-card--civil {
  background: linear-gradient(160deg, #3d6f95 0%, #1d4f7c 50%, #0c2f55 100%);
}
.bl-cards--exams .bl-card {
  min-height: 250px;
}
.bl-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.bl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(6, 39, 59, 0.85) 100%);
}
.bl-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 30px 56px 30px 30px;
}
.bl-card__eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
}
.bl-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.bl-cards--exams .bl-card__title {
  font-size: 1.375rem;
}
.bl-card__icon {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 30px;
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.7);
}
.bl-card__icon :is(svg, img) {
  display: block;
  width: 100%;
  height: 100%;
}
.bl-card__body {
  padding-top: 104px;
}
.bl-card__lead {
  font-size: 0.8125rem;
}
.bl-card__note {
  color: #e4eef3;
  font-size: 0.75rem;
  line-height: 1.7;
}
.bl-card__progress {
  display: block;
  height: 3px;
  margin: 10px 0 2px;
  background: rgba(255, 255, 255, 0.3);
}
.bl-card__progress > span {
  display: block;
  height: 100%;
  background: #fff;
}
.bl-card__arrow {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 30px;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s;
}
@media (hover: hover) {
  .bl-card:hover {
    color: #fff;
  }
  .bl-card:hover > img {
    transform: scale(1.04);
  }
  .bl-card:hover .bl-card__arrow {
    transform: translateX(4px);
  }
}

/* 学びのヒント：左に見出し、右に行 */
.bl-guide {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 70px;
}
.bl-guide__head h2 {
  margin: 12px 0;
  font-size: 2rem;
  font-weight: 700;
}
.bl-guide__head > p:last-child {
  margin: 0;
  color: var(--bl-muted);
  font-size: 0.8125rem;
}
.bl-guide__list a {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 26px 0;
  border-bottom: 1px solid var(--bl-line);
  color: var(--bl-ink);
  text-decoration: none;
}
.bl-guide__list a:first-child {
  border-top: 1px solid var(--bl-line);
}
.bl-guide__list .bl-tag {
  flex: none;
  width: 6em;
  padding-inline: 0;
  text-align: center;
}
.bl-guide__text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}
.bl-guide__list a > span:last-child {
  color: var(--hub-blue);
}
@media (hover: hover) {
  .bl-guide__list a:hover {
    color: var(--hub-blue);
  }
}

/* 締めの帯 */
.bl-closing {
  padding: 90px 20px;
  background: var(--bl-soft);
  text-align: center;
}
.bl-closing h2 {
  margin: 22px 0 35px;
  font-size: 2.375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.8;
}
.bl-closing__sub {
  margin: 18px 0 0;
  font-size: 0.8125rem;
}

/* ホームの「今日の学習」 */
.bl-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bl-line);
}
.bl-h2 {
  margin: 10px 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.bl-head-row__exam {
  margin: 0;
  color: var(--bl-muted);
  font-size: 0.8125rem;
}
.bl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border: 1px solid var(--bl-line);
}
.bl-stats > div {
  padding: 26px 30px;
  border-right: 1px solid var(--bl-line);
}
.bl-stats > div:last-child {
  border-right: 0;
}
.bl-stats dt {
  color: var(--bl-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.bl-stats dd {
  margin: 8px 0 0;
  color: var(--hub-blue);
  font-family: var(--bl-brand-font);
  font-size: 2.75rem;
  line-height: 1.2;
}
.bl-stats small {
  margin-left: 6px;
  font-size: 1rem;
}
.bl-stats__sub {
  display: block;
  margin-top: 4px;
  color: var(--bl-muted);
  font-family: var(--bl-font);
  font-size: 0.75rem;
}
.bl-review,
.bl-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  background: var(--bl-pale);
}
.bl-review {
  margin-top: 24px;
  padding: 18px 24px;
}
.bl-empty {
  padding: 32px;
}
.bl-review p,
.bl-empty p,
.bl-review form,
.bl-empty form {
  margin: 0;
}
.bl-empty p {
  font-weight: 500;
}

@media (max-width: 1100px) {
  .bl-wrap {
    width: calc(100% - 60px);
  }
  .bl-split__copy {
    padding: 35px;
  }
  .bl-split__copy h3 {
    font-size: 1.625rem;
  }
}
@media (max-width: 991px) {
  .bl-guide {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .bl-stats {
    grid-template-columns: 1fr 1fr;
  }
  .bl-stats > div:nth-child(2n) {
    border-right: 0;
  }
  .bl-stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--bl-line);
  }
}
@media (max-width: 760px) {
  .bl-top {
    font-size: 0.875rem;
  }
  .brand-hero--landing {
    min-height: 480px;
    height: min(620px, calc(100svh - 67px));
  }
  .brand-hero--home {
    min-height: 320px;
    height: auto;
  }
  .brand-hero__scroll {
    left: 14px;
    bottom: 18px;
    font-size: 0.5rem;
  }
  .brand-hero__scroll i {
    height: 30px;
  }
  .bl-wrap {
    width: calc(100% - 32px);
  }
  .bl-section {
    padding-block: 64px;
  }
  .bl-section--tight {
    padding-block: 36px 44px;
  }
  .bl-heading {
    margin-bottom: 36px;
    padding-inline: 16px;
  }
  .bl-heading h2 {
    margin: 12px 0 18px;
    font-size: 1.5rem;
    letter-spacing: 0;
    line-height: 1.9;
  }
  .bl-heading > p:last-child {
    font-size: 0.8125rem;
    line-height: 2.3;
  }
  .bl-eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
  }
  .bl-sp {
    display: block;
  }
  .bl-button {
    gap: 24px;
    min-height: 50px;
    padding: 12px 20px;
    font-size: 0.8125rem;
  }
  .bl-button--center {
    margin-top: 30px;
  }
  .bl-split {
    grid-template-columns: 1fr;
  }
  .bl-split__copy {
    order: 2;
    padding: 24px 16px 8px;
  }
  .bl-split__copy h3 {
    margin: 12px 0 16px;
    font-size: 1.375rem;
  }
  .bl-split__copy > p:not(.bl-eyebrow) {
    font-size: 0.8125rem;
    line-height: 2.2;
  }
  .bl-split__copy .bl-button {
    width: 100%;
    margin-top: 24px;
  }
  .bl-split__media {
    order: 1;
    width: calc(100% - 16px);
    height: 260px;
    margin-left: auto;
    border-radius: 18px 0 0 18px;
  }
  .bl-styles {
    height: auto;
    gap: 10px;
    padding: 22px 18px;
  }
  .bl-styles li {
    padding: 14px 12px;
  }
  .bl-styles svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }
  .bl-styles strong {
    font-size: 1.0625rem;
  }
  .bl-styles span {
    font-size: 0.75rem;
  }
  .bl-cards {
    gap: 16px;
  }
  .bl-card {
    flex-basis: 100%;
    max-width: none;
    min-height: 260px;
  }
  .bl-cards--exams .bl-card {
    min-height: 200px;
  }
  .bl-card__body {
    padding: 24px 52px 24px 22px;
  }
  .bl-card__title {
    font-size: 1.5rem;
  }
  .bl-cards--exams .bl-card__title {
    font-size: 1.25rem;
  }
  .bl-card__arrow {
    right: 20px;
    bottom: 24px;
  }
  .bl-card__icon {
    top: 22px;
    left: 22px;
    width: 44px;
    height: 44px;
  }
  .bl-card__body {
    padding-top: 84px;
  }
  .bl-guide__head h2 {
    font-size: 1.625rem;
  }
  .bl-guide__list a {
    gap: 14px;
    padding: 20px 0;
  }
  .bl-guide__text {
    font-size: 0.8125rem;
  }
  .bl-closing {
    padding: 60px 16px;
  }
  .bl-closing h2 {
    margin: 18px 0 26px;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
  }
  .bl-closing .bl-button {
    width: 100%;
    max-width: 420px;
  }
  .bl-h2 {
    font-size: 1.375rem;
  }
  .bl-stats > div {
    padding: 16px;
  }
  .bl-stats dd {
    font-size: 2rem;
  }
  .bl-review,
  .bl-empty {
    padding: 18px 16px;
  }
  .bl-review form,
  .bl-empty form,
  .bl-review .bl-button,
  .bl-empty .bl-button {
    width: 100%;
  }
}
/* スマホの横向き：大見出しを画面に収める */
@media (orientation: landscape) and (max-height: 500px) {
  .brand-hero--landing,
  .brand-hero--home {
    min-height: 0;
    height: auto;
  }
}

/* ---- growth T05・T06（2026-11-16）：試験カタログ・体験・ログインの案内・ホームの主な操作 ----
   新しい部品は cat-（カタログ・体験）、login-help、bl-action(s)（ホーム）。色・線・角は上の変数のまま。 */

/* ログイン画面：入口の写真は低い帯にして、フォームを最初の画面に入れる */
.brand-hero--login {
  min-height: 0;
  height: auto;
}
.brand-hero--login .brand-hero__copy {
  padding: 30px 22px;
}
.brand-hero--login .brand-hero__kicker {
  margin-bottom: 8px;
}
.brand-hero--login .brand-hero__title {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.5;
}
.login-card__sub {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  text-align: center;
}
.login-help {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--bl-pale);
  font-size: 0.875rem;
  line-height: 1.9;
}
.login-help__title {
  margin: 0 0 0.5rem;
  color: var(--hub-blue);
  font-size: 1rem;
  font-weight: 700;
}
.login-help p {
  margin: 0 0 0.5rem;
}
.login-help p:last-child {
  margin-bottom: 0;
}

/* 試験カタログ */
.cat {
  padding-block: 48px 72px;
}
.cat-head {
  margin-bottom: 40px;
}
.cat-lead {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--bl-muted);
  font-size: 0.875rem;
  line-height: 2;
}
.cat-note {
  margin: 0 0 12px;
  color: var(--bl-muted);
  font-size: 0.8125rem;
  line-height: 1.9;
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.cat-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  border: 1px solid var(--bl-line);
  background: var(--hub-surface);
  color: var(--bl-ink);
  font-size: 0.8125rem;
  text-decoration: none;
}
.cat-tabs a[aria-current="page"] {
  border-color: var(--hub-blue-solid);
  background: var(--hub-blue-solid);
  color: #fff;
}
.cat-family {
  margin-bottom: 48px;
}
.cat-family__title {
  margin: 6px 0 4px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cat-family__lead {
  margin: 0 0 18px;
  color: var(--bl-muted);
  font-size: 0.8125rem;
}
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-card__link {
  position: relative;
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 20px 48px 20px 22px;
  border: 1px solid var(--bl-line);
  background: var(--hub-surface);
  color: var(--bl-ink);
  text-decoration: none;
}
.cat-card__name {
  color: var(--hub-blue);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}
.cat-card__scope {
  color: var(--bl-muted);
  font-size: 0.75rem;
}
.cat-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  font-size: 0.8125rem;
}
.cat-card__facts b {
  margin-right: 2px;
  color: var(--hub-blue);
  font-family: var(--bl-brand-font);
  font-size: 1.125rem;
}
.cat-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.cat-card__updated {
  color: var(--bl-muted);
  font-size: 0.6875rem;
}
.cat-tag--trial {
  border-color: var(--hub-blue);
  color: var(--hub-blue);
}
.cat-card__arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--hub-blue);
  transform: translateY(-50%);
}
@media (hover: hover) {
  .cat-card__link:hover {
    border-color: var(--hub-blue);
    background: var(--bl-pale);
  }
  .cat-tabs a:not([aria-current="page"]):hover {
    border-color: var(--hub-blue);
    color: var(--hub-blue);
  }
}
.cat-crumb {
  margin-bottom: 10px;
  color: var(--bl-muted);
  font-size: 0.8125rem;
}
.cat-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 24px 0 0;
  border: 1px solid var(--bl-line);
}
.cat-facts > div {
  padding: 16px 20px;
  border-right: 1px solid var(--bl-line);
}
.cat-facts > div:last-child {
  border-right: 0;
}
.cat-facts dt {
  color: var(--bl-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.cat-facts dd {
  margin: 4px 0 0;
  font-size: 0.9375rem;
}
.cat-facts dd b {
  color: var(--hub-blue);
  font-family: var(--bl-brand-font);
  font-size: 1.75rem;
}
.cat-facts small {
  display: block;
  color: var(--bl-muted);
  font-size: 0.75rem;
}
.cat-terms {
  margin: 20px 0 0;
  padding-left: 1.2em;
  font-size: 0.8125rem;
  line-height: 1.9;
}
.cat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 24px;
}
.cat-actions .cat-note {
  flex-basis: 100%;
  margin: 0;
}
.cat-button--sub {
  border-color: var(--hub-blue-solid);
  background: var(--hub-surface);
  color: var(--hub-blue);
}
.cat-years {
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--bl-line);
  list-style: none;
}
.cat-years li {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bl-line);
  font-size: 0.8125rem;
}
.cat-years__year {
  font-weight: 700;
}
.cat-years__items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.cat-years small,
.cat-chips small {
  color: var(--bl-muted);
}
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.cat-chips li {
  padding: 6px 14px;
  border: 1px solid var(--bl-line);
  font-size: 0.8125rem;
}
.cat-closing .cat-note {
  max-width: 560px;
  margin: 0 auto 16px;
}
.cat-closing .bl-button {
  margin-bottom: 20px;
}
.cat-closing__title {
  margin: 14px 0 20px;
  font-size: 1.75rem;
  font-weight: 700;
}

/* 体験問題 */
.cat-trial__title {
  margin: 6px 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
}
.cat-trial__title small {
  color: var(--bl-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.cat-trial__source {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 500;
}
.cat-trial__body {
  margin-top: 16px;
}
.cat-trial__submit {
  width: 100%;
  margin-top: 16px;
}
.cat-trial__after {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.cat-trial__after > .bl-button {
  justify-self: start;
}
.cat-trial__badge {
  margin: 0 0 8px;
  color: var(--hub-blue);
  font-size: 0.75rem;
  font-weight: 700;
}
.cat-trial__done {
  padding: 24px;
  background: var(--bl-pale);
}
.cat-trial__score {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

/* 紹介ページの体験の入口 */
.bl-trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.bl-trial__lead {
  margin: 10px 0 0;
  color: var(--bl-muted);
  font-size: 0.875rem;
}

/* ホームの主な操作：続きから・期限の来た復習・弱点 */
.bl-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.bl-action {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--bl-line);
  background: var(--hub-surface);
  color: var(--bl-ink);
  text-decoration: none;
}
.bl-action--resume {
  border-color: var(--hub-blue);
  background: var(--bl-soft);
}
.bl-action__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
}
.bl-action__title b,
.bl-action__note b {
  color: var(--hub-blue);
  font-family: var(--bl-brand-font);
}
.bl-action__title b {
  font-size: 1.5rem;
}
.bl-action__note {
  color: var(--bl-muted);
  font-size: 0.8125rem;
  line-height: 1.8;
}
.bl-action form {
  margin: 4px 0 0;
}
.bl-action__go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--hub-blue);
  font-size: 0.875rem;
  font-weight: 700;
}
@media (hover: hover) {
  a.bl-action:hover {
    border-color: var(--hub-blue);
    color: var(--bl-ink);
  }
}

@media (max-width: 760px) {
  .brand-hero--login .brand-hero__copy {
    padding: 16px 16px 18px;
  }
  .brand-hero--login .brand-hero__kicker {
    margin-bottom: 4px;
  }
  .brand-hero--login .brand-hero__title {
    font-size: 20px;
    letter-spacing: 0.1em;
  }
  .cat {
    padding-block: 32px 48px;
  }
  .cat-list {
    grid-template-columns: 1fr;
  }
  .cat-facts {
    grid-template-columns: 1fr 1fr;
  }
  .cat-facts > div:nth-child(2n) {
    border-right: 0;
  }
  .cat-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--bl-line);
  }
  .cat-years li {
    grid-template-columns: 1fr;
  }
  .cat-actions .bl-button,
  .bl-trial .bl-button,
  .cat-trial__after > .bl-button,
  .bl-action form,
  .bl-action .bl-button {
    width: 100%;
  }
  .bl-actions {
    grid-template-columns: 1fr;
  }
  .bl-action {
    padding: 16px;
  }
}
@media (max-width: 520px) {
  .login-help {
    padding: 1rem 1.1rem;
  }
}
