.detail-floating-back {
  position: fixed;
  z-index: 78;
  top: 50%;
  left: max(14px, calc(50vw - 690px));
  width: 50px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #b9d3c2;
  border-radius: 50%;
  color: #0e6245;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(9, 67, 47, .18);
  transform: translateY(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.detail-floating-back[hidden] {
  display: none !important;
}

.detail-floating-back > span {
  font-size: 27px;
  line-height: 1;
  transform: translateY(-1px);
}

.detail-floating-back::after {
  content: "返回";
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  padding: 6px 9px;
  border-radius: 8px;
  color: #fff;
  background: #0b3829;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity .16s ease, transform .16s ease;
}

.detail-floating-back:hover,
.detail-floating-back:focus-visible {
  color: #fff;
  background: #126446;
  border-color: #126446;
  box-shadow: 0 14px 36px rgba(9, 67, 47, .28);
  outline: none;
}

.detail-floating-back:hover::after,
.detail-floating-back:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.detail-floating-back:active {
  transform: translateY(-50%) scale(.94);
}

@media (width <= 760px) {
  .detail-floating-back {
    top: auto;
    left: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
    transform: none;
  }

  .detail-floating-back::after {
    display: none;
  }

  .detail-floating-back:active {
    transform: scale(.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-floating-back,
  .detail-floating-back::after {
    transition: none;
  }
}
