/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ▲▲▲▲▲▲ RESET ▲▲▲▲▲▲ */
*{
	box-sizing: border-box;
}
body{
	position: relative;
	background-color: #fff9dc;
	background-image: url(../images/bg_gara.png), url(../images/bg_bottom.png);
	background-position: top left, bottom center;
	background-size: 100% auto, 100% auto;
	background-repeat: no-repeat, no-repeat;
	background-attachment: fixed;
	font-family:"ヒラギノ丸ゴ Pro W4","ヒラギノ丸ゴ Pro","Hiragino Maru Gothic Pro","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO";
	font-size: 20px;
	line-height: 1.6;
	font-feature-settings: "palt";
	min-height: 100vh;
	padding-bottom: 50px;
}
body:after{
	content: "制作：京都府　監修：産業医科大学医学部公衆衛生学教室・京都府立医科大学大学院医学研究科地域保健医療疫学講座";
	position: absolute;
	bottom: 10px;
	right: 10px;
	font-size: 16px;
	font-weight: bold;
}
img{
	max-width: 100%;
}
a{
	text-decoration: none;
	color: inherit;
	transition: transform .3s;
}
a:active{
	transform: translateY(20px);
}
.btn-center{
	text-align: center;
}
.btn-rounded{
	display: inline-block;
	border-radius: 100px;
	background: #00a05c;
	color: #fff;
	text-align: center;
	width: 470px;
	font-size: 30px;
	padding: 10px;
	margin-top: 10px;
	box-shadow: 0 0 10px rgba(255,255,255,0.8) inset;
}
.container{
	max-width: 1080px;
	margin: 0 auto;
}
.intro_logo{
	text-align: center;
	width: 360px;
	margin: 0 auto 10px;
}
.intro_block{
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 10px;
}

