:root {
    --popup-width: 200px;
    --launcher-size: 60px;
    --theme-color: #ff4757;
}

/* --- コンテナ (位置固定) --- */
.c-dynamic-popup {
	position: fixed;
	bottom: 70px;
	left: 10px;
	z-index: 800;
	font-family: sans-serif;    
	/* 初期状態: 非表示 */
	opacity: 0;
	visibility: hidden;
	transform: translateY(200px);
	transition: opacity 0.4s ease, transform 0.8s ease, width 0.3s;
}

/* --- 表示状態 (.is-visible) --- */
.c-dynamic-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- モーフィングモード (.is-morphed) --- */
/* ランチャーを表示し、メインコンテンツを隠す */
.c-dynamic-popup.is-morphed .c-dynamic-popup__inner {
    display: none;
}
.c-dynamic-popup.is-morphed .c-dynamic-popup__launcher {
    display: flex; /* 表示 */
}

/* 通常モード (not .is-morphed) */
/* ランチャーを隠し、メインコンテンツを表示する */
.c-dynamic-popup:not(.is-morphed) .c-dynamic-popup__launcher {
    display: none;
}
.c-dynamic-popup:not(.is-morphed) .c-dynamic-popup__inner {
    display: block; /* 表示 */
    overflow: hidden;
    width: var(--popup-width);
}

/* --- ランチャーデザイン --- */
.c-dynamic-popup__launcher {
    width: var(--launcher-size);
    height: var(--launcher-size);
    background: var(--theme-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    animation: bounce 2s infinite;
}

/* --- 閉じるボタン --- */
.c-dynamic-popup__close {
  position: absolute;
  top: -10px;
  right: 0px;
  background: rgb(145 145 145);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  z-index: 10;
  text-align: center;
}

/* --- ボタンパーツ --- */
.c-dynamic-popup__btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--theme-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.3s;
}
.c-dynamic-popup__btn:hover {
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}



.e-dynamic-popup{
  text-decoration: none;
  display: block;
    position: relative;
}

.e-dynamic-popup > div{
  padding:0;
}

.e-dynamic-popup figure {
  padding: 0;
  margin: 0;
}

/*
fireworks
*/
.e-dynamic-popup.fireworks{  text-decoration: none;
  color: #fff;
  text-align: center;
}

.e-dynamic-popup.fireworks{
  padding: 15px 0 0;
  background: #000;
  outline: 1px solid hsl(0deg 0% 100% / 50%);
  outline-offset: -5px;
  border-radius: 12px;
  overflow: hidden;
	
}
.e-dynamic-popup.fireworks > div {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.e-dynamic-popup.fireworks > div .e-dynamic-popup__tile{
	font-size: 14px;
	--e-dynamic-popup__tile:14px;
	color: #feda83;
	line-height: 1.8;
}
.e-dynamic-popup.fireworks > div .e-dynamic-popup__sub{
	font-size: 14px;
	e-dynamic-popup__sub:14px;
	background: #feda83;
	color: #000;
	font-weight: bold;
}
.e-dynamic-popup.fireworks > div img{
  aspect-ratio: 4 / 2;
  object-fit: cover;
  object-position: bottom;
  width: 100%;
  height: auto;
}
.e-dynamic-popup.fireworks:after{
	content: "";
	background-image: linear-gradient(315deg, #feda83 26px, transparent 0);
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}
.e-dynamic-popup.fireworks:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateY(-100%);
  animation: shimmer 1.5s infinite;
  z-index: 1;
}
@keyframes shimmer {
  100% {
    /* 最終的に右端の外側へ移動させる */
    transform: translateY(100%);
  }
}



@media screen and (min-width: 767px) {
	.c-dynamic-popup:not(.is-morphed) .c-dynamic-popup__inner {
	  width: calc(var(--popup-width) * 1.5);
	}
	.e-dynamic-popup.fireworks > div .e-dynamic-popup__tile,
	.e-dynamic-popup.fireworks > div .e-dynamic-popup__sub{
	  font-size: calc(var(--e-dynamic-popup__tile) * 1.5);
	}
}
