/* Englishbuds approved TOP palette. Scoped to shortcode output only. */
.ebp-portal {
  --ebp-forest: #244e40;
  --ebp-ink: #283b34;
  --ebp-leaf: #dcf2ac;
  --ebp-mint: #eef4ed;
  --ebp-line: #dae4dc;
  --ebp-muted: #52685d;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 24px auto 56px;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--ebp-line);
  border-radius: 18px;
  background: #fff;
  color: var(--ebp-ink);
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.ebp-portal *, .ebp-portal *::before, .ebp-portal *::after { box-sizing: border-box; }
.ebp-portal .ebp-header { margin: 0 0 32px; padding: 0 0 26px; border-bottom: 1px solid var(--ebp-line); }
.ebp-portal .ebp-eyebrow { margin: 0 0 10px; color: var(--ebp-forest); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.ebp-portal .ebp-title { margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--ebp-forest); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.4; }
.ebp-portal .ebp-title::before, .ebp-portal .ebp-title::after,
.ebp-portal .ebp-group-title::before, .ebp-portal .ebp-group-title::after,
.ebp-portal .ebp-panel-title::before, .ebp-portal .ebp-panel-title::after { content: none; }
.ebp-portal .ebp-intro, .ebp-portal .ebp-english { margin: 0; font-size: 14px; color: var(--ebp-muted); }
.ebp-portal .ebp-english { margin-top: 8px; }
.ebp-portal .ebp-panel { margin: 0; padding: 0; }
.ebp-portal .ebp-panel + .ebp-panel { margin-top: 36px; padding-top: 32px; border-top: 2px solid var(--ebp-line); }
.ebp-portal .ebp-panel-title { margin: 0 0 24px; padding: 0; border: 0; background: none; color: var(--ebp-forest); font-size: 22px; font-weight: 700; }
.ebp-portal .ebp-group { margin: 0 0 28px; }
.ebp-portal .ebp-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; background: none; color: var(--ebp-forest); font-size: 15px; line-height: 1.6; font-weight: 700; }
.ebp-portal .ebp-group-title { border-left: 4px solid #87b358; padding-left: 10px; }
.ebp-portal .ebp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.ebp-portal .ebp-item { display: flex; min-width: 0; padding: 0; margin: 0; list-style: none; }
.ebp-portal .ebp-item::before, .ebp-portal .ebp-item::after { content: none; }
.ebp-portal a.ebp-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-width: 0; min-height: 120px; padding: 22px 18px; border: 1px solid var(--ebp-line); border-radius: 12px; background: var(--ebp-mint); color: var(--ebp-forest); text-decoration: none; box-shadow: none; transition: background-color .15s ease, border-color .15s ease; }
.ebp-portal .ebp-card-copy { display: block; min-width: 0; }
.ebp-portal .ebp-card-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.6; }
.ebp-portal .ebp-card-description { display: block; margin-top: 7px; font-size: 12px; line-height: 1.8; color: var(--ebp-muted); }
.ebp-portal .ebp-arrow { display: block; flex: 0 0 20px; width: 20px; height: 20px; color: currentColor; }
.ebp-portal a.ebp-card:hover { background: #e4eddc; border-color: #87b358; color: var(--ebp-forest); text-decoration: none; }
.ebp-portal .ebp-panel-footer { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ebp-line); }
.ebp-portal a.ebp-logout { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 10px 14px; border-radius: 8px; color: var(--ebp-forest); background: #fff; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; font-weight: 700; }
.ebp-portal a.ebp-logout:hover { background: var(--ebp-mint); }
.ebp-portal a.ebp-login { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 100%; min-height: 52px; padding: 14px 22px; margin-top: 28px; border: 1px solid var(--ebp-forest); border-radius: 10px; background: var(--ebp-forest); color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; }
.ebp-portal a.ebp-login:hover { background: #326350; }
.ebp-portal a:focus-visible { outline: 3px solid var(--ebp-forest); outline-offset: 4px; box-shadow: 0 0 0 4px var(--ebp-leaf); }
.ebp-portal.ebp-notice .ebp-logout { margin-top: 24px; }
@media (max-width: 1000px) { .ebp-portal .ebp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ebp-portal { margin-top: 16px; margin-bottom: 36px; border-radius: 12px; padding: 22px 16px; }
  .ebp-portal .ebp-header { margin-bottom: 26px; padding-bottom: 22px; }
  .ebp-portal .ebp-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ebp-portal a.ebp-card { min-height: 98px; padding: 18px 16px; }
  .ebp-portal .ebp-group { margin-bottom: 24px; }
  .ebp-portal .ebp-card-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .ebp-portal a.ebp-card { transition: none; } }
@media (forced-colors: active) { .ebp-portal a { border: 1px solid LinkText; } }
