/* 記事中CTAボタン（Yのアフィリ） ------------------------------------------- */
.yah-cta{
	--yah-btn-fallback:#D9734E;
	position:relative;box-sizing:border-box;
	margin:3.4em 0 2.2em;padding:18px;
	background:var(--yah-bg,#FBF5EC);
	border:1px solid var(--yah-border,#EADFCF);
	border-radius:22px;
	color:var(--yah-text,#3E3833);
	line-height:1.6;text-align:left;
}
.yah-cta *{box-sizing:border-box;}
.yah-cta.is-sale{background:var(--yah-sale-bg,#FFF1EC);border-color:var(--yah-sale-border,#F2C8B9);}

/* Yちゃん：枠からはみ出して上にのぞく。下側はボタンの裏に隠れる */
.yah-cta-y{
	position:absolute;z-index:1;left:6px;bottom:52px;
	width:132px;height:200px;overflow:hidden;pointer-events:none;line-height:0;
}
.yah-cta-y img{
	position:absolute;display:block;max-width:none !important;height:auto !important;margin:0 !important;
	width:var(--yah-w,100%) !important;left:var(--yah-x,0%);top:var(--yah-y,0%);
	border:none !important;box-shadow:none !important;border-radius:0 !important;
}

.yah-cta-head{position:relative;z-index:2;display:flex;flex-direction:column;gap:6px;container-type:inline-size;--yah-copy-max:20px;}
.yah-cta.has-y .yah-cta-head{margin-left:136px;min-height:128px;justify-content:center;}
.yah-cta-label{
	font-family:"Caveat",cursive;font-weight:700;font-size:25px;line-height:1;
	color:var(--yah-label,#C2603C);letter-spacing:.01em;
}
.yah-cta-copy{font-size:19px;font-size:clamp(12px,calc(100cqi / var(--yah-len,9) * .97),var(--yah-copy-max));font-weight:800;line-height:1.5;letter-spacing:0;word-break:auto-phrase;color:var(--yah-text,#3E3833);}
.yah-cta-sub{
	display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.5;color:var(--yah-sub,#7A6E64);
}
.yah-cta-sub::before{content:"";flex:0 0 14px;width:14px;height:14px;background:var(--yah-check) center/14px no-repeat;}

/* ボタン：ASPのリンクそのもの（中身は書き換えない。見た目はCSSだけ） */
.yah-cta-action{position:relative;z-index:3;margin-top:14px;}
.yah-cta-action > img,
.yah-cta-action > span > img{position:absolute;width:1px !important;height:1px !important;opacity:0;pointer-events:none;} /* 計測用1pxタグ */
.yah-cta a.yah-cta-btn{
	position:relative;overflow:hidden;
	display:flex;align-items:center;justify-content:center;
	min-height:56px;padding:12px 58px 12px 22px;margin:0;
	background:var(--yah-btn,#D9734E) !important;color:#fff !important;
	font-size:16px;font-weight:700;letter-spacing:.04em;line-height:1.4;text-align:center;
	text-decoration:none !important;border:none !important;border-radius:999px;
	box-shadow:0 8px 18px -4px rgba(0,0,0,.22);
	box-shadow:0 8px 18px -4px color-mix(in srgb,var(--yah-btn,#D9734E) 55%,transparent);
	transition:transform .12s ease,filter .25s ease,box-shadow .25s ease;
}
.yah-cta a.yah-cta-btn:hover{filter:brightness(1.05);}
.yah-cta a.yah-cta-btn:active{transform:translateY(1px);}
.yah-cta a.yah-cta-btn::after{ /* 右端の白丸＋矢印 */
	content:"";position:absolute;right:9px;top:50%;width:36px;height:36px;margin-top:-18px;border-radius:50%;
	background:#fff var(--yah-arrow) center/16px no-repeat;
	transition:transform .2s ease;
}
.yah-cta a.yah-cta-btn:hover::after{transform:translateX(3px);}
.yah-cta a.yah-cta-btn::before{ /* 数秒おきに光が流れる */
	content:"";position:absolute;top:0;left:0;width:40%;height:100%;pointer-events:none;
	background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.45),rgba(255,255,255,0));
	transform:translateX(-150%) skewX(-20deg);
	animation:yah-shine 3.4s ease-in-out infinite;
}
@keyframes yah-shine{0%{transform:translateX(-150%) skewX(-20deg);}55%,100%{transform:translateX(320%) skewX(-20deg);}}
@media (prefers-reduced-motion:reduce){.yah-cta a.yah-cta-btn::before{animation:none;display:none;}}

/* 画像リンク（バナー）のとき */
.yah-cta a.yah-cta-banner{display:block;line-height:0;border-radius:12px;overflow:hidden;}
.yah-cta a.yah-cta-banner img{position:static !important;width:100% !important;height:auto !important;opacity:1 !important;}

/* ストアセール中：Yちゃんの顔の横に吹き出し（1回だけふわっと出る） */
.yah-cta-bubble{
	position:absolute;z-index:4;top:-17px;left:128px;max-width:calc(100% - 150px);
	padding:6px 13px;border-radius:999px;
	background:#fff;border:2px solid var(--yah-sb,#D9734E);
	color:var(--yah-text,#3E3833);font-size:12.5px;font-weight:800;line-height:1.35;letter-spacing:.02em;
	box-shadow:0 4px 12px rgba(62,56,51,.12);
	word-break:auto-phrase;
	animation:yah-bubble-in .5s cubic-bezier(.2,1.4,.4,1) .3s both;
}
.yah-cta-bubble::before{ /* 色の点 */
	content:"";display:inline-block;width:7px;height:7px;margin:0 6px 1px 0;border-radius:50%;background:var(--yah-sb,#D9734E);vertical-align:middle;
}
.yah-cta-bubble::after{ /* Yちゃんへ向くしっぽ */
	content:"";position:absolute;left:-7px;bottom:5px;width:12px;height:12px;
	background:#fff;border-left:2px solid var(--yah-sb,#D9734E);border-bottom:2px solid var(--yah-sb,#D9734E);
	border-bottom-left-radius:3px;transform:rotate(18deg) skewX(-12deg);
}
@keyframes yah-bubble-in{from{opacity:0;transform:translateY(6px) scale(.9);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion:reduce){.yah-cta-bubble{animation:none;}}

@media (max-width:600px){
	.yah-cta{padding:16px;margin-top:3.2em;}
	.yah-cta-y{width:118px;height:180px;bottom:50px;left:4px;}
	.yah-cta.has-y .yah-cta-head{margin-left:118px;min-height:118px;}
	.yah-cta-head{--yah-copy-max:18px;}
	.yah-cta-label{font-size:23px;}
	.yah-cta a.yah-cta-btn{font-size:15px;min-height:54px;padding-left:18px;}
	.yah-cta-bubble{left:112px;max-width:calc(100% - 124px);font-size:11.5px;padding:5px 11px;}
}
