/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
.field_with_errors {
  width: 100%;
  height: 100%;
}

/* メッセージが上から徐々に現れるアニメーション */
.toast-animation {
  transition: opacity 0.4s, translate 0.4s, display 0.4s allow-discrete;

  opacity: 0;
  translate: -50% -50px;
  display: none;
}

.toast-animation:popover-open {
  opacity: 1;
  translate: -50% 0;
  display: block;
  @starting-style {
    opacity: 0;
    translate: -50% -50px;
  }
}

button[popovertarget='user-profile-menu'] {
  anchor-name: --user-profile-menu
}

#user-profile-menu {
  position-anchor: --user-profile-menu;
  position-area: right span-top;
}

button[popovertarget='company-menu'] {
  anchor-name: --company-menu
}

#company-menu {
  position-anchor: --company-menu;
  position-area: right span-top;
}
