@charset "UTF-8";
/* =========================================================
   LINE友だち登録バナー（template-parts/line-banner.php）
   トップ・/inher/ のみ読み込み
   ========================================================= */

/* ===== バナー（PC：画面左下に固定）===== */
.line-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 309px;
  animation: lineBannerIn 0.4s ease;
}
.line-banner[hidden] {
  display: none;
}
@keyframes lineBannerIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.line-banner__inner {
  position: relative;
  width: 100%;
}

.line-banner__link {
  display: block;
  transition: opacity 0.3s;
}
.line-banner__link:hover {
  opacity: 0.85;
}

.line-banner__img {
  display: block;
  width: 100%;
  height: auto;
}

/* 右上の × */
.line-banner__close {
  position: absolute;
  top: -6px;
  right: -8px;
  z-index: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.line-banner__close svg {
  display: block;
  width: 100%;
  height: 100%;
}
.line-banner__close:hover {
  opacity: 0.8;
}

/* 「LINEの二次元コードを表示する」 */
.line-banner__qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: #016c48;
}
.line-banner__qr-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.line-banner__qr-btn:hover span {
  text-decoration: underline;
}

/* ===== バナー（SP：画面下部）===== */
@media screen and (max-width: 768px) {
  .line-banner {
    left: 12px;
    right: 12px;
    bottom: 8px;
    width: auto;
  }
  /* トップ：「事業のご相談／ZOOM相談」ボタン（高さ60px＋タグのはみ出し11px）の上 */
  .line-banner--above-cta {
    bottom: 79px;
  }
  .line-banner__close {
    top: -10px;
    right: -6px;
  }
  /* 二次元コードはPCのみ */
  .line-banner__qr-btn {
    display: none;
  }

  /* /inher/：バナー表示中は ↑ボタンをバナーの上へ（バナー高さ＝幅×324/800） */
  body.is-line-banner-open:not(.home) a.go-to-top-button.show-top-button {
    bottom: calc((100vw - 24px) * 0.405 + 16px);
  }
}

/* ===== 二次元コードのポップアップ ===== */
.line-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 50, 56, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.line-qr-modal[hidden] {
  display: none;
}

.line-qr-modal__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 500px;
  max-width: calc(100vw - 100px);
  padding: 40px 20px 62px;
  background: #fff;
  box-sizing: border-box;
  animation: lineQrIn 0.3s ease;
}
@keyframes lineQrIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.line-qr-modal__close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.line-qr-modal__close svg {
  display: block;
  width: 40px;
  height: 40px;
}
.line-qr-modal__close:hover {
  opacity: 0.8;
}

.line-qr-modal__title {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: center;
  color: #016c48;
}

.line-qr-modal__code {
  width: 320px;
  max-width: 100%;
  padding: 16px; /* 枠4px＋余白16px＝コード280px */
  border: 4px solid #06c755;
  background: #fff;
  box-sizing: border-box;
}
.line-qr-modal__code img {
  display: block;
  width: 100%;
  height: auto;
}
