:root {
  --yb-fcb-bar-bg: rgba(20,20,20,.95);
  --yb-fcb-bg: #e60012; /* button */
  --yb-fcb-color: #fff; /* button text */
  --yb-fcb-offset: 12px;
  --yb-fcb-z: 9999;
}

/* 固定位置のラッパー */
.yb-fcb-wrap{
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--yb-fcb-offset) + env(safe-area-inset-bottom, 0px));
  z-index: var(--yb-fcb-z, 9999);
  pointer-events: none; /* バー外でクリックを通す */
  padding: 0;
  margin: 0;
}

/* バー本体（全幅・黒系・薄めの影） */
.yb-fcb-bar{
  background: var(--yb-fcb-bar-bg);
  color: #f5f5f5;
  box-shadow: 0 -8px 24px rgba(0,0,0,.28);
  pointer-events: auto;
}

/* 内側レイアウト：左テキスト / 右ボタン */
.yb-fcb-inner{
  max-width: 1200px;
  margin-inline: auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

/* テキスト */
.yb-fcb-headline{
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}
.yb-fcb-subtext{
  color: #e5e7eb;
  opacity: .95;
  margin-top: 2px;
  line-height: 1.4;
  font-size: 14px;
}

/* ボタン（赤グラデ・白丸アイコン） */
.yb-fcb-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px 12px 18px;
  background: linear-gradient(180deg, #ff3b30 0%, var(--yb-fcb-bg) 100%);
  color: var(--yb-fcb-color);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
  white-space: nowrap;
}
.yb-fcb-btn:focus{
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.yb-fcb-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.yb-fcb-btn__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 12px;
  border-radius: 999px;
  background: #fff;
  color: #d41010;
  font-weight: 900;
  line-height: 1;
  font-size: 16px;
  padding-bottom: 1px; /* 文字の中央見え補正 */
}

/* 閉じるボタン */
.yb-fcb-close{
  position: absolute;
  right: 10px;
  top: -18px; /* スクショ風：バー右上に少し浮かせる */
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(33,33,33,.92);
  color: #c9c9c9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.06);
}
.yb-fcb-close:hover{ background: rgba(55,55,55,.95); color:#fff; }
.yb-fcb-close:focus{ outline: 2px solid #fff; outline-offset: 2px; }

/* SWELL向けの微調整（影など） */
.yb-fcb-wrap.is-swell .yb-fcb-btn{
  box-shadow: 0 10px 30px rgba(0,0,0,.30);
}

/* 端末別表示（HTMLのdata属性で即時制御） */
@media (max-width: 767px){
  .yb-fcb-wrap[data-show-on="desktop"]{ display: none !important; }
  .yb-fcb-inner{ grid-template-columns: 1fr; gap: 10px; }
  .yb-fcb-btn{ width: 100%; }
}
@media (min-width: 768px){
  .yb-fcb-wrap[data-show-on="mobile"]{ display: none !important; }
}
