/*
========================================================
ファイル      : hlab-line-support.css
用途          : ほぼ全ページ共通の公式LINE窓口
バージョン    : 1.0.0
最終更新日    : 2026-07-28
========================================================
*/

body .hlab-line-support {
  position: fixed;
  z-index: 9997;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 28px);
  min-height: 50px;
  padding: 7px 14px 7px 8px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #fff !important;
  background: #07883d;
  box-shadow: 0 12px 28px rgba(0, 96, 43, 0.27);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    YuGothic,
    Meiryo,
    sans-serif;
  line-height: 1.25;
  text-decoration: none !important;
  transform: translateZ(0);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

body .hlab-line-support:hover {
  color: #fff !important;
  background: #067a36;
  box-shadow: 0 15px 32px rgba(0, 96, 43, 0.34);
  transform: translateY(-2px);
}

body .hlab-line-support:focus-visible {
  color: #fff !important;
  outline: 3px solid rgba(74, 36, 20, 0.72);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.hlab-line-support__icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
}

.hlab-line-support__icon svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: #06c755;
}

.hlab-line-support__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.hlab-line-support__copy strong,
.hlab-line-support__copy small {
  display: block;
  margin: 0;
  color: inherit;
  white-space: nowrap;
}

.hlab-line-support__copy strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hlab-line-support__copy small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* 左下に別の固定戻るボタンがある画面では、その上へ積む。 */
body.hlab-business-document-tool-guide-page .hlab-line-support {
  bottom: max(80px, calc(env(safe-area-inset-bottom) + 66px));
}

/* PDF生成・印刷では画面操作用の窓口を出力しない。 */
body.hlab-pdf-generating .hlab-line-support,
body.hlab-mcs-printing .hlab-line-support {
  display: none !important;
}

@media (max-width: 640px) {
  body .hlab-line-support {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 46px;
    padding: 6px 11px 6px 7px;
    gap: 8px;
  }

  .hlab-line-support__icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .hlab-line-support__icon svg {
    width: 22px;
    height: 22px;
  }

  .hlab-line-support__copy strong {
    font-size: 12px;
  }

  .hlab-line-support__copy small {
    font-size: 9px;
  }

  body.hlab-business-document-tool-guide-page .hlab-line-support {
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 60px));
  }
}

@media print {
  .hlab-line-support {
    display: none !important;
  }
}
