@CHARSET "UTF-8";
/**
 * 完成画面共通CSS
 * common/index/result.php 用
 * PC/SP両方のスタイルを含む（HTMLが条件分岐で出し分けされるため）
 */

/* ===== ローディングアニメーション ===== */
#chaMakeResultLoad {
	height: 100%;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	background-color: rgba(0, 0, 0, 0.6);
	display: none;
}

#chaMakeResultLoad .loader {
	width: 60px;
	height: 60px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#chaMakeResultLoad .loader-text {
	color: #FFF;
	font-size: .9rem;
	position: absolute;
	top: 60%;
	left: 50%;
	transform: translateX(-50%);
}

#chaMakeResultLoad .loader div {
	width: 20px;
	height: 20px;
	float: left;
	display: flex;
	justify-content: center;
	align-content: center;
	align-items: center;
	position: relative;
}

#chaMakeResultLoad .loader span {
	position: absolute;
	display: block;
	border-radius: 3px;
	animation: chaMakeResultLoadAnim 1.2s infinite linear;
}

@keyframes chaMakeResultLoadAnim {
	0% { width: 0px; height: 0px; background: #18FFFF; }
	40% { width: 15px; height: 15px; background: #D500F9; }
	80% { width: 0px; height: 0px; background: #18FFFF; }
}

#chaMakeResultLoad .loader div:nth-child(2) span,
#chaMakeResultLoad .loader div:nth-child(4) span { animation-delay: 0.15s; }

#chaMakeResultLoad .loader div:nth-child(3) span,
#chaMakeResultLoad .loader div:nth-child(5) span,
#chaMakeResultLoad .loader div:nth-child(7) span { animation-delay: 0.30s; }

#chaMakeResultLoad .loader div:nth-child(6) span,
#chaMakeResultLoad .loader div:nth-child(8) span { animation-delay: 0.45s; }

#chaMakeResultLoad .loader div:nth-child(9) span { animation-delay: 0.60s; }

/* ===== 共通（PC/SP両用） ===== */
div#chaMakeResultBg {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 999;
	overflow: hidden;
}

div#chaMakeResult {
	position: absolute;
	top: 0;
	left: 0;
	width: 70%;
	height: 90%;
	background-color: #FFFFFF;
	border: #E6E6E6 solid 20px;
	overflow-y: auto;
}

div#chaMakeResultMessage {
	font-family: 'Makinas5';
	font-size: 36px;
	text-align: center;
	width: 100%;
	margin: 8px 0;
	display: none;
}

div#chaMakeResultImage {
	margin: 0 auto;
}

div#chaMakeResultBtn {
	display: none;
}

div#chaMakeResultShareBtn {
	display: none;
}

div.chaMakeResultShareXX {
	display: none;
}

div#chaMakeResultShareTW {
	display: none;
}

div#chaMakeResultShareFB {
	display: none;
}

/* ===== PC版 完成画面 ===== */
.finish-icon-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.link-btn {
	position: relative;
	width: 50%;
	min-width: 300px;
	text-decoration: none;
	border-radius: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-transform: uppercase;
	outline: none;
	overflow: hidden;
	color: #001858;
	font-weight: 700;
	font-size: 1rem;
	background-color: #F0EFEA;
	padding: 1rem;
	margin: 0 auto 1rem;
	transition: all .5s ease;
	border: none;
	cursor: pointer;
}

.link-btn:hover {
	color: #f3d2c1;
	background-color: #001858;
}

.link-btn img {
	width: 1.5rem;
	height: 1.5rem;
	margin-right: 0.5rem;
}

.link-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: all .5s ease;
}

.link-btn:hover::after {
	left: 100%;
}

/* PayPal モーダル */
.paypal-modal {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
}

.paypal-modal .modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 20px;
	background: white;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: .5rem;
}

/* ===== SP版 完成画面 ===== */

/* SP: 長押し保存テキスト */
.pleasetap {
	text-align: center;
	font-size: 0.8rem;
	color: #666;
}

/* SP: スクロール促しシェブロン */
div#chaMakeResultScroll {
	display: flex;
	justify-content: center;
}

div#chaMakeResultScroll .chevron {
	position: absolute;
	width: 28px;
	height: 8px;
	opacity: 0;
	transform: scale3d(0.5, 0.5, 0.5);
	animation: move 3s ease-out infinite;
}

div#chaMakeResultScroll .chevron:first-child {
	animation: move 3s ease-out 1s infinite;
}

div#chaMakeResultScroll .chevron:nth-child(2) {
	animation: move 3s ease-out 2s infinite;
}

