/* Custom global styles for the MOVIENT landing page
 * You can add additional CSS rules here to override or extend the Tailwind
 * defaults. Currently this file enables smooth scrolling for anchor links.
 */

html {
  scroll-behavior: smooth;
}

/* Dropdown animation styles
 *
 * By default the services dropdown is invisible and non-interactive. When the
 * `.show` class is applied (via JavaScript when the user hovers over the
 * parent menu or the dropdown itself), the dropdown becomes visible and
 * interactive. Each menu item fades and slides in with a slight delay to
 * create a cascading effect.
 */

/* Base styles for the dropdown: hidden by default */
#services-dropdown {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When the dropdown should be visible */
#services-dropdown.show {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

/* Default state of individual dropdown items */
#services-dropdown .dropdown-item {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Visible state of individual items when the dropdown is shown */
#services-dropdown.show .dropdown-item {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for each menu item to create a smooth cascade */
#services-dropdown .dropdown-item:nth-child(1) {
  transition-delay: 0.05s;
}
#services-dropdown .dropdown-item:nth-child(2) {
  transition-delay: 0.1s;
}
#services-dropdown .dropdown-item:nth-child(3) {
  transition-delay: 0.15s;
}
#services-dropdown .dropdown-item:nth-child(4) {
  transition-delay: 0.2s;
}
#services-dropdown .dropdown-item:nth-child(5) {
  transition-delay: 0.25s;
}

/* Character Aura Effect - Mouse Follow */
.character-container {
  position: relative;
  overflow: hidden;
}

.character-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.character-base {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.character-aura {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0; /* 初期状態は完全に非表示 */
  -webkit-mask-image: none;
  mask-image: none;
  transition: opacity 0.1s ease-out, -webkit-mask-image 0.05s ease-out, mask-image 0.05s ease-out;
}

/* カーソルが範囲内にある時のみ表示 */
.character-container:hover .character-aura {
  opacity: 0.8;
}