/* LINE floating button (shared: every page): a round LINE-green button fixed at the bottom right that opens the
   LINE official account. It fades up shortly after the page loads; on hover it lifts and a "LINE 官方帳號" label slides
   out to its left (mouse devices only). It sits under the full-screen menu (z-index 39), so the open menu covers it. */
.line-fab{position:fixed;z-index:38;right:28px;bottom:calc(28px + env(safe-area-inset-bottom));display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#06c755;color:#fff;box-shadow:0 12px 28px #0b0f2a47,0 2px 6px #0b0f2a26;-webkit-tap-highlight-color:transparent;animation:fab-in .6s cubic-bezier(.16,1,.3,1) .8s both;transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s,background .3s}
.line-fab svg{display:block;width:34px;height:34px}
.line-fab:hover{transform:translateY(-4px);background:#05b84e;box-shadow:0 18px 34px #0b0f2a52,0 3px 8px #0b0f2a26}
.line-fab:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
@keyframes fab-in{from{opacity:0;transform:translateY(16px) scale(.85)}to{opacity:1;transform:none}}
/* the label beside it */
.line-fab-tip{position:absolute;right:calc(100% + 12px);top:50%;padding:8px 14px;border-radius:999px;background:#1f2238;color:#fff;font-size:14px;font-weight:600;letter-spacing:.5px;white-space:nowrap;box-shadow:0 8px 20px #0b0f2a40;opacity:0;transform:translate(8px,-50%);pointer-events:none;transition:opacity .25s,transform .35s cubic-bezier(.16,1,.3,1)}
@media(hover:hover) and (pointer:fine){
  .line-fab:hover .line-fab-tip,.line-fab:focus-visible .line-fab-tip{opacity:1;transform:translate(0,-50%)}
}
@media(hover:none){.line-fab-tip{display:none}}
/* room under the footer's last row ("回到上方") so the button never covers it at the very bottom of the page */
.footer-bottom{padding-bottom:104px}
/* phones: a little smaller and closer to the corner */
@media(max-width:768px){
  .line-fab{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:54px;height:54px}
  .line-fab svg{width:30px;height:30px}
  .footer-bottom{padding-bottom:86px}
}
@media(prefers-reduced-motion:reduce){.line-fab{animation:none;transition:none}.line-fab-tip{transition:none}}