.main_logo{
	text-align: center;
	width: 205px;
	margin: 0 auto 10px;
}
.main_area{
	display: flex;
	height: calc(100vh - 150px);
	overflow-y: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.main_area::-webkit-scrollbar{
	display: none;
}
.main_area_center{
	align-items: center;
}
.iframe_body .main_area{
	display: block;
	height: calc(100vh - 60px);
	padding-top: 40px;
}
.main_area_in{
	width: 100%;
}
.question01{
	font-size: 40px;
	text-align: center;
	font-weight: bold;
	margin-bottom: 70px;
}
.question02{
	font-size: 40px;
	text-align: center;
	font-weight: bold;
	margin-bottom: 10px;
}
.question02 span{
	display: inline-block;
}
.btn-choices2{
	display: flex;
	justify-content: center;
}
.btn-choices2 .each{
	display: block;
	max-width: 350px;
	width: calc(50% - 30px);
	border-radius: 30px;
	color: #fff;
	text-align: center;
	font-size: 30px;
	padding: 10px;
	box-shadow: 0 0 10px rgba(255,255,255,0.8) inset;
}
.btn-choices2 .each:nth-child(1){
	background: #00a05c;
}
.btn-choices2 .each:nth-child(2){
	background: #e60012;
	margin-left: 60px;
}
.btn-choices3{
	display: flex;
	justify-content: space-between;
}
.btn-choices3 .each{
	display: block;
	max-width: 320px;
	width: calc(33.33% - 40px);
	border-radius: 30px;
	color: #fff;
	text-align: center;
	font-size: 30px;
	padding: 10px;
	box-shadow: 0 0 10px rgba(255,255,255,0.8) inset;
}
.btn-choices3 .each:nth-child(1){
	background: #00a05c;
}
.btn-choices3 .each:nth-child(2){
	background: #e60012;
}
.btn-choices3 .each:nth-child(3){
	background: #00a05c;
}
.question_chara{
	text-align: center;
	margin-bottom: 10px;
}
.question_chara img{
	max-width: 300px;
}

.advice_title{
	font-size: 40px;
	text-align: center;
	font-weight: bold;
	margin-bottom: 50px;
}
.advice_title span{
	display: inline-block;
}
.advice_block{
	display: flex;
	justify-content: center;
	flex-direction: row-reverse;
}
.advice_block .advice_chara{
	width: 250px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: normal;
	text-align: center;
}
.advice_block .advice_chara span{
	display: inline-block;
	width: 100%;
	border-bottom: 1px solid #000;
	font-weight: bold;
}
.caution_chara{
	max-width: 520px;
	margin: 0 auto 20px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: normal;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.caution_chara_usagi img{
	width: 70%;
}
.caution_chara_rakuda img{
	width: 60%;
}
.caution_chara_usagi p:nth-child(1),
.caution_chara_rakuda p:nth-child(1){
	text-align: center;
}
.caution_chara p{
	width: calc(250 / 520 * 100%);
}
.caution_chara span{
	display: inline-block;
	width: 100%;
	border-bottom: 1px solid #000;
	font-weight: bold;
}
.advice_block .advice_txt{
	margin-left: 40px;
	font-size: 30px;
}
.caution_block{
	display: flex;
	justify-content: center;
}
.caution_block .advice_chara{
	width: 160px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: normal;
}
.caution_block .advice_chara span{
	display: inline-block;
	width: 100%;
	border-bottom: 1px solid #000;
	font-weight: bold;
}
.caution_block .advice_chara .other{
	display: block;
	font-size: 13px;
	margin-top: 10px;
	margin-bottom: 10px;
	border-bottom: none;
	text-align: center;
}
.caution_block .advice_chara .qr{
	width: 80%;
	margin: 0 auto;
}

.caution_block .caution_chara{
	width: 250px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: normal;
}
.caution_block .caution_chara span{
	display: inline-block;
	width: 100%;
	border-bottom: 1px solid #000;
	font-weight: bold;
}
.caution_block .advice_txt{
	margin-left: 40px;
	font-size: 30px;
}

.btn-next{
	display:inline-block;
	max-width: 350px;
	width: calc(50% - 30px);
	border-radius: 30px;
	color: #fff;
	text-align: center;
	font-size: 30px;
	padding: 10px;
	background: #00a05c;
	margin-top: 30px;
	box-shadow: 0 0 10px rgba(255,255,255,0.8) inset;
}

.good_balloon {
  position: relative;
  display: block;
  padding: 20px 15px;
  min-width: 120px;
  max-width: 100%;
  font-size: 30px;
  background: #FFF;
  border: solid 3px #000;
  border-radius: 40px;
  text-align: center;
  margin-bottom: 40px;
}

.good_balloon:before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  margin-left: -15px;
  border: 12px solid transparent;
  border-top: 12px solid #FFF;
  z-index: 2;
}

.good_balloon:after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  margin-left: -17px;
  border: 14px solid transparent;
  border-top: 14px solid #000;
  z-index: 1;
}

.good_balloon p {
  margin: 0;
  padding: 0;
}
.good_balloon span{
	display: inline-block;
}
.good_chara{
	text-align: center;
}

