/* 
––––––––––––––––––––––––––––––––––––––––––––––––––
  Diagnosis Page Styles
––––––––––––––––––––––––––––––––––––––––––––––––––
*/

.diagnosis section {
	margin: 0;
	padding: 0;
	display: none;
}
.diagnosis section.active {
	display: block;
}

.tit01 img {
	display: block;
	margin: 0 auto;
	width: 95%;
	max-width: 20rem;
	height: auto;
}

.tit02 img {
	display: block;
	margin: 0 auto;
	width: 90%;
	max-width: 17.5rem; /* 280px / 16 */
	height: auto;
}

.txt-heading {
	font-size: 1.2rem;
	line-height: 1.6rem;
	color: #333;
}

.txt-body {
	font-size: 0.9rem;
	line-height: 1.4rem;
	color: #333;
}

.btn-yes {
	padding: 0.75rem; /* 12px / 16 */
	font-size: 1rem;  /* 16px / 16 */
	border: none;
	border-radius: 0.3125rem; /* 5px / 16 */
	cursor: pointer;
	margin: 0;
	width: 100%;
	background-color: #34caa0;
	color: #FFF;
}

.btn-no {
	padding: 0.75rem;
	font-size: 1rem;
	border: none;
	border-radius: 0.3125rem;
	cursor: pointer;
	margin: 0;
	width: 100%;
	background-color: #a8e8d3;
	color: #000;
}

#nav-buttons {
	display: none;
}

.btn-start ,.btn-restart2 {
	padding: 1rem 0.75rem;
	font-size: 1.2rem;
	font-weight: bold;
	border: none;
	border-radius: 100vh;
	cursor: pointer;
	width: 80%;
	background-color: #33cccc;
	color: #FFF;
	display: block;
	margin: 0 auto;
	position: relative;
	z-index: 10;
}

.btn-back {
	padding: 0.75rem;
	font-size: 0.8rem;
	border: 1px solid #666;
	border-radius: 100vh;
	cursor: pointer;
	margin: 0;
	width: 100%;
	background-color: #FFF;
	color: #666;
}

.btn-restart {
	padding: 0.75rem;
	font-size: 0.8rem;
	border: none;
	border-radius: 100vh;
	cursor: pointer;
	margin: 0;
	width: 100%;
	background-color: #33cccc;
	color: #FFF;
}

#progress-container {
	width: 100%;
	background: #ddd;
	border-radius: 0.625rem; /* 10px / 16 */
	height: 0.875rem; /* 14px / 16 */
	overflow: hidden;
}
#progress-bar {
	height: 100%;
	width: 0%;
	background: #2aa385;
	transition: width 0.3s ease;
}

.has-relative {
	position: relative;
	z-index: 0;
	overflow: visible;
}


@keyframes poyon {
	0% {
		transform: translateY(-50%) scale(0.8);
		opacity: 0;
	}
	50% {
		transform: translateY(-50%) scale(1.1);
		opacity: 1;
	}
	70% {
		transform: translateY(-50%) scale(0.95);
	}
	100% {
		transform: translateY(-50%) scale(1);
	}
}

.char {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	pointer-events: none;
	animation: poyon 0.6s ease-out;
}

.char img {
	height: auto;
	width: auto;
	display: block;
}

.char.left {
	height: 200px;
	left: -2.0rem;
	top: 86%;
}

.char.right {
	height: 200px;
	right: -1.4rem;
	top: 86%;
}


.fade-section {
	opacity: 0;
	transition: opacity 0.8s ease;
}

.fade-section.active {
	opacity: 1;
}

/* 560px以上の表示 */
@media only screen and (min-width: 560px) {

	.tit01 img {
		width: 100%;
		max-width: 23.75rem; /* 380px / 16 */
	}

	.tit02 img {
		width: 100%;
		max-width: 23.75rem; /* 380px / 16 */
	}

	.txt-heading {
		font-size: 1.2rem;
		line-height: 1.8rem;
		color: #333;
	}

	.txt-body {
		font-size: 1.0rem;
		line-height: 1.6rem;
		color: #333;
	}

	.btn-start {
		padding: 1rem 0.75rem;
		font-size: 1.4rem;
		font-weight: bold;
		border: none;
		border-radius: 100vh;
		cursor: pointer;
		width: 60%;
		background-color: #33cccc;
		color: #FFF;
		display: block;
		margin: 0 auto;
		position: relative;
		z-index: 10;
	}

	.char.left {
		height: 80%;
		left: -8.6rem;
		top: 70%;
	}

	.char.right {
		height: 80%;
		right: -6.0rem;
		top: 70%;
	}
}

/* 960px以上の表示 */
@media print, screen and (min-width: 960px) {
	.tit01 img {
		width: auto;
	}

	.tit02 img {
		width: 100%;
	}

	.txt-heading {
		font-size: 1.4rem;
		line-height: 2.0rem; 
		color: #333;
	}

	.txt-body {
		font-size: 1.2rem;
		line-height: 1.8rem; 
		color: #333;
	}

	.char.left {
		height: 90%;
		left: -9.0rem;
		top: 68%;
	}

	.char.right {
		height: 90%;
		right: -6.0rem;
		top: 68%;
	}
}

@media print {
	body {
		width: 80rem; /* 1280px / 16 */
		transform: scale(0.8);
		-moz-transform: scale(0.8);
		-webkit-transform: scale(0.8);
		transform-origin: 0 0;
		-webkit-print-color-adjust: exact;
	}
}

@page {
	size: A4;
	margin: 12.7mm 9.7mm;
}


@media only screen and (max-width: 559px) {
	.char.left,
	.char.right {
		display: none !important;
	}
}
