/* ==========================================
   cat_btn.css
   PC専用 追従バナーボタン（Material Design 3準拠）
   ========================================== */

/* --- PC only (769px以上で表示) --- */
@media (max-width: 768px) {
  .cat-btn-fixed {
    display: none !important;
  }
}

/*.fs-l-main .fs-p-scrollingCartButton {
    bottom: 160px;
}*/
.cat-btn-fixed {
  position: fixed;
  right: -22px;
  bottom: 100px;
  z-index: 9999;
  /* 初期状態：非表示から fade in */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cat-btn-fixed__wrapper{
    border-bottom: 1px solid #0077cc;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

.cat-btn-fixed.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Extended FAB (MD3) --- */


.cat-btn-fixed__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 38px 16px 24px;
  background-color: white;
  color: #0077cc !important;
  text-decoration: none;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 6px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  /* MD3: state layer */
  position: relative;
  overflow: hidden;
}

.cat-btn-fixed__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}

/* Hover state (MD3: 8% opacity overlay) */
.cat-btn-fixed__link:hover {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #fff;
}

.cat-btn-fixed__link:hover::before {
  opacity: 0.08;
}

/* Pressed / Active state (MD3: 12% opacity overlay) */
.cat-btn-fixed__link:active::before {
  opacity: 0.12;
}

/* Focus visible (MD3: focus ring) */
.cat-btn-fixed__link:focus-visible {
  outline: 3px solid rgba(0, 119, 204, 0.4);
  outline-offset: 2px;
}

/* --- Label --- */
.cat-btn-fixed__label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-weight: normal;
    font-size: 16px;
}

/* --- Icon --- */
.cat-btn-fixed__icon {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cat-btn-fixed__icon img {
  display: block;
  width: 100%;
  height: 100%;
}


/* --- 非表示状態（ターゲットがビューに入った時） --- */
.cat-btn-fixed.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}