.result_title{
	font-size: 40px;
	text-align: center;
	font-weight: bold;
	margin-bottom: 20px;
}
.result_title span{
	display: inline-block;
}
.result_degrees{
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}
.result_degrees .each{
	margin: 0 5px;
}
.result_charas{
	display: flex;
	justify-content: center;
	align-items: flex-end;
	flex-wrap: wrap;
	margin-top: 20px;
}
.result_charas .each{
	width: 24%;
	padding: 10px;
	animation: fuwafuwa 3s infinite ease-in-out alternate;
}
.result_horse{
	max-width: 180px;
	animation: fuwafuwa 3s infinite ease-in-out alternate;
}
.result_horse a{
	display: block;
}
.result_horse .txt_click{
	padding-left: 30%;
	text-align: center;
}
.result_charas .each button{
	background-color: transparent;
	border: none;
	cursor: pointer;
	outline: none;
	padding: 0;
	appearance: none;
}
.btn-back{
	position: relative;
	display:inline-block;
	max-width: 470px;
	width: 100%;
	border-radius: 100px;
	color: #fff;
	text-align: center;
	font-size: 30px;
	padding: 10px 10px 10px 60px;
	background: #00a05c;
	margin-top: 30px;
	box-shadow: 0 0 10px rgba(255,255,255,0.8) inset;
}
.btn-back:after{
	content: "";
	position: absolute;
	left: calc(50% - 200px);
	top: calc(50% - 21px);
	width: 48px;
	height: 42px;
	background: url(../images/arrow_back.png) no-repeat center center;
	background-size: contain;
}
.btn-voice{
	position: relative;
	display:inline-block;
	max-width: 530px;
	width: 100%;
	border-radius: 100px;
	color: #fff;
	text-align: center;
	font-size: 30px;
	padding: 10px 60px 10px 10px;
	background: #00a05c;
	margin-top: 30px;
	box-shadow: 0 0 10px rgba(255,255,255,0.8) inset;
}
.btn-voice:after{
	content: "";
	position: absolute;
	right: calc(50% - 250px);
	top: calc(50% - 21px);
	width: 48px;
	height: 42px;
	background: url(../images/arrow_back.png) no-repeat center center;
	background-size: contain;
	transform: rotate(180deg);
}

.caution_balloon {
	position: relative;
	display: block;
	padding: 15px 15px;
	min-width: 120px;
	max-width: 690px;
	font-size: 25px;
	background: #FFF;
	border: solid 3px #000;
	border-radius: 20px;
	margin-bottom: 20px;
	transform: translateY(20px);
	transition: transform .3s, opacity .3s;
	opacity: 0;
}
.caution_balloon:nth-of-type(1){
	transition-delay: .4s;
}
.caution_balloon:nth-of-type(2){
	transition-delay: .8s;
}
.caution_balloon:nth-of-type(3){
	transition-delay: 1.2s;
}
.caution_balloon:nth-of-type(4){
	transition-delay: 1.6s;
}
.is-view .caution_balloon{
	transform: translateY(0);
	opacity: 1;
}

.caution_balloon:before {
	content: "";
	position: absolute;
	top: 50%;
	left: -23px;
	margin-top: -12px;
	border: 12px solid transparent;
	border-right: 12px solid #FFF;
	z-index: 2;
}

.caution_balloon:after {
	content: "";
	position: absolute;
	top: 50%;
	left: -29px;
	margin-top: -14px;
	border: 14px solid transparent;
	border-right: 14px solid #000;
	z-index: 1;
}

.caution_balloon p {
  margin: 0;
  padding: 0;
}
.caution_balloon span{
	display: inline-block;
}
.result_txt{
	max-width: 880px;
	padding: 5px 20px;
	font-size: 30px;
	background: #fff;
	text-align: center;
	margin: 0 auto 20px;
}
.result_txt span{
	font-weight: bold;
}
#resultMain.result_safe .heart01_off,
#resultMain.result_safe .heart02_on,
#resultMain.result_safe .heart03_on{
	display: none;
}

#resultMain.result_caution .heart01_on,
#resultMain.result_caution .heart02_off,
#resultMain.result_caution .heart03_on{
	display: none;
}
#resultMain.result_danger .heart01_on,
#resultMain.result_danger .heart02_on,
#resultMain.result_danger .heart03_off{
	display: none;
}


.mfp-iframe-holder .mfp-content{
	width: 90%;
	max-width: 1200px;
	border: 10px solid rgb(247, 160, 0);
	max-height: calc(100% - 100px);
}
.mfp-iframe-holder .mfp-close{
	font-size: 60px;
	top: -50px;
	right: -10px;
	background: rgb(247, 160, 0);
	padding-left: 6px;
	opacity: 1;
	width: auto;
}
.closeButton{
	font-size: 20px;
	color: #fff;
	border: 2px solid #fff;
	display: inline-block;
	padding: 2px 15px;
	position: absolute;
	left: 50%;
	bottom: -30px;
	height: 2em;
	line-height: 1.6;
	cursor: pointer;
	transform: translate(-50%, 100%);
	transition: color .3s;
}
.closeButton:hover{
	background: rgba(255,255,255,0.8);
	color: #000;
}

