@charset "utf-8";
/* CSS Document */

.lower_content{
	overflow-x: clip;
}

.question, #result-container {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.question.active {
    opacity: 1;
    transition-delay: 0s;
}
#result-container.active {
    opacity: 1;
    transition: opacity 0.8s ease 0.3s;
}
#result-container.active {
    position: relative;
	min-height: 400px;
}
#transition-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height:100%;	
}
.floating-image {
    position: absolute;
    width: 200px;
    opacity: 0;
    animation: floatImage 3s ease-in-out forwards;
}
@keyframes floatImage {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-40px);
    }
}
#result-wrapper {
    position: relative;
    min-height: 300px;
}
#result-container img.main {
    max-width: 350px;
    display: block;
    margin: 20px auto;
	animation: purupuru02 3.5s ease-in-out infinite;
	transform-origin: top center;
}

@keyframes purupuru02 {
    0%   { transform: rotate(0deg); }
    4.3% { transform: rotate(6deg); }
    8.6% { transform: rotate(-6deg); }
    12.9% { transform: rotate(5deg); }
    17.1% { transform: rotate(-5deg); }
    21.4% { transform: rotate(3deg); }
    25.7% { transform: rotate(-3deg); }
    30%  { transform: rotate(1deg); }
    34.3% { transform: rotate(-1deg); }
    42.9% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

#question-container h3{
	text-align: center;
}

.question h3{
	position: relative;
	margin-bottom: 3rem;
	font-size:1.25rem;
}

.question h3:before{
	content:"Q1.";
	color:var(--color-blue);
	margin-right: 0.5em;
}

.tname:before{
	content:"ツママレ";
}

.question h3.question02:before{
	content:"Q2.";
}

.question h3.question03:before{
	content:"Q3.";
}

.question h3.question04:before{
	content:"Q4.";
}

.question h3.question05:before{
	content:"Q5.";
}

.question h3.question06:before{
	content:"Q6.";
}

.question h3.question07:before{
	content:"Q7.";
}

.question h3.question08:before{
	content:"Q8.";
}

.choices{
	display: flex;
	flex-wrap: wrap;
	gap:1rem;
}

.choices button{
	display: block;
	width:calc((100% - 1rem) / 2);
	border-radius: 10px;
	background:var(--color-gray);
	transition: background 0.3s ease;
	border: none;
	padding:3rem;
	font-size:1.25rem;
	font-weight: bold;
	cursor: pointer;
}

.choices button:hover{
	background:var(--color-blue);
}

#result-wrapper h3{
	width: fit-content;
	position: relative;
	font-size:1.25rem;
	text-align: center;
	margin-bottom: 1.5rem;
    background: var(--color-gray);
    padding: 1rem 2rem;
    border-radius: 8px;
	margin-left:auto;
	margin-right:auto;
}

#result-wrapper h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
	right:0;
	margin: auto;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--color-gray) transparent transparent transparent;
	width:0;
}

.tsumttl strong:before{
	content:"ツママレ";
}

.tsumttl{
	text-align: center;
	font-weight: bold;
}

.check-btn a{
	font-size:16px;
	line-height: 1.4;
    font-weight: bold;
    background: #ef8686 url(../img/link_arrow_white.svg) right 15px center no-repeat;
    background-size: auto 12px;
    transition: opacity 0.3s ease;
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    padding: 1rem 3rem;
    display: block;
    width: 400px;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

#retry-button{
	cursor: pointer;
	display: block;
	font-weight: bold;
    background: var(--color-main) url(../img/link_arrow_white.svg) right 15px center no-repeat;
    background-size: auto 12px;
    transition: background 0.3s ease;
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    padding: 1rem 3rem;
    margin:1.5rem auto 0;
    width: 400px;
    max-width: 100%;
}

.ckecker-lead{
	margin-bottom: 3rem;
	display: flex;
	justify-content: center;
	position: relative;
}

.cl-left,.cl-right{
	display: block;
	height:200px;
	aspect-ratio:7 / 5;
	box-sizing: border-box;
	position: absolute;
	left:-300px;
	top:0;
	bottom:0;
	margin:auto;
}

.cl-right{
	left:auto;
	right:-300px;
}

.cl-left span{
	display: block;
	position: absolute;
	width:75%;
	aspect-ratio:35 / 33;
	background:url("../img/animal/kawauso_rev.png") no-repeat;
	background-size:cover;
	left:-15%;
	top:0;
	z-index: 3;
	transform-origin: top center;
	animation: purupuru03 12s ease-in-out infinite;
	animation-delay: 0.7s;
}

