﻿@charset "utf-8";

/* #fig */
#fig{
	position:relative;
}
#fig h1{
	position:absolute;
	top:50%;
	left:50%;
	z-index:1;
	transform:translate(-50%,-50%);
}
#fig h1 .curtain{
	margin:0.3em 0;
	display:inline-block;
	white-space:nowrap;
	position:relative;
}
#fig h1 .curtain:after{
	content:'';
	display:block;
	width:100%;
	height:100%;
	background-color:#ff00ff;
	position:absolute;
	top:0;
	left:0;
	transform: scaleX(0);
	box-shadow:0 0 10px rgba(0,0,0,0.1);
}
#fig h1 .curtain .bg_pink{
	display:inline-block;
	line-height:2;
	padding:0 0.5em;
	font-size:min(2.1vw,21px);
	letter-spacing:0.1em;
	font-weight:bold;
	opacity:0;
	transition: opacity 0s 1s ease;
	box-shadow:0 0 10px rgba(0,0,0,0.1);
}
#fig h1 .curtain:last-child .bg_pink{
	transition: opacity 0s 2s ease;
}
#fig h1 .curtain.active .bg_pink{
	opacity:1;
}
#fig h1 .curtain:first-child.active:after{
	animation: curtain 1s ease 0.5s 1;
}
#fig h1 .curtain:last-child.active:after{
	animation: curtain 1s ease 1.5s 1;
}
#fig h1 .curtain .bg_pink .large{
	font-size:min(2.8vw,28px);
}

@keyframes curtain {
	0% {
		transform-origin: left center;
		transform: scaleX(0)
	}
	49.999% {
		transform-origin: left center;
		transform: scaleX(1)
	}
	50% {
		transform-origin: right center;
		transform: scaleX(1)
	}
	100% {
		transform-origin: right center;
		transform: scaleX(0)
	}
}

#fig .slide_anime{
	display: flex;
	overflow: hidden;
}

#fig .slide_anime img{
	display: block;
	min-width:100%;
	opacity:0.7;
}
#fig .slide_anime img {
	animation: loop1 40s linear infinite;
	animation-delay: -3s;
}
@keyframes loop1 {
	0% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-100%);
	}
}

@media screen and (max-width:750px){
	#fig h1 .curtain .bg_pink{
		font-size:3.4vw;
	}
	#fig h1 .curtain .bg_pink .large{
		font-size:4.5vw;
	}
}


/* #cont1 */
#cont1{
	padding-top:9%;
}
#cont1 .trouble{
	margin-top:1.5%;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
}
#cont1 .trouble li{
	width:31%;
	aspect-ratio:4 / 1.5;
	line-height:1.5;
	margin:3% 1% 0;
	padding:1.5%;
	font-size:min(1.5vw,15px);
	font-weight:bold;
	text-align:left;
	letter-spacing:0.05em;
	border:1px solid #eee;
	border-radius:1em;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
	box-shadow:2px 2px 5px rgba(0,0,0,0.1);
	position:relative;
}
#cont1 .trouble li:after{
	content:'';
	display:block;
	width:0.8em;
	height:0.8em;
	background-color:#fff;
	position:absolute;
	top:calc(100% - 1px);
	left:50%;
	transform:translate(-50%,-50%) rotate(45deg);
	box-shadow:5px 5px 5px rgba(0,0,0,0.1);
}
#cont1 .trouble li:nth-child(1):after,
#cont1 .trouble li:nth-child(4):after{
	width:1em;
	height:0.8em;
	left:70%;
	transform:translateY(-50%) rotate(30deg);
}
#cont1 .trouble li:nth-child(3):after,
#cont1 .trouble li:nth-child(5):after{
	width:0.8em;
	height:1em;
	left:20%;
	transform:translateY(-50%) rotate(60deg);
}
#cont1 .trouble_anime{
	width:min(17%,120px);
	aspect-ratio:1 / 1;
	margin:3% auto 0;
	background:url(../images/gadv/trouble_anime.png)no-repeat center top;
	background-size:100% auto;
	animation: trouble 2s infinite;
}
@keyframes trouble {
	0% { background-position:center top; }
	49.999% { background-position:center top; }
	50% { background-position:center bottom; }
	99.999% { background-position:center bottom; }
}

@media screen and (max-width:750px){
	#cont1 .trouble{
		-webkit-justify-content: space-between;
		justify-content: space-between;
	}
	#cont1 .trouble li{
		width:49%;
		aspect-ratio:2 / 1;
		margin:5% 0 0;
		padding:3%;
		font-size:3.4vw;
		border-radius:0.5em;
		box-shadow:2px 2px 3px rgba(0,0,0,0.1);
	}
	#cont1 .trouble li:after{
		top:calc(100% - 2px);
	}
	#cont1 .trouble li:nth-child(even):after{
		width:1em;
		height:0.8em;
		left:70%;
		transform:translateY(-50%) rotate(30deg);
	}
	#cont1 .trouble li:nth-child(odd):after{
		width:0.8em;
		height:1em;
		left:20%;
		transform:translateY(-50%) rotate(60deg);
	}
	#cont1 .trouble li:first-child{
		width:74%;
		aspect-ratio:auto;
		margin:5% auto 0;
		padding:5% 3%;
	}
	#cont1 .trouble li:first-child:after{
		width:0.8em;
		height:1em;
		left:50%;
		transform:translate(-50%,-50%) rotate(45deg);
	}
	
	#cont1 .trouble_anime{
		width:24%;
	}
}


/* #cont2 */
#cont2{
	padding-bottom:0;
}
#cont2 .merit{
	margin-bottom:9%;
}
#cont2 .merit div{
  margin-top:5%;
  text-align:left;
}
#cont2 .merit div dt{
	line-height:1.3;
	font-size:min(2.1vw,21px);
	font-weight:bold;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
}
#cont2 .merit div dt .num{
	width:2.2em;
	height:2.2em;
	line-height:1;
	margin-right:0.5em;
	font-family:arial;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
	-webkit-flex-direction: column;
	flex-direction: column;
	border-radius:50%;
}
#cont2 .merit div dt .num:before{
	content:'解決策';
	font-size:min(1vw,10px);
}
#cont2 .merit div dt .title{
	flex:1;
}
#cont2 .merit div dd{
	margin-top:1em;
}

@media screen and (max-width:750px){
	#cont2 .merit div dt{
		font-size:4vw;
	}
	#cont2 .merit div dt .num{
		width:2.2em;
		height:2.2em;
	}
	#cont2 .merit div dt .num:before{
		font-size:2vw;
	}
}