@charset "utf-8";

.cross-buy , .cross-buy * {
	box-sizing: border-box;
}
.cross-buy {
	max-width: 800px;
	margin: auto;
}

@media screen and (min-width:768px) {
	.cross-buy {
		padding-top: 20px;
	}
}

.cross-buy img {
	max-width: 100%;
	height: auto;
    vertical-align: bottom;
}



/* ここからポップアップCSS */

.cross-buy_attention {
	text-align: right;
	font-size: 12px;
}

.cross-buy_popup-container {
	position: relative;        
}

.trigger-link {
	color: blue;
	text-decoration: underline;
	cursor: pointer;
}

.cross-buy_popup {
	position: absolute;
	top: calc(100% + 10px);
	right: 10px;
	transform: translateY(-10px); /* アニメーション */
	max-width: 300px;
	width: 95%;
	background-color: #f9f9f9;
	border: 1px solid #ccc;
	padding: 15px 30px 15px 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
	border-radius: 8px;
}

/* ポップアップが active の状態 */
.cross-buy_popup.show {
	display: block;
	opacity: 1;
	transform: translateY(0); /* アニメーション */
}

/* 吹き出しのしっぽ（外枠） */
.cross-buy_popup::before {
	content: '';
	position: absolute;
	bottom: 100%;
	right: 90px;
	border: 10px solid transparent;
	border-bottom-color: #ccc;
	pointer-events: none;
}

/* 吹き出しのしっぽ（内側） */
.cross-buy_popup::after {
	content: '';
	position: absolute;
	bottom: 100%;
	right: 91px;
	border: 9px solid transparent;
	border-bottom-color: #f9f9f9;
	pointer-events: none;
}

.close-button {
	position: absolute;
	top: 4px;
	right: 8px;
	font-size: 40px;
	line-height: .75;
	font-weight: bold;
	cursor: pointer;
	color: #888;
}

.cross-buy_popup p {
	font-size: 12px;
	margin-bottom: .5em;
}

.popup-button {
	display: inline-block;
	margin-top: 8px;
	padding: 8px 32px 8px 16px;
	background-color: #2FAF0B;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	transition: .3s;
	position: relative;
}
.popup-button:after {
	content: '';
	display: block;
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-left-color: #fff;
	border-right: none;
}

.popup-button:hover {
	opacity: .7;
}