@keyframes fuwafuwa {
	0%{ transform: translate(0, 0) }
	50%{ transform: translate(0, -20px) }
	100%{ transform: translate(0, 0) }
}
.link-kyoto{
	position: absolute;
	right: 20px;
	top: 10px;
	text-decoration: underline;
}

@media screen and (max-width: 768px){
	body{
		background-image: url(../images/bg_gara_sp.png), url(../images/bg_bottom.png);
		background-position: top left, bottom center;
		background-size: cover, auto 30px;
		background-repeat: no-repeat, no-repeat;
		font-size: 18px;
		line-height: 2;
		padding-bottom: 60px;
	}
	body:after{
		content: "制作：京都府\A監修：産業医科大学医学部公衆衛生学教室・\A京都府立医科大学大学院医学研究科地域保健医療疫学講座";
		position: absolute;
		bottom: 10px;
		right: 10px;
		font-size: 10px;
		font-weight: bold;
		white-space:pre;
		line-height: 1.6;
		text-align: right;
	}
	img{
		max-width: 100%;
	}
	a{
		text-decoration: none;
		color: inherit;
	}
	.btn-center{
		text-align: center;
	}
	.btn-rounded{
		border-radius: 100px;
		width: 90%;
		font-size: 23px;
		padding: 10px;
		margin-top: 10px;
	}
	.container{
		width: calc(650 / 750 * 100%);
		margin: 0 auto;
	}
	.intro_logo{
		width: 235px;
		margin: 0 auto 10px;
	}
	.intro_block{
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		align-items: center;
		margin-bottom: 10px;
	}
	.intro_txt{
		font-weight: bold;
	}
	.intro_block .each{
		width: 49%;
		text-align: center;
	}
	.intro_block .each img{
		width: 60%;
	}

	.main_logo{
		text-align: center;
		width: 205px;
		margin: 20px auto 10px;
	}
	.main_area{
		height: auto;
	}
	.main_area_center{
		height: calc(100vh - 120px);
		align-items: center;
	}
	.question01{
		font-size: 32px;
		margin-bottom: 70px;
	}
	.question02{
		font-size: 28px;
		line-height: 1.8;
		margin-bottom: 10px;
	}
	.btn-choices2{
		justify-content: space-between;
	}
	.btn-choices2 .each{
		width: calc(180 / 420 * 100%);
		border-radius: 20px;
		font-size: 23px;
		padding: calc(60 / 420 * 100%) 10px;
	}
	.btn-choices2 .each:nth-child(2){
		margin-left: 0;
	}
	.btn-choices3{
		display: block;
	}
	.btn-choices3 .each{
		max-width: 336px;
		width: 100%;
		border-radius: 20px;
		font-size: 23px;
		padding: 20px;
		margin: 0 auto;
	}
	.btn-choices3 .each:nth-child(2),
	.btn-choices3 .each:nth-child(3){
		margin-top: 30px;
	}
	.question_chara{
		width: 50%;
		margin: 0 auto 10px;
	}
	.question_chara img{
		max-width: 100%;
	}

	.advice_title{
		font-size: 28px;
		margin-bottom: 0;
	}
	.advice_block{
		display: block;
	}
	.advice_block .advice_chara{
		width: 50%;
		margin: 0 auto;
		font-size: 25px;
		line-height: 1.5;
		font-weight: normal;
	}
	.caution_chara{
		width: 100%;
		font-size: 20px;
		text-align: center;
		display: block;
	}
	.caution_chara p{
		width: 100%;
	}
	.caution_chara img{
		width: 50%;
	}
	.caution_chara span{
		display: inline-block;
		width: 100%;
		border-bottom: 1px solid #000;
		font-weight: bold;
	}
	.advice_block .advice_txt{
		margin-left: 0;
		font-size: 21px;
		margin-bottom: 30px;
	}
	.caution_block{
		display: block;
	}
	.caution_block .advice_chara{
		width: 50%;
		margin: 0 auto;
		font-size: 25px;
		line-height: 1.5;
		font-weight: normal;
	}
	.caution_block .advice_chara .other{
		font-size: 12px;
	}
	.caution_block .caution_chara{
		width: 100%;
		font-size: 25px;
		text-align: center;
	}
	.caution_block .caution_chara img{
		width: 50%;
	}
	.caution_block .caution_chara span{
		display: inline-block;
		width: 100%;
		border-bottom: 1px solid #000;
		font-weight: bold;
	}
	.caution_block .advice_txt{
		margin-left: 0;
		font-size: 21px;
		margin-bottom: 30px;
	}
	.btn-next{
		display:inline-block;
		width: 80%;
		border-radius: 100px;
		font-size: 23px;
		padding: 10px;
		margin-top: 30px;
	}

	.good_balloon {
		font-size: 23px;
	}

	.good_chara{
		width: 50%;
		margin: 0 auto;
	}

	.result_title{
		font-size: 28px;
		line-height: 1.6;
		margin-bottom: 20px;
		font-weight: bold;
	}
	.result_txt{
		font-size: 20px;
	}
	.result_degrees{
		margin-bottom: 20px;
	}
	.result_charas{
		display: flex;
		justify-content: center;
		margin-top: 20px;
	}
	.result_charas .each{
		width: 49%;
		margin: 0.5%;
	}
	.result_charas .each button{
		background-color: transparent;
		border: none;
		cursor: pointer;
		outline: none;
		padding: 0;
		appearance: none;
	}
	.result_horse{
		margin: 0 auto;
	}
	.result_horse .txt_click{
		padding-left: 0;
		width: 100px;
		margin: 0 auto;
	}

	.btn-back{
		width: 100%;
		font-size: 23px;
		padding: 10px 10px 10px 40px;
	}
	.btn-back:after{
		left: calc(50% - 100px);
		top: calc(50% - 10px);
		width: 24px;
		height: 21px;
	}
	.btn-voice{
		width: 100%;
		font-size: 23px;
		padding: 10px 40px 10px 10px;
	}
	.btn-voice:after{
		right: calc(50% - 120px);
		top: calc(50% - 10px);
		width: 24px;
		height: 21px;
	}

	.caution_balloon {
		position: relative;
		display: inline-block;
		width: 100%;
		margin: 20px 0;
		padding: 10px 15px;
		min-width: 120px;
		max-width: 100%;
		font-size: 16px;
		background: #FFF;
		border: solid 3px #000;
		border-radius: 20px;
	}

	.caution_balloon:before {
		content: "";
		position: absolute;
		top: auto;
		bottom: -24px;
		left: 50%;
		margin-left: -15px;
		border: 12px solid transparent;
		border-top: 12px solid #FFF;
		z-index: 2;
	}

	.caution_balloon:after {
		content: "";
		position: absolute;
		top: auto;
		bottom: -30px;
		left: 50%;
		margin-left: -17px;
		border: 14px solid transparent;
		border-top: 14px solid #000;
		z-index: 1;
	}
	.iframe_body .caution_balloon:before {
		content: "";
		position: absolute;
		bottom: auto;
		top: -12px;
		left: 50%;
		margin-left: -15px;
		border: 12px solid transparent;
		border-bottom: 12px solid #FFF;
		z-index: 2;
	}

	.iframe_body .caution_balloon:after {
		content: "";
		position: absolute;
		bottom: auto;
		top: -16px;
		left: 50%;
		margin-left: -17px;
		border: 14px solid transparent;
		border-bottom: 14px solid #000;
		z-index: 1;
	}
	.mfp-iframe-holder .mfp-content{
		height: 100%;
	}
	.link-kyoto{
		position: static;
		text-decoration: underline;
		padding: 10px;
		text-align: right;
		font-size: 16px;
	}

}