﻿@charset "utf-8";
#topimg{
	width:100%;
	aspect-ratio:640 / 300;
	overflow:hidden;
	border:1px solid #eee;
	position:relative;
	opacity:1;
}

#topimg #loading{
	width:100%;
	height:100%;
	background:#fff url("../topimg/loading.png") no-repeat center center;
	background-size:10% auto;
	position:absolute;
	top:0;
	left:0;
	z-index:10;
}

#topimg ul{
	margin:0;
	padding:0;
	list-style:none;
}

#topimg ul li section{
	aspect-ratio:640 / 300;
	text-decoration:none;
	display:block;
}
#topimg ul li h1{
	display:block;
	margin:0;
	padding:0;
	line-height:1.4;
}

#webdesign{
	width:100%;
	aspect-ratio:640 / 300;
	background:#fff url(../topimg/00.png) no-repeat left top;
	background-size:100%;
	position:absolute;
	top:0;
	left:0;
	z-index:3;
	
	opacity:0;
	-webkit-transition: top 0.8s;
	-moz-transition: top 0.8s;
	-ms-transition: top 0.8s;
	-o-transition: top 0.8s;
	transition: top 0.8s;
}
#webdesign0{
	width:15em;
	font-size:200%;
	font-weight:bold;
	color:#060;
	text-align:center;
	position:absolute;
	top:3%;
	left:3%;
	opacity:1;
	
	-webkit-transition: all 0.8s;
	-moz-transition: all 0.8s;
	-ms-transition: all 0.8s;
	-o-transition: all 0.8s;
	transition: all 0.8s;
}
#webdesign1{
	width:520px;
	text-align:center;
	position:absolute;
	bottom:18%;
	left:1%;
	opacity:1;
	
	-webkit-transition: all 0.8s;
	-moz-transition: all 0.8s;
	-ms-transition: all 0.8s;
	-o-transition: all 0.8s;
	transition: all 0.8s;
}
#webdesign1 img{
	width:61.5%;
}
#webdesign2{
	width:520px;
	text-align:center;
	position:absolute;
	bottom:0%;
	left:1%;
	opacity:1;
	
	-webkit-transition: all 0.8s;
	-moz-transition: all 0.8s;
	-ms-transition: all 0.8s;
	-o-transition: all 0.8s;
	transition: all 0.8s;
}
#webdesign2 img{
	width:100%;
}


/* #cont1 */
#cont1{
	padding-top:9%;
}
#cont1 .trouble{
	margin-top:1.5%;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
}
#cont1 .trouble li{
	width:32%;
	aspect-ratio:4 / 1.5;
	line-height:1.5;
	margin-top:3%;
	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(3n+1):after{
	width:1em;
	height:0.8em;
	left:70%;
	transform:translateY(-50%) rotate(30deg);
}
#cont1 .trouble li:nth-child(3n+3):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/coding/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 li{
		width:49%;
		aspect-ratio:2 / 1;
		margin-top:5%;
		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(odd):after{
		width:1em;
		height:0.8em;
		left:70%;
		transform:translateY(-50%) rotate(30deg);
	}
	#cont1 .trouble li:nth-child(even):after{
		width:0.8em;
		height:1em;
		left:20%;
		transform:translateY(-50%) rotate(60deg);
	}
	#cont1 .trouble_anime{
		width:24%;
	}
}


/* #cont2 */
#cont2{
	padding-bottom:0;
}
#cont2 .reason{
	margin-top:5%;
}
#cont2 .reason li{
	margin-top:5%;
	padding:3%;
	border:1px solid #eee;
	border-radius:1em;
	box-shadow:5px 5px 10px rgba(0,0,0,0.1);
	text-align:left;
}
#cont2 .reason li h3{
	line-height:1.3;
	font-size:min(2.1vw,21px);
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
}
#cont2 .reason li h3 .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 .reason li h3 .num:before{
	content:'理由';
	font-size:min(1.1vw,11px);
}
#cont2 .reason li h3 .title{
	flex:1;
}
#cont2 .reason li p{
	margin-top:1em;
}

@media screen and (max-width:750px){
	#cont2 .reason li{
		padding:5%;
		border-radius:0.5em;
		box-shadow:3px 3px 5px rgba(0,0,0,0.1);
	}
	#cont2 .reason li h3{
		font-size:4vw;
	}
	#cont2 .reason li h3 .num{
		width:2.2em;
		height:2.2em;
	}
	#cont2 .reason li h3 .num:before{
		font-size:2.3vw;
	}
}


