/* Shared floating actions for solution pages and WMS articles. */
.solution-floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.solution-floating-actions .fixed-contact-button,
.dx-page .solution-floating-actions .fixed-contact-button {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px;
  padding: 9px 7px 8px !important;
  margin: 0 !important;
  border: 1px solid transparent;
  border-radius: 50% !important;
  background: #d54357 !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(110, 23, 39, 0.28);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  gap: 2px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(10px) !important;
  pointer-events: none;
  transition: background-color 0.2s ease, opacity 0.25s ease,
    visibility 0s linear 0.25s, transform 0.25s ease,
    box-shadow 0.2s ease;
}

.solution-floating-actions .fixed-contact-button.show,
.dx-page .solution-floating-actions .fixed-contact-button.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto;
  transition-delay: 0s;
}

.solution-floating-actions .fixed-contact-button::after,
.dx-page .solution-floating-actions .fixed-contact-button::after {
  content: none !important;
  display: none !important;
}

.solution-floating-actions .fixed-contact-button .fixed-contact-mail {
  display: block;
  width: 33px;
  height: 33px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: translate(-1px, -2px);
}

.solution-floating-actions .fixed-contact-label,
.solution-floating-actions .fixed-contact-label span {
  display: block;
  color: inherit;
  white-space: nowrap;
}

.solution-floating-actions .fixed-contact-label {
  transform: translateY(-3px);
}

.solution-floating-actions .fixed-contact-label-ja {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.solution-floating-actions .fixed-contact-label .fixed-contact-label-en {
  display: none;
}

.solution-floating-actions .fixed-contact-arrow {
  position: absolute;
  right: -4px;
  bottom: 5px;
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1965b0;
  place-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.solution-floating-actions .fixed-contact-arrow img {
  display: block;
  width: 11px;
  height: 9px;
  object-fit: fill;
  filter: brightness(0) invert(1);
}

.solution-floating-actions .fixed-contact-button:hover,
.dx-page .solution-floating-actions .fixed-contact-button:hover {
  background: #bb2a3e !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(110, 23, 39, 0.34);
}

.solution-floating-actions .fixed-contact-button:focus-visible,
.solution-floating-actions .fixed-page-top-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #d54357;
}

.solution-floating-actions .fixed-page-top-button,
.dx-page .solution-floating-actions .fixed-page-top-button {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 50px;
  height: 50px;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) !important;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s,
    transform 0.25s ease !important;
}

.solution-floating-actions .fixed-page-top-button.show,
.solution-floating-actions .fixed-page-top-button.is-scrolled,
.dx-page .solution-floating-actions .fixed-page-top-button.show,
.dx-page .solution-floating-actions .fixed-page-top-button.is-scrolled {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) !important;
  pointer-events: auto;
  transition-delay: 0s;
}

.solution-floating-actions .fixed-page-top-button:hover,
.dx-page .solution-floating-actions .fixed-page-top-button:hover {
  transform: translateY(-2px) !important;
}

.solution-floating-actions .fixed-page-top-button img {
  display: block;
  width: 50px !important;
  height: 50px !important;
}

/* Keep AutonMate-specific markup aligned with the shared red CTA. */
.solution-floating-actions.solution-floating-actions--autonmate
  .fixed-contact-button {
  border-color: transparent;
  background: #d54357 !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(110, 23, 39, 0.28);
}

.solution-floating-actions.solution-floating-actions--autonmate
  .fixed-contact-button
  .fixed-contact-mail {
  width: 33px;
  height: 33px;
  filter: brightness(0) invert(1);
}

.solution-floating-actions.solution-floating-actions--autonmate
  .fixed-contact-button:hover {
  background: #bb2a3e !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(110, 23, 39, 0.34);
}

.solution-floating-actions.solution-floating-actions--autonmate
  .fixed-contact-button:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px #d54357;
}

/* Preserve the three-column grid after prepending the consulting service. */
.related-solutions-grid a[href="/solution/consultant/"].related-solution-item {
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.28) 0,
      rgba(255, 255, 255, 0.55) 56%,
      #fff 100%
    ),
    url("/image/solution/consultant/fv_key.png") !important;
  background-position: left center, left center;
  background-size: 150px 100%, 150px auto;
}

.related-solutions-grid a[href="/solution/autonmate/"].related-solution-item,
.related-solutions-grid a[href="/solution/wms/"].related-solution-item {
  background-image: url("/image/solution/wms/related-robot.jpg") !important;
}

.related-solutions-grid a[href="/solution/wms/lms/"].related-solution-item {
  background-image: url("/image/solution/wms/related-lms.jpg") !important;
}

.related-solutions-grid a[href="/solution/tms/index.html"].related-solution-item {
  background-image: url("/image/solution/wms/related-tms.jpg") !important;
}

.related-solutions-grid a[href="/solution/berth/"].related-solution-item {
  background-image: url("/image/solution/wms/related-truck.jpg") !important;
}

.related-solutions-grid a[href="/solution/scdos/"].related-solution-item {
  background-image: url("/image/solution/wms/related-scdos.jpg") !important;
}

.related-solutions-grid a[href="/solution/sclink/"].related-solution-item {
  background-image: url("/image/solution/wms/related-sclink.jpg") !important;
}

.related-solutions-grid a[href="/solution/asset/"].related-solution-item {
  background-image: url("/image/solution/wms/related-cloud.jpg") !important;
}

.related-solutions-grid a[href="/global/"].related-solution-item {
  background-image: url("/image/solution/wms/related-global.jpg") !important;
}

@media (max-width: 768px) {
  html {
    overflow-x: clip;
  }

  .solution-floating-actions {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .solution-floating-actions .fixed-contact-button,
  .dx-page .solution-floating-actions .fixed-contact-button {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px;
    padding: 8px 3px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .solution-floating-actions .fixed-contact-button .fixed-contact-mail {
    width: 29px;
    height: 29px;
  }

  .solution-floating-actions.solution-floating-actions--autonmate
    .fixed-contact-button
    .fixed-contact-mail {
    width: 29px;
    height: 29px;
  }

  .solution-floating-actions.solution-floating-actions--autonmate
    .fixed-contact-button {
    padding-right: 3px !important;
    padding-left: 3px !important;
  }

  .solution-floating-actions.solution-floating-actions--autonmate
    .fixed-contact-label-ja {
    font-size: 9px;
  }

  .solution-floating-actions .fixed-contact-label-ja {
    font-size: 9px;
  }

  .solution-floating-actions .fixed-contact-label-en {
    font-size: 7.5px;
  }

  .solution-floating-actions .fixed-contact-arrow {
    right: -3px;
    bottom: 4px;
    width: 20px;
    height: 20px;
  }

  .solution-floating-actions .fixed-contact-arrow img {
    width: 10px;
    height: 8px;
  }

  .solution-floating-actions .fixed-page-top-button,
  .dx-page .solution-floating-actions .fixed-page-top-button,
  .solution-floating-actions .fixed-page-top-button img {
    width: 44px !important;
    height: 44px !important;
  }

}

@media print {
  .solution-floating-actions {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .solution-floating-actions .fixed-contact-button,
  .solution-floating-actions .fixed-page-top-button {
    transition: none !important;
  }
}
