@charset "UTF-8";
:root {
	--max-width: 80%;
}
* {
	box-sizing: border-box;
}
html {
	height: 100%;
}
body {
	position: relative;
	height: 100%;
	line-height: 1.5em;
	margin: 0;
	padding: 0;
	background: #FFF;
	color: #333;
	font-size: 1.2em;
	font-family: Arial, sans-serif;
	transition: opacity .5s;
	& ul, & li, & dd, & dt, & dd {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	& img {
		max-width: 100%;
		height: auto;
		vertical-align: middle;
	}

	& a {
		color: #1A0DAB;
		text-decoration: none;
		transition: .3s;
		&:hover {
			opacity: .7;
		}
	}
	& h2 {
		position: relative;
		width: 1200px;
		max-width: var(--max-width);
		margin: 0 auto;
		font-size: 1.8em;
		text-align: right;
		color: #007BFF;
		&:before, &:after {
			content: '';
			width: 100%;
			display: block;
			position: absolute;
			bottom: -.5em;
			border-bottom: 2px solid transparent;
		}
		&:before {
			border-bottom-color: #DDD;
		}
		&:after {
			border-image: linear-gradient(to right, #2EA7E0 50%, transparent);
			border-image-slice: 1;
			animation: border-bottom-width 5s ease-in-out infinite alternate;
		}
	}
	&:not(.subpage) {
		header {
			overflow: hidden;
			position: relative;
			width: 1500px;
			max-width: 100%;
			margin: 0 auto;
			padding: 0;
			background: #F8F8F8;
			text-align: right;
			& > * {
				width: 100%;
			}
			& #image-slider {
				padding: 0;
				position: relative;
				& li {
					position: relative;
					opacity: 1;
					&:not(:first-of-type) {
						position: absolute;
						left: 0;
						top: 0;
						opacity: 0;
					}
					& video {
						width: 100%;
						height: 100%;
						vertical-align: middle;
					}
					& img {
						width: 100%;
						height: 100%;
						object-fit: cover;
					}
				}
			}
			& .header-text {
				position: absolute;
				bottom: 2%;
				width: 100%;
				padding-right: 2%;
				z-index: 2;
				& h1 {
					position: relative;
					max-width: 50%;
					margin: 0 0 0 auto;
					font-size: 3em;
					& img {
						filter:
							drop-shadow(-1px -1px .2px rgba(255, 255, 255, .8)) drop-shadow(-1px  1px .2px rgba(255, 255, 255, .8))
							drop-shadow(   0 -1px .2px rgba(255, 255, 255, .8)) drop-shadow(   0  1px .2px rgba(255, 255, 255, .8))
							drop-shadow( 1px -1px .2px rgba(255, 255, 255, .8)) drop-shadow( 1px  1px .2px rgba(255, 255, 255, .8));
					}
				}
				& p {
					position: relative;
					margin: 1.2em 0;
					font-size: 1.5em;
					filter:
						drop-shadow(-1px -1px .2px rgba(255, 255, 255, .8)) drop-shadow(-1px  1px .2px rgba(255, 255, 255, .8))
						drop-shadow(   0 -1px .2px rgba(255, 255, 255, .8)) drop-shadow(   0  1px .2px rgba(255, 255, 255, .8))
						drop-shadow( 1px -1px .2px rgba(255, 255, 255, .8)) drop-shadow( 1px  1px .2px rgba(255, 255, 255, .8));
				}
			}
		}
	}
	& main {
		position: relative;
		width: 100%;
		overflow: hidden;
		& .news-container {
			padding: 4em 0;
			background: #FAFAFA;
			& .news-container_inner {
				width: 1200px;
				max-width: var(--max-width);
				margin: 0 auto;
				background: #FFF;
				padding: 2%;
				& h2 {
					max-width: 100%;
					margin: 0;
				}
				& ul {
					margin-top: 2em;
					max-height: 10em;
					overflow: auto;
				}
				& .more {
					text-align: right;
				}
			}
		}
		& .info-container {
			position: relative;
			padding-top: 6em;
			background: no-repeat center 0 / 100% auto;
			& .info-container_inner {
				padding: 4em 0;
				background: #FAFAFA;
				& section {
					display: flex;
					align-items: center;
					width: 1200px;
					max-width: var(--max-width);
					margin: 0 auto;
					& + section {
						margin-top: 2em;
					}
					&:nth-of-type(2n+1) {
						flex-direction: row-reverse;
					}
					& .text, & .img {
						padding: 0 2%;
					}
					& .text {
						width: 60%;
						& > h3 {
							max-width: 100%;
							margin: 0 auto;
							text-align: right;
							font-weight: normal;
							font-size: 1em;
							color: #333;
							&:before {
								content: '';
								display: inline-block;
								vertical-align: middle;
								border-top: 1px solid;
								width: 2.5em;
							}
						}
						& > div {
							position: relative;
							margin: 0;
							font-weight: normal;
						}
						&.full {
							width: 100%;
						}
					}
					& .img {
						max-width: 40%;
						& img {
							height: auto;
							border-radius: .7em;
						}
					}
				}
			}
		}
		& .service-container {
			position: relative;
			& .service-container_inner {
				padding: 4em 0;
				background: #FFF;
				& > div {
					width: 1200px;
					max-width: var(--max-width);
					margin: 2em auto;
				}
				& section {
					width: 1200px;
					max-width: var(--max-width);
					margin: 1em auto 0;
					background: #FFF;
					& > h3 {
						position: relative;
						margin: 0;
						padding-top: 1em;
						color: #2EA7E0;
					}
					&:first-of-type {
						margin-top: 2em;
					}
					& + section {
						border-top: 1px solid;
						border-image: linear-gradient(to right, transparent, #2EA7E0);
						border-image-slice: 1;
					}
				}
			}
		}
		& .products {
			padding: 4em 0;
			background: #FAFAFA;
			& .product-grid {
				display: grid;
				grid-template-columns: repeat(4, 1fr);
				gap: 1.2em;
				width: 1200px;
				max-width: var(--max-width);
				margin: 2em auto;
				& li {
					& section {
						border-radius: .3em;
						border: 1px solid #DDD;
						background: #FFF;
						overflow: hidden;
						height: 100%;
						transition: transform .3s, box-shadow .3s;
						& .img {
							line-height: 0;
							overflow: hidden;
							& img {
								transition: .3s;
							}
						}
						&:hover img {
							transform: rotate(5deg) scale(1.2);
						}
						& > h3, & > div, & > a {
							margin: 1em;
						}
						& > h3 {
							font-size: 1.1em;
							color: #2EA7E0;
						}
						& > p {
							color: #555;
						}
						& > a {
							display: block;
							background: #468;
							color: #FFF;
							text-align: center;
							line-height: 3em;
							border-radius: .3em;
							&:before {
								right: 1px;
								border-left-color: #468;
							}
							&:hover {
								transform: translateX(-.3em);
								&:before {
									transform: translateX(.5em);
								}
							}
						}
					}
					&.nonActive section {
						transform: scale(0.98);
						filter: blur(.05em);
					}
					&.active section {
						box-shadow: 0 0 1em rgba(0,0,0,0.2);
						transform: scale(1.05);
						z-index: 10;
					}
				}
			}
		}
		& .talent {
			position: relative;
			padding: 4em 0;
			& > ul {
				padding: 0;
				background: #FFF;
				& li {
					width: 1200px;
					max-width: var(--max-width);
					margin: 1em auto 0;
					padding-top: 1em;
					& + li {
						border-top: 1px solid;
						border-image: linear-gradient(to right, transparent, #2EA7E0);
						border-image-slice: 1;
					}
					& h3 {
						position: relative;
						margin: 0;
						color: #2EA7E0;
						font-size: 1.2em;
					}
					& .img {
						float: right;
						max-width: 50%;
						padding: 1em 0 1em 1em;
						& img {
							height: auto;
							border-radius: .7em;
						}
					}
					&:after {
						content: '';
						display: block;
						clear: both;
					}
				}
			}
		}
		& .flex-container {
			position: relative;
			background: no-repeat center 0 / 100% auto;
			padding-top: 6em;
			& .flex-container_inner {
				display: flex;
				flex-direction: column;
				background: #FFF;
				padding: 4em 0;
				& section {
					width: 1200px;
					max-width: var(--max-width);
					margin: 0 auto;
					& h2 {
						max-width: 100%;
						margin: 0;
					}
					& dl {
						display: flex;
						flex-wrap: wrap;
						margin: 2em auto 0;
						& dt, & dd {
							&:nth-of-type(n+2) {
								margin-top: .7em;
							}
						}
						& dt {
							width: 25%;
						}
						& dd {
							width: 75%;
							& p {
								margin: 0;
							}
						}
					}
					& + section {
						padding-top: 3em;
					}
				}
				& section.faq {
					& dl {
						display: block;
						& dt {
							width: 100%;
							padding: 1em;
							font-size: 1.2em;
							font-weight: bold;
							background: #E3F2FD;
							border-left: .3em solid #2196F3;
							cursor: pointer;
							transition: opacity .3s;
							&:hover {
								opacity: .7;
							}
						}
						& dd {
							display: grid;
							grid-template-rows: 0fr;
  							width: 100%;
							transition: grid-template-rows .3s;
							&:nth-of-type(n+2) {
								margin-top: 0;
							}
							&.active {
								grid-template-rows: 1fr;
							}
							& div {
								overflow: hidden;
								& p {
									padding: 1.5em;
									& + p {
										padding-top: 0;
									}
								}
							}
						}
					}
				}
			}
		}
		& form {
			margin-top: 2em;
			& > p {
				margin: 0;
				padding: 0 0 4em;
				& input:not([type="radio"]), & textarea {
					width: 90%;
					max-height: 5em;
					margin: 0 0 .6em 10%;
					padding: .6em;
					border: 1px solid #DDD;
					border-radius: .3em;
				}
				& input[type="submit"] {
					width: 60%;
					margin: 1.2em 20% .6em;
					padding: .6em 0;
					background: #007BFF;
					border: none;
					border-radius: .3em;
					color: #FFF;
					font-size: 1em;
					cursor: pointer;
					transition: opacity .3s;
					&:hover {
						opacity: .7;
					}
				}
			}
		}
		& .wpcf7 form .wpcf7-spinner {
			position: absolute;
			bottom: 1em;
			left: 50%;
			margin: 0;
			transform: translateX(-50%);
		}
		& .wpcf7 form .wpcf7-response-output {
			position: absolute;
			bottom: 0;
			left: 50%;
			width: 80%;
			margin: 0;
			transform: translateX(-50%);
		}
	}
	& footer {
		background: #FAFAFA;
		& .footer {
			display: flex;
			align-items: flex-end;
			overflow-y: hidden;
			width: 1200px;
			max-width: var(--max-width);
			margin: 0 auto;
			padding: 2em 0;
			& .logo {
				width: 20%;
			}
			& .copy {
				width: 80%;
				text-align: right;
			}
		}
	}
	&.subpage {
		display: flex;
		flex-direction: column;
		min-height: 100vh;
		margin: 0;
		& header {
			overflow: visible;
			position: relative;
			width: 100%;
			margin: 0 auto;
			padding: 2em 0;
			background: #FAFAFA;
			text-align: right;
			& .inner {
				display: flex;
				align-items: flex-end;
				overflow-y: hidden;
				width: 1200px;
				max-width: var(--max-width);
				margin: 0 auto;
				& .logo {
					width: 20%;
				}
			}
		}
		& main {
			flex: 1;
			overflow: visible;
		}
		& footer {
			& .footer {
				margin-top: 0;
				padding: 2em 0;
				& .copy {
					width: 100%;
					text-align: center;
				}
			}
		}
	}
	& .pagetop {
		position: fixed;
		bottom: 1.2em;
		right: 1.2em;
		background: #007BFF;
		color: #FFF;
		border: none;
		border-radius: .3em;
		padding: .7em 1em;
		transition: opacity .3s;
		&.active {
			cursor: pointer;
			opacity: 1;
		}
	}
	& .youtube {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		background: #FFF;
		& .box {
			width: 1200px;
			max-width: var(--max-width);
			padding-bottom: 4em;
			& li + li {
				padding-top: 2em;
			}
		}
		& h3 {
			text-align: center;
		}
		& .inner {
			position: relative;
			padding-top: 56.25%;
			width: 100%;
			& iframe {
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
			}
		}
	}

	& .side {
		position: fixed;
		right: 100%;
		bottom: 0;
		width: 5%;
		height: 100%;
		display: block;
		background: no-repeat left bottom / contain;
		transition: right .3s;
	}

	& .cursor {
		position: fixed;
		z-index: 150;
		pointer-events: none;
		animation: size 2s ease-out 0s forwards;
		&:before {
			content: '';
			position: absolute;
			width: 100%;
			height: 100%;
			background: no-repeat top center / contain;
			animation: 2s ease-out 0s forwards;
		}
		&.r1:before { animation-name: r1; }
		&.r2:before { animation-name: r2; }
		&.r3:before { animation-name: r3; }
		&.r4:before { animation-name: r4; }
		&.r5:before { animation-name: r5; }
		&.r6:before { animation-name: r6; }
	}
	& .fade {
		position: relative;
		opacity: 0;
		& > span {
			display: inline-block;
			transition: .3s;
			opacity: 0;
			&.p1 { transform: translate(-1vmin, -1vmin); }
			&.p2 { transform: translate(     0, -1vmin); }
			&.p3 { transform: translate( 1vmin, -1vmin); }
			&.p4 { transform: translate(-1vmin,      0); }
			&.p5 { transform: translate( 1vmin,      0); }
			&.p6 { transform: translate(-1vmin,  1vmin); }
			&.p7 { transform: translate(     0,  1vmin); }
			&.p8 { transform: translate( 1vmin,  1vmin); }
		}
		&.active {
			opacity: 1;
			& > span {
				animation: fade .4s forwards;
			}
		}
	}
	& .textAppear {
		position: relative;
		overflow: hidden;
		& span {
			display: block;
			transition: .8s;
			transform-origin: left;
			transform: translate(0, 100%) skewY(12deg);
		}
	}
	& .textAppear.active {
		& span {
			transform: translate(0, 0) skewY(0);
		}
	}
	& .boxAppear {
		position: relative;
		overflow: hidden;
		transition: .8s .5s;
		opacity: 0;
		transform: translateX(2vw);
	}
	& .boxAppear.active {
		opacity: 1;
		transform: translateX(0);
	}
	& .news-content {
		& .news-content_inner {
			width: 1200px;
			max-width: var(--max-width);
			margin: 0 auto;
			background: #FFF;
			padding: 2%;
			& h1 {
				line-height: normal;
				margin-bottom: 0;
			}
			& h2 {
				max-width: 100%;
			}
			& section {
				margin-top: 1em;
				padding: 1em 0;
				& h3 {
					margin: 0;
				}
				& + section {
					margin-top: 0;
					border-top: 1px solid;
					border-image: linear-gradient(to right, #FFF, #2EA7E0);
					border-image-slice: 1;
				}
			}
			& .date {
				text-align: right;
			}
			& .img {
				float: right;
				max-width: 50%;
				padding: 3%;
				& + .detail:after {
					content: '';
					clear: both;
					display: block;
				}
			}
			& .pager {
				position: relative;
				display: flex;
				justify-content: space-around;
				width: 100%;
				padding: .5em 0;
				& li {
					width: 100%;
					text-align: center;
				}
			}
		}
	}
}

@keyframes r0 {
	  0% { transform: rotate( 30deg); }
	100% { transform: rotate(-30deg); }
}
@keyframes r1 {
	  0% { transform: rotate( 20deg); }
	100% { transform: rotate(-20deg); }
}
@keyframes r2 {
	  0% { transform: rotate( 10deg); }
	100% { transform: rotate(-10deg); }
}
@keyframes r3 {
	  0% { transform: rotate(-10deg); }
	100% { transform: rotate( 10deg); }
}
@keyframes r4 {
	  0% { transform: rotate(-20deg); }
	100% { transform: rotate( 20deg); }
}
@keyframes r5 {
	  0% { transform: rotate(-30deg); }
	100% { transform: rotate( 30deg); }
}
@keyframes size {
	  0% { transform: translate(-50%,             -50%); width: 3em; height: 3em; }
	100% { transform: translate(-50%, calc(-50% + 8vh)); width:   0; height:   0; }
}
@keyframes border-bottom-width {
	  0% { width: 10%; }
	100% { width: 40%; }
}

@keyframes fade {
	100% { opacity: 1; transform: translate(0, 0); }
}

@media (max-width: 1000px) {
	:root {
		--max-width: 85%;
	}
	body {
		font-size: 1.05em;
		& main {
			& .products {
				& .product-grid {
					grid-template-columns: repeat(3, 1fr);
				}
			}
			& .flex-container {
				& .flex-container_inner {
					& section {
						& dl {
							& dt, & dd {
								width: 100%;
							}
							& dt {
								font-weight: bold;
								&:nth-of-type(n+2) {
									margin-top: 1em;
								}
							}
							& dd {
								padding-left: 1em;
								&:nth-of-type(n+2) {
									margin-top: 0;
								}
							}
						}
					}
				}
			}
		}
	}
}
@media (max-width: 750px) {
	:root {
		--max-width: 90%;
	}
	body {
		font-size: .9em;
		& main {
			& .products {
				& .product-grid {
					grid-template-columns: repeat(2, 1fr);
				}
			}
		}
		& .pagetop {
			bottom: 5em;
		}
	}
}
@media (max-width: 500px) {
	body {
		font-size: 2.88vw;
		& main {
			& .info-container {
				& .info-container_inner {
					& section {
						display: block;
						& .img {
							max-width: 80%;
							margin: 0 auto;
							padding: 0;
						}
						& .text {
							width: auto;
							margin-top: 1em;
						}
					}
				}
			}
			& .products {
				& .product-grid {
					grid-template-columns: repeat(1, 1fr);
				}
			}

			& .talent {
				& > ul {
					& li {
						& .img {
							float: none;
							max-width: 80%;
							margin: 1em auto;
							padding: 0;
						}
					}
				}
			}
			& .products {
				& .product-grid {
					& li {
						& section {
							width: 80%;
							margin: 0 auto;
						}
					}
				}
			}
		}
		& footer {
			& .footer {
				display: block;
				padding: 2em 0 2em;
				& .logo {
					width: 50%;
					margin: 0 auto;
				}
				& .copy {
					width: 100%;
					margin-top: 1em;
					text-align: center;
				}
			}
		}
		& .news-content {
			& .news-content_inner {
				& .img {
					float: none;
					max-width: 80%;
					margin: 1em auto;
					padding: 0;
				}
			}
		}
	}
}
