/* cmp.css — 同意バナー（自前実装CMP）
   LPのトーンに合わせた控えめな下部シート。
   表示中は body.cmp-open が付き、チャットFAB(z-index 10000)を退避させる。
   アプリのモーダル(10001〜)とは干渉しない値にしている */

.cmp-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9500;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3ddd2;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  animation: cmp-in 0.3s ease;
}

@keyframes cmp-in {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cmp-banner.cmp-hide { transition: opacity 0.2s ease; opacity: 0; }

.cmp-text { margin: 0 0 10px; }
.cmp-text a { color: #c05621; text-decoration: underline; }

.cmp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.cmp-btn {
  appearance: none;
  border: 1px solid #ccc4b5;
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.cmp-btn:hover { background: #f7f4ee; }

.cmp-btn-primary {
  background: #e2801f;
  border-color: #e2801f;
  color: #fff;
  font-weight: 600;
}
.cmp-btn-primary:hover { background: #cf7217; }

.cmp-btn-link {
  border: none;
  background: none;
  color: #8a8272;
  text-decoration: underline;
  padding: 8px 6px;
}

.cmp-detail { margin: 4px 0 10px; border-top: 1px dashed #e3ddd2; padding-top: 10px; }

.cmp-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  cursor: pointer;
}
.cmp-toggle input { margin-top: 3px; width: 16px; height: 16px; }
.cmp-toggle-body { display: flex; flex-direction: column; }
.cmp-toggle-title { font-weight: 600; }
.cmp-toggle-desc { color: #8a8272; font-size: 12px; }

/* バナー表示中はチャットFAB（キャベまるくん）を退避させ、同意ボタンと重ならないようにする。
   FAB は inline style と入場アニメーションで表示制御されているため !important で上書きする */
body.cmp-open .st-chat-fab,
body.cmp-open .st-chat-fab__tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* LP フッター（会社情報の下）の導線: プライバシーポリシー／Cookie設定 */
.cmp-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 1.5rem;
  font-size: 13px;
  color: #8a8272;
}
.cmp-footer-links a,
.cmp-footer-links button {
  appearance: none;
  border: none;
  background: none;
  padding: 4px 2px;
  font: inherit;
  color: #8a8272;
  text-decoration: underline;
  cursor: pointer;
}
.cmp-footer-links a:hover,
.cmp-footer-links button:hover { color: #333; }
.cmp-footer-sep { color: #ccc4b5; }

@media (max-width: 480px) {
  .cmp-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px; }
  .cmp-actions .cmp-btn { flex: 1 1 auto; text-align: center; }
}

/* PC 2ペイン（.st-lp-main が 1200px 中央寄せ・左=動画/右=アプリ）では
   右列＝アプリペインの下端に幅を合わせて置き、ペインの境目に跨らないようにする */
@media (min-width: 1200px) {
  .cmp-banner {
    left: calc(50% + 16px);
    right: auto;
    width: calc(600px - 32px);
    max-width: none;
    margin: 0;
    bottom: 32px;
  }
}