.cl-left span:nth-of-type(2){
	background:url("../img/animal/malayguma_rev.png") no-repeat;
	background-size:cover;
	left:0;
	right:0;
	top:0;
	margin:auto;
	z-index: 2;
	animation-delay: 0.5s;
}

.cl-left span:nth-of-type(3){
	background:url("../img/animal/lion_rev.png") no-repeat;
	background-size:cover;
	left:auto;
	right:-15%;
	top:0;
	z-index: 1;
	animation-delay: 0.1s;
}

.cl-right span{
	display: block;
	position: absolute;
	width:75%;
	aspect-ratio:35 / 33;
	background:url("../img/animal/penguin.png") no-repeat;
	background-size:cover;
	left:-15%;
	top:0;
	transform-origin: top center;
	animation: purupuru03 12s ease-in-out infinite;
	animation-delay: 0.2s;
}

.cl-right span:nth-of-type(2){
	background:url("../img/animal/panda.png") no-repeat;
	background-size:cover;
	left:0;
	right:0;
	top:0;
	margin:auto;
	animation-delay: 0.6s;
}

.cl-right span:nth-of-type(3){
	background:url("../img/animal/impala.png") no-repeat;
	background-size:cover;
	left:auto;
	right:-15%;
	top:0;
	animation-delay: 0.4s;
}

@keyframes purupuru03 {
    0%   { transform: translateY(0); }
    4.3% { transform: translateY(-6px); }
    8.6% { transform: translateY(6px); }
    12.9% { transform: translateY(-5px); }
    17.1% { transform: translateY(5px); }
    21.4% { transform: translateY(-3px); }
    25.7% { transform: translateY(3px); }
    30%  { transform: translateY(-1px); }
    34.3% { transform: translateY(1px); }
    42.9% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

/*.ckecker-lead:before{
	content:"";
	display: block;
	height:200px;
	aspect-ratio:7 / 5;
	box-sizing: border-box;
	background:url("../img/shindan-left.png") no-repeat;
	background-size:cover;
	position: absolute;
	left:-300px;
	top:0;
	bottom:0;
	margin:auto;
}

.ckecker-lead:after{
	content:"";
	display: block;
	height:200px;
	aspect-ratio:7 / 5;
	box-sizing: border-box;
	background:url("../img/shindan-right.png") no-repeat;
	background-size:cover;
	position: absolute;
	right:-300px;
	top:0;
	bottom:0;
	margin:auto;
}*/

.result_detail{
	font-size:90%;
	margin-bottom: 1.5rem;
}

.share-buttons{
	display: flex;
	flex-wrap: wrap;
	gap:1rem;
	justify-content: center;
	margin-bottom: 2rem;
}

.share-buttons a{
	display: flex;
	align-items: center;
	gap:0.5rem;
	background:#000000;
	color:#ffffff;
	font-size:14px;
	border-radius: 5px;
	padding:0.5rem 1rem;
}

.share-buttons a:before{
	content:"";
	display: block;
	width:30px;
	height:30px;
	background:url("../img/icon-x.svg") no-repeat;
	background-size:cover;
}

.share-buttons a.share-line{
	background:#00c300;
}

.share-buttons a.share-line:before{
	background:url("../img/icon-line.svg") no-repeat;
	background-size:cover;
}

#copy-url{
	width:15em;
	color: var(--color-main);
	font-size:14px;
	padding:0.25rem 1rem;
}

@media screen and (max-width:1000px) {
	.cl-left,.cl-right{
		display: none;
	}
}

@media screen and (max-width:820px) {
	.choices button:hover{
		background:var(--color-gray);
	}
	.choices button:focus,.choices button:active{
		background:var(--color-gray);
	}
	.choices button{
		color:var(--color-main);
	}

	a, button {
		-webkit-tap-highlight-color: rgba(0,0,0,0.1); /* 完全に透明でなく、軽く色を乗せると違和感減 */
	}
}

@media screen and (max-width:600px) {
	#result-container img.main{
		max-width:80%;
	}
	
	.choices button{
		width:100%;
		padding:1.5rem 3rem;
		font-size:1rem;
	}
	
	.question h3{
		margin-bottom: 1.5rem;
	}
	
	#result-wrapper h3{
		font-size:1rem;
	}
	
	.tsumttl{
		font-size:1.25rem;
	}
	
	.floating-image{
		width:120px;
	}
	
	#copy-url{
		padding:1rem 1rem;
	}
}