#training-notice {
  box-sizing: border-box;
  width: min(100% - 32px, 560px);
  max-width: 560px;
  max-height: min(100dvh - 32px, 680px);
  margin: auto;
  padding: clamp(24px, 5vw, 42px);
  overflow: auto;
  color: var(--charcoal, #373638);
  background: var(--cream, #f5f3ef);
  border: 1px solid var(--rule, #e4e1dc);
  border-top: 3px solid var(--red, #ff2c3f);
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(35, 33, 34, 0.2);
  font-family: var(--font-sans, "Sohne", sans-serif);
}

#training-notice::backdrop {
  background: rgba(32, 31, 33, 0.64);
}

#training-notice .training-notice__content {
  max-width: 100%;
}

#training-notice h2 {
  margin: 0 0 18px;
  color: var(--charcoal, #373638);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

#training-notice p {
  margin: 0;
  color: var(--charcoal-80, #5a595b);
  font-size: 0.96rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#training-notice .training-notice__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

#training-notice button {
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 0.82rem/1.25 var(--font-sans, "Sohne", sans-serif);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#training-notice #training-notice-understand {
  color: var(--white, #fff);
  background: var(--red, #ff2c3f);
}

#training-notice #training-notice-understand:hover {
  background: var(--red-press, #e01f31);
}

#training-notice button:focus-visible {
  outline: 2px solid var(--red, #ff2c3f);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  #training-notice {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 24px 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  #training-notice button {
    transition: none;
  }
}
