/* Shared LINE link: bottom bar on mobile, floating square on desktop. */
.line-button {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: #06c755;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 -4px 18px rgb(0 0 0 / 12%);
  transition: background-color .2s ease;
}

.line-button img {
  display: block;
  width: 36px;
  height: 36px;
}

.line-button:hover {
  background: #05b34c;
}

.line-button:focus-visible {
  outline: 3px solid #173c2b;
  outline-offset: -6px;
}

/* Keep the footer bottom visible above the fixed bar. */
body:has(.line-button) {
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

@media (min-width: 1101px) {
  .line-button {
    top: auto;
    right: 24px;
    bottom: 24px;
    left: auto;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    min-height: 0;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgb(0 0 0 / 16%);
  }

  .line-button img {
    width: 64px;
    height: 64px;
  }

  .line-button__label {
    display: none;
  }

  .line-button:focus-visible {
    outline-offset: 4px;
  }

  body:has(.line-button) {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 0px) /* 2026-11: 視差効果を減らす設定でも動かす（無効化） */ {
  .line-button { transition: none; }
}
