/* =========================================================
   Affiliate Blocks - LP13 Shop CTA
========================================================= */

.ab-shop-cta,
.ab-shop-cta * {
  box-sizing: border-box;
}

.ab-shop-cta {
  --ab-shop-accent: #ef4444;
  --ab-shop-bg: #fff5f5;
  --ab-shop-border: #fecaca;
  --ab-shop-text: #111827;

  width: 100%;
  max-width: 860px;
  margin: 32px auto;
  padding: 22px 18px;
  border: 3px solid var(--ab-shop-accent);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--ab-shop-bg) 0%, #ffffff 45%, #ffffff 100%);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.14);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ab-shop-text);
  text-align: center;
}

/* ===============================
   カラー
================================ */

.ab-shop-cta.is-red {
  --ab-shop-accent: #ef4444;
  --ab-shop-bg: #fff5f5;
  --ab-shop-border: #fecaca;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.14);
}

.ab-shop-cta.is-orange {
  --ab-shop-accent: #f97316;
  --ab-shop-bg: #fff7ed;
  --ab-shop-border: #fed7aa;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.14);
}

.ab-shop-cta.is-blue {
  --ab-shop-accent: #2563eb;
  --ab-shop-bg: #eff6ff;
  --ab-shop-border: #bfdbfe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.ab-shop-cta.is-simple {
  --ab-shop-accent: #334155;
  --ab-shop-bg: #f8fafc;
  --ab-shop-border: #cbd5e1;
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* ===============================
   内側
================================ */

.ab-shop-cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.ab-shop-cta-main {
  display: block;
}

.ab-shop-cta.is-image-left.has-image .ab-shop-cta-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  text-align: left;
}
.ab-shop-cta-content {
  min-width: 0;
}

/* ===============================
   画像
================================ */

.ab-shop-cta-image-wrap,
.ab-shop-cta-image-editor {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--ab-shop-border);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* 上配置のときは枠内いっぱいに近いサイズ */
.ab-shop-cta.is-image-top .ab-shop-cta-image-wrap,
.ab-shop-cta.is-image-top .ab-shop-cta-image-editor {
  max-width: 720px;
}

/* 左配置のときも今までより大きめ */
.ab-shop-cta.is-image-left .ab-shop-cta-image-wrap,
.ab-shop-cta.is-image-left .ab-shop-cta-image-editor {
  max-width: 320px;
  margin: 0;
}

.ab-shop-cta-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
}

.ab-shop-cta-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
}

.ab-shop-cta-image-button {
  margin-top: 10px !important;
}

.ab-shop-cta-image-remove {
  margin-top: 8px !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

/* ===============================
   テキスト
================================ */

.ab-shop-cta-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 15px;
  background: var(--ab-shop-accent);
  color: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.ab-shop-cta-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.45;
}

.ab-shop-cta-description {
  max-width: 640px;
  margin: 0 auto 18px !important;
  color: #4b5563;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.ab-shop-cta.is-image-left .ab-shop-cta-description {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===============================
   ボタン
================================ */

.ab-shop-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.ab-shop-cta.is-image-left .ab-shop-cta-buttons {
  margin-left: 0;
  margin-right: 0;
}

.ab-shop-cta.is-layout-row .ab-shop-cta-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.ab-shop-cta.is-image-left.is-layout-row .ab-shop-cta-buttons {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.ab-shop-cta-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), 0 12px 22px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ab-shop-cta-button:hover {
  transform: translateY(2px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18), 0 9px 18px rgba(0, 0, 0, 0.14);
  filter: brightness(1.04);
}

.ab-shop-cta-button::after {
  content: "›";
  margin-left: 10px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

/* 公式：青 */
.ab-shop-cta-button.is-official {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
}

/* Amazon */
.ab-shop-cta-button.is-amazon {
  background: linear-gradient(135deg, #ff9900 0%, #f59e0b 100%);
  color: #111827 !important;
}

/* 楽天 */
.ab-shop-cta-button.is-rakuten {
  background: linear-gradient(135deg, #bf0000 0%, #e60012 100%);
}

/* 光る */
.ab-shop-cta-button.is-shiny::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -80%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 35%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.2) 65%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: abShopCtaShine 2.8s infinite;
  pointer-events: none;
}

@keyframes abShopCtaShine {
  0% {
    left: -90%;
  }
  45% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

/* ===============================
   マイクロコピー
================================ */

.ab-shop-cta-microcopy {
  max-width: 640px;
  margin: 14px auto 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.ab-shop-cta.is-image-left .ab-shop-cta-microcopy {
  margin-left: 0;
  margin-right: 0;
}

/* ===============================
   テーマ装飾リセット
================================ */

.ab-shop-cta .ab-shop-cta-title::before,
.ab-shop-cta .ab-shop-cta-title::after {
  content: none !important;
  display: none !important;
}

.ab-shop-cta .ab-shop-cta-title {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  text-decoration: none !important;
}

/* ===============================
   スマホ
================================ */

@media screen and (max-width: 768px) {
  .ab-shop-cta {
    margin: 26px auto;
    padding: 20px 12px;
    border-width: 2px;
    border-radius: 20px;
  }

  .ab-shop-cta.is-image-left.has-image .ab-shop-cta-main {
    display: block;
    text-align: center;
  }

  .ab-shop-cta.is-image-left .ab-shop-cta-image-wrap,
.ab-shop-cta.is-image-left .ab-shop-cta-image-editor {
  max-width: 100%;
  margin: 0 auto 18px;
}

  .ab-shop-cta-title {
    font-size: 21px;
  }

  .ab-shop-cta-description {
    font-size: 14px;
    text-align: left;
  }

  .ab-shop-cta.is-layout-row .ab-shop-cta-buttons,
  .ab-shop-cta.is-image-left.is-layout-row .ab-shop-cta-buttons {
    display: flex;
    flex-direction: column;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .ab-shop-cta-button {
    min-height: 54px;
    padding: 13px 18px;
    font-size: 16px;
  }

  .ab-shop-cta-microcopy {
    font-size: 12px;
    text-align: left;
  }
}

@media screen and (max-width: 480px) {
  .ab-shop-cta {
    padding: 18px 10px;
  }

  .ab-shop-cta-title {
    font-size: 19px;
  }

  .ab-shop-cta-button {
    font-size: 15px;
  }

  .ab-shop-cta-image {
  max-height: 220px;
}
}

@media (prefers-reduced-motion: reduce) {
  .ab-shop-cta-button,
  .ab-shop-cta-button::before {
    animation: none !important;
    transition: none !important;
  }
}