.bee-eiken-practice-hub,
.bee-eiken-practice-hub-view,
.bee-eiken-practice-access {
  --beph-navy: var(--br-color-brand-navy, #1f2a44);
  --beph-yellow: var(--br-color-brand-yellow, #f7e232);
  --beph-teal: var(--br-color-brand-teal, #52d9c7);
  --beph-soft: var(--br-color-text-soft, #596478);
  --beph-line: var(--br-color-border, #dbe3ee);
  box-sizing: border-box;
  color: var(--beph-navy);
  font-family: var(--br-font-jp, "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", system-ui, sans-serif);
}
.bee-eiken-practice-hub *,
.bee-eiken-practice-hub *::before,
.bee-eiken-practice-hub *::after,
.bee-eiken-practice-hub-view *,
.bee-eiken-practice-hub-view *::before,
.bee-eiken-practice-hub-view *::after,
.bee-eiken-practice-access *,
.bee-eiken-practice-access *::before,
.bee-eiken-practice-access *::after { box-sizing: border-box; }
.bee-eiken-practice-hub,
.bee-eiken-practice-hub-view { position: relative; }
.beph-booting {
  min-height: min(720px, calc(100svh - 24px));
  overflow: hidden;
  background: #fff;
}
.beph-loader { display: none; }
.beph-booting .beph-loader {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 24px;
  border-radius: inherit;
  background: #fff;
  color: var(--beph-navy);
  text-align: center;
}
.beph-booting:not([data-bpf-installed]) > :not(.beph-loader),
.beph-booting[data-bpf-installed] .bpf-frame > :not(.beph-loader) { visibility: hidden !important; }
.beph-loader-ring {
  display: block;
  width: 48px;
  height: 48px;
  border: 6px solid var(--beph-teal);
  border-top-color: var(--beph-yellow);
  border-right-color: var(--beph-yellow);
  border-radius: 50%;
  animation: beph-loader-spin .85s linear infinite;
}
.beph-loader strong { font-size: 18px; line-height: 1.5; font-weight: 900; }
.beph-loader-error { max-width: 28rem; font-size: 18px; line-height: 1.6; font-weight: 800; }
.beph-loader-error p { margin: 0 0 14px; }
.beph-loader-error .br-button { min-height: 56px; }
@keyframes beph-loader-spin { to { transform: rotate(360deg); } }
.bee-eiken-practice-hub.br-activity-shell {
  width: min(100%, 940px);
  margin: 16px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--beph-line);
  border-radius: var(--br-radius-xl, 28px);
  background:
    radial-gradient(circle at 12% 0, rgba(82, 217, 199, .18), transparent 30%),
    var(--br-color-surface-soft, #fffdf7);
  box-shadow: var(--br-shadow-card, 0 14px 32px rgba(31, 42, 68, .10));
  text-align: left;
}
.bee-eiken-practice-hub[data-bpf-installed].br-activity-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.bee-eiken-practice-hub[data-bpf-installed] .bpf-frame {
  overflow: hidden;
  border: 1px solid var(--beph-line);
  border-radius: var(--br-radius-xl, 28px);
  background:
    radial-gradient(circle at 12% 0, rgba(82, 217, 199, .18), transparent 30%),
    var(--br-color-surface-soft, #fffdf7);
  box-shadow: var(--br-shadow-card, 0 14px 32px rgba(31, 42, 68, .10));
}
.bee-eiken-practice-hub .bpf-middle {
  overflow-x: hidden;
}
.bee-eiken-practice-hub.bpf-contained .bpf-middle {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bee-eiken-practice-hub .bpf-content {
  min-width: 0;
}
.bee-eiken-practice-hub :is(h2, p) { margin-block-start: 0; color: inherit; font-family: inherit; letter-spacing: normal; }
.bee-eiken-practice-hub a { color: inherit; }
.bee-eiken-practice-hub :is(a, button, input):focus-visible,
.bee-eiken-practice-hub-view :is(a, button):focus-visible,
.bee-eiken-practice-access :is(input, button):focus-visible { outline: 3px solid #08756a; outline-offset: 3px; }
.beph-phrase { display: inline-block; max-width: 100%; white-space: nowrap; }
.beph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--beph-line);
  background: #fff;
}
.beph-brand,
.beph-access-brand { display: flex; align-items: center; min-width: 0; gap: 10px; }
.beph-brand-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--beph-navy);
  border-radius: 50%;
  background: var(--beph-yellow);
  color: var(--beph-navy);
  font: 950 23px/1 Arial, sans-serif;
  box-shadow: 2px 3px 0 var(--beph-navy);
}
.beph-brand > span:last-child,
.beph-access-brand > span:last-child { min-width: 0; }
.beph-brand b,
.beph-access-brand b { display: block; font-size: 14px; line-height: 1.2; letter-spacing: .6px; }
.beph-brand small,
.beph-access-brand small { display: block; margin-top: 2px; color: var(--beph-soft); font: 900 10px/1.3 Arial, sans-serif; letter-spacing: 1.15px; }
.beph-menu-label {
  flex: none;
  padding: 6px 9px;
  border: 1px solid #d7dcd7;
  border-radius: 999px;
  background: #f5faf8;
  color: var(--beph-soft);
  font: 900 10px/1 Arial, sans-serif;
  letter-spacing: 1px;
}
.beph-intro { padding: clamp(24px, 6vw, 44px) 16px 20px; text-align: center; }
.beph-kicker { display: block; margin-bottom: 8px; color: #0a6c60; font-size: 13px; font-weight: 900; letter-spacing: .8px; }
.beph-intro h2 { margin: 0 0 10px; font-size: clamp(29px, 8vw, 42px); line-height: 1.35; font-weight: 950; }
.beph-intro p { margin: 0; color: var(--beph-soft); font-size: clamp(17px, 4.8vw, 20px); line-height: 1.75; font-weight: 700; }
.beph-options { display: grid; gap: 14px; padding: 0 14px 18px; }
.beph-option {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 164px;
  padding: 20px 14px;
  border: 2px solid var(--beph-navy);
  border-radius: 22px;
  background: #fff;
  color: var(--beph-navy);
  text-decoration: none !important;
  box-shadow: 0 5px 0 var(--beph-navy);
  touch-action: manipulation;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.beph-option--omr { background: linear-gradient(140deg, #fffef4 0%, #fff9cc 100%); }
.beph-option--mini { background: linear-gradient(140deg, #f8fffd 0%, #e3faf5 100%); }
.beph-option--word-order { background: linear-gradient(140deg, #fff8fd 0%, #f2e8ff 100%); }
.beph-option:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--beph-navy); }
.beph-option:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--beph-navy); }
.beph-option-step {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--beph-navy);
  color: #fff;
  font: 900 13px/1 Arial, sans-serif;
}
.beph-option-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 76px;
  border: 2px solid var(--beph-navy);
  border-radius: 18px;
  background: #fff;
  box-shadow: 3px 4px 0 rgba(31, 42, 68, .16);
}
.beph-sheet-icon { display: grid; gap: 7px; width: 38px; }
.beph-sheet-icon i { position: relative; display: block; height: 9px; border-bottom: 1px solid #a6afbf; }
.beph-sheet-icon i::before,
.beph-sheet-icon i::after { content: ""; position: absolute; bottom: 1px; width: 7px; height: 11px; border: 1.5px solid #7479a3; border-radius: 50%; }
.beph-sheet-icon i::before { left: 8px; }
.beph-sheet-icon i::after { right: 5px; }
.beph-sheet-icon i:nth-child(2)::before { background: var(--beph-navy); border-color: var(--beph-navy); }
.beph-option-icon--mini { grid-template-columns: 1fr 1fr; align-content: center; gap: 2px; background: #f8fffd; }
.beph-option-icon--mini b { font: 950 28px/1 Arial, sans-serif; }
.beph-option-icon--mini i { color: #0c776a; font: 900 28px/1 Arial, sans-serif; font-style: normal; }
.beph-option-icon--word-order { grid-template-columns: 1fr 1fr; align-content: center; gap: 3px; background: #fff9fe; }
.beph-option-icon--word-order b,
.beph-option-icon--word-order i { display: grid; place-items: center; width: 27px; height: 34px; border: 2px solid var(--beph-navy); border-radius: 8px; background: #fff; font: 950 18px/1 Arial, sans-serif; font-style: normal; }
.beph-option-icon--word-order i { color: #7c3eb3; transform: translateY(7px); }
.beph-option-copy { min-width: 0; }
.beph-option-copy small { display: block; margin-bottom: 5px; color: var(--beph-soft); font: 900 10px/1.2 Arial, sans-serif; letter-spacing: 1.1px; }
.beph-option-copy strong { display: block; margin-bottom: 8px; font-size: clamp(19px, 5.4vw, 24px); line-height: 1.4; font-weight: 950; }
.beph-option-copy > span { display: block; color: var(--beph-soft); font-size: 15px; line-height: 1.7; font-weight: 700; }
.beph-option-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--beph-navy);
  color: #fff;
  font: 900 24px/1 Arial, sans-serif;
}
.beph-note { margin: 0; padding: 14px 16px 22px; color: var(--beph-soft); font-size: 14px; line-height: 1.7; font-weight: 700; text-align: center; }

.bee-eiken-practice-hub-view { width: min(100%, 1160px); margin: 12px auto 30px; }
.beph-activity-toolbar {
  position: sticky;
  top: var(--beph-toolbar-top, 0px);
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 7px 10px;
  border: 1px solid var(--beph-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 42, 68, .08);
}
.beph-activity-nav { display: flex; min-width: 0; }
.beph-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 9px 13px;
  border: 1.5px solid var(--beph-navy);
  border-radius: 12px;
  background: #fff9cb;
  color: var(--beph-navy);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  text-decoration: none !important;
  touch-action: manipulation;
}
.beph-activity-toolbar > strong { min-width: 0; overflow: hidden; font-size: 15px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.beph-activity-slot > .bee-activity { margin-top: 10px; }
.bee-eiken-practice-hub-view .bee-eiken5-omr .omr-body--sheet-task {
  top: var(--beph-toolbar-bottom, 0px);
  height: var(--beph-activity-height, calc(100dvh - var(--beph-toolbar-bottom, 0px) - 4px));
}
.bee-eiken-practice-hub-view .bee-eiken-mini-practice .emp-sheet-overlay {
  top: var(--beph-toolbar-bottom, 0px);
}
.bee-eiken-practice-hub-view .bee-eiken-mini-practice .emp-sheet-dialog {
  max-height: min(860px, calc(100dvh - var(--beph-toolbar-bottom, 0px) - max(16px, env(safe-area-inset-bottom))));
}
.beph-unavailable { margin: 14px 0; padding: 20px; border: 1px solid #e2a9b6; border-radius: 14px; background: #fff0f3; color: #852743; font-size: 16px; line-height: 1.7; font-weight: 800; text-align: center; }

.bee-eiken-practice-access {
  width: min(calc(100% - 24px), 540px);
  margin: 24px auto;
  padding: clamp(24px, 7vw, 42px);
  border: 2px solid var(--beph-navy);
  border-radius: 26px;
  background: linear-gradient(150deg, #fffdf4 0%, #eafbf7 100%);
  box-shadow: 7px 8px 0 var(--beph-navy);
  text-align: center;
}
.beph-access-brand { justify-content: center; margin-bottom: 22px; text-align: left; }
.bee-eiken-practice-access h2 { margin: 0 0 12px; color: var(--beph-navy); font-size: clamp(28px, 8vw, 38px); line-height: 1.35; font-weight: 950; }
.bee-eiken-practice-access > p { margin: 0 0 22px; color: var(--beph-soft); font-size: 18px; line-height: 1.75; font-weight: 700; }
.beph-access-form { display: grid; gap: 10px; margin: 0; text-align: left; }
.beph-access-form label { color: var(--beph-navy); font-size: 15px; font-weight: 900; }
.beph-access-form input[type="password"] { width: 100%; min-height: 56px; padding: 10px 14px; border: 2px solid #aeb9c8; border-radius: 13px; background: #fff; color: var(--beph-navy); font: 800 20px/1.3 Arial, sans-serif; }
.beph-access-form .br-button { width: 100%; min-height: 58px; margin-top: 5px; border: 2px solid var(--beph-navy); box-shadow: 0 4px 0 var(--beph-navy); font-size: 16px; }
.beph-button-phrase { display: inline-block; }
.beph-access-error { margin: 0 0 4px; padding: 10px 12px; border: 1px solid #dc8fa2; border-radius: 11px; background: #fff0f3; color: #8b2944; font-size: 14px; line-height: 1.6; font-weight: 900; text-align: center; }

@media (min-width: 720px) {
  .beph-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 24px 24px; }
  .beph-option { grid-template-columns: 78px minmax(0, 1fr); align-content: center; min-height: 250px; padding: 30px 24px 24px; }
  .beph-option-icon { width: 78px; height: 92px; }
  .beph-option-arrow { position: absolute; right: 18px; bottom: 18px; }
  .beph-option-copy > span { font-size: 16px; }
  .beph-note { padding-bottom: 28px; }
}
@media (min-width: 720px) and (max-width: 899px) {
  .beph-option--word-order { grid-column: 1 / -1; min-height: 210px; }
}
@media (min-width: 900px) {
  .beph-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .beph-header { padding-inline: 12px; }
  .beph-menu-label { display: none; }
  .beph-intro { padding-top: 22px; }
  .beph-access-form .br-button { padding-inline: 9px; font-size: 15px; }
  .beph-options { padding-inline: 10px; }
  .beph-option { grid-template-columns: 58px minmax(0, 1fr) 42px; gap: 9px; min-height: 154px; padding: 18px 10px; }
  .beph-option-icon { width: 58px; height: 68px; border-radius: 15px; }
  .beph-option-arrow { width: 42px; height: 42px; font-size: 21px; }
  .beph-option-copy > span { font-size: 14px; }
  .beph-activity-toolbar > strong { display: none; }
  .beph-back { width: 100%; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .beph-intro { padding-block: 16px 12px; }
  .beph-intro h2 { margin-bottom: 4px; font-size: 27px; }
  .beph-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .beph-option--word-order { grid-column: auto; }
  .beph-option { grid-template-columns: 58px minmax(0, 1fr) 42px; min-height: 138px; padding-block: 14px; }
  .beph-option-icon { width: 58px; height: 66px; }
  .beph-option-arrow { width: 42px; height: 42px; }
  .beph-note { padding-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .beph-option { transition: none; }
  .beph-loader-ring { animation: none; }
}