div#chaMakeResultScroll .chevron:before,
div#chaMakeResultScroll .chevron:after {
	content: ' ';
	position: absolute;
	top: 0;
	height: 100%;
	width: 51%;
	background: #000;
}

div#chaMakeResultScroll .chevron:before {
	left: 0;
	transform: skew(0deg, 30deg);
}

div#chaMakeResultScroll .chevron:after {
	right: 0;
	width: 50%;
	transform: skew(0deg, -30deg);
}

@keyframes move {
	25% {
		opacity: 1;
	}

	33% {
		opacity: 1;
		transform: translateY(30px);
	}

	67% {
		opacity: 1;
		transform: translateY(40px);
	}

	100% {
		opacity: 0;
		transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
	}
}

div#chaMakeResultScroll .text {
	display: block;
	margin-top: 75px;
	font-size: 12px;
	color: #000;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: .25;
	animation: pulse 2s linear alternate infinite;
}

@keyframes pulse {
	to {
		opacity: 1;
	}
}

/* SP: 戻るボタン */
div#chaMakeResultReturnBtn {
	width: 100%;
	padding: 0;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 2rem;
}

/* SP: other.php / dlarea.php 用 */
div.contents-wrap {
	margin-bottom: 3rem;
}

div.contents-wrap h2 {
	position: relative;
	font-size: 1.1rem;
	font-family: 'Zen Maru Gothic', sans-serif;
	background-color: #00293C;
	padding: 0.5rem;
	color: #FFF;
	text-align: center;
	text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
	background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.2) 75%);
	padding-left: 65px;
}

div.contents-wrap h2::after {
	content: '';
	display: inline-block;
	width: 60px;
	height: 60px;
	background-image: url('/img/ch_red.svg');
	background-size: contain;
	background-repeat: no-repeat;
	vertical-align: middle;
	position: absolute;
	left: 0px;
	top: -20px;
}

div.contents-wrap .sns-icons {
	display: flex;
	justify-content: space-around;
	margin-top: 1rem;
}

div.contents-wrap .sns-icons img {
	width: 100%;
	max-width: 50px;
}

div.contents-wrap p {
	font-size: .9rem;
	text-align: initial;
	background-color: #FAFAFA;
	padding: 1rem;
	border-radius: .5rem;
	margin: 0 1rem;
}

div.contents-wrap #chaResultOtherAppImg img {
	width: 100%;
}

div.contents-wrap .author {
	max-width: 60px;
	border-radius: 60px;
}

div#chaResultOtherAppImg {
	text-align: center;
}

/* SP: PayPal モーダル（SP版は幅80%） */
@media screen and (max-width: 768px) {
	div#chaMakeResultBg {
		display: block;
		opacity: 1;
		background-color: #FFF;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	div#chaMakeResult {
		position: relative;
		width: 100%;
		height: 100%;
		border: none;
	}

	div#chaMakeResultMessage {
		display: block;
		font-size: 5vh;
	}

	div#chaMakeResultImage>img {
		-moz-user-select: default;
		-ms-user-select: default;
		-khtml-user-select: default;
		-webkit-user-select: default;
		-webkit-touch-callout: default;
	}

	div#chaMakeResultInfo {
		font-size: 0.7em;
		text-align: center;
		width: 100%;
	}

	div#chaMakeResultBtn {
		display: none;
	}

	.paypal-modal .modal-content {
		width: 80%;
	}
}

/* ===== お披露目サンプル ===== */
#ohirome-sample {
	background-color: #f8f8f8;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

#ohirome-sample h3 {
	text-align: center;
	width: 100%;
	font-size: 14px;
	margin: 0;
	color: #666;
}

#imageContainer {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 4px;
}

#ohirome-sample img,
#imageContainer img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
}

/* ===== シェア完了オーバーレイ ===== */
#sns-share-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
}

#sns-share {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	max-width: 400px;
	width: 90%;
}

#sns-share h3 {
	margin: 0 0 8px;
}

#sns-share p {
	background-color: #f0f0f0;
	padding: 1rem;
	border-radius: 8px;
	font-size: 14px;
	margin: 0 0 12px;
}

#sns-share img {
	max-width: 80px;
	margin: 8px auto;
}

#sns-share .sharewrap {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin: 12px 0;
}

#sns-share .sharewrap img {
	width: 100%;
	max-width: 2rem;
	background-color: #333;
	padding: 1rem;
	border-radius: 1rem;
	filter: invert(1);
}

#share-close {
	cursor: pointer;
	color: #999;
	font-size: 14px;
	margin-top: 8px;
}
