@charset "utf-8";
/* Color */
#scrollDown p::before {
	border-color: rgba(219,215,210,1.00) transparent transparent transparent;
}
#workButton p:before {
	background: rgba(219,215,210,1.00);
}

@media screen and (max-width:768px) {
	#portfolio a {
		border-color: rgba(219,215,210,1.00);
	}
	#links li {
		border-bottom-color: rgba(53,56,57,1.00);
	}
}
@media screen and (min-width:769px) {
	#workButton a:hover {
		color: rgba(53,56,57,1.00);
	}
}

/* Header*/
header {
	padding: 0;
}
#logo {
	position: fixed;
	top: 50%;
	left: 50%;
    transform: translate(-50%, -50%);
}
#offer {
	position: relative;
	top: 0;
	left: 0;
	height: 1500px;
}
#offer.show {
	opacity: 1;
}
#offer.hide {
	opacity: 0;
}
@keyframes fadeOutAnime{
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}
#scrollDown {
	opacity: 0;
	animation-name: fadeInAnime;
	animation-duration: 2s;
	animation-delay: 3s;
	animation-fill-mode: forwards;
}
#scrollDown p {
	position: fixed;
	top: 50%;
	left: 50%;
    transform: translate(-50%, 0);
	margin-top: 60px;
	padding-top: 25px;
	font-weight: bold;
	animation: upDown 2s infinite;
	animation-delay: 3.5s;
}
@keyframes upDown {
	0% {
		opacity: 1;
		transform: translate(-50%, 0);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, 5px);
	}
	100% {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}
#scrollDown p::before {
	position: absolute;
	top: 0px;
	left: 50%;
	width: 0;
	height: 0;
    transform: translateX(-50%);
	border-width: 20px 15px 0 15px;
	border-style: solid;
	box-sizing: border-box;
	content: '';
}

/* Profile */
#profile {
	padding: 80px 0 73px 450px;
}
#profile.scrollIn::before {
	opacity: 0;
	position: absolute;
	bottom: 0;
	left: -100px;
	width: 450px;
	height: 636px;
	background: url(/img/home/miyamagi.png) no-repeat;
	background-position: left bottom;
	background-size: contain;
	content: '';
	animation: slideIn 2s cubic-bezier(0.25, 1, 0.5, 1) 1 forwards;
	animation-delay: 1s;
}
@keyframes slideIn {
	0% {
		opacity: 0;
		transform: translateX(-100px);
  }
	100% {
		transform: translateX(0);
	}
	40%,100% {
		opacity: 1;
	}
}
#profile .name,
#profile .summary {
	margin-bottom: 30px;
}
#profile .name p {
	margin: 0;
	font-weight: bold;
	line-height: 1.5;
}
#profile .profileText .isAnimated {
	clip-path: inset(0 100% 0 0);
	transition: 3s cubic-bezier(0.25, 1, 0.5, 1);
	transition-property: clip-path;
	transition-delay: 1s;
}
#profile .profileText .scrollIn {
	 clip-path: inset(0);
}
#profile h2 {
	margin: 0 0 6px;
	font-weight: bold;
	font-size: 1.75em;
	line-height: 1;
}
#profile .summary p {
	margin: 0;
	font-weight: bold;
	font-size: 0.875em;
	line-height: 1.75;
}
#profile .summary .catch {
	margin-bottom: 6px;
	font-size: 1.125em;
}
#profile .profileData h3 {
	margin: 0 0 6px;
	font-weight: bold;
	font-size: 1.25em;
}
#profile .profileData dl {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	font-weight: bold;
	font-size: 0.875em;
	line-height: 2;
}
#profile .profileData dt {
	width: 30%;
}
#profile .profileData dd {
	width: 70%;
	margin-left: 0;
}

/* Portfolio */
#portfolio {
	padding: 120px 0 117px;
}
#portfolio h2 {
	margin: 0 0 30px;
	font-size: 2.25em;
	line-height: 1;
	text-align: center;
}
#workButton p {
	font-weight: bold;
	text-align: center;
}
#workButton p:before {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	transform: scale(0,1);
	transform-origin: left;
	width: 100%;
	height: 100%;
	content: '';
}
#workButton a {
	display: block;
	padding: 1.25em;
	transition: color 0.5s ease-in-out;
}
#workButton a:after {
	display: none;
}
#portfolio ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 50%;
	margin: 0;
	padding: 0;
	list-style: none;
}
#portfolio li:first-child,
#portfolio li:nth-child(6) {
	margin-left: 0;
}
#portfolio img {
	width: 100%;
}
#slider {
	margin-bottom: 30px;
}
#mainSlider {
	margin-bottom: 15px;
}
#mainSlider .swiper-pagination-bullets {
	bottom: 6px;
}
#portfolio h2.scrollIn,
#workButton p.scrollIn,
#slider .scrollIn {
	opacity: 0;
	animation: 1s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}
