/* ===============================
    footer2.html 追加用CSS
  =============================== */

/* =========================
  クーポンポップアップ
========================= */
.yc-coupon {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.yc-coupon.is-active {
  display: block;
}

.yc-coupon.is-closing .yc-coupon_overlay {
  opacity: 0;
}

.yc-coupon_overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.yc-coupon_dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 90vw;
  max-height: 90vh;
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.yc-coupon_imageWrapper {
  pointer-events: auto;
  cursor: pointer;
}

.yc-coupon_image {
  max-width: 320px;
  height: auto;
  max-height: 90vh;
  display: block;
  border-radius: 12px;
}

.yc-coupon_closeBtn {
  margin-top: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  font-weight: 700;
}

.yc-coupon_closeBtn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* =========================
  最小化ボタン
========================= */
.yc-coupon_mini {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  display: none;
  width: 64px;
  height: 64px;
}

.yc-coupon_mini.is-active {
  display: block;
}

.yc-coupon_miniMain {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: block;
  background: linear-gradient(135deg, #ff6b6b 0%, #e60012 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
}

.yc-coupon_miniMain::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.yc-coupon_miniIcon {
  display: block;
  width: 35px;
  height: 35px;
  object-fit: contain;
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}
@media screen and (max-width: 767px) {
  .yc-coupon_miniIcon {
    width: 30px;
    height: 30px;
  }
}

.yc-coupon_miniClose {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background-color: #222222;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 見た目は小さく、タップ領域は広く */
.yc-coupon_miniClose::before {
  content: "";
  position: absolute;
  inset: -8px;
}

/* 登場演出 */
.yc-coupon_mini.is-entering .yc-coupon_miniMain {
  animation: ycCouponMiniPop 0.22s ease-out;
}

@keyframes ycCouponMiniPop {
  0% {
    transform: scale(0.86);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
  アニメーション用コピー
========================= */
.yc-coupon_fxLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10001;
}

.yc-coupon_flyImage {
  position: fixed;
  margin: 0;
  transform-origin: top left;
  will-change: transform, opacity;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.yc-coupon_flyImage img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
  トースト
========================= */
.yc-coupon_toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(10px);
  max-width: 90vw;
  box-sizing: border-box;
  padding: 10px 16px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
  transform-origin: center bottom;
}
.yc-coupon_toast.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================
  SP
========================= */
@media screen and (max-width: 767px) {
  .yc-coupon_dialog {
    width: 90vw;
  }

  .yc-coupon_image {
    max-width: min(86vw, 320px);
  }

  .yc-coupon_closeBtn {
    font-size: 13px;
  }

  .yc-coupon_mini {
    right: 12px;
    width: 58px;
    height: 58px;
  }

  .yc-coupon_miniMain {
    width: 58px;
    height: 58px;
  }

  .yc-coupon_miniIcon {
    font-size: 24px;
  }

  .yc-coupon_miniClose {
    width: 28px;
    height: 28px;
    top: -5px;
    right: -5px;
  }

  .yc-coupon_toast {
    width: 90vw;
  }
}

/* 動き抑制 */
@media (prefers-reduced-motion: reduce) {
  .yc-coupon_overlay,
  .yc-coupon_toast,
  .yc-coupon_flyImage,
  .yc-coupon_miniMain {
    transition: none !important;
    animation: none !important;
  }
}

/* キャンペーンポップアップ */
.yc-campaign {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}
.yc-campaign.is-active {
  display: block;
}

.yc-campaign_overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.yc-campaign_dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 90vw;
  max-height: 90vh;
  width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.yc-campaign_panel {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.yc-campaign_head {
  position: relative;
  background-color: #d10000;
  padding: 18px 44px;
  text-align: center;
}

.yc-campaign_head::before,
.yc-campaign_head::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: clamp(34px, 70%, 56px);
  background-color: #ffffff;
  border-radius: 2px;
  transform-origin: center;
}

.yc-campaign_head::before {
  left: 20px;
  transform: translateY(-50%) rotate(-22deg);
}

.yc-campaign_head::after {
  right: 20px;
  transform: translateY(-50%) rotate(22deg);
}

.yc-campaign_headText {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* ボディ */
.yc-campaign_body {
  padding: 20px;
  text-align: center;
}

.yc-campaign_squareLink {
  display: block;
  overflow: hidden;
  text-decoration: none;
  max-width: 280px;
  margin: 0 auto;
  border: #d10000 1px solid;
}

.yc-campaign_squareImage {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #f2f2f2;
}

.yc-campaign_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 20px 30px;
  min-width: 240px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fe5959 0%, #d90000 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.25);
}

.yc-campaign_cta i {
  margin-left: 8px;
}

.yc-campaign_cta:hover {
  filter: brightness(0.95);
}

.yc-campaign_closeBtn {
  margin-top: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  font-weight: 700;
}
.yc-campaign_closeBtn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.yc-coupon_confirm {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
}

.yc-coupon_confirm.is-active {
  display: block;
}

.yc-coupon_confirmOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.yc-coupon_confirmDialog {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(92vw, 360px);
  height: fit-content;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 16px 16px;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.yc-coupon_confirmTitle {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #222222;
}

.yc-coupon_confirmText {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #444444;
}

.yc-coupon_confirmActions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.yc-coupon_confirmBtn {
  min-width: 96px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.yc-coupon_confirmBtn.-cancel {
  background: #f1f1f1;
  color: #222222;
}

.yc-coupon_confirmBtn.-danger {
  background: #e60012;
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  .yc-campaign_dialog {
    width: 86vw;
  }
  .yc-campaign_headText {
    font-size: 1rem;
  }
  .yc-campaign_head {
    padding: 16px 40px;
  }
  .yc-campaign_cta {
    min-width: 220px;
    font-size: 1rem;
  }
  .yc-campaign_closeBtn {
    font-size: 13px;
  }
}