#portfolio h2.scrollIn,
#slider #mainSlider.scrollIn {
	animation-name: popup01;
	animation-delay: 0.5s;
}
#workButton p.scrollIn,
#slider #tmbSlider.scrollIn {
	animation-name: popup02;
	animation-delay: 0.25s;
}
@keyframes popup01 {
	0% {
		opacity: 0;
		transform: translateY(30px) scale(0.8);
	}
	100% {
		transform: translateY(0) scale(1.0);
	}
	80%, 100% {
		opacity: 1;
	}
}
@keyframes popup02 {
	0% {
		opacity: 0;
		transform: translateY(15px) scale(0.8);
	}
	100% {
		transform: translateY(0) scale(1.0);
	}
	80%, 100% {
		opacity: 1;
	}
}
#tmbSlider .swiper-slide {
	opacity: 0.2;
	cursor: pointer;
}
#tmbSlider .swiper-slide-active {
	opacity: 1;
}

/* Links */
#links {
	padding: 47px 0 42px;
}
#links ul {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: bold;
	font-size: 1.5em;
	line-height: 1.25;
}
#links .isAnimated {
	opacity: 0;
	transform: matrix(1, 0, 0, 1, 0, 50);
	overflow: hidden;
	transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}
#links .scrollIn {
	opacity: 1;
	transform: matrix(1, 0, 0, 1, 0, 0);
	transition-delay: 0.25s;
}

/* Media query for PC */
@media screen and (min-width:769px) {
	
	/* Main Contents */
	#workButton {
		display: flex;
		border-width: 1px;
		border-style: solid;
	}
	#workButton p {
		width: 50%;
		margin: 0;
	}
	#workButton p:before {
		transition: transform .5s ease-in-out;
	}
	#workButton p:first-child:before {
		transform-origin: right;
	}
	#workButton p:last-child:before {
		transform-origin: left;
	}
	#workButton p:hover:before {
		transform: scale(1,1);
	}

}

/* Media query for tablets */
@media screen and (max-width:768px) {

	/* Header*/
	#logo {
		width: 50%;
	}
	#scrollDown p {
		margin-top: 50px;
	}
	#scrollDown p::before {
		border-width: 20px 15px 0 15px;
	}
	
	/* Profile */
	#profile {
		padding: 10% 0 0;
	}
	#profile.scrollIn::before {
		top: 0;
		left: 20%;
		width: 30%;
		height: auto;
	}
	#profile h2 {
		font-size: 1.5em;
		line-height: 1;
	}
	#profile .summary,
	#profile .name {
		margin-bottom: 25px;
	}
	#profile .profileData {
		padding: 5% 0 0 50%;
	}
	#profile .profileData dt {
		width: 20%;
	}
	#profile .profileData dd {
		width: 80%;
	}
	
	/* Portfolio */	
	#portfolio {
		padding: 15% 0;
	}
	#workButton a {
		display: block;
		padding: 1.25em;
		border-width: 1px;
		border-style: solid;
	}

	/* Links */
	#links {
		padding: 5% 0;
	}
	#links ul {
		display: block;
	}
	#links li {
		margin-bottom: 0.5em;
		border-bottom-width: 1px;
		border-bottom-style: solid;
	}
	#links li:last-child {
		margin-bottom: 0;
	}
}
@media screen and (max-width:600px) {
	
	/* Header */
	#logo {
		width: 60%;
	}
	
	/* Profile */
	#profile {
		padding: 15% 0 0;
	}
	#profile.scrollIn::before {
		left: 10%;
		width: 40%;
	}
	#profile .summary {
		margin-bottom: 30px;
	}
	#profile .profileData {
		padding: 10% 0 0 50%;
	}
	#profile .profileData dt {
		width: 20%;
	}
	#profile .profileData dd {
		width: 80%;
	}
}

/*media query for small screen devices */
@media screen and (max-width:540px) {

	/* Portfolio */
	#portfolio {
		padding: 20% 0;
	}
	#portfolio h2 {
		font-size: 2em;
	}
	
	/* Profile */
	#profile.scrollIn::before {
		left: 5%;
	}
	#profile .profileData {
		padding: 5% 0 0 45%;
	}
	#profile .profileData dt {
		width: 30%;
	}
	#profile .profileData dd {
		width: 70%;
	}
}

@media screen and (max-width:480px) {
	
	/* Header */
	#logo {
		width: 70%;
	}
	#offer {
		height: 800px;
	}
	
	/* Profile */
	#profile.scrollIn::before {
		left: 2%;
		width: 45%;
	}

	/* Portfolio */
	#portfolio {
		padding: 20% 0;
	}
	#portfolio h2 {
		margin: 0 0 20px;
		font-size: 1.75em;
	}
	#mainSlider {
		margin-bottom: 10px;
	}
	#mainSlider .swiper-button-white {
		display: none;	
	}
	#mainSlider .swiper-pagination-progressbar {
		top: auto;
		bottom: 0;
	}

	/* Links */
	#links {
		padding: 10% 0;
	}
}

@media screen and (max-width:420px) {
	
	/* Header */
	#scrollDown p {
		margin-top: 40px;
		padding-top: 21px;
		font-size: 0.75em;
	}
	#scrollDown p::before {
		border-width: 16px 12px 0 12px;
	}
	
	/* Profile */
	#profile.scrollIn::before {
		left: 2%;
		width: 40%;
	}
	#profile .profileData {
		padding: 0 0 0 40%;
	}
	#profile .profileData dl {
		font-size: 0.75em;
	}
}